PermaLink Lotus Component Designer - binding to multiple datasources01/29/2007
Lotus Component Designer
I'm home now in Pennsylvania.  I miss the warmer weather already.  It's 15 degrees here.  My presentation went well and I enjoyed it.  I participated in the Gurupalooza afterwards.  It was alot of fun to be a part of.

I worked on the plane on a Lotus Component Designer technique for updating multiple documents within a single document.  I demoed a similar technique in my lotusphere session by using XML child elements within a document.  The issue here is how to do the same thing except with any collection of documents.  It could be response documents, or documents that meet some criteria.  The problem is that these documents come from various data sources.  When using XML child elements they are from the same datasource, the current document.

 I met with the LCD dev. team in the "meet the developers" room and they showed me an example of how to do this.  By using the Repeat control and repeating the Panel control, you can bind your data to multiple datasources.  Your fields would then be placed within the panel control.  The Panel control has properties for data sources the same as a page does.  Then by issuing  a "save()" to save all datasources, as opposed to a "document.save()",  the tool collects all the data and updates the appropriate bound documents.  You can also use the "Save Data Sources" simple action.  

Here's some screen shots.  You can download this sample LCD component from here:

Portlet screen shot:
"LCDRepeatScreenShot.GIF"

Repeat control settings:
"lcdrepeat1.gif"

Panel control settings:
"lcdpanel1.gif"


Technorati:
This page has been accessed 56 times. .
Comments :v
No comments.
Search
Partner with us
Need help on your XPages projects?

Talk to the experts! Read more...
XPage Examples
By Category
About Me
Downloads
My Links
Monthly Archive
Powered by
Blogsphere
Lotus Domino ND7 RSS News Feed RSS Comments Feed Geo URL netcraft RSS Validator Lotus Geek Chris. A. Brandlehner OpenNTF BlogSphere