Returns the value of the specified field.

Return = FieldObject.getValue()



Return Value

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


The following exceptions may be thrown:


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().