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



Mar 31, 2011, 8:55 PM
7 Posts

Extension Library - Help with Page Navigator and DominoViewListTreeNode

  • Category: Extension Library
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 2

I created a Page Navigator and I'm using the DominoViewListTreeNode to get the list of view from my Db.

The question is How can make each Label(View) clickeable with the corresponding view name?

 

I figured it out that using href property I can specified a XPage to open but it applies to all views being displaying in the Outline.

 

Regards,

 

Pablo

Apr 2, 2011, 8:49 AM
7 Posts
Re: Extension Library - Help with Page Navigator and DominoViewListTreeNode
Here is a sample code that should work for you: 
 
 <xe:navigator id="navigator1">
<xe:this.treeNodes>
<xe:dominoViewListTreeNode var="viewEnt"
href="#{javascript:viewEnt.getName();}">
</xe:dominoViewListTreeNode>
</xe:this.treeNodes>
</xe:navigator>
 
 
1) Set the var attribute (ex: viewEnt) - so you get a handle on the NotesView object 
2) In the href set it to  viewEnt.getName();
 
You can expand this example and use an XPage with "Dynamic View Panel", which
show the view that is specified in the URL. So the href parameter could be: 
 
"xpView.xsp?view="+viewEnt.getName(); 
Apr 7, 2011, 11:08 AM
7 Posts
Re: Extension Library - Help with Page Navigator and DominoViewListTreeNode
Thanks for your response.
I'm now able to get the selected value using 'var'  and 'href'
 
I have the following code in href:

sessionScope.v01 = vView.getName();
print("Selected view = " + vView.getName());
"xHome.xsp"
 
I'm trying to open my xHome.xsp XPage which has a dynamicViewPanel with v01 (sessionScope) as viewName.
 
The problem is that sessionScope variable is not being set when user selects the option from Navigator.

If I check the Log I can see that only is executed when page loads:
 
Selected view = All Documents
Selected view = By City
 
The result of this is that v01is always set with the value of my last node (By City)
 
How can set a scoped variable instead of adding the value to the URL?

Thanks in advance

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