netsuite - Action on form.addButton in suitelet 2.0 -


i trying add custom button in suitelet 2.0 , want action performed on click of button.

i tried doing same this

form.addbutton({                 id : 'reset',                 label : 'reset',                 functionname: 'setbutton'                 }); 

but doesn't action.

you need include function in clientscript file , attach clientscript form with:

form.clientscriptfileid = 32;


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -