XPages – getting a doc in Edit mode. Best way?

Me and my colleague got quiet frustrated today with getting a document into edit mode. Why? In one database the routine works in another database it doesn’t.

What is the best way to be able to get a document from for example:

  • a View control or
  • a Table control

into Edit mode (after opening the document first for reading)?

It seems adding a link on the XPage which is used for opening the Document (in read mode) and applying an Action on the onClick event (Change Document Mode) has some uncertain behaviours.

6 thoughts on “XPages – getting a doc in Edit mode. Best way?

  1. Tim Tripcony 2009-August-11 / 6:40 pm

    Patrick, assuming the document in question is bound to the XPage via a data source, the most reliable way is to create a link to the same page but include an “action” parameter with a value of “editDocument”.

    For example, if an XPage named “topic” contains a data source that uses the default behavior to access a document, the following will open it in read mode:
    The following will open it in edit mode:

    So, in this example, create a link on the topic XPage and set it to open the same page but include that parameter (you may need to go into the “All Properties” section to define this), and set it to render only if the document is in read mode.

  2. quintessens 2009-August-11 / 9:09 pm

    hej Julian, thank you for the link, at this moment we experience some inconsistence how to get into edit mode from a View or Table control…

  3. quintessens 2009-August-12 / 2:14 pm

    I experienced some strangeness in the application. Now I have rebuild the complete database from scratch and the same (standard) functionality works accordingly. odd.

    • Nachiket 2012-December-21 / 5:57 am

      None of the above seems to be working for me too. I am facing the same challenge as quintessens above and I am just not able to get out of it. I am using 8.5.3 server and client but the problem still persists. Does any one have any new solution to this?

  4. Hosea Kambonde 2013-May-15 / 12:20 pm

    Hi Tim, i followed your example with the parameter, but i still get the document in view mode, any suggestions why maybe?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s