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



Oct 27, 2014, 10:37 PM
13 Posts

save document from one view to another view

  • Category: Other
  • Platform: Windows
  • Release: 9.0.1
  • Role: Administrator,Developer
  • Tags: view panel
  • Replies: 10

Hi All

 I have designed a xpage (Project) there is a button in this xpage that opens a dialog, my first view is in dialog content, also there is another view in this xpage (Project). I want to save data from view in dialog content  into view in the project xpage

Any solution would be very appreciated!

 

Oct 28, 2014, 1:35 PM
26 Posts
A document isn't saved in to a view
A document is saved with field values that make it meet the views selection criteria.
Oct 28, 2014, 8:49 PM
453 Posts
In your submit button just

save the document, then on the document do a document1.copyToDatabase(Your Other DB). To make the document work in the otehr DB you might need to change the Form and perhaps some other fields to make it work in the Other DB but that is pretty simple.

Oct 29, 2014, 8:38 PM
13 Posts
Both of views are in the same DB

One view is in a dialog that opens by clicking a button and second view is in the same xpage that button is. There are hundreds of documents in first view, user should select one document from the first view then save in the second view 

Oct 30, 2014, 2:11 PM
26 Posts
Did you read my response?
The View Selection formula is what defines what appears in a view.  You do not save a document from one view to another.  The document you save must match the criteria defined in the other views selection formula.

So if you selection formula had something like
SELECT Form = "ABC"

then you would have to save the document with a form value of "ABC" to appear.
Nov 1, 2014, 3:38 AM
13 Posts
Yes I read your post Carl

If I enable first column of view to display as link "editable" it opens in a form but it doesn't  save to the second view  these two views have different structure, the selection formula of both views is SELECT Form = "Customer"  how can I save document to the second view.

Thanks for any ideas! 

Nov 2, 2014, 4:04 PM
26 Posts
When the document saves does it still have a form equal to Customer
What do you see if you look at the document properties.

If it's not appearing in the view I would suggest the form is no longer equal to Customer
Nov 2, 2014, 9:48 PM
13 Posts
Form is equal to customer

There is a button that user can add new project (for the selected customer,I used $Ref to display only projects of selected customer) to the second view when I create new project from this button it saves in the view. But when add project that already exist from a view that opens in a dialog it doesn't save to the second view. Also there is a view that display all project for testing I opened a project editable and changed it saves only in the view that display all project not to the second view. 

Nov 3, 2014, 1:11 PM
26 Posts
You say you use $ref
Does the document appear if you turn off response hiearachy?  Perhaps the parent is not in the view?
Nov 3, 2014, 10:17 PM
13 Posts
Yes it appears when I turn off response hierarchy but...

all project appear in second view that is I don't want.  It should appear only projects of selected customer and I can add existing project in this view

Nov 3, 2014, 11:52 PM
26 Posts
That means your response value is wrong.
It means the document you think you are creating the reference to is not the one you expect.

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