Skip to Content

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

binding ui element

hello,

with the following code, i get only one record displayed into the UI table element !

could tell me what's wrong with my code ??

(note that the ResultVector.size() is equal to 6 !!! so that i expect to see 6 lines into my table instead of 1 !!!)

best regards,

<b>List nodeTargetUrl = new ArrayList();

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

{

String[][] arrayOfString =(String[][]) ResultVector.elementAt(i);

IPrivateXREFView.ITargetURLNodevalueElement TargetElement = wdContext.createTargetURLNodevalueElement();

TargetElement.setNatcoSystem(arrayOfString[0][0].toString());

TargetElement.setTargetURLValue(arrayOfString[0][1].toString());

nodeTargetUrl.add(TargetElement);

}

wdContext.nodeTargetURLNodevalue().bind(nodeTargetUrl);</b>

Former Member
Former Member replied

Use the below code to bind elements dynamically to your node (table).

IDateValElement dateE = null;

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

dateE = wdContext.nodeDateVal().createDateValElement();

dateE.setDate1(12);

dateE.setDate2(13);

dateE.setDate3(14);

dateE.setDate4(15);

wdContext.nodeDateVal().addElement(dateE);

dateE= null;

}

Regards

Sridhar

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