Menno Janssen
02/22/2019, 6:28 PMKris Jones
02/22/2019, 6:29 PMNetsuite Search Export
extension for chrome - it will give you the correct SS1.0 or SS2.0 code for both the search and parsing the results with .each()
- it also helps you figure out some of that stuff in the futureKris Jones
02/22/2019, 6:30 PMMenno Janssen
02/22/2019, 6:33 PMKris Jones
02/22/2019, 6:41 PMtransform-es2015-modules-amd
plugin and am not able to get it just right
if I do something like import { record } from 'N/record'
it transpiles to
define(['N/record', 'N/search', 'N/xml'], function (_record, _search, _xml) { ... });
and prefixes all of the record, search, xml
variables with _record, _search, _xml
, so the output looks a little like
_record.record.load({ ... })
Kris Jones
02/22/2019, 6:50 PMimport record from 'N/record';
then any exported functions (e.g., render
for a portlet) just need to have the export
keyword before the function declaration:
export function render() { ... }
Neal Kivi
02/22/2019, 6:56 PMHubert
02/22/2019, 7:02 PMFail to evaluate script: org.mozilla.javascript.EcmaError: ReferenceError: "WeakMap" is not defined. (/SuiteScripts/lib/sweetalert2.all.min.js#1)
on production, on sandbox it is working. Did anyone have this issue ?Hubert
02/22/2019, 7:10 PMsterling_rose
02/22/2019, 7:43 PMKris Jones
02/22/2019, 7:44 PMtype: 'customrecord_xxx'
Kris Jones
02/22/2019, 7:44 PM<http://search.Type.xxx|search.Type.xxx>
sterling_rose
02/22/2019, 7:47 PMsterling_rose
02/22/2019, 7:48 PMana-mg
02/22/2019, 8:07 PMana-mg
02/22/2019, 8:08 PMana-mg
02/22/2019, 8:08 PMjkabot
02/22/2019, 8:09 PMana-mg
02/22/2019, 8:09 PMjkabot
02/22/2019, 8:13 PMjkabot
02/22/2019, 8:13 PMana-mg
02/22/2019, 8:13 PMana-mg
02/22/2019, 8:53 PMjkabot
02/22/2019, 9:09 PMmikej
02/23/2019, 12:57 AMmikej
02/23/2019, 12:57 AMPaper Plane Netsuite Group
02/23/2019, 5:00 AMJonathan Haggard
02/23/2019, 9:45 PMbattk
02/24/2019, 1:05 AMHow User Events are Executed
help topicbattk
02/24/2019, 1:05 AMUser event scripts cannot be executed by other user event scripts or by workflows with a Context of User Event Script. In other words, you cannot chain user event scripts. You can execute a user event script from a call within a scheduled script, a portlet script, or a Suitelet.