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



Dec 13, 2011, 2:51 PM
6 Posts
topic has been resolvedResolved

Opening a document loses the currently selected tab/navigator

  • Category: Extension Library
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 4
Hi,
 
I'm currently working on the general UI of my application using the "Application Layout" custom control in the 8.5.3 Extension Library. So far things are working - when you select a navigation menu link, it gets properly highlighted and it opens up the corresponding view. When I switch to a new tab, the proper tab gets selected properly as well. Tab refers to the links defined in the Title Bar of the Application Layout custom control
  
The problem however is when I start to open a document for viewing/editing. The document is opened using another XPage, lets call it formXpage, which also uses the Application Layout custom control. However when using this custom control, I would need to select a navigator for the "LeftColumn" editable area. But the thing is that obviously I would want to still show the currently selected navigator menu link under the currently selected tab. Any tips on how I can proceed?
 
Thanks! 
 
-Erik 
 
 
 
  
Dec 14, 2011, 8:47 AM
261 Posts
Re: Opening a document loses the currently selected tab/navigator
Erik,
 
You can accomplish what you want by using the navigationPath attribute of the application layout control.
 
If you set in on every page you open, you can determine what menu item/ tab to highlight by using the selection attribute of every treenode in a navigation control. The selection attribute is a regular expression.
 
You might want to have a look at the Extension Library sample database for an example.
 
Mark
Dec 15, 2011, 12:47 PM
6 Posts
Re: Opening a document loses the currently selected tab/navigator
Hi Mark,
 
Thanks for trying to answer my query. I think I was not able to properly explain my situation. It's actually better explained if I'm able to show you what I mean.
 
But anyway, thanks for the lead on the navigationPath property. I'll look into this and see how this can help.
 
Any leads on any documentation about all these properties of the Extension Library?
 
Thanks!
 
-Erik 
Dec 15, 2011, 3:01 PM
6 Posts
Re: Opening a document loses the currently selected tab/navigator
Hi Mark,
 
I just spent another 5 hours doing further testing and researching on this "navigationPath" and "selection" properties.
 
And voila! I finally got it working the way I wanted it to!
 
Thanks again Mark! 
 
-Erik 
Dec 16, 2011, 10:44 AM
261 Posts
Re: Opening a document loses the currently selected tab/navigator
Hi Erik,
 
Glad I could help.
 
Regarding the documentation issue I just figure stuff out by looking at the demo application that's shipped with the Extension Library.
 
I also know that a couple of people are working on a book about the ExtLib. It isn't finished yet though. See http://www.amazon.com/XPages-Extension-Library-Step-Step/dp/0132901811
 
Mark
 
 
 
 

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