find specific set of Projects with main navigation button

Notes on the new SeedCode Complete template for FileMaker 13
Posts: 129
Joined: Tue Jul 15, 2008 12:41 am
Location: Perth Western Australia
PostPosted: Wed Jan 27, 2016 1:41 am
Hi John,

I want to restrict the project access for users based on the department field I have added to the project.
I have added security Privilege Sets with the same names as the values in the department field in the Model file.

The access as such is working fine and I also added some steps in the "Go to Project" script so that the user gets automatically presented with the projects they have access to.

However the window ends up in the Find Panel at the end and I am not sure how to get it to stay in the View Panel?

I have attached a screen shot of my script amendments.

Please could you kindly assist here.

Thanks

kind regards

Regine
Attachments
go to project amendments.PNG
go to project amendments.PNG (29.71 KiB) Viewed 8305 times
SeedCode Staff
SeedCode Staff
Posts: 190
Joined: Tue Sep 22, 2015 2:27 pm
PostPosted: Wed Jan 27, 2016 11:51 am
Hi Regine,

Thanks so much for reaching out on this, and for including a screenshot of your script. Sounds like a great modification!

I did some testing to confirm, and the solution should be a simple one. Rather than directly calling the "Go To Object" script step after performing the find, use the script "Call Go To Object [ ObjectName ]" in a Perform Script step, and pass the panel name as the script parameter. This should cause the layout to appropriately end up on the expected panel, rather than the find panel.

Let me know if this works for you, or if you have any other questions!

Dan
[email protected]
Posts: 129
Joined: Tue Jul 15, 2008 12:41 am
Location: Perth Western Australia
PostPosted: Wed Jan 27, 2016 7:12 pm
Thanks Dan, that has solved the problem!

kind regards

Regine

Return to SeedCode Complete 13

Who is online

Users browsing this forum: No registered users and 2 guests

cron
(855) SEEDCODE
[email protected]
Follow us: