Azi
05/25/2021, 3:31 PMSandii
05/25/2021, 3:39 PMSandii
05/25/2021, 3:41 PMAzi
05/25/2021, 3:43 PMCorey Schwoebel
05/25/2021, 3:53 PMAzi
05/25/2021, 4:04 PMvar record, curecModule, currentRecord, search, query, runtime, xml, format, email, https;
require(['N/record', 'N/currentRecord', 'N/search', 'N/query', 'N/runtime', 'N/xml', 'N/format', 'N/email', 'N/https'],
function (r, c, s, q, u, x, f, e, h, q) {
record = r
email = e
currentRecord = c.get()
search = s
runtime = u
xml = x
format = f
curecModule = c
https = h
R = ramda
dms = dmsearch
query = q
console.log("2.0 Modules Loaded!");
});
Azi
05/25/2021, 4:05 PMAzi
05/25/2021, 4:05 PMSandii
05/25/2021, 4:07 PMrequire(['N/query'], function (query) {
window['query'] = query;
})
see if that worksSandii
05/25/2021, 4:08 PMq
in the function call twiceSandii
05/25/2021, 4:09 PMfunction (r, c, s, q, u, x, f, e, h, q, ramda, dmsearch)
Azi
05/25/2021, 4:09 PMAzi
05/25/2021, 4:14 PMbattk
05/25/2021, 4:51 PMrequire(["N"], function (N) {
Object.assign(window, N);
});
battk
05/25/2021, 4:52 PMbattk
05/25/2021, 4:53 PMAzi
05/25/2021, 5:39 PMAzi
05/25/2021, 7:00 PMrequire(['N'], N => Object.assign(window, N))