on 07-06-2015 11:09 AM
Hi Experts, I am having normal( non-alv) table UI element on the dynpro screen. User wants filter option also be available there (Which can be obtained in case of ALV using CL_SALV_WD_CONFIG_TABLE=>IF_SALV_WD_STD_FUNCTIONS~SET_FILTER_COMPLEX_ALLOWED).
For an example, if we have to get user settings function on the screen, we make use of IWD_PERSONALIZATION component. Do we have any similar mechanism in place to get Filer button.
Thanks,
Mohit
Hi Mohith,
Yes, we can filter in Table UI too. Please check the following link, on how to achieve the same,
Filtering in Tables - Web Dynpro ABAP - SAP Library
Regards,
Harsha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mohith,
Please check this http://www.teamabap.com/2014/05/filtering-in-table-ui-element.html
Regards,
Harsha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Here u can achieve filter option in transparent table by creating a button(Toggle) in table.
1.Now you need to apply filter in OnToggle event.
wd_this->table_control->apply_filter( ).
2.when the Filter button is pressed IS_FILTER_ON attribute will turn ON and FILTER will be set.
And Automatically the First row is set for INPUTS.
The Following Code is required to get Handler for Table and also to SET FILTER.
method WDDOMODIFYVIEW .
DATA: wd_table TYPE REF TO cl_wd_table,
w_is_filter_on TYPE wdy_boolean.
wd_context->get_attribute( EXPORTING name = 'IS_FILTER_ON'
IMPORTING value = w_is_filter_on ).
wd_table ?= view->get_element( '<give ur table ID>' ).
wd_this->table_control ?= wd_table->_method_handler.
IF w_is_filter_on = abap_true.
wd_table->set_on_filter( 'FILTER' ).
else.
wd_table->set_on_filter( '' ).
ENDIF.
Check this out for more help Web Dynpro ABAP - Filtering in Table UI element
Refer the below blog which i've publised for reading filter values of WDP-ALV table. A workaround might give you idea for normal table.
Reading ALV Filter values in Webdynpro ABAP
And also here's the code for normal table
DATA lt_data TYPE wdr_table_row_data_tab. "get filtered table data
lt_data = wd_this->go_method_handler->get_table_data( ).
Also refer this blog which will help you.
How to read the data from a filtered table in SAP Web Dynpro ABAP
Hope this helps you.
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.