on 01-22-2012 6:58 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
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.