xPage: docs and responses

I made a ‘classic’ design of a document and a response that are working well in a client the ‘classic’ way.Now in xPages I want the doc in the leftcolumn and by choice a list of responses or a chosen or new response in the content side of the screen using OneUI as stylesheet(s). On the page is a panel with the view and the form. One of them is visible depending on the value of a sessionScope variable. I use partial refresh on the content.

When using the view, all items refer to the notesID of the doc, not the right response! That’s NOT good!

I can put computed fields in the page with ID’s. xPage does know the right ID’s. I can check them in the client. The view is correct but I cannot get xPage to display the correct response. Even with new sessionScope variable with the correct ID.

When looking in the client in a view with docs and responses I see that there is one response item displayed IN the doc.

Anybody an idea?

p.s. In another xPage application I display the response as a single item on a page. That is not a problem.

Subject: Problem solved

I did solve the problem by using 4 sessionScope variables. Two for the documents universal ID and NoteID en two for the response document(s).In the custom controls I bind the documents to the NoteID. The universal ID’s I use for checking the $REF.

Subject: You may have an issue…

  • Paul Withers (sorry if I have that wrong) informed me on another thread (that I didn’t look for) that scoped variables DO NOT save objects from one page to the next, only simple data types. So your notes IDs will remain, but your documents will go the way of the Dodo Bird.

  • This has something to do with how the pre-existing Notes API interacts with the new XSP command processor. If you find Paul’s response to my post I’m sure it’ll make sense.

  • So in essence you must recreate complex objects every page load.

Hope this helps…

Subject: Did I loose sessionScope variables?

I want to display a document and its responses on one xPage.Showing the document and all its responses in a view is no problem using sessionScope variables.

Now I want to replace the view showing the full response.

In the browsers Firefox and IE there is no problem.

In the browsers Safari and Chrome the sessionScope variables for the response seems lost!

(The variables cannot be found in the source either.)

In Firefox you can see the Universal and NoteID of the document and the response.

The response is in read-mode.

In Safari the ID’s of the document look ok, but those of the response are absent and the response is in edit-mode.

It all looks very wrong to me and I certainly can’t explain the difference.

Anybody an idea?