Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

..... why isn't there one?

I know there's a button but I need a 1 click continue and go to.. etc.

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

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

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

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.

Are you deleting by button? If so, buttons have the option to Pause/Resume/Exit/Halt the currently running script(s).

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.

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.

  • 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

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.

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

But you're not using "Resume" script step as part of a script, you're using it as a button option.

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.

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.