Jump 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.

Having trouble passing multiple script parameters

Featured Replies

Dulcolax isn't the answer, here.

What I want to do is enable a user to click a button on a layout (Object Name "Home_button") that will take him/her--by way of a script--to the Home layout along with changing the Page Setup to portrait; I'd like to use this scheme for a number of buttons that go to different layouts that have different page orientation.

Where I'm having trouble is setting up the command string in the Optional Script Parameter field in the Specify Script windoid; I tried a number of different permutations of commands but just find the right one.

I know the first problem is that I can't use the Get (ActiveLayoutObjectName) command on a button so _that_ doesn't make things easier. :S

Any ideas or guidance would be appreciated. Thanks!

Page orientations are file-based, not layout based. However, when you print or preview a layout, you would want to change the file's page setup if necessary. So, not really understanding why this is necessary with a nav script.

If you were to have one Navigation script, you could pass a script parameter like so:

Button on layout with the text "Main Menu." Attached to button, Perform script "Basic Nav" with script parameter "main" :

Basic Nav script reads:

If (Get (scriptparameter) = "main")

Go to Layout "Main Menu"

ElseIf ( get (scriptparameter) = "admin" )

Go to Layout "Admin"

ElseIf

...

End If

I do this rather than bury the nav in a Go to Layout by Calc, because to me it is easier to read months later.

hth,

Barbara

  • Author

Good thinking, Barbara, and thanks--I'll give it a shot!

Create an account or sign in to comment

Important Information

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

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.