fmwebschool.com
Top Experts [learn more]Top 4-10
webko

9743 K
bandmandq

2458 K
Genx

1525 K
4. tcmeyers
5. kbata
6. Martie
7. Hammerton
8. rrenfrow
9. bneeman
10. plegler
Welcome, Guest. Please login or register.
June 18, 2013, 10:48:57 PM

Login with username, password and session length
Search:     Advanced search
Welcome to the FileMaker Web Masters Exchange.  If you have any questions about how to use this forum, please watch the getting started movie at:
http://www.fmwebschool.com/movies/forum1/forum1.html
27507 Posts in 6073 Topics by 1524 Members
Latest Member: fmwebster
* Home Help Search Calendar Login Register
+  fmwebschool.com
|-+  FMTouch
| |-+  FMTouch - FileMaker Databases on the iPhone and iPod iTouch
| | |-+  [SOLVED] How do you sync only a subset of all the database records?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: [SOLVED] How do you sync only a subset of all the database records?  (Read 2474 times)
dennislittlefield
Newbie
*
Offline Offline

Posts: 2


« on: October 17, 2008, 02:13:32 PM »
See Answer

How do you sync only a subset of the database records?  What if you only care about a small group of records?  It would help the file be smaller on your iPhone.

Dennis
Logged
Michael Petrov
Chief Software Developer
Administrator
Hero Member
*****
Offline Offline

Posts: 4286
Kudos: 15522




Applications:
« Reply #1 on: October 17, 2008, 03:44:15 PM »

There is no way for the sync plugin to only pull a subset of records over - it has no access to found sets in FileMaker. Your best choice is to create a script that copies your subset of records to another table and then create a DDR file that uses only layouts based on that table - this solution works really well for a number of users who are using FMTouch today.
Logged

Michael Petrov,
Chief Software Developer
FMWebschool
800.353.7950
michael@fmwebschool.com
Keep up with our development, follow me on Twitter
DrK
Newbie
*
Offline Offline

Posts: 7


« Reply #2 on: October 21, 2008, 10:45:48 AM »

I'm sorry that this is "solved" as it seems that a mobile database would be much more efficient if you only had records that you needed. The FM database I used in the past on the Palm could only pull found records (it would execute the script before syncing). There must be a more elegant way to do this. As a physician, I do not need access to all my patients in my database, only the active patients.

Maybe if someone could show me an example of how to pull 850 records from 4280 records, as well as from linked records, I would understand. Would the database be two-syncing? My current Db is horribly slow, and that with only a few fields. I am not fully implemented, as I am waiting for the encryption to be restated, but may not be able to use FMTouch if it has to have my entire database.
Logged
jpruden
Newbie
*
Offline Offline

Posts: 15


« Reply #3 on: November 10, 2008, 12:27:08 PM »

The way *I* would handle this situation would be to create a clone of the original database, find the records in the master file, then import the master into the clone.

The clone is now a copy of the original with only the found records. Sync this database to FMTouch and you've got your set.

Not quite as slick as the internal script, but infinitely simpler to implement for less savvy users.  Smiley
Logged
DrK
Newbie
*
Offline Offline

Posts: 7


« Reply #4 on: November 15, 2008, 12:22:20 PM »

But this would only be a static snapshot of the database, not a dynamic set. I would like to find a decent workaround for this, if FMtouch will never have this function. Any ideas would be appreciated. I was thinking of creating a portal to the original database that would only include active files, not inactive (for me).

Any other ideas? (I know this is "closed" but would still like a solution beyond "it can't do that". The FM community always seems to come up with something I never considered)

Thanks.
Logged
jpruden
Newbie
*
Offline Offline

Posts: 15


« Reply #5 on: November 15, 2008, 01:03:36 PM »

The solution is only as static as you'd like it to be... the portal is probably a workable solution, but I wouldn't want to carry around the *whole* thing with me.

If you change the layouts, make a new clone and replace the old one.

If you change the data, it's pretty simple to set up a script that would run when you open the clone that would:

1. Delete the records in the subset database.
2. Perform a find in the original database that would find the records you'd like to sync.
3. Import the found set into the clone.

You can even have it sync back to the original database if you'd prefer.

Honestly, I mostly use FMTouch as a snapshot type of solution, but there are LOTS of ways to make FileMaker Pro do all of the work. Expecting too much from FMTouch will make it a monster... not exactly what we want on our phones... Wink
Logged
DrK
Newbie
*
Offline Offline

Posts: 7


« Reply #6 on: November 17, 2008, 09:59:49 PM »

That's an interesting solution with a clean import on sync. As I plan to have the FM touch database be a "Read Only" database, that should work fine. I'll hack it out. Thanks for the idea. I'm only a medium-use FM Pro person, not an expert. So some things that may be obvious to you can be an enlightenment to me.

Thanks. I'll let you know how it works out.
Logged
Michael Petrov
Chief Software Developer
Administrator
Hero Member
*****
Offline Offline

Posts: 4286
Kudos: 15522




Applications:
« Reply #7 on: November 18, 2008, 12:55:31 PM »

That's an interesting solution with a clean import on sync. As I plan to have the FM touch database be a "Read Only" database, that should work fine. I'll hack it out. Thanks for the idea. I'm only a medium-use FM Pro person, not an expert. So some things that may be obvious to you can be an enlightenment to me.

Thanks. I'll let you know how it works out.

In that case don't forget about the read only switch in the database settings which will make sure you don't make mistakes when browsing through your data.
Logged

Michael Petrov,
Chief Software Developer
FMWebschool
800.353.7950
michael@fmwebschool.com
Keep up with our development, follow me on Twitter
DrK
Newbie
*
Offline Offline

Posts: 7


« Reply #8 on: November 19, 2008, 08:03:01 AM »

Saw that. I did a test run and it worked great. It took the longest for the new database to import from the main database. The import into Fm Touch was very fast! Thanks.

PS Has anyone considered putting out some database templates for use with FMTouch (Contacts, inventory, etc)? I would love to see a test Db with different font sizes and styles to pick out the best to use with a specific database. For instance, in this database (as it is a view, only) I plan on using much smaller typeface so I can fit it on one screen, rather than the usual larger type for input. Any plans on doing this?
Logged
Michael Petrov
Chief Software Developer
Administrator
Hero Member
*****
Offline Offline

Posts: 4286
Kudos: 15522




Applications:
« Reply #9 on: November 19, 2008, 08:47:29 AM »

Saw that. I did a test run and it worked great. It took the longest for the new database to import from the main database. The import into Fm Touch was very fast! Thanks.

PS Has anyone considered putting out some database templates for use with FMTouch (Contacts, inventory, etc)? I would love to see a test Db with different font sizes and styles to pick out the best to use with a specific database. For instance, in this database (as it is a view, only) I plan on using much smaller typeface so I can fit it on one screen, rather than the usual larger type for input. Any plans on doing this?

We are going to be opening an FMTouch App Store within days which will have both paid and free premaid ready to customize solutions specifically designed with FMTouch in mind. Smiley
Logged

Michael Petrov,
Chief Software Developer
FMWebschool
800.353.7950
michael@fmwebschool.com
Keep up with our development, follow me on Twitter
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!