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

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

Recommended Posts

Posted

Hi there:

Is there a way to attach a script to a layout such that just opening/visiting the layout launched the script?

Thanks

Kurt

Posted

One way to do it is to just attach the script to whatever button you click to get to the layout. But this isn't foolproof as the user might get there by seecting it from the status area, or being taken there from a related file, etc.

So a new way I'm playing with is to use the example plugin that allows you to start a script when a field is changed. Create an unstored calc field that launches your script. Put this on the layout. When the layout is opened the field recalculates (since it is unstored) and triggers the script.

See the attached example.

HTH,

Dan

test.zip

Posted

Thanks Dan!

That sounds promising. (And you are right, the user will most likely get to the layout without a button as it is the manin/switchboard setup for the system.)

I DL'd your example and will try it tomorrow when I am fresher and have had a chance to try and figure out the event trigger thingee.

Thanks

Kurt

Posted

I always use navigation scripts to switch layouts, and disable access to the layouts in the status bar.

Posted

Buttons in a typical tabbed interface are the main navigation. Some process scripts will also call a nav script as a last step to put the user back to a different layout.

As an example, if the user's security level for a particular area is read-only, then the nav scripts brings up the view layouts. If the user has read-write access, then the nav scripts brings up the entry layouts.

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