Child pages
  • QBFunction

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

styledisplay:none

...

iddescription

...

padding0px
width80px

...

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#abs
Create abs(column) expression
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBSort
Table Cell (td)
#asc
Create an ascending sort expression
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBAggregate
Table Cell (td)
#avg
Create an aggregate expression.

...

Table Cell (td)
QBFunction

...

Table Cell (td)
QBFunction

...

Cache
indextrue
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClient

servoy sSummary12%30%58%height: 30px;3Property SummaryCreate abs(column) expressionCreate an ascending sort expressionCreate an aggregate expression.Create bit_length(column) expression

...

...

Table Cell (td)
QBFunction

...

Create ceil(column) expression

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBAggregate
Table Cell (td)
#count
Create an aggregate expression.
Table Cell (td)
QBSort

...

Create an aggregate expression.Extract day from date

...

...

Table Cell (td)
QBFunction

...

Create an descending sort expression

...

Create floor(column) expression

...

Table Cell (td)
QBFunction

...

...

Table Cell (td)
QBFunction

...

Extract hour from date

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBCondition
Table Cell (td)
#isNull
Compare column with null.

...

...

Table Cell (td)
QBFunction

...

Compare column with null.Create length(column) expression

...

Create lower(column) expression

...

Table Cell (td)
QBAggregate

...

Table Cell (td)
QBAggregate

...

Create an aggregate expression.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#minute
Extract minute from date
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#month
Extract month from date

...

Table Cell (td)
QBColumn

...

Create an aggregate expression.

...

Extract minute from dateExtract month from dateCreate a negated condition.

...

Table Cell (td)
QBTableClause

...

Table Cell (td)
QBSelect

...

Get query builder parent table clause, this may be a query or a join clause.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#round
Create round(column) expression

...

Table Cell (td)
QBFunction

...

Get query builder parent.

...

...

Table Cell (td)
QBFunction

...

Create round(column) expressionExtract second from date

...

Create sqrt(column) expression

...

Table Cell (td)
QBAggregate

...

Table Cell (td)
QBFunction

...

Create an aggregate expression.

...

Create trim(column) expression

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#upper
Create upper(column) expression
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#year
Extract year from date

...

padding0px
width80px

...

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBCondition
Table Cell (td)
#between(value1, value2)
Compare column to a range of 2 values or other columns.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#cast(type)
Create cast(column, type) expression
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#concat(arg)
Concatename with value
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#divide(arg)
Divide by value

...

Table Cell (td)
QBCondition

...

...

Table Cell (td)
QBCondition

...

Create upper(column) expressionExtract year from date

servoy sSummary12%30%58%height: 30px;3Methods SummaryCompare column to a range of 2 values or other columns.Create cast(column, type) expressionConcatename with valueDivide by valueCompare column with a value or another column.Compare column with a value or another column.The flags are a bit pattern consisting of 1 or more of the following bits: - JSColumn.Column type as a stringCompare column with a value or another column.Compare column with subquery result.Compare column with values.Compare column with custom query result.Compare column with a value or another column.

...

...

Table Cell (td)
QBCondition

...

Compare column with a value or another column.

...

Table Row (tr)
idname
Table Cell (td)
root
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get query builder parent.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBSelect
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

/** @type {QBSelect<db:/example_data/order_details>} */
	var subquery = databaseManager.createSelect('db:/example_data/order_details')
	
 /** @type {QBSelect<db:/example_data/orders>} */
	var query = databaseManager.createSelect('db:/example_data/orders')
	query.where.add(query
		.or 
			.add(query.columns.order_id.not.isin([1, 2, 3]))
			
			.add(query.exists(
					subquery.where.add(subquery.columns.orderid.eq(query.columns.order_id)).root
			))
		)
		
	foundset.loadRecords(query)

...

classlastDetailRow

...

idround
Table Row (tr)
idname
Table Cell (td)
round
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create round(column) expression
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mycol.round)

...

