ActionService.execute

ro3er
edited October 7, 2008 in Documentum #1

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

  • Francois Dauberlieu
    edited October 7, 2008 #2

    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