This message was deleted.
# suitescript
s
This message was deleted.
b
you get one client script per suitlet, you overwrote the first with the second
h
@battk ohh....so how do we have two buttons doing two different things?
b
make the object you return in your client script have more functions
h
@battk yes it works, tysm 😄 . May i ask one more question: how do we attach a MapReduce script to a button?
b
you wouldnt
you would use the N/task Module to trigger the map/reduce, and its only available serverside
that usually means a submit button, though you can make a https request to the internal url of the suitelet instead if you really wanted to use buttons
h
Users really want to have these two buttons doing totally two different things. So I guess I'll give the https request a try. Thanks a lot for you help
z
Could you please share the part of code how do you "attach two client script"
And why you just don't make ONE client script with all functions inside that script?
👍 1