Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Lead selection Issue

Hi all,

I am having dropdown by index as a table column. I am filling the node by supply function.

IPublicTests.ITabNode node = testController.wdGetContext().nodeTab();

int size = srcNode.size();

for (int i = 0; i< size; i++)

{

IPublicTests.ITabElement srcElement = srcNode.getTabElementAt(i);

com.sap.wdp.IPrivateView.IActionElement element = node.createActionElement();

element.setActioncode(srcElement.getid() + " " + srcElement.getDes());

node.addElement(element);

}

My dropdown is filling correctly.

But i want to display different values to be selected initially based on some condition ,in each rows dropdown.

How to set different lead values for each rows initially..

Plz its urgent...

Thanks&Regards

Karthik.

Former Member
Former Member replied

Karthi,

Try this one.

Lets assume TestNode is your Node and test2 is your context variable, which is binded to the drop down.

Depend on your condition, you can set any value to the particular row and particular cell value.

for(int i=0;i<5;i++){

if(i==0) //condition to set value

{

wdContext.nodeTestNode().getElementAt(1).setAttributeValue("test2","Val2");

}

if(i==2){

wdContext.nodeTestNode().getElementAt(2).setAttributeValue("test2","Val1");

}

}

//test2 - is the dropdown key

//Val1 - which you want to show for that cell.

Regards,

Sridhar

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question