Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6656 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm trying to put Back and Forward buttons on my layouts... i've kind of come up with a system that works but i'm stuck with a new problem.

Here's what i have now:

a SetNavPoint script that puts in a global field (or rather it adds to whatever was there before) the current layout number. As the user changes the layouts the global field, NavPath, keeps track of all visited layouts like so: 32 5 4 1 15 etc.

Then i have another global field called NavPathRev that the Back and Forward scripts use.

So when the user hits a back button takes the first "word" out of the NavPath field puts it in the NavPathRev, and goes to that layout. Then the Forward button does the exact same thing only it takes the layout number from the NavPathRev and puts it in the NavPath and goes to that layout.

It works and it works well. BUT it doesn't work with multiple users cause the NavPath and NavPathRev fields will record all the layouts visited by all the users... so user X is hiting the back button he ends up seeing user Y's last visited layout instead of his.

So how do i separate each user's path history?

Posted

Global fields are independent to each user on the network. Is it possible you didn't really create the NavPath and NavPathRev fields as globals. BTW, you can also use a global script variable ($$) since you have FileMaker 8 if you don't need FileMaker 7 compatibility.

Posted (edited)

jeez... you are right! The fields WERE global originally, but in that table i only have one record and i remember that at some point i said... well since there's only one record and there will alway be only one record... i might as well change the fields to normal fields... and when i did the testing it worked so lefet them like that, but now that they're back to global it's fine with multiple users as well.

Thanks for poiting that out... i'm re-tarded! :

Edited by Guest

This topic is 6656 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.