catalog ui policy is not working in target record

Priyansh_98
Tera Guru

Hi,

 I have converted one catalog form into a record producer, all variables,ui policy and script is copied into the record producer. in that we have one ui policy which is used for making variable editable in the target record (a new custom table extended from task).

all working fine in my development instance but when i moved this update sets to QA instance, the variables are still ready only means it is not editable we don't have any script or UI policy in our custom table to make all variables read-only, but when i am executing a alert message from ui policy on target record it is showing the alert message as well, but field are still not editable. 

here i am attaching my screenshot for both dev and QA instance.

prs1_0-1692362860218.png

2. QA snapshot

prs1_1-1692362916720.png

can anyone here help me on this please..

thanks in advance..

 

5 REPLIES 5

As a last resort, you can create an onLoad script on your catalog item as follows.

 

// Create a Client Script on a table and paste this script
// Uncheck (set to false) the "isolate script" checkbox (not available by default)
// To add the isolate script checkbox to the form, configure form layout to add the checkbox
function onLoad() { 
  $("variable_map").querySelectorAll("item").forEach(function(item){
    var variable = item.getAttribute("qname"); 
    g_form.setReadOnly("variables."+ variable, false); 
  }); 
}

 This script will make the variable editor editable.