classlastDetailRow

...

idsecond
Table Row (tr)
idname
Table Cell (td)
second
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Extract second from date
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mydatecol.second)

...

classlastDetailRow

...

idsqrt
Table Row (tr)
idname
Table Cell (td)
sqrt
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create sqrt(column) expression
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.custname.sqrt)

...

classlastDetailRow

...

idsum
Table Row (tr)
idname
Table Cell (td)
sum
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create an aggregate expression.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBAggregate
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

/** @type {QBSelect<db:/example_data/orders>} */
	var query = databaseManager.createSelect('db:/example_data/orders')
	query.groupBy.addPk() // have to group by on pk when using having-conditions in (foundset) pk queries
	.root.having.add(query.joins.orders_to_order_details.columns.quantity.count.sum(10))
	foundset.loadRecords(query)

...

classlastDetailRow

...

idtrim
Table Row (tr)
idname
Table Cell (td)
trim
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create trim(column) expression
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.custname.trim)

...

classlastDetailRow

...

idupper
Table Row (tr)
idname
Table Cell (td)
upper
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create upper(column) expression
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.custname.upper)

...

classlastDetailRow

...

idyear
Table Row (tr)
idname
Table Cell (td)
year
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Extract year from date
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mydatecol.year)

...

classlastDetailRow

...

HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Method Details
Table Body (tbody)
idbetween-Object_Object
Table Row (tr)
idname
Table Cell (td)
between
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBCondition
Span
stylefont-weight: bold;
between
Span
(value1, value2)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Compare column to a range of 2 values or other columns.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} value1
{Object} value2
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBCondition
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.where.add(query.columns.flag.between(0, 5))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idcast-String
Table Row (tr)
idname
Table Cell (td)
cast
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBFunction
Span
stylefont-weight: bold;
cast
Span
(type)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create cast(column, type) expression
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} type – string type, see QUERY_COLUMN_TYPES
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mycol.cast(QUERY_COLUMN_TYPES.TYPE_INTEGER))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idconcat-Object
Table Row (tr)
idname
Table Cell (td)
concat
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBFunction
Span
stylefont-weight: bold;
concat
Span
(arg)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Concatename with value
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} arg – valeu to concatenate with
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.firstname.concat(' ').concat(query.columns.lastname))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
iddivide-Object
Table Row (tr)
idname
Table Cell (td)
divide
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBFunction
Span
stylefont-weight: bold;
divide
Span
(arg)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Divide by value
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} arg – nr to divide by
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mycol.divide(2))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
ideq-Object
Table Row (tr)
idname
Table Cell (td)
eq
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBCondition
Span
stylefont-weight: bold;
eq
Span
(value)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Compare column with a value or another column.
Operator: equals
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} value
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBCondition
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.where.add(query.columns.flag.eq(1))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idge-Object
Table Row (tr)
idname
Table Cell (td)
ge
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBCondition
Span
stylefont-weight: bold;
ge
Span
(value)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Compare column with a value or another column.
Operator: greaterThanOrEqual
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} value
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBCondition
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.where.add(query.columns.flag.ge(2))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idgt-Object
Table Row (tr)
idname
Table Cell (td)
gt
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBCondition
Span
stylefont-weight: bold;
gt
Span
(value)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Compare column with a value or another column.
Operator: greaterThan
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} value
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBCondition
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.where.add(query.columns.flag.gt(0))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idisin-QBPart
Table Row (tr)
idname
Table Cell (td)
isin
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBCondition
Span
stylefont-weight: bold;
isin
Span
(query)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Compare column with subquery result.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{QBPart} query – subquery
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBCondition
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.where.add(query.columns.flag.isin(query2))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idisin-ObjectArray
Table Row (tr)
idname
Table Cell (td)
isin
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBCondition
Span
stylefont-weight: bold;
isin
Span
(values)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Compare column with values.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object[]} values – array of values
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBCondition
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.where.add(query.columns.flag.isin([1, 5, 99]))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idle-Object
Table Row (tr)
idname
Table Cell (td)
le
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBCondition
Span
stylefont-weight: bold;
le
Span
(value)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Compare column with a value or another column.
Operator: lessThanOrEqual
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} value
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBCondition
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.where.add(query.columns.flag.le(2))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idlike-String
Table Row (tr)
idname
Table Cell (td)
like
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBCondition
Span
stylefont-weight: bold;
like
Span
(pattern)
Table Row (tr)
iddes
Table Cell (td) Div
classsIndent
Compare column with a value or another column.

