September 25, 200817 yr ..... why isn't there one? I know there's a button but I need a 1 click continue and go to.. etc.
September 25, 200817 yr Author :P? Don't believe it'll work for what I want Maybe a better explanation... New record request go to layout2 pause hide status bar ..here they can continue by button to keep the record or delete the request... ..If they delete it I need to continue somehow go to layout1 I need to edit the record during the pause so I don't see how that'll work.
September 25, 200817 yr Let's say you have a Client form layout, and you wish to add a new activity. The new activity window is based on an Activities TO and will pop in front of the Client form layout. This dialog layout will have a Done button and a Cancel button. The Done button is set to Resume. The Cancel is set to Exit script and run a Cancel_Delete script. So: User clicks New Activity Set User Abort Off Set $client to __kP_ClientID New Window (offset set from top and left) Go to Layout Activity New Record Set ACT:_kF_ClientID to $client Resize window to fit, hide status, lock Pause //User clicks Done Close Window But if the User clicks Cancel, this script runs: Delete Record Close Window It's important to set the Cancel button to Exit current script. hth, Barbara
September 26, 200817 yr Author Been out of town for the last 2 days... Like it but I'm not familiar with: Set ACT:_kF_ClientID to $client Is - Set ACT: - a table and field ref.? I see it's setting to the variable just not sure what we're setting........ Thanks though.
September 26, 200817 yr I'm sorry, I do this all the time (use pseudo scripting). It's a Set Field script step. I'm capturing the parent ClientID into a variable, and then setting it into the foreign key (_kF_ClientID) in Activities.
September 26, 200817 yr Are you deleting by button? If so, buttons have the option to Pause/Resume/Exit/Halt the currently running script(s).
September 26, 200817 yr They'd have to be deleting by button if the script is paused. (Unless they're doing it from the Scripts menu.) I've always thought the P/R/E/H button options to be an awkward UI. It is useful at times though, and as DJ has suggested, this is one of those times. BTW, there is a resume script step: it's called Pause/Resume Script.
September 26, 200817 yr BTW, there is a resume script step: it's called Pause/Resume Script. I have yet to figure out how to use the Resume option of Pause/Resume from within a script. Talk about awkward.
September 26, 200817 yr Author Yes...Very odd........ it can only be a number. What would be good is something like continue using a calc.... so calc field (field1=yes) Then you can do whatever and the last thing would be to change that field1 to "yes" Didn't think it would get this involved but here's more info. ANYWAY......... here's the overall idea - based partially on a problem from another post of - reverting an altered record. Which happens to also play into my database for other reasons to long to explain. first - The layout may be a new record or may be to edit an existing record. Either way I don't want the user to have access to any other records and I really don't want to use a find (just me). Even without the status bar you can use the scroll on the mouse to go through them second - is the long reason I don't want to get into but I'd like to be able to continue AND preform a script with 1 button clicking
September 26, 200817 yr I have yet to figure out how to use the Resume option of Pause/Resume from within a script. I set a global field 'g_Message' and a conditionally Formatted 'Continue Button.' I set the message in the script "Click Resume to Continue" when user clicks Resume the script continues. If space is a problem I've turned the g_Message into a button. I'm sure there are more elegant ways to do it, but, it works for me.
September 26, 200817 yr In my example above, the Done button is set to Resume. All that happens is the Close Window step.
September 26, 200817 yr But you're not using "Resume" script step as part of a script, you're using it as a button option.
September 26, 200817 yr I have yet to figure out how to use the Resume option of Pause/Resume from within a script. Talk about awkward. Sorry, it was just an attempt at humor. The name of the script step is what's awkward: it doesn't resume, it just pauses.
September 26, 200817 yr Yes...Very odd........ it can only be a number. I don't know what you're referring to there.
Create an account or sign in to comment