Cabinetman Posted September 25, 2008 Posted September 25, 2008 ..... why isn't there one? I know there's a button but I need a 1 click continue and go to.. etc.
Cabinetman Posted September 25, 2008 Author Posted September 25, 2008 :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.
bcooney Posted September 25, 2008 Posted September 25, 2008 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
Cabinetman Posted September 26, 2008 Author Posted September 26, 2008 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.
bcooney Posted September 26, 2008 Posted September 26, 2008 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.
David Jondreau Posted September 26, 2008 Posted September 26, 2008 Are you deleting by button? If so, buttons have the option to Pause/Resume/Exit/Halt the currently running script(s).
Fitch Posted September 26, 2008 Posted September 26, 2008 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.
David Jondreau Posted September 26, 2008 Posted September 26, 2008 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.
Cabinetman Posted September 26, 2008 Author Posted September 26, 2008 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
aldipalo Posted September 26, 2008 Posted September 26, 2008 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.
bcooney Posted September 26, 2008 Posted September 26, 2008 In my example above, the Done button is set to Resume. All that happens is the Close Window step.
David Jondreau Posted September 26, 2008 Posted September 26, 2008 But you're not using "Resume" script step as part of a script, you're using it as a button option.
Fitch Posted September 26, 2008 Posted September 26, 2008 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.
Fitch Posted September 26, 2008 Posted September 26, 2008 Yes...Very odd........ it can only be a number. I don't know what you're referring to there.
Recommended Posts
This topic is 5903 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 accountSign in
Already have an account? Sign in here.
Sign In Now