Skip to Content
0
Former Member
Jul 03, 2009 at 12:38 PM

Regd dropdown by index with morethan one attribute

22 Views

Hi,

Is it best practice to have more than one attribute for a node of type dropdown by index? lets say i have 2 dropdowns in my screen,

-Drop (node)

--value1(attribute)

--value2(attribute)

now i created IPrivateXXXView.IDropElement dEle = null;

while(condition){

dEle = wdContext.createDropElement();

dEle.setValue1();//set values of value1

dEle.setValue2();//set values of value2

wdContext.nodeDrop().addElement(dEle);

}

results: my screen shows 2 dropdowns with the values set in while() loop.

But on submit i'm trying to get the values exactly selected in those 2 dropdowns, but i'm not getting the different values as selected..i'm getting the same value as the other ones. if i select some value ex: 7 in box1 on submit the other box2 also changes to 7.

So is the best practice, do i need to maintain separate nodes for these values if yes wt if i have more than 2 attributes?? or any code changes required?

tnx,

-JB