[Closed] radioButtons changed state event
Wouldnt you have to call the “changed” function of the control when you set a state internally? I think i remember having to do that in a script, not sure if it relates to your problem though.
eg:
on rdoAmount chanded state do
(
case rdoAmount.state of
(
0:(OpRollout.rdoRate.state = 1)
1:(OpRollout.rdoRate.state = 0)
)
OpRollout.rdoRate.changed state
)
on rdoRate chanded state do
(
case rdoRate.state of
(
0:(OpRollout.rdoAmount.state = 1)
1:(OpRollout.rdoAmount.state = 0)
)
OpRollout.rdoAmount.changed state
)
although i do feel an infinite loop coming on
on rdoAmount chanded state do
(
if state == 1 then
(
0:(OpRollout.rdoRate.state = 1)
1:(OpRollout.rdoRate.state = 0)
)
)
on rdoRate chanded state do
(
case rdoRate.state of
(
0:(OpRollout.rdoAmount.state = 1)
1:(OpRollout.rdoAmount.state = 0)
)
)
it couldnt be something as simple as the the fact your event is spelt wrong?
lol. I can’t believe in it. I’m such an (bip).
but i don’t know how to access my Rollout in the parameters block
to access rollouts from param block you have to now just a name of rollout and call
-- name of rollout is "myRollout" for example
this.myRollout
same way you can get access to any control of any rollout…
PS. chanded – is THE BUG of the week!
Sure, Bobo should add it into the help file. LOL
Ok i think it works now.
before, i used this structure:
plugin
(
parameters
()
Rollout MainRollout
(
on ddlX selected itm do
(
Rollout OpRollout
()
addRollout OpRollout
)
)
)
and now i’m doing it like this;
plugin
(
parameters
()
Rollout MainRollout
(
on ddlX selected itm do
(
RemoveRollout OpRollout
addRollout OpRollout
)
)
Rollout OpRollout
()
)