Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Lotus Quickr Forum

Lotus Quickr Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


Nick Connors 17.Aug.12 01:49 PM a Web browser
Application development 8.5.1 (Lotus Domino) All Platforms


We ran into an issue recently when we enabled the folder navigation feature that was returned to the 8.5.1 QD product. According to the instructions, the following applied to us as we do have several entries extending the widget registry:
2b. If this file is not empty, you will have to merge the contents of the file widgetRegistryConfig_ext.js_FOLDERNAV into widgetRegistryConfig_ext.js. widgetRegistryConfig_ext.js_FOLDERNAV is located in the same directory as the widgetRegistryConfig_ext.js file.

So all we should have to do is add these 2 objects to our registry:

{
type: 'globalreplace',
source: 'quickr.widgets.view.library',
use: 'qext.foldernavigator.view.library_foldernav'
}
,
{
type: 'globalreplace',
source: 'quickr.widgets.view.index',
use: 'qext.foldernavigator.view.index_foldernav'
}

However, we have a custom view that shows image thumbnails instead of the default simple list format. We enable this view widget to users of any place by just checking the foldername to see if it contains "Photos" in the name. If it does, then the thumnails view is used. If not, the standard view style is used. I know, high tech, right? So our widget extension registry had this entry already:

{
type: 'view',
condition: "(object.entry.fields.h_Name.indexOf('Photos') != -1)",
use: 'qext.widgets.view.photoLibrary'
}

When we merged the folder navigation into our file, regardless of the order, our custom view would no longer work. Apparently the 'globalreplace' must take precedence over anything else. We were able to fix the issue, so I figured we share it in case any of you run into the same issue.

Peeking into the widgetRegistryConfig.js files (not the _ext version), we could see all of the entries that set the quickr.widgets.view.library and quickr.widgets.view.index view widgets to start. These were subsequently being overridden by the foldernav global replace. So our solution was to just set all of these view types directly to foldernav, therefore bypassing the need to global replace anything. So the portion of our widgetRegistryConfig_ext.js that deals with views now looks like this:

{
type: 'view',
style: 'h_Index',
use: 'qext.foldernavigator.view.library_foldernav'
}
,
{
type: 'view',
style: '1',
use: 'qext.foldernavigator.view.library_foldernav'
}
,
{
type: 'view',
style: '5',
use: 'qext.foldernavigator.view.library_foldernav'
}
,
{
type: 'view',
condition: '(object.entry.fields.h_FolderStyle=="h_DocPublishLog" || object.entry.fields.h_FolderStyle=="h_DocPublishErrorLog")',
use: 'qext.foldernavigator.view.library_foldernav'
}
,
{
type: 'view',
style: '7',
use: 'qext.foldernavigator.view.library_foldernav'
}
,
{
type: 'view',
condition: "(object.entry.fields.h_Name.indexOf('Photos') != -1)",
use: 'qext.widgets.view.photoLibrary'
}

All folders now display properly. Folders with "Photos" in the name use the custom thumbnail view, and all other simple folders now have the folder navigation.

- Nick






Enabling Folder Navigation with Cus... (Nick Connors 17.Aug.12)
. . RE: Enabling Folder Navigation with... (Nick Connors 28.Aug.12)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow