Conditional Help
OnShow="
Parent.Parent.MakeLarge.LargeReady ? Parent.Parent.MakeLarge.Press=true : ''" Should that work? My goal is to get a button to be pressed but only if another data element is set to true. So far it fires no matter whatever the data element is set to. Silat |
Your syntax looks incorrect. And looking at it a second time, needlessly complicated.
I'm not exactly sure what your code wants to do... but I'm guessing this is more what you want. Parent.Parent.MakeLarge.Press=Parent.Parent.MakeLarge.LargeReady This would be exactly the same as: Parent.Parent.MakeLarge.Press=Parent.Parent.MakeLarge.LargeReady ? true : false Synax: ValueToBeAssigned=BooleanValue ? ValueIfBooleanTrue : ValueIfBooleanFalse |
Quote:
|
*shrug* I've never used buttons to run scripting through scripting so I guess I wouldn't know. Supposedly Buttons and Pages are both direct children of Widgets, but it seemed cleaner to me to use the simpler object to contain my scripts instead of using a UI element that expects input but is getting it simulated.
Regardless, I stand by what I said about the incorrect syntax and the comparison of complexities. What was originally written would have had the same problem regardless of the event triggered. |
Yea .Press fires regardless of argument so that was why I was trying the conditional. I will look into .Activated.
Thanks for the input. Edit: Figured out another way to achieve the same goal. Now I just want to try to fix the dropdown problem. ;) Silat |
All times are GMT -5. The time now is 09:40 PM. |
vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI