Thanks. Its a forum typo error.
In querysave event, there is only SSJS option available. Each time (on executing each line), it hits the server and there are chances of server going down.
I shall check on the other options. Possible, could you pls let me know, how to pull information from a scoped variable.
Eg: I have a computedField1 and write my computation in Javascript and set the value of a field in a document using,
document1.replaceItemValue("fieldname", getComponent("computedField1").getValue());
In this case, when I make use of scoped variable, where do I make the Javascript computation and set it to a scoped variable.