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.

Merging scripts

Featured Replies

  • Newbies

I want to merge these two scripts. The majority of the commands in both of them are the same. There are just a few that are different. How do I go about merging them? Does it matter in what order the commands go?

Script 1:

Go to Layout ["data entry"]

Enter Find Mode [Pause]

Perform Find []

Go to Layout ["employee job hour for week ending"]

Enter Browse Mode []

Print Setup [Restore; No dialog]

Sort Records [Restore; No dialog]

Go to Record/Request/Page [First]

Enter Preview Mode [Pause]

Go to Layout ["data entry"]

Enter Browse Mode []

Script 2:

Go to Layout ["data entry"]

Enter Find Mode [Pause]

Perform Find []

Enter Browse Mode []

Print Setup [Restore; No dialog]

Sort Records [Restore; No dialog]

Go to Record/Request/Page [First]

Go to Layout ["employee hours inception report"]

Refresh Window []

Enter Preview Mode [Pause]

Go to Layout ["data entry"]

Enter Browse Mode []

Thanks in advance,

Vanessa

Edited by Guest

Yes the order of the commands matters, it's like giving someone driving directions, one step follows the other. There are exceptions, e.g. Print Setup can go almost anywhere.

You'd merge the script by copying and pasting the relevant script steps. In this case it looks like that's just the Go to Layout step. That's assuming that you use the same Print Setup and Sort for both reports. If not, copy over those steps and put them inside the "If."


Set Variable[ $param; Get( ScriptParameter ) ]



Go to Layout ["data entry"]

Enter Find Mode [Pause]

Perform Find []



If[ $param = "week ending report" ]

  Go to Layout ["employee job hour for week ending"]

Else

  Go to Layout ["employee hours inception report"]

End If 



Print Setup [Restore; No dialog]

Sort Records [Restore; No dialog]

Enter Preview Mode [Pause]

Go to Layout ["data entry"]

Enter Browse Mode []

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.