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.

Finding Records Switch Layout

Featured Replies

Hi Folks,

I have the following script that works great when i open the database and use it on the Purchase Order Layout. The user can see the record in preview mode and when they hit the Enter Key, it cancels out of Preview mode and returns the user to Browse Mode. Then they can choose another record to Preview and the script runs again fine.

But when i go to another layout and use another copy of this script with the appropriate layout references changed, it does not allow the user to hit the enter key and return to browse mode.

Then if i go back to where i know it works on the Purchase Order Layout, it doesn't work again. Only when i close the database and reopen it again, the script works fine again on the Purchase Order Layout only.

Any Ideas please.

New Window []

Show All Records

Omit Record

Show Omitted Only

Show/Hide Status Area [show]

Go To Layout ["Purchase Order Print Form"]

Sort Records [Restore;No Dialog]

Print Setup [Restore;No Dialog]

Enter Preview Mode []

Go to Record/Request/Page/[Last]

Set Field [Global_Table::gGetPageCount; Get (PageNumber)]

Go to Record/Request/Page [First]

Refresh Window []

Pause/Resume Script [indefinetly]

Allow User Abort [On]

Enter Browse Mode []

Show/Hide Status Area [show]

Go to Layout [Purchase Order Input Form]

Extend Found Set []

Enter Browse Mode []

Exit Script []

Edited by Guest

HI Sully

I cannot see where you are closing the new window that you are creating in the first step. Not knowing the context that you are running the script in I do not know if that is a problem but since you have 9 advanced have you tried switching the debugger on. This will allow you to see what is happening step by step through your script

Phil

I agree with Phil, you are creating a new window but not closing it. Also, why do you need the Exit Script at the end? It would be helpful to know if the TO for the Purchase Order Print is the same as the TO for the original layout bcs you're isolating a record for preview and then switching layouts (are you switching TOs?).

  • Author

Thanks guys

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.