cancel
Showing results for 
Search instead for 
Did you mean: 

How to read table record in WebDynpro ?

Former Member
0 Kudos

Dear All,

I create a table in WebDynpro, This table have 5 record , and the data come from a Bapi,

now, I want to save this table data to html Page, but, at present, I only get the first record data (like :WdConetxt.currentBapi_my_table Data.getmypersonNo();).

I want get the data one record by one record, can you give the method how to read the table record one by one ?

Thanks!

Edited by: Doke on Sep 30, 2008 2:07 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

U take one for loop and retrieve all the records.

ex

for( int i=0; i< wdContext.nodeFlight_List().size(); i++)

{

String s1=wdContext.nodeFlight_List().getFlight_ListElementAt(i).getAirline().toString();

}

nodeFlight_List is my node name.

Regards,

Sunaina Reddy T

Former Member
0 Kudos

HI! Everyone,

your reply very useful for me, BY the way, I have another qusetion need to resolve ,

Question Describe:

I want output Nodedata in a table , and before output ,I need to transfer the data,

example :

String s1=wdContext.nodeFlight_List().getFlight_ListElementAt().getAirline().toString();

String s2 = s1 + "form usa".

and then output s2 in a table column,

but, when I run program, display this table column,

the 1st record is right, but after 1st record, the table column value is wrong, and the value same to 1st record column value,

I guess must have error when transfer data ,

can you help me ? thanks!

Former Member
0 Kudos

can anyone help me ?

Former Member
0 Kudos

hi!

put this in a for loop

String s1=wdContext.nodeFlight_List().getFlight_ListElementAt().getAirline().toString();

String s2 = s1 + "form usa".

like

for( int i=0; i< wdContext.nodeFlight_List().size(); i++)

{

wdContext.nodeFlight_List().getFlight_ListElementAt(i).getAirline().toString();

String s2 = s1 + "form usa".

}

thanks

vishal

Answers (2)

Answers (2)

Former Member
0 Kudos

To read table record u need loop

for( int i=0; i< wdContext.nodeFlight_List().size(); i++)

{

String airLine=wdContext.nodeFlight_List ().getFlight_ListElementAt(i).getAirline().toString();

}

Through this u read record one bye one

Regards

Ruturaj

Former Member
0 Kudos

hi!

try using resume plug on the resume url u can pass data in httpRequest parameter , this resume url will be invoked by your html page.

thanks

vishal