uniface.Label
The uniface.Label
object provides access to selected properties of
the label it represents. It is returned by the getLabel
function of
uniface.Occurrence
and the uniface.Field
objects.
Functions
Function |
Description |
---|---|
getValue() | Sets the text of the label. |
setValue() | Returns the text of the label. |
Description
The functions available on the Label data object make it possible to dynamically change the label of a field. The Label object is returned by the getLabel function on the Field and Occurrence data objects.
Setting the Label of a Field
var vInstance = uniface.getInstance("MY_DSP"); var vEntity = vInstance.getEntity("ORDER.ACME"); var vOcc = vEntity.getOccurrence(0); var vField = vOcc.getField("CUSTOMER"); // Set the label of field CUSTOMER var vLabel = vField.getLabel() // Same as vOcc.getLabel("CUSTOMER") vLabel.setValue("Client: ")