[SOLVED] Passing Data to JavaScript Addin

ozenineozenine Member Posts: 19
edited 2020-09-17 in NAV Three Tier
Hi Guys,
We are starting with the Adding development and I was wondering what is the preferred way of passing a lot of data to JavaScript addin. Sure, passing single variables is simple, but what about something like an array? How about a record?
Any help is appreciated.
Thanks

Answers

  • manjumanju Member Posts: 19
    As far as I know, we can pass data as JsonObject and JsonArray. Please let me also know if you have got any other inputs for this query :)

    Thanks,
  • ozenineozenine Member Posts: 19
    Sounds interesting. I will search for manual creation of the JSON strings from NAV. My concern is that the NAV Text variable is only limited to 1024 characters, which now will include structural elements of JSON.
    My other idea is to make a string with a delimiter and then parse it in JavaScript. It is not pretty....
  • ftorneroftornero Member Posts: 524
    Hello @ozenine ,

    I don't know what NAV version are you using but since NAV 2013 the Text variables have not limit, at least not 1024 characters.

    Regards
  • JJMcJJMc Member Posts: 60
    Don't hesitate................. JSon
  • ozenineozenine Member Posts: 19
    Thanks guys. Feel dumb. I guess I missed the fact that Text became unlimited. Now it makes sense.
Sign In or Register to comment.