AnsweredAssumed Answered

FMS 17 Web Direct script problems

Question asked by d4creative on Jul 20, 2018
Latest reply on Jul 21, 2018 by d4creative

I am having a lot of trouble getting a Web Direct solution to run a simple Find script or Quick Find script.
I have a database that I need clients to be able to login with very limited privileges. I have a find script that displays records that only belong to the client logging:

 

   If ( Get (AccountPrivilegeSetName) = "Client Name" )

       Perform Quickfind [ "Client Name"]

   Else

       Do different stuff for admin

   End If

 

This is basic but you see what I am trying to do. It works flawlessly in FMP client.

When I run some error check and custom dialogue to see what's happening I get the correct account name and privilege set but any kind of find refuses to work.
It fails at different points for Firefox and Safari.

- Safari ignores the Get (AccountPrivilegeSetName) when its set to "Admin" and therefore fails at the if statement.

- Firefox appears to do everything up until the Perform Find/Perform Quick Find step.
Is this a problem with recprdsnot loading before the next step is executed or something like that? Is there a way to make sure that page has loaded before moving to the next script step?

Outcomes