Hi
I have applied filtration logic for one Contact lookup field in a section edit page based on User Role and role-based contacts alone getting listed in that field. But when I put the same filter in portal edit page of the section for the same lookup field, it is not showing the contacts.
Please find below the used code.
Case: Users having Role Id : 'KYC', has to be listed in the lookup field.
Filter code: Inside Attributes,
"GlbKYC": {
// Attribute data type.
"dataValueType": Terrasoft.DataValueType.LOOKUP,
// The configuration object of the LOOKUP type.
"lookupListConfig": {
"filters": [
function() {
var filterGroup = Ext.create("Terrasoft.FilterGroup");
filterGroup.add("IsKYC",
Terrasoft.createColumnFilterWithParameter(Terrasoft.ComparisonType.EQUAL, "[SysAdminUnit:Contact].[SysAdminUnitInRole:SysAdminUnit].SysAdminUnitRoleId", "C14E5787-4BF5-4FA8-A407-96FB942A02E2"));
return filterGroup;
}]}},
Kindly help to resolve this.
Regards
Abinaya