2012 May 02 9:02 AM
Dear experts,
We have configured a workflow which opens an archivelink PDF document in an acrobat reader popup window, configured with OAA3. When the worflow finishes, we would like to automatically close this window. It looks to me this should be possible through transaction OAA4, but it is not clear to me how. You're thoughts or ideas are most welcome...
Many thanks,
John.
2012 May 02 9:32 AM
Hi John,
are you working with BOR-Objecttype IMAGE when openning the PDF-document?
IMAGE has a method DISPLAY and a method WINDOWCLOSE.
Regards,
Dirk
2012 May 02 9:32 AM
Hi John,
are you working with BOR-Objecttype IMAGE when openning the PDF-document?
IMAGE has a method DISPLAY and a method WINDOWCLOSE.
Regards,
Dirk
2012 May 02 9:55 AM
Thanks a lot for you quick and very useful answer Dirk!
I indeed use the BOR IMAGE object. The Acrobat reader window is opening with the call of method 'IMAGEASSIGNEARLY' using a standard task. As for you indications, I created another task that calls the WINDOWCLOSE method, but I think the WindowsID is needed, which I don't see as parameter in IMAGEASSIGNEARLY. Do you have any idea where to get this?
Thank you very much,
John.
2012 May 02 10:04 AM
I never pass a window-id to the method windowclose and it works in my workflows. If you look at the coding of the method windowclose you can see that a window-id is built using the key-fields of bor-objecttype Image if you pass no windowid.
Regards,
Dirk
2012 May 02 11:39 AM
Hi Dirk,
Unfortunately it is not working yet. Maybe it is because the workflow is calling with the wrong OLE methods for Acrobat Reader. If you have any further ideas they would be most welcome.
Thanks and kind regards,
John.
2012 May 02 12:39 PM
Hi John,
this is the configuration we are using, thou we're working the the Livelink Viewer not the Acrobat Reader:
Dirk
2012 May 02 5:29 PM
Thanks a lot once again for your input Dirk. Unfortunately our customer is using Acrobat Reader, and I need to find the correct OLE application and methods for closing the window...
Kind regards,
John.