on 10-30-2013 6:36 AM
Hi Folks,
I enhanced search criteria by adding 3 custom fields like f1,f2,f3 to component PRD01QR & view is PRD01QR/SearchHelp . Here everything is working fine but here requirement is when I select value from f1 DDLB then f2,f3 should be removed from search criteria (even should not be visible in search view)
that means standard search view is displaying with 5 fields like
stand1 operator feild-val
stand2 operator feild-val
f1 operator feild-val
f2 operator feild-val
f3 operator feild-val
here problem is when I select f1 then search view should display like
stand1 operator feild-val
stand2 operator feild-val
f1 operator feild-val
for this one I did lot of changes in
GET_DQUERY_DEFINITIONS with server event like Dummy .Even in GET_POSSIBLE_FIELDS, DO_PREPARE_OUTPUT tried with this code
qs = me->get_current_qs( ) .
CALL METHOD get_selection_param_table
EXPORTING
ir_qs = qs
IMPORTING
et_selparam_tab = lt_selection_params.
READ TABLE lt_selection_params INTO ls_selection_params with key
ATTR_NAME = 'attr_name' low = value'.
IF SY-SUBRC EQ 0.
lr_col_params = qs->get_selection_params( ).
lv_selection_parameter = LR_COL_PARAMS->get_first( ).
IF lv_selection_parameter is bound.
WHILE LV_SELECTION_PARAMETER IS NOT INITIAL.
DATA: LV_NAME TYPE REF TO NAME_KOMP.
lv_selection_parameter->get_properties( IMPORTING es_attributes = ls_selection_params ).
IF ls_selection_params-attr_name = 'attr_name' OR
ls_selection_params-attr_name = 'attr_name'.
lr_col_params->remove( lv_selection_parameter ).
lv_selection_parameter = LR_COL_PARAMS->get_current( ).
ELSE.
LV_SELECTION_PARAMETER = LR_COL_PARAMS->GET_NEXT( ).
ENDIF.
ENDWHILE.
ENDIF.
ENDIF.
Please check this and let me help out on the same.
Hi,
I think you have to enable AJAX using ajaxDeltaHandling="TRUE" in .htm for this search criteria, as well try with code that you have mentioned.
Regards,
Devender
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.