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



May 17, 2011, 7:37 PM
170 Posts

Re: yes it is, using onComplete

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 4
 But this only explain how to use oncomplete in clientside script.
I want the oncomplete to execute after a SSJS. 
May 18, 2011, 10:43 AM
7 Posts
Re: yes it is, using onComplete
Event onComplete executes if the SSJS code has completed successfully.
So it's exactly what you are looking for - as Tim pointed out. 
May 18, 2011, 2:59 PM
47 Posts
Re: yes it is, using onComplete
 One of your divs will be the refresh target of the onclick event, so that one is taken care of. SInce the SSJS cannot 'push' a refresh to the second div, you have to make the client ask for it. The oncomplete code will execute once the refresh of the first div is complete and that's where you want to do a XSP.partialRefreshGet("clientside id of second div").
 
Rich 

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