|
Hi all. I have been using Cocoon for a little while now,
but this is my first time turning to the message list for help. Any help would
be appreciated. I have a Form with a Selection List with an on-value-changed
event listener all defined in the model. However, I don’t set the
initial value of the selection list until later in flowscript. (It is
dynamic.) I don’t want the event listener to fire for this initial
setting. I can’t figure out how to disable the listener, but then I
realized I could just wait to set the listener until after I set the value.
Does this make sense? I see the Field.addValueChangedListener(ValueChangedListener)
method in the Java API, but I can’t figure out how to do that in
_javascript_. In short, how could I add this to a widget in flowscript? <fd:on-value-changed> <_javascript_> var orgId = event.source.value; updateGroupList(orgId, event); updateParticipantList( null, event ); updateProductList( null, event ); </_javascript_> </fd:on-value-changed> Thanks, Bart |