...

Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBCondition
Table Cell (td)
#isin(query)
Compare column with subquery result.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBCondition
Table Cell (td)
#isin(values)
Compare column with values.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBCondition
Table Cell (td)
#le(value)
Compare column with a value or another column.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBCondition
Table Cell (td)
#like(pattern)
Compare column with a value or another column.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBCondition
Table Cell (td)
#like(pattern, escape)
Compare column with a value or another column.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#locate(arg)
Create locate(arg) expression
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#locate(arg, start)
Create locate(arg, start) expression
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBCondition
Table Cell (td)
#lt(value)
Compare column with a value or another column.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#minus(arg)
Subtract value
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#mod(arg)
Create mod(arg) expression
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#multiply(arg)
Multiply with value
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#nullif(arg)
Create nullif(arg) expression
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#plus(arg)
Add up value
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#substring(pos)
Create substring(pos) expression
Table Body (tbody)
Table Row (tr)
Table Cell (td)
QBFunction
Table Cell (td)
#substring(pos, len)
Create substring(pos, len) expression

...

idproperty
classservoy sDetail

...

padding0px
width100%
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Property Details

...

idabs
Table Row (tr)
idname
Table Cell (td)
abs
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create abs(column) expression
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.custname.abs)

...

classlastDetailRow

...

idasc
Table Row (tr)
idname
Table Cell (td)
asc
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create an ascending sort expression
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBSort
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

/** @type {QBSelect<db:/example_data/orders>} */
var query = databaseManager.createSelect('db:/example_data/orders')
query.sort
.add(query.joins.orders_to_order_details.columns.quantity.asc)
.add(query.columns.companyid)
foundset.loadRecords(query)

...

classlastDetailRow

...

idavg
Table Row (tr)
idname
Table Cell (td)
avg
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create an aggregate expression.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBAggregate
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

/** @type {QBSelect<db:/example_data/orders>} */
	var query = databaseManager.createSelect('db:/example_data/orders')
	query.groupBy.addPk() // have to group by on pk when using having-conditions in (foundset) pk queries
	.root.having.add(query.joins.orders_to_order_details.columns.quantity.avg.eq(1))
	foundset.loadRecords(query)

...

classlastDetailRow

...

idbit_length
Table Row (tr)
idname
Table Cell (td)
bit_length
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create bit_length(column) expression
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.custname.bit_length)

...

classlastDetailRow

...

idceil
Table Row (tr)
idname
Table Cell (td)
ceil
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create ceil(column) expression
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mycol.ceil)

...

classlastDetailRow

...

idcount
Table Row (tr)
idname
Table Cell (td)
count
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create an aggregate expression.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBAggregate
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

/** @type {QBSelect<db:/example_data/orders>} */
	var query = databaseManager.createSelect('db:/example_data/orders')
	query.groupBy.addPk() // have to group by on pk when using having-conditions in (foundset) pk queries
	.root.having.add(query.joins.orders_to_order_details.columns.quantity.count.eq(0))
	foundset.loadRecords(query)

...

classlastDetailRow

...

idday
Table Row (tr)
idname
Table Cell (td)
day
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Extract day from date
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mydatecol.day)

...

classlastDetailRow

...

iddesc
Table Row (tr)
idname
Table Cell (td)
desc
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create an descending sort expression
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBSort
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

