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

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

Recommended Posts

Posted

I am having difficulty find a way to exit a script that incorporates a find. I want to be able to exit the script and return to browse mode if no records are found without the user having the option to "modify find" or "continue". Anyone have any suggestions?

Thanks!

Posted

Since this this is about find and not constrain found set, is it pretty straight forward:


Set Error Capture [ On ] 

Perform Find [ ]  

If [  not Get ( FoundCount ) ] 

Show All Records 

Exit Script [  ] 

End If 

Set Error Capture [ Off ] 

While it when constrain is in action must have measures to recreate the found set, such as:

http://www.sumware.net/robfm/savingfoundsets.php

...shown in this template:

http://www.kevinfrank.com/download/preserve-and-restore-found-sets.zip

--sd

Posted (edited)

Hi Bonngo,

I use the below script for basically what you are asking. Hope it gets you headed in the right direction.

Set Error Capture[On]

Enter Find Mode[Restore]

Perform Find

If[Get(lastError)=401]

Show Custom Dialog["Message";"No Units have shipped today!"]

Exit Script[]

End If

Soren is fast this morning. I need more coffee

:

But it shows you another method of the same thing. :)

Michael

Edited by Guest
Missing bracket
Posted

No only if the script procedes on futher, the state evaporates when the script is terminated, but often are they only on halt/pause if the scripting is recursive, or perpertuate scripting is going on to avoid users getting stucked in findmode.

Examine that a button have several modes to deal with the eventually running script, halt, exit, resume and pause.

--sd

This topic is 6103 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.