refreshTable()
Last updated 10/05/2023
Example
This following code is calling
refreshTable()
with the Book
and iUser
table IDs to re-evaluate the
data in the live query.
Refresh the live query with new query parameters
function SetSearchISBN(five: Five, context: any, result: FiveError) : FiveError {
five.setVariable('ISBN', five.field.ISBN);
five.setVariable('Title', `%${five.field.Title}%`);
five.setVariable('UserKey', five.currentUserKey());
five.refreshTable('Book');
five.refreshTable('iUser');
return five.success(result);
}
Refresh the live query with new query parameters
function SetSearchISBN(five, context, result) {
five.setVariable('ISBN', five.field.ISBN);
five.setVariable('Title', `%${five.field.Title}%`);
five.setVariable('UserKey', five.currentUserKey());
five.refreshTable('Book');
five.refreshTable('iUser');
return five.success(result);
}