getLabel()

Returns the uniface.Label object that represents the Field's label.

Return=Field.getLabel()

Arguments

None

Return value

Returnuniface.Label object representing the label of this Field

Exceptions

The following exceptions may be thrown:

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: ")

Related Topics