cancel
Showing results for 
Search instead for 
Did you mean: 

missing text in the first row----- table

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi kishan,

What are the properities i need to check , to fill the first row with text.

what is this table filter.

Can u explain bit more.

Regards

Sushma

former_member192434
Active Contributor
0 Kudos

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