[FX.php List] [Off] Catching permissions error in FMP
tcmeyers at troymeyers.com
Tue Nov 1 18:10:42 MDT 2011
I tried your approach because it seems like I'm really hamstrung otherwise. It's not really an issue of fraud, just carelessness, so I'm just using Get ( CurrentDate ).
SO, I got rid of the limited privileges, and did a OnLayoutKeystroke with:
If [ (Get (AccountPrivilegeSetName) = "Minion") and (Table::Date ≠ Get (CurrentDate)) ]
show dialog box
Revert Record/Request [No Dialog]
Exit Script [Result: 0]
Exit Script [Result: 1]
The reason I've got the Revert in there is because there are also popup menus, which don't give a keystroke event, so on each one I've got to apply a script OnChange (and for simplicity I want to apply the same script). I do want them to be able to copy the value by selecting, so I don't want to prevent 'OnEntry'. Since the value actually changes before the OnChange can stop it, I had to use Revert.
I also had to apply similar test scripts to all of the buttons on the layout. Bleh.
It would have been much simpler if I could the the "limited" edit to work with me!
But this is working fine, thanks.
> oh. also, I would use get ( CurrentHostTimeStamp ) instead, as using
> "CurrentDate" means they could just change the date on their computer
> and be able to edit records.
More information about the FX.php_List