06-13-2012 07:05 AM
'Onbase.Application'
Line:22
This is the main body of my VB Script:
Sub Main35()
Dim obApp, obDoc, obKeys, kwName, DateCompVal, i, j, DateAssgnVal
Set obApp = CreateObject("OnBase.Application")
Set obDoc = obApp.CurrentDocument
Set obKeys = obDoc.Keywords
For i = 0 to obKeys.count - 1
kwName = obKeys(i).Name
If (kwName = DateAssgn) Then
DateAssgnVal = obKeys(i).Value
End If
Next
DateCompVal = AddBusinessDay(DateAssgnVal, 1)
call obKeys.AddKeyword (DateComp,DateCompVal)
call obDoc.StoreKeywords()
End Sub
Can not for the life of me figure out why I am getting this error...
Thanks
06-13-2012 07:14 AM
Greg,
Is this script run inside of OnBase (e.g., VBScript hook or right-click 'run script')?
What OS are you running it on (e.g., Windows XP/Vista/7)?
Is the OS 32 or 64 bit?
06-13-2012 07:20 AM
Script is being called from a workflow action...
My workstation OS is Win 7 Professional
64bit
06-13-2012 07:35 AM
Just for grins... Have you tried running the thick client in 'administrator mode'. Right-click on the shortcut for the thick client and select "Run as administrator". Then try the script.
06-13-2012 07:40 AM
That worked!
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.