Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7428 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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.

Posted

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

Posted

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.

Posted

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.

Posted

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

Posted

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

This topic is 7428 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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