Child pages
  • JSDataSourceNode

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Cache
indextrue
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClient

servoy sSummary12%30%58%height: 30px;3Methods SummaryGet an existing calculation for the datasource node.Gets all the calculations for the datasource node.Get the data source for this node.Get an existing foundset method for the datasource node.Gets all the foundset methods for the datasource node.Creates a new calculation for the given code, the type will be the column where it could be build on (if name is a column name), else it will default to JSVariable.Creates a new calculation for the given code and the type, if it builds on a column (name is a column name) then type will be ignored.Creates a new foundset method with the specified code.Removes the calculation specified by name.Removes the foundset method specified by name.

functionservoy sDetail2100%height:30px2Methods DetailsgetCalculationname

getCalculation(name)

dessIndent
Get an existing calculation for the datasource node.
prs

Parameters

sIndentnameThe name of the calculation
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRowgetCalculationsname

getCalculations()

dessIndent
Gets all the calculations for the datasource node.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getDataSourcename

getDataSource()

dessIndent
Get the data source for this node.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getMethodname

getMethod(name)

dessIndent
Get an existing foundset method for the datasource node.
prs

Parameters

sIndentnameThe name of the method
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getMethodsname

getMethods()

dessIndent
Gets all the foundset methods for the datasource node.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
newCalculationname

newCalculation(code)

dessIndent
Creates a new calculation for the given code, the type will be the column where it could be build on (if name is a column name),
else it will default to JSVariable.TEXT;
prs

Parameters

sIndentcodeThe code of the calculation, this must be a full function declaration.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
newCalculationname

newCalculation(code, type)

dessIndent
Creates a new calculation for the given code and the type, if it builds on a column (name is a column name) then type will be ignored.
prs

Parameters

sIndentcodeThe code of the calculation, this must be a full function declaration.typeThe type of the calculation, one of the JSVariable types.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
newMethodname

newMethod(code)

dessIndent
Creates a new foundset method with the specified code.
prs

Parameters

sIndentcodethe specified code for the foundset method
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
removeCalculationname

removeCalculation(name)

dessIndent
Removes the calculation specified by name.
prs

Parameters

sIndentnamethe name of the calculation to be removed
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
removeMethodname

removeMethod(name)

dessIndent
Removes the foundset method specified by name.
prs

Parameters

sIndentnamethe name of the method to be removed
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow