Hi,
How do I fill a selection-list in a flowscript ?
I am using v2 / Form.js.
What am i doing wrong ?
var STATES = [
{ key: "AL", value: "Alabama" },
{ key: "AK", value: "Alaska" },
{ key: "WY", value: "Wyoming" }
];
form = new Form("mmm-def.xml");
form.createBinding("mmm-bind.xml");
var wid = form.getWidget();
wid.server.value = STATES;
<wd:field id="server">
<wd:label>Server</wd:label>
<wd:selection-list type="flow-jxpath" list-path="server"
value-path="key" label-path="value"/>
<wd:datatype base="string"/>
<wd:on-value-changed>
<javascript>
bla bal...
</javascript>
</wd:on-value-changed>
</wd:field>
<wt:form-template action="xxxx" method="post">
<wt:widget-label id="server"/>
<wt:widget id="server">
<wi:styling
submit-on-change="true"/>
</wt:widget>
</wt:form-template>
--
Med venlig hilsen / Yours sincerely
Peter Lerche
EasySpeedy ApS
http://easyspeedy.com
_______________________________________
European Dedicated Server Hosting
Extremely low prices, secure, and reliable
Linux and BSD distributions only
_______________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]