In an effort to reduce maintenance on Doc Agent, I put together a script that will pull a copy of the current document from the repository, then refresh it. I am hoping to use this to avoid the need to delete and re-schedule a report in Doc Agent each time the report code changes.
The script works fine when I execute it in Business Objects proper, but when I associate it with a report and try to execute it through Doc Agent, it fails trying to receive the document from the repository .
Any explanations or other suggestions? Thanks in advance!
The script follows:
Sub main
dim doc as BODocument
dim docname as string
set doc = Application.Documents.Item(1)
docname = Application.Documents.Item(1).Name doc.Close
Application.ExchangeRepository = “document” Application.Documents.Receive(docname)
set doc = Application.Documents.Open(docname) doc.Refresh
End Sub
I received no replies on this before, but having seen a few more people with the same desire, I thought I would run it by people again. Any ideas?
From: McConnell, Richard S
(GEP)[SMTP:Richard.McConnell@GEPEX.GE.COM] Sent: Wednesday, August 26, 1998 4:41 PM
In an effort to reduce maintenance on Doc Agent, I put together a script that will pull a copy of the current document from the repository, then refresh it. I am hoping to use this to avoid the need to delete and re-schedule a report in Doc Agent each time the report code changes.
The script works fine when I execute it in Business Objects proper, but when I associate it with a report and try to execute it through Doc Agent, it
fails trying to receive the document from the repository .
Any explanations or other suggestions? Thanks in advance!
The script follows:
Sub main
dim doc as BODocument
dim docname as string
set doc = Application.Documents.Item(1) docname = Application.Documents.Item(1).Name doc.Close
Application.ExchangeRepository = “document” Application.Documents.Receive(docname)
set doc = Application.Documents.Open(docname) doc.Refresh
End Sub
I could be completely wrong, but I’m fairly sure all you need to do is put the script onto the server too… perhaps just the ‘export script’ command will put it in the correct place?
From: McConnell, Richard S
(GEP)[SMTP:Richard.McConnell@GEPEX.GE.COM] Sent: 03 October 1998 08:22
I received no replies on this before, but having seen a few more people with
the same desire, I thought I would run it by people again. Any ideas?
From: McConnell, Richard S
(GEP)[SMTP:Richard.McConnell@GEPEX.GE.COM] Sent: Wednesday, August 26, 1998 4:41 PM
In an effort to reduce maintenance on Doc Agent, I put together a
script
that will pull a copy of the current document from the repository,
then
refresh it. I am hoping to use this to avoid the need to delete and re-schedule a report in Doc Agent each time the report code changes.
The script works fine when I execute it in Business Objects
proper, but
when I associate it with a report and try to execute it through Doc
Agent,
it
fails trying to receive the document from the repository .
Any explanations or other suggestions? Thanks in advance!
The script follows:
Sub main
dim doc as BODocument
dim docname as string
set doc = Application.Documents.Item(1) docname = Application.Documents.Item(1).Name doc.Close
Application.ExchangeRepository = “document” Application.Documents.Receive(docname)
set doc = Application.Documents.Open(docname) doc.Refresh
End Sub