on 01-11-2006 9:31 PM
Hi all
My code in the view goes like this
for(int j=0;j<=productLevel.size();j++)
{
IPrivateTierStatus.ITierStatusElement TS = wdContext.nodeTierStatus().createTierStatusElement();
Map tsmap=(Map)productLevel.get(j);
bpType = (String)tsmap.get("BPTYPE");
plPerOUnit=(String)tsmap.get("PLOUNIT");
System.out.println("Bp Type in 2nd for loop nowww11111::"+bpType);
System.out.println("Pl Per OUnit in 2nd for loop nowwww11111::"+plPerOUnit);
TS.setTSBPTYPE(bpType);
TS.setTSPLPEROUNIT(plPerOUnit);
wdContext.nodeTierStatus().addElement(TS);
}
productLevel.size() value is 3 and matches with no.of records in the backend
System.out.println("Bp Type in 2nd for loop nowww11111::"+bpType);
System.out.println("Pl Per OUnit in 2nd for loop nowwww11111::"+plPerOUnit);
The above 2 print statements prints 3 times and gives 3 different values which also match with my backend values.
Everything is fine upto this.
But in the webdynpro screen, only one record is displayed
My Context details
-
TierStatus (Value Node)
TSBPID (Value attribiutes)
TSPLPOUNIT (Value attribiutes)
TSBPTYPE (Value attribiutes)
cardinality 0...n
collecType list
initializeLeadSelection true
selection 0...1
singleton true
typeaccessreq true
pl let me know why am getting only one record instead of 3 records.
Thanks in advance
for(int j = 0; j <b><=</b> productLevel.size(); j++)
{
...
}
Why are you including index productLevel.size()?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
Have u given the movenext to the node. If not try this code in ur implementation
wdContext.nodeTierStatus().moveNext();
Regards,
Rathna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Steve,
Check the size of the node after you have added the elements (wdContext.nodeTierStatus().size()).
Also, when is this code being processed? Is the element being displayed the last one added?
-Cindy
Message was edited by: Cindy Herrman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.