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



Sep 14, 2011, 6:30 PM
66 Posts

Run code/partial refresh a panel onclick of a Pager Control link

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 1
I have a pager attached to a repeat control and it appears that there are no events available with the Pager Control in XPages.
 
What I'm wanting to do is to partial refresh a panel before the pager switches to the next page. (I have a repeat setup to only show 1 "row"). Is there anyway this can be done?
 
Any thoughts are appreciated.
Sep 14, 2011, 7:53 PM
66 Posts
Re: Run code/partial refresh a panel onclick of a Pager Control link
 I've found if you set the "Pager style" to "Custom", you can add <xp:pagerControl> controls which have onclick events associated with them. However, I cannot get any event (client or server) to fire off.
 
  <xp:pager id="pager1" for="repeat1">
<xp:pagerControl id="pagerControl1" type="Next">
<xp:eventHandler event="onclick" submit="false">
<xp:this.script><![CDATA[alert("hello");]]></xp:this.script>
</xp:eventHandler>
</xp:pagerControl>
</xp:pager>
 
The "hello" alert box does not show onclick of the "Next" link in the pager control. Am I missing something? 

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