getValue()

Returns the value of the specified field.

Return = FieldObject.getValue()

Arguments

None

Return Value

Return—value of the Uniface field represented by the uniface.Field object.

Exceptions

The following exceptions may be thrown:

Description

Note:  The Uniface JavaScript API does not handle data type and formatting conversion. You must ensure that the specified Value matches the format defined for the field, before it is submitted to the server.

There is no simple match between Uniface data types and JavaScript types and values. Depending on the widget properties, the values returned by getValue may need to be converted before processing.

In the browser, field values are treated as strings, regardless of the data type defined for the field in Uniface. JavaScript converts values into a type suitable for the current context. For more information, see setValue().

Related Topics