Documentum WebDAV and OpenOffice.org

Forum rules
No question in this section please
For any question related to a topic, create a new thread in the relevant section.
Post Reply
babar.uddin
Posts: 1
Joined: Mon Apr 19, 2010 12:08 pm

Documentum WebDAV and OpenOffice.org

Post by babar.uddin »

Credit : Abu Dhabi Media Company

Documentum Provide WebDAV services, usually user connect to webDAV service as network folder. However, growing demands of online solutions require to save documents automatically without need to cut and paste documents. We at Abu Dhabi Media Company , adopted following strategy to connect Open Office to WebDAV drive.

1. Create Template folders at WebDAV folder and allow users to create Open Office docuatment via Template available at WebDAV folder.
2. Create Macro as 'WriterToWebDAV'

Code: Select all


sub WriterToWebDAV
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
iHandler = createUnoService("com.sun.star.task.InteractionHandler") 
dim args1(3) as new com.sun.star.beans.PropertyValue
args1(0).Name = "InteractionHandler" 
args1(0).Value = iHandler
args1(1).Name = "URL"
rem ----------------------------------------------------------
rem Change the args1(1).value with your server URL
rem ----------------------------------------------------------
args1(1).Value = "vnd.sun.star.webdav://ExampleYourSeverURL/Templates/_blank.ott" 
args1(2).Name = "FilterName"
args1(2).Value = "writer8"
args1(3).Name = "Unpacked"
args1(3).Value = "true"
rem ----------------------------------------------------------------------
dispatcher.executeDispatch(document, ".uno:Open", "", 0, args1())
end sub

3. Create a menu item as 'WriterToWebDAV' and connect this menu item to 'WriterToWebDAV' macro.

Now your macro is ready to deploy at any MAC machine, users can create new documents directly on WebDAV server and save using 'SaveAs' menu item.
OpenOffice 3.1 on MAC
Post Reply