This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Sep 12, 2011, 6:56 AM
5 Posts

How to open a document from the XPage View using dojo

  • Category: Dojo and Client Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 1
HI Guys, I can create a new document in XPage using Dojo, but how can I edit a document using Dojo. All I want is when I click a document in the XPage view, I want to open that document using dojo. Thanks
Sep 12, 2011, 11:54 AM
122 Posts
Re: How to open a document from the XPage View using dojo
If you want to open the document for editing via Dojo rather than Server-Side JavaScript you just need to generate a client-side URL to the document. This would be something like "myXPage.xsp?documentId=xxxxxxxx&action=editDocument" or "/0/xxxxxxxx" where the Form is set to open in the relevant XPage and the default action for your data source is to edit the document. Either way "xxxxxxxx" isa the UNID of the document.
 
If you open documents with the relevant actions you'll see how the URL is made up.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal