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



Jan 17, 2012, 11:00 AM
21 Posts

Dynamic Content and Paging

  • Category: Extension Library
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: dynamic content pager partialrefresh
  • Replies: 2
Hello,
 
I have an issue with the dynamic content control from the ext library. I have main layout for my website where I have defined a <xe:dynamicContent element. In this element I defined various facets containing custom controls. Switching between the controls is done using a sessionscope variable.
 
Now I came across the following situation. On one of the custom controls which is loaded inside the dynamic content control I have a nested control with the viewpanel on it. Whenever I click on a link a sessionscope var is set to the facetname that should be used. In the custom control containing the dynamic content I conduct the following on beforerenderresponse event:
 
var c = getComponent("dynacontent")
c.show(sessionScope.currentFacet)
 
This seemed to work until I added a pager control in the custom control of one of the facets. Whenever I click on the pager links (next, previous etc..) the view is suddenly.. gone?
 
Is there someone who understands the issue and could assist me with finding solution?
Jan 17, 2012, 11:28 AM
21 Posts
Re: Dynamic Content and Paging
I solved the issue by removing the c.show() code from the beforerenderresponse event and adding it directly to the navigation controls. But i dont fully understand now why it works. Can someone explain to me why it does work now?
Jan 23, 2012, 2:59 PM
38 Posts
Re: Dynamic Content and Paging
  In the beforerenderresponse event the component to is possibly not available yet. So that's why it will work in the navigation control.

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