09-02-2010 07:54 AM
Is this a property that can be retrieved, or just something that needs to be queries from a table? I could not find it in the SDK reference, but maybe I was looking in the wrong area. Thanks...
09-02-2010 09:00 AM
Allen is correct, the Act.Framework.Synchronization namespace has a SyncDB class that contains a LastSuccessSyncDate property that should return what you're looking for also.
09-05-2010 09:32 PM
I've tried that property, but I get null for all databases (remotes) I've run the plugin on. Here's the example:
Dim syncDBClass As SyncDB Dim syncDate As Date Dim bSubscriber As Boolean = ActApp.ActFramework.ActDatabase.IsSubscriber 'MessageBox.Show(bSubscriber.ToString()) If (bSubscriber = True) Then Try syncDate = syncDBClass.LastSuccessSyncDate MessageBox.Show(syncDate) ...and so on
09-07-2010 07:31 AM
Has the remote that your attempting to gather the last sync date from sync'd? The value should not be null if the remote has sync'd. Here's what's working for me:
SyncDB Remotes = ActApp.ActFramework.SynchronizationManager.GetAllRemoteSyncDBs();
SyncDate = Remotes.LastSuccessSyncDate;
This database only has a single remote.
09-07-2010 10:17 AM
Maybe I'm mixing things up (or not asking correctly) - what I'm looking for is running on the remote itself, not the server. I'm trying to get info via a dll as a Plugin on a remote user's db. Thanks...
09-07-2010 12:56 PM
Having a similar issue when trying to do this from the remote. I can capture the remote as a SyncDB, but the last success date always returns 1/1/0001.
Expire days is accurate on the remote, as a work around we could subtract 30-expire days (if it was set to expire in 30 days) and then subtract that from System.DateTime.Now.
Of course, Allen's approach at this point might be easier.
09-07-2010 01:56 PM
09-07-2010 09:13 PM