Hi Team,
I have been using a lookup field and implementing a filter via LookupListConfig.
Here I have an issue in filtering the values.
Step 1: If the logged-in used belongs to the System Administrator role, the filter for the lookup is working fine and it shows the records.
Step 2: If the same user is removed from the System Administrator role, the filter is not working and it does not shows any records.
Here is the utilization of lookupListConfig
"UsrApplyName": {
"dataValueType": Terrasoft.DataValueType.LOOKUP,
"lookupListConfig": {
columns: [ "Id" ],
"filters": [
function() {
var filterGroup = Ext.create("Terrasoft.FilterGroup");
var CurContactAccount = Terrasoft.SysValue.CURRENT_USER_ACCOUNT.value;
filterGroup.add("IsActive",
Terrasoft.createColumnFilterWithParameter(
Terrasoft.ComparisonType.EQUAL,
"UsrRecepientCompany",
CurContactAccount));
return filterGroup;
}
]
}
},
Kindly help me with the above hindrance and let me know what causes the difference and how to overcome it.
Regards,
Bhoobalan P.