Hi, Dumb question, Does a suitelet trigger a clien...
# suitescript
h
Hi, Dumb question, Does a suitelet trigger a client script? I have a suitelet and it does not trigger the client script, I triple checked the context settings on the client script deployment and the "suitelet" option is selected. TIA! Suitelet code: var recObj = record.load({id:"920564",type:"salesorder", isDynamic: true}); log.debug("record",recObj.toJSON()); recObj.setValue({ fieldId: 'class', value: 1, ignoreFieldChange: false, forceSyncSourcing: true }); recObj.save({ enableSourcing: true, ignoreMandatoryFields: false });
b
client scripts only trigger for a form displayed in the browser
🎯 1
n
thisline
b
loading a record and then trying to trigger a client script on the record will fail, primarily because that loaded record has no form to show in the browser
🎯 1
h
@battk you are absolutely right 🤦 it's late...
I have some line "calculations/customizations" that are done by the client script and since I am going to be adding lines using assistant (suitelet) I wanted to "keep logic in one place". I need to do some refactoring then. Thank you!