/** @type {QBSelect<db:/example_data/orders>} */
var query = databaseManager.createSelect('db:/example_data/orders')
query.sort
.add(query.joins.orders_to_order_details.columns.quantity.desc)
.add(query.columns.companyid)
foundset.loadRecords(query)

...

classlastDetailRow

...

idfloor
Table Row (tr)
idname
Table Cell (td)
floor
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create floor(column) expression
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mycol.floor)

...

classlastDetailRow

...

idhour
Table Row (tr)
idname
Table Cell (td)
hour
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Extract hour from date
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mydatecol.hour)

...

classlastDetailRow

...

idisNull
Table Row (tr)
idname
Table Cell (td)
isNull
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Compare column with null.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBCondition
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.where.add(query.columns.flag.isNull)

...

classlastDetailRow

...

idlen
Table Row (tr)
idname
Table Cell (td)
len
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create length(column) expression
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.custname.len)

...

classlastDetailRow

...

idlower
Table Row (tr)
idname
Table Cell (td)
lower
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create lower(column) expression
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.custname.lower)

...

classlastDetailRow

...

idmax
Table Row (tr)
idname
Table Cell (td)
max
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create an aggregate expression.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBAggregate
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

/** @type {QBSelect<db:/example_data/orders>} */
	var query = databaseManager.createSelect('db:/example_data/orders')
	query.groupBy.addPk() // have to group by on pk when using having-conditions in (foundset) pk queries
	.root.having.add(query.joins.orders_to_order_details.columns.quantity.count.max(10))
	foundset.loadRecords(query)

...

classlastDetailRow

...

idmin
Table Row (tr)
idname
Table Cell (td)
min
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create an aggregate expression.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBAggregate
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

/** @type {QBSelect<db:/example_data/orders>} */
	var query = databaseManager.createSelect('db:/example_data/orders')
	query.groupBy.addPk() // have to group by on pk when using having-conditions in (foundset) pk queries
	.root.having.add(query.joins.orders_to_order_details.columns.quantity.count.min(10))
	foundset.loadRecords(query)

...

classlastDetailRow

...

idminute
Table Row (tr)
idname
Table Cell (td)
minute
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Extract minute from date
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mydatecol.minute)

...

classlastDetailRow

...

idmonth
Table Row (tr)
idname
Table Cell (td)
month
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Extract month from date
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mydatecol.month)

...

classlastDetailRow

...

idnot
Table Row (tr)
idname
Table Cell (td)
not
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create a negated condition.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBColumn
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.where.add(query.columns.flag.not.eq(1))

...

classlastDetailRow

...

idparent
Table Row (tr)
idname
Table Cell (td)
parent
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get query builder parent table clause, this may be a query or a join clause.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBTableClause
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

/** @type {QBSelect<db:/example_data/person>} */
	var query = databaseManager.createSelect('db:/example_data/person')
	query.where.add(query.joins.person_to_parent.joins.person_to_parent.columns.name.eq('john'))
	foundset.loadRecords(query)

...

classlastDetailRow

...

