Set field readonly on Related List table

miro2
Mega Sage

Hi,

Could anyone help me with a solution to that issue?
In Change Request related list I created a new record on Problems table. 

find_real_file.png

On that record, I set Category to Software

find_real_file.png

Then Change Request state will be changed to Closed.

After changing CR state to Closed, I want to see Category field readonly.

 

 

I created BR (on display) and UI Policy but it doesn't work

find_real_file.png

 

UI Policy script

find_real_file.png

1 ACCEPTED SOLUTION

You want to make Problem's Category field as read only, then you can write UI Policy on Problem table.

After that try applying conditions in "when to apply" as"

Category -- is -- Software  AND

Parent.State -- is -- Closed

(If Parent.State doesn't work then check for "Change request" field and instead of Parent.state, check with Change request.State -- is -- Closed)

You can have UI action: Category as read only.

 

Give it a try & let me know.

View solution in original post

11 REPLIES 11

Hi Miro,

Which filter condition did you applied?

Thanks,

Dhananjay.

Anil Lande
Kilo Patron

Hi,

You can use below script in any of your onLoad client script on problem table to make category readOnly when your your change is closed.

 var change = g_form.getReference('rfc',callbackFun); // on problem table rfc referece to the parent change record

function popCallerInfo(change){

if(change.state ==3||change.state=='3'){

g_form.setReadOnly('category',true);

}

 

Thanks,

Anil Lande

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande