Tuesday, April 23, 2019

Inline Editing Restriction access by Role

Restriction of a role's ability for inline editing on certain fields provides a quick way how to limit access for the employees and increasing their productivity at the same time.

The permission dependent on a change in custom field is not supported yet. However Inline editing limited by a role is possible via SuiteScript.

An example
SuiteScript type: User Event Script
Trigger: Before Submit

if (type == 'xedit' && nlapiGetRole()== XYZ){
throw nlapiCreateError('403', 'Permission Error: Your Role does not have permission to edit this field', true)
}


... where XYZ is the internal id of the role that has to be restricted.

Note: This example code is an alternate solution.

No comments:

Post a Comment