New Button on Service Operations Workspace on SC_Task Table not working

Anubhav24
Mega Sage
Mega Sage

Hi All,

My requirement is to display "New" Button on related records of catalog task based on certain conditions : Image1 for reference :

ea1d102c-8694-4733-8a26-696d87a7d462.png

Image 2 is of the configuration of New UI Button created on Global table:

Image2.png

This New button is displayed using a UFX Client Action which is created on a Global Table and the view is "Service Operations Workspace". So to hide the New button from this UI Action I have used the "Action Exclusions" and added the table "sc_task" in this list. Now this New button is not visible on this related records of catalog task.

 

The requirement is to display the button based on certain conditions which are : a)RITM records must be active b)The logged in user must be part of a certain group c)There is a reference field on RITM Table and I have to dot walk to the table of this reference record and then validate the value of one field from multiple values stored in a system property. (This much scripting is possible for this or not)?

 

Now I moved to the "New" UI Action created on sc_task table : 

This is created as "Client Action" so at first this was not visible hence I changed it to UFX Client Action to make it visible. In conditions tab it is mentioned " current.getTableName() !== "sc_task" "  

Image for reference :

Image3.PNG

What is this "current" object here referring to, is it the current record of related records or the parent record i.e. RITM In this case.

Assuming RITM is parent of catalog task if I put current.parent.active == true this does not works.

Need to understand how this condition works and also is it absolutely right to make the action as UFX Client Action only then it will be visible on workspaces because there are other options too.

 

 

0 REPLIES 0