idroot
Create locate(arg) expressionCreate locate(arg, start) expressionCompare column with a value or another column.
Operator: like
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} pattern – the string value of the pattern
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBCondition
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.where.add(query.columns.companyname.like('Serv%'))
Table Row (tr)
classlastDetailRow
Table Cell (td)
Table Body (tbody)
idlike-String_String
Table Row (tr)
idname
Table Cell (td)
like
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBCondition
Span
stylefont-weight: bold;
like
Span
(pattern, escape)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Compare column with a value or another column.
Operator: like, with escape character
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} pattern – the string value of the pattern
{String} escape – the escape char
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBCondition
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.where.add(query.columns.companyname.like('X_%', '_'))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idlocate-Object
Table Row (tr)
idname
Table Cell (td)
locate
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBFunction
Span
stylefont-weight: bold;
locate
Span
(arg)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create locate(arg) expression
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} arg – string to locate
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mycol.locate('sample'))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idlocate-Object_Number
Table Row (tr)
idname
Table Cell (td)
locate
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBFunction
Span
stylefont-weight: bold;
locate
Span
(arg, start)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create locate(arg, start) expression
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} arg – string to locate
{Number} start – start pos
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mycol.locate('sample', 5))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idlt-Object
Table Row (tr)
idname
Table Cell (td)
lt
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBCondition
Span
stylefont-weight: bold;
lt
Span
(value)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Compare column with a value or another column.
Operator: lessThan
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} value
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBCondition
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.where.add(query.columns.flag.lt(99))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idminus-Object
Table Row (tr)
idname
Table Cell (td)
minus
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBFunction
Span
stylefont-weight: bold;
minus
Span
(arg)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Subtract value
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} arg – nr to subtract
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mycol.minus(2))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idmod-Object
Table Row (tr)
idname
Table Cell (td)
mod
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBFunction
Span
stylefont-weight: bold;
mod
Span
(arg)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create mod(arg) expression
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} arg – mod arg
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mycol.mod(2))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idmultiply-Object
Table Row (tr)
idname
Table Cell (td)
multiply
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBFunction
Span
stylefont-weight: bold;
multiply
Span
(arg)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Multiply with value
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} arg – nr to multiply with
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mycol.multiply(2))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idnullif-Object
Table Row (tr)
idname
Table Cell (td)
nullif
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBFunction
Span
stylefont-weight: bold;
nullif
Span
(arg)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create nullif(arg) expression
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} arg – object to compare
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mycol.nullif('none'))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idplus-Object
Table Row (tr)
idname
Table Cell (td)
plus
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBFunction
Span
stylefont-weight: bold;
plus
Span
(arg)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add up value
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} arg – nr to add
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mycol.plus(2))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idsubstring-Number
Table Row (tr)
idname
Table Cell (td)
substring
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBFunction
Span
stylefont-weight: bold;
substring
Span
(pos)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create substring(pos) expression
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} pos
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mycol.substring(3))
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idsubstring-Number_Number
Table Row (tr)
idname
Table Cell (td)
substring
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
QBFunction
Span
stylefont-weight: bold;
substring
Span
(pos, len)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Create substring(pos, len) expression
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} pos
{Number} len
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
QBFunction
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

query.result.add(query.columns.mycol.substring(3, 2))
Table Row (tr)
classlastDetailRow
tdSubtract valueCreate mod(arg) expressionMultiply with valueCreate nullif(arg) expressionAdd up valueCreate substring(pos) expressionCreate substring(pos, len) expression

propertyservoy sDetail2100%height:30px2Property Detailsabsname

abs

dessIndent
Create abs(column) expression
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRowascname

asc

dessIndent
Create an ascending sort expression
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
avgname

avg

dessIndent
Create an aggregate expression.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
bit_lengthname

bit_length

dessIndent
Create bit_length(column) expression
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
ceilname

ceil

dessIndent
Create ceil(column) expression
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
countname

count

dessIndent
Create an aggregate expression.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
dayname

day

dessIndent
Extract day from date
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
descname

desc

dessIndent
Create an descending sort expression
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
floorname

floor

dessIndent
Create floor(column) expression
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
hourname

hour

dessIndent
Extract hour from date
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
isNullname

isNull

dessIndent
Compare column with null.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
lenname

len

dessIndent
Create length(column) expression
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
lowername

lower

dessIndent
Create lower(column) expression
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
maxname

max

dessIndent
Create an aggregate expression.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
minname

min

dessIndent
Create an aggregate expression.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
minutename

minute

dessIndent
Extract minute from date
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
monthname

month

dessIndent
Extract month from date
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
notname

not

dessIndent
Create a negated condition.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
parentname

parent

dessIndent
Get query builder parent table clause, this may be a query or a join clause.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
rootname

root

dessIndent
Get query builder parent.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
roundname

round

dessIndent
Create round(column) expression
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
secondname

