Context: |
General |
Library/Class: |
Sample Code |
Notify user of the total number of documents exported As Integer, Read/Write
This sample shows a simple use of the stats.DocCnt property in displaying its value to the user at the end of the export. stats.DocCnt represents the total number of actually exported documents (excluding any selected documents that might have been filtered out due to filter condition settings in the profile and or coded filter conditions.
Const CB_INITIALISE = 3
Const CB_ACTIONONLY = 16
Const CB_BFOREXPORT = 10
Const CB_INVALID = 12
Const CB_CATEGORY = 13
Const CB_TOTAL = 14
Const CB_CONFLICT = 15
Const CB_BFORREADNOTES = 6
Const CB_BFORWRITECOM = 1
Const CB_AFTERWRITECOM = 9
Const CB_BFORCOMACTION = 5
Const CB_BFORNOTESACTION = 2
Const CB_TERMINATE = 4
select case stats.cbstatus
case CB_INITIALISE
case CB_ACTIONONLY
case CB_BFOREXPORT
case CB_INVALID
case CB_CATEGORY
case CB_TOTAL
case CB_CONFLICT
case CB_BFORREADNOTES
case CB_BFORWRITECOM
case CB_AFTERWRITECOM
case CB_BFORCOMACTION
case CB_BFORNOTESACTION
if not stats.savdoc is nothing then
else
end if
case CB_TERMINATE
' Word and Excel profiles
Call MessageDialog(stats.DocCnt & " Notes documents exported.", 0,"Integra Callback Script Example")
' XML / Text profiles
Call MessageDialog(stats.RecCnt & " Notes documents exported.",0,"Integra Callback Script Example")
end select
|