May 16, 201213 yr 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!
May 16, 201213 yr 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
Create an account or sign in to comment