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 21, 2011, 10:21 AM
31 Posts

Problem with dialog and multiple data sources..

  • Category: Extension Library
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 1
Hi all !
 
I'm using the Dialog control to display a panel (panelFeedback) containing a feedback form.
The panel (panelFeedback) has a data source (documentFeedback) with default action: Create document
Inside the panel there's a button which when cllicked does a documentFeedback.save()
 
This Dialog is on an Xpage which has another data source (documentUserStory).
The data source has default action: Open Document
 
When I click on the button to save documentFeedback data source, the documentUserStory data source is saved.
Fields which are bound to the documentFeedback data source is saved to the documentUserStory data source (the document I'm viewing in read mode)
 
Any ideas to how to get this working ? My goal here's to be able to open a document in read mode, show a dialog when a button is clicked and let the user input values into multiple fields in the dialog.
When the save button is clicked, and new document (with a different form than the one I'm viewing) should be created.
 
Any information / tips / links / examples / solution would be greatly appreciated !!
 
Best regards,
Petter Kjeilen
 
 
Sep 27, 2011, 1:51 PM
3 Posts
Re: Problem with dialog and multiple data sources..
  What about using custom control instead panelFeedBack or try
<!— two data sources pointing to the same form —>
<xp:this.data>
<!— only requestParamPrefix and var properties differ —>
<xp:dominoDocument var=”document1” formName=”MainTopic”
computeWithForm=”both” action=”editDocument”
requestParamPrefix=”first”>
</xp:dominoDocument>
</xp:this.data>
<xp:this.data>
<xp:dominoDocument var=”document2” formName=”MainTopic”
computeWithForm=”both” action=”editDocument”
requestParamPrefix=”second”>
</xp:dominoDocument>
</xp:this.data>
 
 
http://localhost/Chapter7.nsf/myTopicX2.xsp?firstdocumentId=9F2&se
conddocumentId=96a 

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