Static Field¶
A Static field is a read only instance of a field.
Figure 1 - Static field used in a list
Figure 2 - Static field used in a group
Variations¶
The static field is a variant of the field control.
When to use¶
Use a static field in an instance where the field contains data that should not be modified or with fields with data that are auto generated.
Limitations¶
none
How to use¶
A static field can be used within a list, group, or selector.
The general implementation;
static <field_name> {
// Properties
...
}
When using within a selector;
selector <selector_name> for <entity_name> {
static <field_name>;
}
Keywords¶
none
Properties¶
Below is a list of some properties that can be used to customize the static fields.
columnexclude | columnvisible | description | details | emphasis | falselabel | fieldhint | filterlabel | format | label | showlable | size | truelable | type | visible |
Example¶
Below are some examples demonstrating the usage of several of the properties listed above.
Ex:1 - Static field using the size, visible and label property,
group SubContractValuationGroup for SubvalValuation {
static CancelledDate {
label = "Canceled Date";
visible = [Objstate = "Cancelled"];
size = Small;
}
}
Ex:2 - Static field using the contact widget property;
selector EmpNoSelector for QryCompanyPersActive {
label = "";
static InternalDisName {
contactwidget {
enabled = [true];
source = Person;
key = PersonId;
}
}
}
list SubContractItemList for SubConItem {
static OverrideRetention {
format = percentage;
columnvisible = [true];
}
}