Can I use an SSJS function if I call an XSP.partialRefreshPost in Client? Where should I define this SSJS function - directly in XSP.partialRefreshPost or in the refreshed object? Maybe all the steps above are wrong and I should use pure AJAX? The main idea is to send data from client to server via button without using any SSJS in this button, only CSJS
Asked
Active
Viewed 569 times
2 Answers
2
Does the question How do I call an SSJS method with parameters from JavaScript cover your answer?
Brad Ballasaitis has also blogged about accessing the parameters from a partialRefreshGet, but the concept and implementation should be the same from partialRefreshPost.

Community
- 1
- 1

Paul Stephen Withers
- 15,699
- 1
- 15
- 33
-
Not exactly. All this articles describes how to send parameters to server. But I need the article (or example) how to handle this parameters on the server after they've been sent to it. (for example - where should I use function - doStuff( param.key ) if I refresh only a single object on the page and not the entire page). Method "executeOnServer" is quite suitable, but it is a kind of a hack. I thought that there are more "legal" methods :) – Dexter May 27 '15 at 14:32
0
Two suggestions - if you want to do it manually, refer to this post on xpages.info
Or
Look into the XPages JSON RPC Service component

Jeremy Hodge
- 1,655
- 9
- 8
-
Thank's for links :) I am also looking in the direction of REST Services – Dexter May 28 '15 at 06:20