cancel
Showing results for 
Search instead for 
Did you mean: 

restricting dropdown values corresponding to a search criterion

Former Member
0 Kudos

Hi,

I want to restrict the dropdown values for search criterion 'Status' in the search opportunity view.This has to be restricted to the search popup we get when we select 'Add Opportunity' in the sub-opportunity assignment block.The restricted dropdown values of the popup should not get reflected else where .

I want only 3 values in the dropdown corresponding to the 'Status' search criterion.

How should i go about?

Thanks and Regards

Shilpi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shilpi,

On the pop-up view in the method DO_INIT_CONTEXT, you must be populating the values in the context node used for your drop-down list. So while setting the values to the context node used for displaying the values for the drop-down box, you can alter the internal table values.

for example something like this,

MY_DROPDOWN is my context node on the popup view.

LT_VALUES has teh values that i wish to display in the drop-down list

so in the DO_INIT_CONTEXT method of the popup view,

ME->TYPE_CONTEXT->MY_DROPDOWN->SET_VALUE_TABLE( LT_VALUES ).

The SET_VALUE_TABLE method called with reference to the context node will set the values in the internal table passed to the drop-down list.

hope this helps you to resolve your problem

Regards

Ashwinee

Answers (2)

Answers (2)

former_member189678
Active Contributor
0 Kudos

Hi Shilpi,

Modify the GET_DQUERY_DEFINITION method of the Search IMPL Class. You can Add/Delete the values of the Drop Down.

Regards,

Harshit

Former Member
0 Kudos

Hi Shilpi,

Can you explain bit more clearly mentioning the exact steps that you are following.

Regards,

Deepak