Data Lookup
- Last UpdatedJun 25, 2024
- 2 minute read
Use scripts to set and get values for the properties of the Data Lookup control.
Basic
|
Property |
Scripting Supported |
Example |
|---|---|---|
|
Name |
Yes Writable Readable |
To set the property control.findById("ID").tagName = "Value for Name"; To get the value of the property control.findById("ID").tagName; |
|
XML Node |
Yes Readable |
To get the value of the property control.findById("ID").xmlNodeBoundTo; |
|
Description |
Yes Writable Readable |
To set the property control.findById("ID").description = "Value for Description"; To get the value of the property control.findById("ID").description; |
|
Tooltip |
No |
Not Applicable |
|
Lookup Source |
No |
Not Applicable |
Appearance
|
Property |
Scripting Supported |
Script |
|---|---|---|
|
Enable |
Yes Writable Readable |
To set the property control.findById("ID").enable = true; To get the value of the property control.findById("ID").enable; |
|
Visible |
Yes Writable Readable |
To set the property control.findById("ID").visible = true; To get the value of the property control.findById("ID").visible; |
|
Read-Only |
Yes Writable Readable |
To set the property control.findById("ID").readOnly = true; To get the value of the property control.findById("ID").readOnly; |
|
Label Position |
No |
Not Applicable |
|
Label-Control Area |
No |
Not Applicable |
|
Watermark |
No |
Not Applicable |
|
Width |
No |
Not Applicable |
|
Height |
No |
Not Applicable |
|
Retain Space |
No |
Not Applicable |
|
Drop-Down Height |
No |
Not Applicable |
|
Adapt UI |
No |
Not Applicable |
|
Custom Style Sheet Identifier |
No |
Not Applicable |
Validation
|
Property |
Scripting Supported |
Example |
|---|---|---|
|
Mandatory |
Yes Writable Readable |
To set the property control.findById("ID").isMandatory = true; To get the value of the property control.findById("ID").isMandatory; |
|
Autocomplete Length |
No |
Not Applicable |
|
Show Confirmation Message |
No |
Not Applicable |
|
Confirmation Message Text |
No |
Not Applicable |
Advanced
|
Property |
Scripting Supported |
Example |
|---|---|---|
|
On Data Change |
Yes |
For more information, see scripting guidelines for On Data Change property. |
|
ID |
No |
Not Applicable |
|
Default Number of Records |
No |
Not Applicable |
|
Retain Selected Value |
No |
Not Applicable |
|
Persist Display Value |
Yes Readable |
To get the value of the property control.findById("ID").displayValue; |
|
Extended Information |
Yes Writable Readable |
To set the property control.findById("ID").requiresExtendedInformation = true; To get the value of the property control.findById("ID").requiresExtendedInformation; For more information, see Extended Information. |
|
Include in Summary |
No |
Not Applicable |
Scripts
|
Property |
Scripting Supported |
Example |
|---|---|---|
|
Name |
Yes |
return "Value for Name"; |
|
Description |
Yes |
return "Value for Description"; |
|
Enable |
Yes |
return true; For more information, see scripting guidelines for Enable property. |
|
Visible |
Yes |
return true; For more information, see scripting guidelines for Visible property. |
|
Read-Only |
Yes |
return false; For more information, see scripting guidelines for Read-Only property. |
|
Mandatory |
Yes |
return true; For more information, see scripting guidelines for Mandatory property. |
|
Value |
Yes |
return "Value for the control"; |
|
Validate |
Yes |
return new ValidationOptions(false, "Error Message"); OR return new ValidationOptions(true, ""); For more information, see scripting guidelines for Validate property. |