July 22, 200421 yr 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
July 22, 200421 yr 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
July 22, 200421 yr 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.
July 22, 200421 yr 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
July 22, 200421 yr 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.
July 22, 200421 yr 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.
July 23, 200421 yr 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
July 23, 200421 yr 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