1
votes

I have an event handler on a button that runs some SSJS code which updates a viewScope variable. I am using partial refresh and have selected the ID I want to refresh. However, in the onComplete event of the event handler I want to update another ID. The onComplete event appears to only accept SSJS. How do you add CSJS to the onComplete event?

1

1 Answers

3
votes

The onComplete event (as well as onStart and onError) accepts csjs, not ssjs. So you should be able to add an XSP.partialRefreshGet() call which will perform a partial refresh after your initial partial refresh.