GoZync5

Retrieving Account Names

GoZync5.RetrievingAccountNames History

Hide minor edits - Show changes to output

June 13, 2014, at 12:58 AM by 50.132.85.96 -
Changed line 9 from:
Because the "Filter Records to Zync" script--the script that need to know the user's account name-- is ''in'' your hosted file, and users have logged in as part of syncing, you can simply set a variable to Get (AccountName ) at the beginning of that script, and then use that variable in the scripts find requests.
to:
Because the "Filter Records to Pull" script--the script that need to know the user's account name-- is ''in'' your hosted file, and users have logged in as part of syncing, you can simply set a variable to Get (AccountName ) at the beginning of that script, and then use that variable in the scripts find requests.
June 12, 2014, at 03:27 AM by 50.132.85.96 -
Changed lines 5-19 from:
A crucial part of many of these find requests is determining who is using the system so you can pull down just their records. Advanced developers will have many different approaches to this, but GoZync makes two methods particularly easy.

!! Methods

1. Write a script in your hosted file.
(Preferred)

Because the "Filter Records to Zync" script--the script that need to know the user's account name-- is in GoZyncMobile, you need a way to pass the logged in Account Name ''back'' to GoZyncMobile.

The easiest way to do this is
to make a simple script in your hosted file that returns simply returns Get (AccountName ) as the result in an Exit Script step. You'll see just such a script in our example file QuickContactHosted.fmp12

Then call this script from GoZyncMobile at the beginning of the "Filter Records to Zync" script. Again, you'll find this already done in "Filter Records to Zync", though the routine is switched off by default. Switch it on by turning 1=0 to 1=1 in the If() line following the comment "Retrieve the logged in Account Name from the hosted files." You'll have the user's account name in the variable "gz_AccountName" to use in your PerformFind() script steps.

2. Add matching accounts to GoZyncMobile.

Alternately, you can create accounts and passwords in GoZyncMobile that match those in your hosted files. Since GoZyncMobile is distributed to your mobile users, we think this is kind of hard to maintain, and maybe not the most prudent approach, but it certainly makes it easy to get the user's Account Name: simply set a variable to Get ( AccountName ) toward the beginning of the script "Filter Records to Zync" in GoZyncMobile. Then use this variable in that script's
find requests.
to:
A crucial part of many of these find requests is determining who is using the system so you can pull down just their records. Advanced developers will have many different approaches to this, but GoZync makes it to just use the logged in users's account name.

!! Use Get
(AccountName ) in Your Hosted file.

Because the "Filter Records to Zync" script--the script that need to know the user's account name-- is ''in'' your hosted file, and users have logged in as part of syncing, you can simply set a variable
to Get (AccountName ) at the beginning of that script, and then use that variable in the scripts find requests.
June 30, 2013, at 01:32 AM by 50.132.84.245 -
Changed lines 15-16 from:
Then call this script from GoZyncMobile at the beginning of the "Filter Records to Zync" script. Again, you'll find this already done in "Filter Records to Zync", though the routine is switched off by default. Switch it on by turning 1=0 to 1=1 in the If() line following the comment "Retrieve the logged in Account Name from the hosted files."
to:
Then call this script from GoZyncMobile at the beginning of the "Filter Records to Zync" script. Again, you'll find this already done in "Filter Records to Zync", though the routine is switched off by default. Switch it on by turning 1=0 to 1=1 in the If() line following the comment "Retrieve the logged in Account Name from the hosted files." You'll have the user's account name in the variable "gz_AccountName" to use in your PerformFind() script steps.
Changed line 19 from:
Create accounts and passwords in GZM to match your hosted files.
to:
Alternately, you can create accounts and passwords in GoZyncMobile that match those in your hosted files. Since GoZyncMobile is distributed to your mobile users, we think this is kind of hard to maintain, and maybe not the most prudent approach, but it certainly makes it easy to get the user's Account Name: simply set a variable to Get ( AccountName ) toward the beginning of the script "Filter Records to Zync" in GoZyncMobile. Then use this variable in that script's find requests.
June 30, 2013, at 01:24 AM by 50.132.84.245 -
Changed lines 9-12 from:
The difference in methods depends upon where you ask your users to authenticate when they sync. We [[security | recommend]] that folks log into GoZyncHosted. That is, GoZyncHosted has accounts and password that match those in your hosted FileMaker solution. We find this to be the easiest to maintain, but you could choose to put these accounts in GoZyncMobile.

1. When Users log into GoZyncHosted

to:
1. Write a script in your hosted file. (Preferred)
Changed lines 13-16 from:
The easiest way to do this is to make a simple script in either GoZyncHosted or in your hosted file that returns simply returns Get (AccountName ) as the result in an Exit Script step. You'll see just such a script in our example file QuickContactHosted.fmp12

2. When Users log into
GoZyncMobile
to:
The easiest way to do this is to make a simple script in your hosted file that returns simply returns Get (AccountName ) as the result in an Exit Script step. You'll see just such a script in our example file QuickContactHosted.fmp12

Then call this script from GoZyncMobile at the beginning of the "Filter Records to Zync" script. Again, you'll find this already done in "Filter Records to Zync", though the routine is switched off by default. Switch it on by turning 1=0 to 1=1 in the If() line following the comment "Retrieve the logged in Account Name from the hosted files."

2. Add matching accounts to
GoZyncMobile.
June 30, 2013, at 01:21 AM by 50.132.84.245 -
Changed lines 1-19 from:
sfdsadgs
to:
!! Background

The best mobile solutions present users with just the data they need at any given time. So if you want your mobile solutions to be truly fast, you need to sync just a subset of your hosted data down to your mobile files. We call this "filtering" and this is how you bring down just one user's records, or just their active records. The more specific the better: you can read more about how GoZync lets you use Find Requests to do this here: [[downloading found sets]].

A crucial part of many of these find requests is determining who is using the system so you can pull down just their records. Advanced developers will have many different approaches to this, but GoZync makes two methods particularly easy.

!! Methods

The difference in methods depends upon where you ask your users to authenticate when they sync. We [[security | recommend]] that folks log into GoZyncHosted. That is, GoZyncHosted has accounts and password that match those in your hosted FileMaker solution. We find this to be the easiest to maintain, but you could choose to put these accounts in GoZyncMobile.

1. When Users log into GoZyncHosted

Because the "Filter Records to Zync" script--the script that need to know the user's account name-- is in GoZyncMobile, you need a way to pass the logged in Account Name ''back'' to GoZyncMobile.

The easiest way to do this is to make a simple script in either GoZyncHosted or in your hosted file that returns simply returns Get (AccountName ) as the result in an Exit Script step. You'll see just such a script in our example file QuickContactHosted.fmp12

2. When Users log into GoZyncMobile

Create accounts and passwords in GZM to match your hosted files.
June 30, 2013, at 12:51 AM by 50.132.84.245 -
Added line 1:
sfdsadgs
(855) SEEDCODE
support@seedcode.com
Follow us: