Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

New Contributor
Posts: 4
Registered: ‎09-29-2011
My Device: 8310
My Carrier: rogers

Docs to Go How do you do - ACTION_OPEN ??

[ Edited ]

I know how to invoke most playbook apps, but how do you invoke the Documents To Go suite of applications .


Is it like invoking a Browser


<script type="text/javascript">

function startDocs2Go() {
             var args = new blackberry.invoke.Docs2GoArguments();
             args.open = blackberry.invoke.Docs2GoArguments.ACTION_OPEN;

             blackberry.invoke.invoke(blackberry.invoke.APP_Docs2Go, args);

I know this is not right but what is please....

New Contributor
Posts: 4
Registered: ‎09-29-2011
My Device: 8310
My Carrier: rogers

Re: Docs to Go How do you do - ACTION_OPEN ??

I found this code in JAVA but do not know how to use it in WebWorks.

Can I run this JAVA code using the...


blackberry.invoke.JavaArguments   ???


Please help!


package com.samples.docs2gosample;
import javax.microedition.content.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.MenuItem;
import net.rim.device.api.content.BlackBerryContentHandler;

public class Docs2GoSample extends UiApplication
EditField _ef;

// Entry point for application
public static void main(String[] args)
Docs2GoSample theApp = new Docs2GoSample();

public Docs2GoSample()
MainScreen mainScreen = new MainScreen();
mainScreen.setTitle("Use the menu to open a document");
MenuItem menu = new MenuItem("Open File", 40, 40)
public void run()
//Create the invocation request.
Invocation invocation = new Invocation(_ef.getText());
invocation.setAction(ContentHandler.ACTION _OPEN);

//Use the registry to perform the //invocation.
Registry registry = Registry.getRegistry("com.samples. docs2gosample.Docs2GoSample");
catch (Exception ex)
System.out.println("Exception: " + ex.toString());

//An EditField where a user can enter the path to the
//document to be opened. An example path is pre- //populated.
_ef = new EditField("File to Open: ", "file:///SDCard/ aDoc.doc");