UE -> Add Button w/ function call (including or...
# suitescript
c
UE -> Add Button w/ function call (including or not the parameter).. I usually call this my "handler" method like onApproveButtonClickHandler -> Attach client script CL -> has the onApproveButtonClickHandler method which calls a library module w/ the actual logic you are implementing to keep it all clean
r
@creece how do I go about getting the current records information from a custom function on the client script?
c
on a client script you can use the N/currentRecord module
r
oh ok
Thanks
e
I haven’t been successful getting currentRecord from N/currentRecord module to work in a client script so I use this instead…var param = context.currentRecord.getText({fieldId:‘custpage_param’});
j
See the details in SuiteAnswers 51496
Depends if it’s an entry point client script or not