This function enables or disables the read only mode of an input element.
Parameter |
Type |
Description |
|---|---|---|
elementName |
string |
Name of dialog element |
readonly |
boolean |
true: read only false: inputs are possible If you enter no value here, true will be used automatically. |
Please note:
•You have to use the name of the subtable view and not the name of the dialog element when an element of the type SUBTABLE_VIEW is accessed.
•If the function is applied on dialog and subtable view elements of type DATE, only the value change via the input field is prohibited; the optional calendar popup is enabled and allows you to change the date. The dialog element must be disabled if also the calendar popup should make no further changes to the element value. Use the function jr_set_disabled .
•If the function is applied on dialog and subtable view elements of the type SQL_LIST with list type Checkbox, only the value change via the input field is prohibited; the zoom popup remains active and allows you to change the value. The dialog element must be disabled if also the zoom popup should make no further changes to the element value. Use the function jr_set_disabled has to be used as rowId.
Please note: This does not support the following dialog and subtable view elements: CHECKBOX, RADIO, SQL_CHECKBOX, SQL_LIST (with list type Dropdown List) and FILE.