Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

What's wrong with this script ??

Featured Replies

Hi !

I just cannot figure out why this doesn't work:

I Have 2 PrivilegeSets: User and Admin.

The script goes like this:

If[Get(PrivilegeSetName)="User"]

Go to Layout["FrontPage_User"]

Else

Go to Layout["FrontPage_Admin"]

End If

In DataViewer Get(PrivilegeSetName) returns "User" and also in a control field "User" is shown. But still this directs User to the "FrontPage_Admin" -layout. With ScriptDebugger it just jumps over the first choice.

I just cannot understand...

Is the script set to run with full access privileges?

Here is a good test: just before the IF in your script, put in a custom dialog with Get( PrivilegeSetName ) as the message. Then you can see exactly what the script is seeing.

I believe you will find the answer here:

http://fmforums.com/forum/showtopic.php?tid/202478/

  • Author

Uh oh... Yes it WAS with full access privileges. Now it works. Sometimes I feel so stupid... :(

Thank you very much again !

It's a good question, perhaps have you made the Go To Layout[

utilise the feature by the number of a calc ... and here are you getting jiffy logic when attempting to fill in text strings due to typecasts.

But the number feature makes good sense in another way say you have the two layouts adjacent in logical number, then could the calc look like this:

1+Exact ( Get ( PrivilegeSetName ) ; "user" )

Where admin are ushered to layout #1 and users the following - I attach a template showing this:

Admin have the pass 1234

--sd

Untitled.zip

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.