Dev at weitling wrote:
> in an on-action-javascript in my forms definition I want to get access
> to the bizData provided with the showForm()-function.
> In the end I want to be able to change the entries in a selection list
> on an ActionEvent.
It might be just personal taste, but I tend to write all event handlers
and widget manipulation in the flowscript, so I would write it as such:
--- flowscript ---------------------------------------------------------
var selist = ...
var form = new Form("definitions/test2.xml");
form.getChild('mySelectionList').setSelectionList(selist, 'value', 'label');
form.getChild('changeSelectionListButton').addActionListener(function() {
// selist.blah() ...
// remember to call setSelectionList again here
});
form.showForm("templates/test2.xml");
--- definition ---------------------------------------------------------
<fd:field id="mySelectionList">
<fd:datatype base="string"/>
</fd:field>
<fd:action id="changeSelectionListButton">
<fd:label>Do it!</fd:label>
</fd:action>
------------------------------------------------------------------------
Tobia
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]