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.

Portal Strange Script Occurence

Featured Replies

I have a portal that lists current records correctly.

I placed a button next to each record so i can go to that record and print same. The script for the button involves omitting the record so it previews alone from the other records and calculates correct page numbering etc.

When i always run the script the first time in this portal layout, it previews all records which is not what i want but when i go back after the first script run and try it again and again, it works correctly.

What is causing the script to list all records in preview mode the first time?

Here is my script? Any help is much appreciated.

Go to Related Record [From Table etc.etc.]

Omit Record

Show Omitted Only

Go To Layout ["MyLaout"]

Enter Preview Mode []

Perform Script ["PageNO"]

Enter Preview Mode [Pause]

Enter Browse Mode []

Go To Layout [Original Layout]

Have you tried stepping through this with the debugger? My guess is that you are landing on a single record, then omitting it, leaving you with zero found records, so that Show Omitted then shows all records.

You should be able to isolate the record in the GTRR step (show only related), so you don't need the Omit/Show steps.

Go to Related Record [From Table etc.etc.]

SHOW ALL RECORDS

Omit Record

Show Omitted Only

Go To Layout ["MyLaout"]

Enter Preview Mode []

Perform Script ["PageNO"]

Enter Preview Mode [Pause]

Enter Browse Mode []

Go To Layout [Original Layout]

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.