Integra for Notes Banner
  QuickReports Integra4Notes Integra Family of Products

Integra Script Library Documentation


Context:

General

Library/Class:

Sample Code



Dynamically changing the attachment name prefix for Save As / Send To As Integer, Read/Write

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

    ' The AttName property is exposed in the profile UI
    ' In a more complex scenario, the formula string
    ' could be assigned in the CB_AFTERWRITECOM or
    ' CB_BFORNOTESACTION event to dynamically
    ' change the filename prefix (formula) depending
    ' on the exported Notes document
    stats.AttName = | "Quotation_" & Format(Now,"DDMMMYY") |
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
      ' before save as...
    else
      ' before send to
    end if
case CB_TERMINATE
end select
 
QUICK LINKS
 
 

 

  © Shireburn Software Ltd. 2008 - 2024