on 07-03-2008 1:33 PM
Hi,
I am trying to create a dropdown at runtime.Following is the context structure i am using
Wdcontext
nodeProperty
nodeAllowedValues - singleton node
Value - attribute
I am binding the "value" attribute of the node allowed values to the dropdown.I am filling the context attribute value at runtime.But the dropdown values are not filled in the UI.
The following is the code snippet.
Iterator propIt = wdContext.nodeProperty().iterateElements();
while(propIt.hasNext())
{
element= (IPropertyElement)propIt.next();
IWDTransparentContainer transContainer = (IWDTransparentContainer) view.getElement("TransparentContainer");
IWDToolBarDropDownByIndex ddByIndex1 = (IWDToolBarDropDownByIndex) view
.createElement(IWDToolBarDropDownByIndex.class,
"DropDown" + UUID );
ddByIndex1.setEnabled(true);
ddByIndex1.bindTexts(element.nodeAllowedValues().getNodeInfo().getAttribute("Value"));
transContainer.addChild(ddByIndex1);
}
Please Help.
Regards
Vasudha
First, why do you need to create the drop-down list(s) by code?
- The code you have posted obviously creates as many drop-down lists as there are elements in the node "nodeProperties". Is that what you want?
- You are creating ToolBar* drop-down lists. Why?
- What is UUID?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
try the same code with the Dropdown byKey.
Thanks and Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.