cancel
Showing results for 
Search instead for 
Did you mean: 

Same Record Repeating in table used in adobe

Former Member
0 Kudos

Hi Folks,

I am developing a WebDynpro application, in which i am retrieving Questions in adobe form via adaptive rfc in a Table.

A specific request no. contains three questions which i am able to get in table used in interactive form. But problem is that only single record is repeating three times.

I am getting last question three times, first two questions are not getting appended in table.


try{
Collection myRecords = new ArrayList();
	myRecords.clear();
	int size = wdContext.nodeT_Rfq_Qes().size();
		
IPublicVenderResponseComp.IRFQ_QuestionsNode qesnode = wdContext.nodeRFQ_Questions();
IPublicVenderResponseComp.IRFQ_QuestionsElement qeselement =   wdContext.createRFQ_QuestionsElement();
		
	IPublicVenderResponseComp.IT_Rfq_QesElement rfq_elt = null;
	for(int i=0; i<size; i++ ){
			
qeselement.setQuestion_Text(wdContext.nodeT_Rfq_Qes().getT_Rfq_QesElementAt(i).getQuestion_Text());
	myRecords.add(qeselement);
	qesnode.bind(myRecords);	
		
} Catch

Waiting for positive responses,

Thanks in anticipation,

Virk Mandeep

Accepted Solutions (0)

Answers (1)

Answers (1)

chintan_virani
Active Contributor
0 Kudos

Mandeep,

I feel that following line of code should be outside the for loop:-


....
for(int i=0; i<size; i++ )
{
  qeselement.setQuestion_Text(wdContext.nodeT_Rfq_Qes().getT_Rfq_QesElementAt(i).getQuestion_Text());
  myRecords.add(qeselement);
}

qesnode.bind(myRecords);
....

Chintan

Former Member
0 Kudos

I'm actually quite sure that that's causing the issue.

chintan_virani
Active Contributor
0 Kudos

Pascal,

Well I was not sure because the code snippet does not contain ending brace } of the for loop

Chintan