refreshTable()
Last updated 10/05/2023
Example One
This code is calling the refreshTable()
with the Book
and iUser
table IDs on the Five
object 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);
}