Grid Plus Column Config

Certified Senior Developer

when calling the Parent record field it is editable/Non Editable, But

When i call the child record field the field become non editable. Any fixes 

you can see the below column config which is set to readonly:false so it should be editable.but stays Locked

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Hi Dinesh!  I suggest you to use the record field that was used for the relationship in the column config code instead of a related record field. 

    From my experience, when we refer to a relationship in the record field the column is read only irrespective of the readOnly attribute value. 
    On checking the column configs I noticed whatever is the readOnly value set for a column config, if related record field is in the recordField attribute of gridtextcolconfig() (Or any colConfig) then readOnly is always true along with a read Only header class attribute. You can check the same when you test the column config expression rule. 

    Modifying the code to refer to the base record field in the recordField worked. I had a similar usecase where I wanted to show Status column and make it editable. I have main record Idea and related record Status. Here is a code which worked for me,

    Try this way & let me know if you face any errors. 

Reply
  • 0
    Certified Lead Developer

    Hi Dinesh!  I suggest you to use the record field that was used for the relationship in the column config code instead of a related record field. 

    From my experience, when we refer to a relationship in the record field the column is read only irrespective of the readOnly attribute value. 
    On checking the column configs I noticed whatever is the readOnly value set for a column config, if related record field is in the recordField attribute of gridtextcolconfig() (Or any colConfig) then readOnly is always true along with a read Only header class attribute. You can check the same when you test the column config expression rule. 

    Modifying the code to refer to the base record field in the recordField worked. I had a similar usecase where I wanted to show Status column and make it editable. I have main record Idea and related record Status. Here is a code which worked for me,

    Try this way & let me know if you face any errors. 

Children
No Data