Skip to Content

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

How to get different values in drop down in table rows


I have an application, which has a drop down in the table. Each row is to have different values in its drop down based on the "characteristic" parameter. For eg. first row has characteristic as color, and the corresponding drop down will contain the color names. Second row has charateristic as weight, and the drop down will carry corresponding weight values.

I am getting the data from the backend as a flat table i.e. charaterisitc - value pair.

I think i will have to use the Drop Down by Index control, but i dont know how exactly to go about it.

Can any one please help in this regard.

Thanks & regards,



Hi Anupreet,

Try this

	IPrivateResult.ICtxNode_DocAttribsNode node = wdContext.nodeCtxNode_DocAttribs();
    int size = node.size();
	IPrivateResult.INodeDropElement dropEle;
    for(int i =0;i<size;i++) {//for every element in CtxNode_DocAttribs node
		IPrivateResult.INodeDropNode subnode = node.getCtxNode_DocAttribsElementAt(i).nodeNodeDrop();
		for(...) {//for every item in drop down	
			dropEle = subnode.createNodeDropElement();
			dropEle.setDropval( ... );

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