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 29, 2011, 10:39 AM
38 Posts

Trigger partial refresh via SSJS Code

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: xpages
  • Replies: 3
Can you trigger partial refresh from SSJS code? Also can you trigger partial refresh on more than one elements on XPage?
 
Regards, 
Naveen 
Mar 29, 2011, 2:42 PM
2 Posts
Re: Trigger partial refresh via SSJS Code
Navenn,
 
I don't know of anyway to call a partial refresh directly from ssjs , but what you can do is use the onComplete property in the event handler of a partial refresh and use XSP.partialRefreshPost to refresh some additional part of the page.
 
Looks like this in the source and goes between the event handler tags. You can also nest other partial refreshes in the oncomplete event (covered in the link you referenced).
 
<xp:this.onComplete><![CDATA[XSP.partialRefreshPost([id to refresh])]]></xp:this.onComplete>
 
 

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