mscholtz Posted February 23, 2007 Posted February 23, 2007 Is there any way that a click on a button can pass the object name of that button to the script that the button runs? It would be OK if this is done as a script param, or some other way. As long as I don't have to enter the object name again as a hard-coded script param. Thanks! M.
Raybaudi Posted February 23, 2007 Posted February 23, 2007 Yes, there is a "not common" way ! Each button have to be a rep of a repeating field, than you can pass the Get ( CalculationRepetitionNumber ) as the parameter to a $$ variable by using ToolTips.
mscholtz Posted February 23, 2007 Author Posted February 23, 2007 Hmm, clever, but in this case that won't work. The buttons can't be repeating fields. Anyone else know of a different way to do this?
Raybaudi Posted February 23, 2007 Posted February 23, 2007 Hmm, clever, but in this case that won't work. The buttons can't be repeating fields. Why ? If they are pictures, the repeating field can be a container field.
mscholtz Posted February 23, 2007 Author Posted February 23, 2007 Even $ variable can be used ! What do you mean? Are you still talking about repeating fields, or some other method? Thanks!
Raybaudi Posted February 23, 2007 Posted February 23, 2007 Still repeating field ! But w/o $$, only $. BTW: why don't you want to use a repeating field for all your buttons ?
Raybaudi Posted February 25, 2007 Posted February 25, 2007 This is an example of what I said Buttons.zip
mscholtz Posted February 26, 2007 Author Posted February 26, 2007 OK, I give up. How does that work? How does $button end up = the # of the repetition clicked? I don't see where the variable is being set.. there's no script setting it, no calc. Do tell.
comment Posted February 26, 2007 Posted February 26, 2007 It's done in the tooltips setup. That's also the main disadvantage of this method: you must position the cursor above the button and wait until the tooltip updates, before clicking.
mscholtz Posted February 26, 2007 Author Posted February 26, 2007 Hmm, actually on my machine that isn't true, which is why I didn't suspect a tooltip. The variable updates as soon as the cursor moves over the object, long before the tooltip fires. I've verified this w/ the Data Viewer. Good trick, although it still won't work for me because I can't make my buttons repeating fields. (And you're just going to have to trust me on that one, Daniele. It's not worth it to discuss the reasons.)
Raybaudi Posted February 26, 2007 Posted February 26, 2007 It's done in the tooltips setup. That's also the main disadvantage of this method: you must position the cursor above the button and wait until the tooltip updates, before clicking. This isn't true on windows machines: the $variable updates instantly, even before the ToolTip shows itself
Recommended Posts
This topic is 6481 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 accountSign in
Already have an account? Sign in here.
Sign In Now