difference between readOnly and userEditable?

LabKey Support Forum (Inactive)
difference between readOnly and userEditable? Ben Bimber  2010-12-16 16:46
Status: Closed
 
LABKEY.Query.FieldMetaData includes both "userEditable" and "readOnly". What is the intended difference between the two? Is there a specific scenario where these dont match? Thanks.
 
 
jeckels responded:  2010-12-16 18:56
Hi Ben,

In almost all cases, they're effectively the same. readOnly is true for fields that won't change after the row is inserted, such as auto-incrementing RowId fields. userEditable is false for fields that the user isn't allowed to edit directly. There are a few cases when a field might not be readOnly, but is not userEditable, such as the LSID column on datasets. It can change if the date or participant/subject value changes for the row, but it's automatically updated by the system and can't be set directly to an arbitrary value by the user.

Thanks,
Josh