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.

Go to diff layout if script is cancelled?

Featured Replies

If a user clicks the Cancel button in the Status area during a scripted Find (paused), is there any way to have the script take him to a different/specific layout instead of dumping him in an inappropriate place? (And yes, I want to keep the Status area "live" in this situation.)

This script traverses two diff layouts, and the problem arises if the user cancels on the 2d one--which has only merge fields and no navigation options (other than a "cancel everything, go home, and start over" button). I'd rather be able to take them back one step/layout since it usually means that the found set they got isn't what they wanted/expected.

Thanks,

RDecker

  • Author

BTW, I tried something like this, but either this isn't the right way to approach it, or I've somthing amiss:

...

Enter Preview Mode [Pause]

If [Get(LastError) = 1]

Go to Layout ["FindLayout1" (PeopleMainTable)]

End If

RDecker

Use the script step Allow user to abort set to NO. This will stop the user fro using the cancel button in the status area.

  • Author

Hadn't thought of that; it would work, but if I were the user, I'd *like* to be able to cancel at this point and end up back on the find layout. If it's possible to script that, I think that would be my preference. Else I suppose I could block the abort and add another button to start the find over again...

RDecker

In cases like this I present the user with a dialog box and ask them if they want to continue or stop. The dialog box has a button for each choice. The script then proceeds folloing the button choice of the user.

Don't use the Find By Layout technique.

Create a layout using Globals for the fields and simply go to that layout with no pause. Have a find button and various buttons for where the user can go to.

The script for the find button determines which globals have data and acts appropriately.

if not empty globals x, y, z, etc

enter find mode

If not is empty this global field

set field x to global x

end if

if not is empty global field y

set field y to global y

end if

etc.

perform find

end if

Thus your tabbed menu can have a find page like above and your user can vacate the find by clicking on another tab.

  • Author

In cases like this I present the user with a dialog box and ask them if they want to continue or stop. The dialog box has a button for each choice. The script then proceeds folloing the button choice of the user.

That might work for what I need. Could you help a less experienced scripter and tell me how you script this to trigger when a user does click the cancel button in the status area? Thanks.

RDecker

  • Author

Sounds interesting, but I'm not sure I understand all that you are proposing. Could you flesh this out a bit more for me? Anyplace I can see a sample of something like this? What are the advantages of this and the disadvantages of the alternatives?

Thanks,

RDecker

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.