on 01-21-2009 9:32 AM
Hii
I written code for taking the hardcoded values to the table.But in the output,the first row is empty.From second row onwards, the values are taking.
Can any one please suggest me what are the properities i need to change to get text in the first row of the table.
Thanks & Regards
Sushma
Hi sushma,
Looks like your context-node is of the type 1..n and you are adding elements to it. The first addition of your hardcoded values will probably be on position 1 and not on position 0.
Solution: change the type of your context-node to 0..n.
J
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
in ur code change the following line
IPrivateEtrecTimelogAppView.ITimelogElement element =
wdContext.nodeTimelog().createTimelogElement();
as
IPrivateEtrecTimelogAppView.ITimelogElement element =
wdContext.createTimelogElement();
and the cardinality of ITimelog shld be 0:n
Regards
Jayapriya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sushma,
You can refer to the following blog for table filter functionality:
/people/peter.vignet/blog/2007/01/03/generic-web-dynpro-java-table-filter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sushma,
Table filter is nothing but a piece of code and some settings which provides you the functinality of searching data in the table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aishwarya,
Can u tell me what are the settings that provides the functionality of searching data in the table.
for (int i = 0; i < EMP.length; i++)
{
IPrivateEtrecTimelogAppView.ITimelogElement element = wdContext.nodeTimelog().createTimelogElement();
element.setReferenceNo(EMP<i>[0]);
element.setEmployeeCode(EMP<i>[1]);
element.setEmployeeName(EMP<i>[2]);
element.setClaimAmount(EMP<i>[3]);
element.setSubmittedOn(EMP<i>[4]);
wdContext.nodeTimelog().addElement(element);
}
I written code like this,,,
Is there any things need to be modified.
regards
Sushma
Hi Sushma,
Please check the counter in your for loop. I guess you are starting the counter variable, say i from 1 instead of 0.
Also check whether you have taken care of the Table Filter properly if you have used one.
Regards
Kishan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use this pice of code to fill the table
for(int i=0; i<wdContext.nodeFlight_List().size(); i++){
if(wdContext.nodeFlight_List().isSelected(i)){
String element = wdContext.nodeFlight_List().getFlight_ListElementAt(i).getAirportfr();
String element2 = wdContext.nodeFlight_List().getFlight_ListElementAt(i).getAirportto();
String element3 = wdContext.nodeFlight_List().getFlight_ListElementAt(i).getAirlineid();
String element4 = wdContext.nodeFlight_List().getFlight_ListElementAt(i).getAirline();
IPublicAllInOne.IFlight_List_1Element ELE = wdContext.nodeFlight_List_1().createFlight_List_1Element(new Bapisfldat());
ELE.setAirportfr(element);
ELE.setAirportto(element2);
ELE.setAirlineid(element3);
ELE.setAirline( element4);
wdContext.nodeFlight_List_1().addElement(ELE);
}
thanks
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.