this is a clear feature-request (and a very sensible one) pls add it to bugzilla
-marc=
Joe Latty wrote:
I am using the on-value-changed event for a field to do some validation . If the value has a direct code match I leave the value if, however, there is more than one match I return a selectionlist and have the user choose from the list.
This is all working well, however, when the user selects the correct value I no longer want the selectionlist. Is there a way to remove the selectionlist.
Scenario:
<wd:on-value-change>
<javascript>
// Use a component to find suppliers
if (suppliersLength == 1) {
event.source.value = element.getFirstChild().getAttribute("code");
// And remove any selection list that may have been set previously
} else if (suppliersLength > 1) {
supplier = new Array(supplierLength); // Fill array
event.source.setSelectionList(supplier, "value", "label");
} else {
// Serve up an error
}
</javascript>
</wd:on-value-changed>
Thanks Joe
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Marc Portier http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center Read my weblog at http://blogs.cocoondev.org/mpo/ [EMAIL PROTECTED] [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
