|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
static setSelectionListI have a cocoon form with many selection lists populated by flow.
Until now I had believed that my 'setSelectionList()' method calls alone were changing the list contents. I did not realize the contents were dynamic by default. My problem is performance. I have many lists to update and I need fine-grained control over the list refreshes. I can't find a way to specify a static list (or the StaticSelectionList) anywhere. Thank in advance, -Will |
|
|
RE: static setSelectionListSee explanation in attached message. Kind regards, Robby From: Will Heger
[mailto:will.heger@...] I have a cocoon form with many
selection lists populated by flow. While we're at it... Here is some code that shows how you can set a selectionlist dynamically
---------------------------------------------------------------------
cocoon.load("servlet:forms:/resource/internal/flow/javascript/Form.js");
var projectNoteWidget = formWidget.lookupWidget("projectNote"); var possibleValues = cocoon.getComponent("someComponent").getXXX(); //!!! You have to pass the datatype of the actual Widget on which you
//set default value on widget
--------------------------------------------------------------------- Kind regards,
-----Original Message-----
Under the assumption that this field is a direct childwidget of the
var projectNoteWidget = formWidget.lookupWidget("projectNote");
Cheers,
-----Original Message-----
I have simple selection list in my from definition : <fd:field id="projectNote">
Can anyone tell me how to select an item on list from flow before
Regards,
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |