ActionService.execute
Hi,
I need to check out a word document from the content server
for editing and check in the word document once the editing is done
(closing of ms word). I understand that that can be accomplished by
using ActionService.execute and passing "checkout" as its argument. My
code is as follows:
public void Checkout(Control ctrl, ArgumentList arg){
boolean retval = ActionService.execute("checkout", arg, this.getContext(),
this, new CallbackDoneListener(this, "returnFromCheckout"));
}
public void returnFromCheckout(String strAction, boolean bSuccess, Map map) {
String[] path = null;
Map items = (Map)map.get(CheckoutContainer.NEW_CLIENT_PATHS);
if (items != null){
path = (String[])items.values().toArray(new String[0]);
}else {
path[0] = "";
}
}
When
I execute my program, the document is checked-out but somehow, it
always opens up in adobe acrobat reader instead of ms word. I tried to
check out the document in da and it opens up fine (in ms word). Any
idea what went wrong?
Comments
-
No idea what went wrong but anyways, why reinventing the wheel ? Webtop as well a Desktp Client come with a MS-Office intergration so you don;t need to do that yourself as it does it for you
0
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 103 General Questions
- 123 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax