The alerttimestampmismatches statement display mismatched time stamps.


This statement has one parameter:

mismatches – error returned by the validatetimestamps statement.


This statement primarily intended for internal ProVUE use, however, it could be used in the ..PostSynchronize procedure to report synchronization errors if the automatic verification of synchronization is enabled (see Automatically Verifying Synchronization on the Shared Database Synchronization page). If the verification fails, the VERIFICATIONERROR value passed to the ..PostSynchronize procedure will contain a list of records that failed to match between the client and the server. This list is in an undocumented internal format, but you can use the alerttimestampmismatches statement to display the list in a useful format.

let syncInfo = parameter(1)
let syncNotificationMessage = getdictionaryvalue(syncInfo,"NOTIFICATION")
let syncExtraMessage = getdictionaryvalue(syncInfo,"NOTIFICATIONDETAIL")
let syncVerificationError = getdictionaryvalue(syncInfo,"VERIFICATIONERROR")
if syncVerificationError=""
    nsnotify syncNotificationMessage,"TEXT",syncExtraMessage
    nsnotify "Synchronize verification failed!",
        "TEXT","Click notfication for details",
        "CODE",{let syncDatabase = }+quoted(info("databasename"))+cr()+
               {setactivedatabase syncDatabase}+cr()+
               {if error alert syncDatabase+" is no longer open" return endif}+cr()+
               {alerttimestampmismatches }+quoted(syncVerificationError)

Notice that this code does not directly call the alerttimestampmismatches statement, but instead invokes it from a notification. This is because the code in a ..PostSynchronize procedure must not display a dialog or alert. Instead, a notification is displayed, and the user can then choose to display the alert by clicking on the notification.

See Also


10.2NewNew in this version.