on 02-06-2007 3:59 AM
Hi All,
I have one problem with DropDownByIndex , i created one model node contains one child element mapped with model data .Data is coming fine But I want put first value in dropdown as SelectOption remaining should populate from model.
A,B and C come from model.
Example : Select Option
A
B
C
Thanks & Regards
Adams
Hi,
Set selection of context node to 1:1
Regards, ANilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Anil,
I took the model node (In the view) having one child element and mapped with component controller model data.Evem model node properties not allowing to change any properties.
In the view DropDownByIndex binded with that model node.
I guess you understood my problem now.
Thx & Regards
Adams
Hi
Create a value node "vnSample" and a value attribute "vaSampleatt" under that node. In the property of the node set the cardinality of value node to 1..n and Selection to 1..1
Bind that attribute to your DropdownbyIndex.
Now in the implementation give the code below.
<i>IPrivateSampleView.IVnSampleElement ele=wdContext.nodeVnSample().createVnSampleElement();
ele.setVaSampleAtt("Select Option");
wdContext.nodeVnSample().addElement(ele);</i>
//Loop for the number of values in the model node and create elements for the value node "vnSample" and set values to "vaSampleAtt".
After setting the values set the leadselection of the 0.
<i> wdContext.nodeVnSample().setLeadSelection(0);</i>
Hope this helps.
Regards,
Rathna
Hi Adam:
If u r still looking for code, check here it is:
-
IPrivateWelComeAppView.IOneElement oE = wdContext.nodeOne().createOneElement();
IPrivateWelComeAppView.IOneElement oE1;
oE.setO1("Select");
wdContext.nodeOne().addElement(oE);
for(int i=0;i<6;i++){
oE1 = wdContext.nodeOne().createOneElement();
oE1.setO1("A"+i);
wdContext.nodeOne().addElement(oE1);
}
-
Node Name: One
Attrib Name: O1
Munna SAP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.