(Be mindful with how much you are doing on the client script click. Governance on a client script is much much lower than on a server script. Anything with a dynamic data volume is best done on the server. You could have your client script call the suitelet again but with another entry point / action command as a URL parameter.)
g
ganoo7
06/25/2019, 12:21 AM
@ANHE Thank you. so i have sublist data that i need to process and write it to back on to the sublist lines on the form when a user clicks the button. so what should i return here?
a
ANHE
06/25/2019, 12:26 AM
You should be able to iterate the lines in the client script. You should be able to do what you want and rewrite, but be mindful of the lines.
ANHE
06/25/2019, 12:27 AM
You might need to POST to the SL and read its body to render changes? Again, the suitelet looks at a URL param in the get or post to figure out what you want and what the response might be.
g
ganoo7
06/25/2019, 12:41 AM
thanks @ANHE will try.
a
ANHE
06/25/2019, 2:42 AM
You can do it!
g
ganoo7
06/25/2019, 11:09 PM
@ANHE thanks, how do i POST data to SL via client?