on 09-13-2012 8:13 AM
I have a context which has 20 elements.
Q1,
can I display the rows from 5th to 14th, with other rows hide from the user.
user cannot see the other row using scrolling bar.
Q2,
can I display 1-10 rows in table 1, display 11-20 rows in table 2.
and from table 1 I cannot see 11-20 rows. vice vesa.
I tried the such visble row ..but failed
Hi Jijing,
regarding Q2 you could probably use property firstActualRow and related properties to achieve this for a normal table, but I would strongle advice against that. Look, you only have 20 rows. Why not creating two context nodes and moving 10 rows to the first node and the other 10 rows to the other node? It would be a simple and straightforward solution that is a highly maintainable.
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jijing,
Both your questions are achieveable using ALV Table. You can use the same context for both tables
and create filter rules on both tables seperately. Using alv filter rule you can use the same context node in two tables showing differnent records, and all this without having to touch the context node binding.
Thanks,
Pris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Basically what you require is table filtering. The table filtering is available in both ALV and normal table.
In ALV table its easy to perset the filter with simple code.
DATA: lr_field TYPE REF TO cl_salv_wd_field.
lr_field = wd_this->lr_config->if_salv_wd_field_settings~get_field( <column_name>).
lr_field->if_salv_wd_filter~delete_filter_rules( ).
lr_field->if_salv_wd_filter~create_filter_rule( low_value = <value> ).
I had a simiar requirement and tried it in both tables. I suceeded in doing it only with an ALV table.
Thanks,
Pris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.