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 25, 2011, 9:55 PM
31 Posts

problem with partial update..

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 1
Hi,
 
Here´s the scenario:
 
I have an xpage with a 2 column layout. Left column is a panel containing a view component.
Right column is a panel containing a tab panel with 5 tabs.
On tab 3 there´s a button which opens a dialogbox. The dialogbox has some input fields and a Save button.
The Save button executes some SSJS (which works fine) + a Partial update of the view id.
This however result in an Exception: Invalid component id navigationPanel for partial refresh

If I change the Partial update to a Full update it doesn´t fail, but the update is not working as expected.
When the Save button is clicked, nothing happens. But when I click on another tab in the tab panel the update is triggered..

So, can anyone tell me how to get around this problem of mine ? What I would like is ofcourse to do the partial update only.
But a full update is also ok as long as I don´t have to click on another tab to trigger it..

BTW how can I switch tab using JS ? (SSJS or CSJS)
 
Any help would be greatly appreciated ! Thanks !

regards,
Petter
Mar 28, 2011, 9:15 AM
33 Posts
Re: problem with partial update..
In terms of performance, look and functionality, I have started using the DojoTabContainer.  This allows for you to set a default tab on load, make a tab closable and (what you were asking for) programatically selectable.
 
This can be done using CSJS and works really well. 
 

var side = dijit.byId("<id of tab container>");

side.selectChild("<id of tab>");

 
 
 

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