on 03-29-2011 8:24 AM
Hi Friends,
My requirement : I have to display 20 rows in a ALV Table(fixed), clicking on button Next it has to display next 20 rows and max it has to display till 500 rows.
I am able to fix 20 rows but how to display next 20 rows on action of a button (NEXT) and i should allow to display only 500 rows.
can some one tell me how to solve the requirement.
Regards
Anand
I don't understand why you are going through all this trouble to build your own button to add more rows to the ALV table. Just fill the table with your maximum number of rows. The scrollbar on the table will perform a server round trip and only display the number of visible rows in the table. There is no real performance advantage to what you are proposing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use paginator simply by calling this method SET_FOOTER_VISIBLE.
However, please note that, as of NetWeaver 7.0 Enhancement Package 1 (7.01) and with the advent of LightSpeed, the paginator option no longer exists.
Refer to Thomas Jung's comment here.
There's an OSS note to apply if you really want to use it, but it doesn't seem worthwhile.
Good luck,
Anirut W.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
This can be achieved in 2 ways:
1) Standard paginator allows you with this functionality to traverse from one page to other of 20 records
2) Create 2 nodes with same attributes. Dunp all the records in Node1. Append only first 20 records in Node2.Bind Node2 to ALV.
Create a button(Next).
Create a global attribute to maintain which set of 20 secords are being shown.
In the action handler method of next button write the below code:
Get records from node 1
lo_node->get_static_attributes_table
exporting
from = 21"if the second set of 20 records
to = 40
importing
table = lt_data
bind the records to node2 using BIND_TABLE method
Regards,
madhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
If you set the visible row count as 20, then you will get the paginator.
Paginator is of 2 type:
1) scroll bar to navigate thru columns and
2) you will have 3 buttons:,first to movr recored by record, second one by the visble number of rows and last one to move to begin of the list or end of list.
If you want to get a paginator do the folowing change:
Double click on the web dynpro application name and switch to change mode
Go to PARAMETERS tab
Click F4 and select WDTABLENAVIGATION parameter and give the value as PAGINATOR. and save
Execute the application and you will see the paginator.
Regards,
Madhu
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.