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
Rehan
02/07/2019, 7:51 PM
@creece how do I go about getting the current records information from a custom function on the client script?
c
creece
02/07/2019, 7:53 PM
on a client script you can use the N/currentRecord module
r
Rehan
02/07/2019, 7:54 PM
oh ok
Rehan
02/07/2019, 7:56 PM
Thanks
e
Eric B
02/07/2019, 8:33 PM
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
jen
02/07/2019, 8:41 PM
See the details in SuiteAnswers 51496
jen
02/07/2019, 8:41 PM
Depends if it’s an entry point client script or not