Jump to content
Server Maintenance This Week. ×

Order of script commands


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

Recommended Posts

Using the script below displays the Delete Record dialog

before going to the Residence layout. Why? How can I go to the layout first then display the Delete Record dialog?

Set Field["gUserID", "Find User::UserID"]

Go to Related Record ["gUserID"]

Go to Layout ["Residence"]

Delete Record/Request[]

Link to comment
Share on other sites

Hmmn...

Actually, you don't need an extra command to do this. Just sele3ct the Go To Layout [ ] script step, then enable the checkbox option (which will appear at the bottom of the ScriptMaker dialog) which is labelled 'Refresh Window'. You will then have the sequence:

Set Field["gUserID", "Find User::UserID"]

Go to Related Record ["gUserID"]

Go to Layout [Refresh, "Residence"]

Delete Record/Request[]

The inclusion of the Refresh parameter within the existing Go to Layout step will make all the difference. wink.gif

Link to comment
Share on other sites

This topic is 7418 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.