cancel
Showing results for 
Search instead for 
Did you mean: 

Operator selection on view CRMCMP_EMWB/EMailWBSQ

Former Member
0 Kudos

Hi Experts,

In email workbench view CRMCMP_EMWB/EMailWBSQ,I added one custom field. Based on the other field operator,the operators of newly added field should be populated.

Example:

In the email workbench search view I'm having two fields say field1 and field2(custom field).

If I select field1 operator as "Is " than the operators of field2 should contain only two values "IS" and "IS BETWEEN".

If I select field1 operator as "Is earlier than",than the operator of field2 should contain only one value "IS".

Your inputs are highly appreciated and rewarded.

Thanks & Regards,

S.Gangireddy

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Gangireddy,

You can achieve this in 2 ways:

1. If you want to load the operators for field2 based on the operator selection of field1, you have to make a round trip before

selecting the operator for the field2. As currently CRM Web UI doesn't make a roundtrip when you select an operator.

A roundtrip will happen if for the field1, the input is provided using a valuehelp. In such case, a round trip will happen.

And you can manipulate the operators by redefining the following methods in the context node class of the search node.

ADJUST_CRITERIA_CONTEXT2UI

GET_SUPPORTED_OPERATORS

2. Otherwise you can do the validation of the operators when you do the search.

This can be done by redefining the following methods

In view controller class,

DO_HANDLE_DATA

DO_VALIDATE_INPUT

In context node class of search node,

ADJUST_CRITERIA_UI2CONTEXT

Regards

Leon

Answers (0)