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

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

Recommended Posts

Posted

: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.

Posted

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

Posted

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.

Posted

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.

Posted

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.

Posted

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

Posted

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.

Posted

In my example above, the Done button is set to Resume. All that happens is the Close Window step.

Posted

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.

Posted

Yes...Very odd........ it can only be a number.

I don't know what you're referring to there.

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 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.