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

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

Recommended Posts

Posted

I've got a library with 1000's of books so to make it easier I have placed letters A - Z for the user to click on and bring up only those books starting with that letter.

 

I really don't want to write 26 different scripts to do a Perform Find for A, B, etc..., so each of the text letters which have the script button attached to them, I gave an object Name A, B etc. and used the script;

 

Set Variable [ $abc; Value:Get(ActiveLayoutObjectName)]

 

and then used the variable $abc in my Perform Find.....But it doesn't work! I did some tests but it seems that Get(ActiveLayoutObjectName) doesn't work when clicking on buttons.

 

Am I mistaken? Is there another easier way to do this other than write 26 seperate scripts for each letter?

 

Thanks so much for your help in advance.... and have a great weekend

 

Posted

You could also just use a script parameter on the button - not as slick as having the button tell the script which it is, but it accomplishes the same thing.

 

 

Your Set Variable would then be Set Variable [$abc; Value:Get(ScriptParameter)]

  • Like 1

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