TC 11: DBTABLES - Automatic Approach to Updating Stores
Article: http://support.smartbear.com/viewarticle/73778/ provides the following code for this method in Jscript.
We are looking to check one of our DB tables stores against the current DB to see if there are changes. If there are, we would like the store to be updated. However, instead of providing an example code snippet of this, the example provided on the site only states “//Performs some action with the stored data”.
Can Someone provide an example of how we would locate the current data in the store, find the current DB data, and then update using the CHECK method?
- NOTE: I contacted Smart Bear about this issue. Response was to enable the Update DBTable Elements option in the Stores Options dialog. I responded asking for additional information about my original inquiry as enabling teh update elements option is a manual based workaround for a scenario which we would like automated.
Thanks,
function CompareDBTables()
{
// Specifies a DB Table element
var DBTab = DBTables.veh_Vehicle_Add
// Performs some action with the stored data
// Checks whether the data has been changed
if (DBTab.Check())
Log.Message("The data hasn't been changed.");
}