Child pages
  • JSFoundSetUpdater

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 SummaryGo to next record in this updater, returns true if successful.Do the actual update in the database, returns true if successful.voidStart over with this iterator 'next' function (at the foundset selected record).Set the column value to update, returns true if successful.

functionservoy sDetail2100%height:30px2Methods Detailsnextname

next()

dessIndentGo to next record in this updater, returns true if successful. NOTE: this method doesn't take into account deletes and inserts that may happen at same time. For more reliable iterator see foundset.forEachret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow performUpdatename

performUpdate()

dessIndentDo the actual update in the database, returns true if successful. There are 3 types of possible use with the foundset updater 1) update entire foundset by a single sql statement; that is not possible when the table of the foundset has tracking enabled then it will loop over the whole foundset. When a single sql statement is done, modification columns will not be updated and associated Table Events won't be triggered, because it does the update directly in the database, without getting the records. NOTE: this mode will refresh all foundsets based on same datasource 2) update part of foundset, for example the first 4 row (starts with selected row) 3) safely loop through foundset (starts with selected row) after the perform update call there are no records in edit mode, that where not already in edit mode, because all of them are saved directly to the database, or in mode 1 the records are not touched at all and the database is updated directly.ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
resetIteratorname

resetIterator()

dessIndentStart over with this iterator 'next' function (at the foundset selected record).
ret

Returns

sIndentclients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow 
setColumnname

setColumn(name, value)

dessIndentSet the column value to update, returns true if successful.prs

Parameters

sIndentnameThe name of the column to update.valueThe new value (can be an array with data for x number of rows) to be stored in the specified column.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow