Fields Read-Only when launching a local action (this is also a regular action)

Hi,

Greetings. Hope you are all doing well! I am having a requirement to make few fields disable/readonly when launching a local action from Actions (i am on Theme-Cosmos), this local action is also used as a regular action but has been added as case-wide action within a case type. Is there any way to identify that action i launched is a local action and make the fields in UI readonly?

I am on Pega 8.7.0.

Regards,

Bharat

@KOMARINA

Under newAssignPage, pyAssignActions pagelist holds the list of actions (FlowActions & LocalActions). On each pyAssignActions() pages it has “pyActionType” property which holds the value as “LocalCase” for Case wide local actions/ad hoc actions .

You can try to use that property for identifying the Case wide local action.

When rule expression can be :-

@equalsIgnoreCase(“LocalCase”,newAssignPage.pyAssignActions(@IndexInPageList(newAssignPage.pyDefaultTaskStatus,“pyActionName”,newAssignPage.pyAssignActions)).pyActionType)

Regards,

Anubhav

@KOMARINA

You can make few fields in a section as read only by writing the conditional read-only with when rules in the respective ui controls.

@P.Siva.Praveen and @Anubhav Hi, Greetings. I have already implemented this using properties from newAssignPage which differentiates a regular action and a local action (pyDefaultTaskStatus and pyDefaultTaskValue)

Regards,

Bharat