Page tree

Versions Compared

Key

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

...

Info
titleGood to know

The refresh scheme is not used to mention on which tables to refresh the data, actually the tables present in refresh schemes represent a list of listeners for the changes that will occur in the mentioned tables, which means that if an update / add / delete is done on one of the tables specified in the refresh schemes then the refresh will be done on the DSO table, not the other way around.

 

Starting with the SWAT 2019.23 release, also SkipRefresh parameters are available.

...

Code Block
languagejs
titleExample
{
    "Tables": "Table1*,Table2*",
    "AddRepositionTo": "#NewRecord,#KeepSelection", //default reposition to newly created record
    "UpdateRepositionTo":"#KeepSelection,#KeepSelection", // default keeps selection of the selected record
    "RemoveRepositionTo": "#NextRow,#KeepSelection" // default reposition to next available record using #NextRow
    "AddSkipRefresh": "*", // all tables are skipped for refresh on add action
    "UpdateSkipRefresh": "Table2" // Table2 will not be refreshed on update action
}


Starting with SWAT 2020.01 release, also the RepositionToKey parameter was added, to specify what field to use from the BE for the reposition (eg: what record from a grid)

Code Block
languagejs
{  
'Tables': 'Table1*,Table2*',  
'AddRepositionTo': '#NewRecord,#KeepSelection',  
'UpdateRepositionTo':'#KeepSelection,#KeepSelection', 
'RemoveRepositionTo': '#NextRow,#KeepSelection' ,
'RepositionToKey' : 'selfhdl,user_key' 
}