we have many sites (in-directly each department is a site) and some users are assigned with multiple site numbers through ProcessLevelControl in RM (like 0012, 0013, 0014) ... and we need to allow users to have access to PO's if the "Receiving Loc" is with in sites assigned at RM Attribute "ProcessLevelControl" and deny other site PO's.
i have tried below Rule and didn't worked.. got security violation.... any help is appreciated..
if(lztrim(form.POR_PO_LOCATION)==lztrim(user.getAttribute('ProcessLevelControl')))
'ALL_INQUIRES,'
else
'NO_ACCESS,'