oracle apex interactive grid set record field readonly 1

oracle apex interactive grid set record field readonly

meta = model.getRecordMetadata(id)
meta.fields.FIELD1.highlight = "apex_disabled"; // "is-readonly"

Here is what the above code is Doing:
1. Get the record metadata for the record with the id of “1”
2. Get the field metadata for the field with the name of “FIELD1”
3. Set the highlight property of the field metadata to “apex_disabled”

The highlight property is a string that can be set to one of the following values:

* apex_disabled
* apex_error
* apex_highlight
* apex_readonly
* apex_success
* apex_warning
* apex_null
* apex_required
* apex_readonly_required
* apex_disabled_required
* apex_error_required
* apex_highlight_required
* apex_success_required
* apex_warning_required

The highlight property is used to set the CSS class of the field.

The following code will set the highlight property of the field to “apex_highlight”:

“`javascript
var model = apex.model.getRecord(1);
var meta = model.getRecordMetadata(1);
meta.fields.FIELD1.highlight = “apex_highlight”;
“`

The following code will set the highlight property of the field to “apex_highlight_required”:

“`javascript
var model = apex.model.getRecord(1);
var meta = model.getRecordMetadata(1);
meta.fields.FIELD1.highlight = “apex_highlight_required”;
“`

The following code will set the highlight property of the field to “apex_error”:

“`javascript
var model = apex.model.getRecord(1);
var meta = model.getRecordMetadata(1);
meta.fields.FIELD1.highlight = “apex_error”;
“`

The following code will set the highlight property of the field to “apex_error_required”:

“`javascript
var model = apex.model.getRecord(1);
var meta = model.getRecordMetadata(1);
meta.fields.FIELD1.highlight = “apex_error_required”;
“`

The following code will set the highlight property of the field to “apex_success”:

“`javascript
var model = apex.model.getRecord(1);
var meta = model.getRecordMetadata(1);
meta.fields.FIELD1.highlight = “apex_success”;
“`

The following code will set the highlight property of the field to “apex_success_required”:

“`javascript
var model = apex.model.getRecord(1);
var meta = model.getRecordMetadata(1);
meta.fields.FIELD1.highlight = “apex_success_required”;
“`

The following code will set the highlight property of the field to “apex_warning”:

“`javascript
var model = apex.model.getRecord(1);
var meta = model.getRecordMetadata(1);
meta.fields.FIELD1.highlight = “apex_warning”;
“`

The following code will set the highlight property of the field to “apex_warning_required”:

“`javascript
var model = apex.model.getRecord(1);
var meta = model.getRecordMetadata(1);
meta.fields.FIELD1.highlight = “apex_warning_required”;
“`

The following code will set the highlight property of the field to “apex_readonly”:

“`javascript
var model = apex.model.getRecord(1);

Similar Posts