second

dessIndent
Extract second from date
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sqrtname

sqrt

dessIndent
Create sqrt(column) expression
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
sumname

sum

dessIndent
Create an aggregate expression.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
trimname

trim

dessIndent
Create trim(column) expression
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
uppername

upper

dessIndent
Create upper(column) expression
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
yearname

year

dessIndent
Extract year from date
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

functionservoy sDetail2100%height:30px2Methods Detailsbetweenname

between(value1, value2)

dessIndent
Compare column to a range of 2 values or other columns.
prs

Parameters

sIndentvalue1 ;value2 ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRowcastname

cast(type)

dessIndent
Create cast(column, type) expression
prs

Parameters

sIndenttypestring type, see QUERY_COLUMN_TYPES
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
concatname

concat(arg)

dessIndent
Concatename with value
prs

Parameters

sIndentargvaleu to concatenate with
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
dividename

divide(arg)

dessIndent
Divide by value
prs

Parameters

sIndentargnr to divide by
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
eqname

eq(value)

dessIndent
Compare column with a value or another column.
Operator: equals
prs

Parameters

sIndentvalue ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
gename

ge(value)

dessIndent
Compare column with a value or another column.
Operator: greaterThanOrEqual
prs

Parameters

sIndentvalue ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getFlagsname

getFlags()

dessIndent
The flags are a bit pattern consisting of 1 or more of the following bits:
 - JSColumn.UUID_COLUMN
 - JSColumn.EXCLUDED_COLUMN
 - JSColumn.TENANT_COLUMN
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getTypeAsStringname

getTypeAsString()

dessIndent
Column type as a string
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
gtname

gt(value)

dessIndent
Compare column with a value or another column.
Operator: greaterThan
prs

Parameters

sIndentvalue ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
isinname

isin(query)

dessIndent
Compare column with subquery result.
prs

Parameters

sIndentquerysubquery
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
isinname

isin(values)

dessIndent
Compare column with values.
prs

Parameters

sIndentvaluesarray of values
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
isinname

isin(customQuery, args)

dessIndent
Compare column with custom query result.
prs

Parameters

sIndentcustomQuerycustom queryargsquery arguments
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
lename

le(value)

dessIndent
Compare column with a value or another column.
Operator: lessThanOrEqual
prs

Parameters

sIndentvalue ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
likename

like(pattern)

dessIndent
Compare column with a value or another column.
Operator: like
prs

Parameters

sIndentpatternthe string value of the pattern
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
likename

like(pattern, escape)

dessIndent
Compare column with a value or another column.
Operator: like, with escape character
prs

Parameters

sIndentpatternthe string value of the patternescapethe escape char
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
locatename

locate(arg)

dessIndent
Create locate(arg) expression
prs

Parameters

sIndentargstring to locate
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
locatename

locate(arg, start)

dessIndent
Create locate(arg, start) expression
prs

Parameters

sIndentargstring to locatestartstart pos
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
ltname

lt(value)

dessIndent
Compare column with a value or another column.
Operator: lessThan
prs

Parameters

sIndentvalue ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
minusname

minus(arg)

dessIndent
Subtract value
prs

Parameters

sIndentargnr to subtract
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
modname

mod(arg)

dessIndent
Create mod(arg) expression
prs

Parameters

sIndentargmod arg
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
multiplyname

multiply(arg)

dessIndent
Multiply with value
prs

Parameters

sIndentargnr to multiply with
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
nullifname

nullif(arg)

dessIndent
Create nullif(arg) expression
prs

Parameters

sIndentargobject to compare
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
plusname

plus(arg)

dessIndent
Add up value
prs

Parameters

sIndentargnr to add
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
substringname

substring(pos)

dessIndent
Create substring(pos) expression
prs

Parameters

sIndentpos ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
substringname

substring(pos, len)

dessIndent
Create substring(pos, len) expression
prs

Parameters

sIndentpos ;len ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow