Hi gurus
i'm working on component CRMCMP_PRC/PrcHeadCondeOVP and my customer required the possibility to filter a range of pricing conditions.
Now i've created the button, anche the action handler but, using the iterator, the table view is not filtered and all the conditions are still displayed.
Here my code on action:
<code>
METHOD eh_onfilter_cond_type1.
DATA: lr_entity TYPE REF TO cl_crm_bol_entity,
lr_co_bt TYPE REF TO cl_bsp_wd_collection_wrapper,
lr_collection TYPE REF TO if_bol_entity_col,
lr_iterator TYPE REF TO if_bol_bo_col_iterator,
lr_core TYPE REF TO cl_crm_bol_core,
lr_cont TYPE REF TO cl_crmcmp_p_cucoprccondse_impl.
lr_cont ?= me->get_custom_controller( controller_id = 'CRMCMP_PRC/CuCoPrcCondSet' ).
lr_co_bt ?= lr_cont->typed_context->condhline->collection_wrapper..
lr_iterator = lr_co_bt->get_iterator( ).
lr_iterator->filter_by_property( iv_attr_name = 'KSCHL' iv_value = 'YSMA' iv_filter_mode = if_bol_bo_col_iterator=>filter_mode_interactive ).
lr_co_bt->publish_current( ).
ENDMETHOD
.</code>
Anybody can help me?
Best regards
Marco