.val()

Previous Next

Gets or sets the value of the first column in scope.

Returns a string value representing the current (the "old") value of that column.

Syntax

.val( value, lookup-ref )

 

.val( value, quiet )

 

quiet   ::=  { true | false }

The optional value is a new value that the first column in scope is set to.

The optional lookup-ref is an object used to specify additional information about the value, in the situation where an autocompletion control is used, and the value refers to a column in its associated data source.

The optional quiet is a boolean value used to specify if the new value must also be propagated immediately to all controls that may show it. If quiet is false (the default), it is immediately shown after the value is successfully changed.

 

Examples

var v = $.udb('EMP').rows('current').cols('EMPNO').val();

$.udb('EMP').rows('current').cols('DEPT').val('INT');