Zoran Roncevic
03/25/2021, 9:32 AMSelcuk Dogru
03/25/2021, 10:39 AMZoran Roncevic
03/25/2021, 10:45 AMSelcuk Dogru
03/25/2021, 11:12 AM<#assign fieldData = record.custrecord_field_id?replace("<", "<")?replace(">", ">")>
${fieldData}
Selcuk Dogru
03/25/2021, 11:13 AMZoran Roncevic
03/25/2021, 11:32 AMZoran Roncevic
03/25/2021, 11:32 AMZoran Roncevic
03/25/2021, 11:33 AMconst beforeLoad = (scriptContext) => {
newRecord = scriptContext.newRecord;
newRecord.myobject = '[{"kljuc" : "Vredmost"},{"kljuc2" : "vrednost2"}]';
newRecord.setValue({
fieldId : 'custbody_rdata_inline_html',
value : '<p>Text</p>'
})
Zoran Roncevic
03/25/2021, 11:34 AMZoran Roncevic
03/25/2021, 11:38 AM<#assign beer_json_string = '{ "name": "Imperial Stout", "description": "Tasty Stout Beer"}'>
${beer_json}
<#assign beer_map = beer_json_string?eval>
<p>
${beer_map.name}
</p>
and it works, I got beer name as output, NetSuite print "Imperial Stout"
But PDF designer DOES NOT accept if I replace fixed string with invoice custom field ... Some strange errors šSelcuk Dogru
03/25/2021, 11:42 AMWatz
03/25/2021, 7:39 PMWatz
03/25/2021, 7:43 PM