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

Script for New layout with Get(ScriptParameter)


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

Recommended Posts

Posted

I want to use a script to open a different layout in a new window, and I want to define the layout using a script parameter. I can't seem to get it to work.

If I do the following:

New Window

Go to Layout(Layoutname)

It works fine.

If I simply want to go to a new layout using a script parameter, I can do:

Go to Layout(Get(ScriptParameter))

But, if I do:

New Window

Go to Layout(Get(ScriptParameter))

It doesn't switch the new window to the different layout.

Obviously, I'd like to be able to use a script parameter so I don't have to write a new script for every window I want to open.

Anybody have any ideas about what gives? Is this a bug, or am I missing something here.

Thanks for any and all advice.

Posted

I have used a similar scripting for layout navigation and have had no problem. I made a copy of my script and then pared it down to your final script and it worked perfectly. I know this may sound silly but are you sure that you have spelled the layout name correctly in the script parameter.

Incidentally if you do get it working do take account of closing the windows as well as opening them.

Posted

Wait a minute. I just tried it again, and now it works. Hmmmm....

(Just in case you are wondering, it was the same script as yesterday, so no, I didn't have any spelling errors!)

:

Hmmm....I shut down and re-started since yesterday....was that the solution? That's decidedly odd.....

Well, if I ever get some time, I'll try tracking it down and post the results.

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