How do i apply a client script function to a suite...
# suitescript
c
How do i apply a client script function to a suitelet sublist button. I cant use a normal server-widget button here so i made one out of HTML, to make it appear on the sublist. now im trying to call a client script function on the button, but only getting errors.
n
maybe look in help at list.addButton
c
ill try that Neil 😄
r
just add the button and attach the client script like we would normally. i did this to call search function from client script in suitelet
currentForm.clientScriptFileId = 6083; //Please make sure to replace this with internal ID of the Client script file in the File cabinet         currentForm.addButton({           id: "custpage_testPrint",           label: "Test Suitelet button",           functionName: "CallforSuitelet()"         });
c
Yes that works, but it wont bind to the sublist
I want one button on each line
i already have a clientscript and a suitelet
c
its like this
message has been deleted
i want buttons on each line
but those buttons are HTML buttons and dont work like the usual buttons
and i cant use the normal buttons, i can you .addButton(), but that function does not contain a parameter which specifices which line it should be placed at...
Think ill try to add the HTML button elements, and then give them seperate id's and then fish their DOM value via the client script, and then do my logic there