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



Feb 23, 2011, 2:11 PM
13 Posts

Xpage 8.5.1 development concern and advice required.Thanks.

  • Category: Other
  • Platform: Windows
  • Release: 8.5.1
  • Role: Developer
  • Tags: window.close() in 8.5.1,multi datasources join in xpage,FT search in attachment.
  • Replies: 6
Hello, 

I am developing an xpage application to show data from 2-3 databases.The main xpage will have option to search document also from these 2-3 database and search is like key combination and it should check the words in attachment also.Mine concern's are as below.Could you help me with design advice.Production server recently migrated to 8.5.1 so cannot move to 8.5.2 so soon.
 
1>I am trying to use window.close() in 8.5.1 as exit label/button code on main xpage top right but seems window.close() don't won't work in 8.5.1 client,require any piece of javascript/script code and placeholder for closing main xpage in client,as in IE window.close() work for 8.5.1
 
 
2>Xpage in which I trying to show data from two database in a single view,I tried using tabbed table and display two views in two tab of table which is not useful for customer then I used a data table in which i cannot attach pager as pager need to be attached to single repeat and I have used two repeat to display data from two db views.Can anyone help me with workaround to display data from 2 -3 db's on a single xpage view and that also in merged way as view will have categories.My dev is in 8.5.1

3>Search functionality which I have developed in Xpage ver 8.5.1,but I am not able to display document from other db's containing a keyword in the attachment.I am using partial refresh and have placed the view in the panel and refreshing panel,I wanted FT search technique to search even keyword in the attachment and bring it up in the search view.I require some workaround help to search in 2-3 db's even in attachment and bring them in a single xpage view or data table ,also I am trying to configure the db so no design change is required even if no's of db increased.
 
Thanks. 

Feb 23, 2011, 4:05 PM
13 Posts
Re: Xpage 8.5.1 development concern and advice required.Thanks.
 on number 1, make sure window.close() is in the client side script block
Feb 23, 2011, 5:19 PM
13 Posts
Re: Xpage 8.5.1 development concern and advice required.Thanks.
Yes Mark i tried window.close() in client side script but failed on web IE it works as desired...I am developing in 8.5.1 even i tried self.close() in client no success.
Feb 23, 2011, 4:07 PM
13 Posts
Re: Xpage 8.5.1 development concern and advice required.Thanks.
 on number 2, is there a key to tie the two views together?  like could you have view1 in column 1,2,3 and column 4 do a dblookup to the second view to get those values
 
it is kind of like a sql join, and xpages does it quite well. 
Feb 23, 2011, 5:22 PM
13 Posts
Re: Xpage 8.5.1 development concern and advice required.Thanks.
Mark the data is huge in repositories with  numerous documents and documents has attachments, even i implemented the code to check if db1 size is > 10GB switch the save to db2,so assuming this dbllookup will work ? it has size limitation to pull data and pose in view.
Feb 23, 2011, 4:49 PM
122 Posts
Re: Xpage 8.5.1 development concern and advice required.Thanks.
On window.close() in the Notes Client, that support was only added in 8.5.2, see here http://xpagesblog.com/xpages-blog/2010/7/15/whats-new-in-852-for-xpages.html
This will be a useful reference point for you to see if any functionality desired is included in 8.5.2 and may help build a business case for upgrading. 
 
For merging contents from a view, one method would be to build two separate NotesDocumentCollections in SSJS (Server-Side JavaScript) and join them - there should be an option for this. You won't have sorted results, but you can't currently get that in XPages anyway. The resulting single NotesDocumentCollection can then be used as the source for a repeat control.
If you're feeling brave, you could extract just the NotesItems you require and NotesIDs into an array of Javascript objects, and use that as the source. If you're very adventurous, you could use Java beans. Either way, it's worth testing with large searches to check and address performance.
 
For the FTSearch, are your Full-Text index options set to incude attachments? How about using a repeat / loop to get keyword documents for the databases you want to search over?

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