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

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

Recommended Posts

Posted

Dulcolax isn't the answer, here.

What I want to do is enable a user to click a button on a layout (Object Name "Home_button") that will take him/her--by way of a script--to the Home layout along with changing the Page Setup to portrait; I'd like to use this scheme for a number of buttons that go to different layouts that have different page orientation.

Where I'm having trouble is setting up the command string in the Optional Script Parameter field in the Specify Script windoid; I tried a number of different permutations of commands but just find the right one.

I know the first problem is that I can't use the Get (ActiveLayoutObjectName) command on a button so _that_ doesn't make things easier. :S

Any ideas or guidance would be appreciated. Thanks!

Posted

Page orientations are file-based, not layout based. However, when you print or preview a layout, you would want to change the file's page setup if necessary. So, not really understanding why this is necessary with a nav script.

If you were to have one Navigation script, you could pass a script parameter like so:

Button on layout with the text "Main Menu." Attached to button, Perform script "Basic Nav" with script parameter "main" :

Basic Nav script reads:

If (Get (scriptparameter) = "main")

Go to Layout "Main Menu"

ElseIf ( get (scriptparameter) = "admin" )

Go to Layout "Admin"

ElseIf

...

End If

I do this rather than bury the nav in a Go to Layout by Calc, because to me it is easier to read months later.

hth,

Barbara

  • Like 1
Posted

Good thinking, Barbara, and thanks--I'll give it a shot!

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