on 06-01-2011 11:22 AM
Hi folks,
In my WDA application for table UI elements default rows are 5.If user find there are only 3 records matches his requirement he has to disable remaining 2 rows in table like this if another user find 7 records we have to disable remaining 3 rows.
How can i get this one.
Thanks you in advance.
Set the property 'Visible Row Count' in table dynamically. Please check 'WDR_TEST_TABLE' application.
You have to determine the number of rows fetched, after select, or describe for internal table.
Regards,
Santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your requirement is not clear and can lead to different conclusions.
What you can do is to bind the visible_row_count to a context attribute. Set display_empty_rows to abap_false.
If you want to allow your user personalize the maximum number of rows to display then create a configuration controller and attribute which you can map to the visible_row_count.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
For example : Assume your table is filling with data after clicking some button.
you are getting data using select statement, after this select statement just use SY-DBCNT. and pass this value to one variable.
If you are using any FM pass this to export parameters. Bind this to your table visible row count property. supoose your table filled with 50 records count will be 50, 100 count will be 100, this visible row changes according your records.
Cheers,
Kris.
Hi Ravi,
you want to set visible rows 5 or you want to display 5 records and remaining in disable mode??
You can acieve this using cell variants. create input_field and text_view both in table, so first 5 rows display input after 5th display text view.
OR I think by creating one more attribute of type wdy_boolean and bind it to all columns of table.
make it ABAP_TRUE or FALSE when your requirement fills.
you can also check this...
Hope it helps.
Cheers,
Kris.
Edited by: kissnas on Jun 1, 2011 12:49 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.