cancel
Showing results for 
Search instead for 
Did you mean: 

table filter in modify view ( tab strip )

murali_ram
Participant
0 Kudos

Hi Guru.

Iam working on tabstrips...each tab contains different tables each.

i am doing filter in that table. so written code in modify view for first tab1( table)

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( 'SAMPLEREC_TABLE' ).

wd_this->table_hndl ?= wd_table->_method_handler.

IF w_is_filter_on = abap_true.

wd_table->set_on_filter( 'FILTER_RECEIVE1' ).

else.

wd_table->set_on_filter( '' ).

endif.

But how to write to code for second table ( tabstrip2) in modify view...is it possible

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Murali,

i don't think you can handle it in Modify view , Other way is to use the Onselect action of the tabstrip where you can write the code you want when selected that tabstrip.

Thanks

Phani

murali_ram
Participant
0 Kudos

If i write code in on select action  of the tab strip.. i have an error.

says :' View' is not a data element declared.

if i am not wrong ..'view' is a paramter belongs to wddomodify view. so we cant use it in other method or event..

so wat to do for that?

Former Member
0 Kudos

Hi Murali.

Tab-2 table must of different same ( for ex: view2) ..Write the filter logic in respective tab view ( i.e in WDDOMODIFYVIEW( ) ).

As your writing logic in WDDOMODIFYVIEW( ) where table of tab2 does not exists.That is the reason why your getting that error.

Thanks

KH

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

What about setting a flag globally in onselect action of tab strip and then based on flag, you can do the filter in modify view?