I have an xpages application which contains 4 databases - 1 is the hub that contains all the xpages and the others are spokes in which data resides.
I am experiencing 2 problems and am hoping that someone can provide clarification and a resolution.
- On one of my xpages, I have tabbed panels and on one of these panels there is a button, with a view panel directly below it. The button is used to create documents. I have used this type of scenario in other places in the application, but in this instance, I’m taking information from the panel, and using it to create the response-to-response documents, which display in the view panel. And I’m creating the documents programmatically.
Now here is the problem - the documents are created, and populated, but when I click on one of them in the view panel, the document ALWAYS displays in edit mode, regardless of what settings I make to ensure it is in read only mode.
And, while the data is visible in the fields in the document, if I click the Save button, I get a message of Error testing property ‘fieldname’ in bean of type null" for the first field. If I remove that field, the message occurs for the second field.
Now the really bizarre thing is, if I go into the Notes client and look at the documents, the data is in the fields.
I have tried creating the documents with a LotusScript agent called from Server side Javascript, using just JavaScript itself, and just about every variation of selecting and de-selecting properties, including “ignoreRequestParams”, but always with the same result.
I have a PMR open with IBM support, and they can reproduce the problem, but so far there is no resolution.
I do need to do this programmatically because the number of documents created depends on selections made on the parent xpage, so I need to loop.
- The second thing is this whole idea of what data is saved and what data is not. I understand that if you have a field in which you use JavaScript, or the Advanced area to calculate the value, you cannot bind that field data to anything on the form, so it will not be saved. I have an example of 2 fields on the above parent xpage, which receive their data from other fields on the same xpage (but different tabs). I have tried every way possible to get that data saved to the form, but it does not happen. I have the fields bound to the fields on the form, and I have tried setting the fields as computed, as editable with with the Read-only property selected, and other variations. I have used sessionScope variables, from events, and from hidden input fields. You can see the fields visually on the xpage, you can put the document in edit mode and back to read mode, and the values stay there, but if you look at the properties on the form, they are not saved.
Any clarification of either or both of the above would be very much appreciated.