Filter Change Approver lookup

I want to filter the change approver lookup based on some conditions. I tried to find the module that is responsible for this but couldn't find it. Can anyone help me on this?

Like 1

Like

1 comments
Best reply

Hello,

 

When clicking the "Change approver" button the ApprovalDashboardItemViewModel module onChangeApproverButtonClick method is called. This onChangeApproverButtonClick method calls the changeVizierAction method from the BaseVisaProvider module. Lookup opening is performed in this part of code (inside the checkRightCallback callback method):

LookupUtilities.OpenLookup({
						sandbox: sandbox,
						lookupConfig: lookupConfig,
						renderTo: renderTo || Ext.get("centerPanel"),
						cancelCallback: cancelCallbackFn
					}, lookupUtilitiesCallback, this);

Unfortunately filters cannot be added at this point based on the OpenLookup method from the LookupUtilities.

Hello,

 

When clicking the "Change approver" button the ApprovalDashboardItemViewModel module onChangeApproverButtonClick method is called. This onChangeApproverButtonClick method calls the changeVizierAction method from the BaseVisaProvider module. Lookup opening is performed in this part of code (inside the checkRightCallback callback method):

LookupUtilities.OpenLookup({
						sandbox: sandbox,
						lookupConfig: lookupConfig,
						renderTo: renderTo || Ext.get("centerPanel"),
						cancelCallback: cancelCallbackFn
					}, lookupUtilitiesCallback, this);

Unfortunately filters cannot be added at this point based on the OpenLookup method from the LookupUtilities.

Show all comments