i have a `object resultData = { .......... }` in s...
# suitescript
r
i have a
object resultData = { .......... }
in suitelet when i click submit i want this data, i tried
Copy code
var resultdata = context.request.parameters.resultData;

      log.debug({
        title: 'resultdata',
        details: resultdata
      })
nothing
b
the context of the suitelet code is not shared with the clientside form
r
i dont get it
b
suitelets run on netsuite's server
client scripts run on your browser
they dont have access to each other's variables
r
ok then how do i get this data in POST, do i have to create a field and store and then get it?
b
yes, making a field is the most obvious way to pass data
r
but isnt there any other way?
b
there are less obvious things like creating records or using cookies
you probably want to explain whats wrong with a field
r
nothing wrong, i just wanted to try a different approach if nothing anyway i have go with that, do you have a link i can refer to for it?
b
cookies are a javascript thing
you can use your favorite search engine for those
r
actually turns out i am setting the the data on my suitelet.. data is pretty big and using longtext limit .. so
b
first choice is probably uploading a file instead
second choice is putting the data on a custom field, which has a more generous limit
if you are building the data, you may potentially want to use multiple fields
r
maybe through javascript
creating a file for every search is insane
and multiple fields.. maybe in for loop i can create and keep adding my data to it?
this is seems impossible now
b
if its a search, you probably want to run the search in the suitelet instead