cancel
Showing results for 
Search instead for 
Did you mean: 

hide search criteria from displaying

rangerlet_mesee
Participant
0 Kudos

Hi,

I have added CREATED_BY field in the search criteria and defaulted its value through DO_PREPARE_OUTPUT.

Now I can see it in the search criteria display..

I want to hide that search criteria field from display.

I do not want to do it from configuration tab of the view.

How do I achieve it like programatically?

Thanks

Madhukar

Accepted Solutions (0)

Answers (2)

Answers (2)

deepika_chandrasekar
Active Contributor
0 Kudos

Hi,

You can add this field in EH_ONSEARCH method nefore calling search and after calling search you have to delete this field from search so that it will not be shown in WEBUI.

Step1: add selection param using ADD_SELECTION_PARAM

step2:get selection param to table using GET_SELECTION_PARAMS

step3:do search

step4:clear created_by from table got from  GET_SELECTION_PARAMS and do adjust selection param using method ADJUST_SELECTION_PARAMS  from class CL_CRM_BOL_DQUERY_SERVICE

Regards,

Deepika.

former_member210661
Active Contributor
0 Kudos

Hi Madhukar,

This you can achieve by enhance the method GET_POSSIBLE_FIELDS in your search impl class just debug the method. This method will gives the fields which are there in your search configuration fields.

try to debug then you may come to know..

if you want to hide the filed in the search config

* Adjust search criterion values having drop down listboxes in case central search has been received

     me->adjust_search_criteria_values( iv_advanced_search = lr_qs

                                        iv_context         = central_search ).


check this method too ADJUST_SELECTION_PARAMS.

thanks & Regards,

Srinivas.