How to transfer javascript values to suitescript file

var myJSON = JSON.stringify(values);
//console.log(“myJSON”,myJSON)
var service_url = Utils.getAbsoluteUrl(getExtensionAssetsPath(“services/custom.Service.ss”));
//console.log(“service_url”,service_url)

                                        if(!RESALEFILE.name){
                                            jQuery.get(service_url, {
                                                    myJSON: myJSON,
                                                    sender: this.sender,
                                                    recipient: this.recipient,

iam trying to resolve this issue by using this code..by adding this code in to view but i get more errors..not getting expected answers…

2 comments

  1. For passing values from javascript to suitescript filess, we need to use service calls
    For getting values from service controllert, “get” method is used.
    For sending values to service controllert, “post ” method is used.

    What is the error occuring, when using this code?
    Are the variables used here defined?

Leave a comment

Your email address will not be published. Required fields are marked *