The document element allows you to load an application document (Microsoft Word, Microsoft Excel, PDF, and so on) into a mobile application.
When you create document elements:
If you upload a document with the same name as a previously uploaded document, the second document overwrites the first, unless you create a subdirectory below the upload directory and upload the second document to the subdirectory.
You can use only the default template except for the content types text/HTML and text/plain. These are defined in the template section of the definition page. See Configuring Mobile Applications
You cannot import or export a document mobile application across servers. See Importing and Exporting Mobile Application Elements.
You can create a document mobile application with a new content type that is not included in the drop-down menu. In this case, it may or may not work, depending on whether there is an application supports the plug-in.
You must set the content type of document element mobile application to the correct type.
Mobile applications that use the document element (except for the content types text/HTML and text/plain) can contain only one element.
Creating a document element
From the Mobile Development perspective, select File|New|Mobile Application.
Alternatively, right-click the Mobile Applications folder, and select Create New Mobile Application With|Document Element.
When the New Mobile Application wizard appears, select Launch Element Wizard, then select Document from the Element Type drop-down list, and click Finish.
In the Document to Upload field, enter the full path to the document you want to upload, or click Browse to search for and select the document.
In the Destination Location field, which is enabled when the Document to Upload field is not empty, accept the default folder name or append the default name with an additional folder name. Enter only the folder name; that is, do not enter the complete path. This is the location to which the document is uploaded.
Sybase WorkSpace creates a document root level directory on the drive of your Unwired Accelerator installation and uses the current user's login name as the default folder. For example, if the default for the Destination Location displays "masuper", and the Unwired installation drive is C:, the uploaded document is saved to C:\tmp\PortletDocs\masuper\.
To create a different folder using this structure, enter another file name after the name that displays in the Destination Location field. For example, if the field displays "masuper" and you enter "\Smith," the file is uploaded to C:\tmp\PortletDocs\masuper\Smith.
Click Upload. After the upload is successful, click OK.
Document Name – displays the document's name.
Content Type – from the drop-down list, select the type of content the document contains.
If you do not see the content type you want, select Add New from the drop-down list to add a new content type.
New Content Type – enabled only when you select Add New from the Content Type drop-down list. Enter the new type in this format:
[application | image | text]/plug-in name
Whether the new type works depends on whether there is an application and the plug-in installed for the content type specified. See "Adding new content types."
Click Next. Preview the mobile application.
Click Finish.
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com