on 09-30-2008 1:03 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
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.