ColsMeta.isInputAllowed()


This article is about the isInputAllowed() function of the ColsMeta object.

ColsMeta.isInputAllowed()

Finds out if new input may be entered for this column. Use this, for example, for a column in an inserted record.

Returns a boolean.

Syntax

$.udbMeta( ds ).cols( cols ).isInputAllowed()

The optional ds is a data source selector. The optional cols is a column selector.

Function returns true if new input may be entered for this column, false otherwise.

Example

if (!updatable && $.udbMeta(this.dsId).cols(this.column).isInputAllowed() &&
record.isInserted())
updatable = true;

 


0 replies

Be the first to reply!

Reply