on 02-25-2008 4:34 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.