Methods
(static) refreshData(entityName)
Example
// to be called from the invokeServerTask().then() function.
// delete refresh
akioma.swat.RefreshEmitter.refreshData('eTerm*', {lastRowState: 'delete'}) // This will select the next available record
// update refresh
akioma.swat.RefreshEmitter.refreshData('eTerm*', {lastRowState: 'update'});
// add refresh
akioma.swat.RefreshEmitter.refreshData('eTerm*', {lastRowState: 'add', lastUpdatedRecord: {selfhdl: 'A69:111:000008101398'}});
Parameters:
Name | Type | Description |
---|---|---|
entityName |
string | The entity name. Accepts wildcard BUT currently only supports begins (see example). |
opts.lastRowState |
string | The 'delete', 'update' or 'add' last row state. |
opts.lastUpdatedRecord.selfhdl |
string | The selfHdl of the last updated record. Required for an add refresh. |