jen
05/19/2021, 5:24 PMFail to evaluate script: {"type":"error.SuiteScriptModuleLoaderError","name":"UNEXPECTED_ERROR","message":"","stack":[]}
battk
05/19/2021, 6:34 PMjen
05/19/2021, 8:19 PMSteffen Andersland
05/19/2021, 8:21 PMjen
05/19/2021, 8:21 PMSteffen Andersland
05/19/2021, 8:24 PMSteffen Andersland
05/19/2021, 8:24 PMjen
05/19/2021, 8:26 PMjen
05/19/2021, 8:26 PM/**
* cf_worksheet_ss2.js
*
* @NApiVersion 2.1
* @NScriptType ClientScript
*
* Custom Form Script for Worksheets
*
* Currently in use for the UAV (testing) and HVR (testing) Worksheets
*
* Last modified 2021-03-03 JB
*/
define(['N/query'],
function(query) {
function fieldChanged(context) {}
return {
fieldChanged: fieldChanged
};
});
jen
05/19/2021, 8:26 PMjen
05/19/2021, 8:26 PM/**
* cf_worksheet_ss2.js
*
* @NApiVersion 2.1
* @NScriptType ClientScript
*
* Custom Form Script for Worksheets
*
* Currently in use for the UAV (testing) and HVR (testing) Worksheets
*
* Last modified 2021-03-03 JB
*/
define(['N/record'],
function(record) {
function fieldChanged(context) {}
return {
fieldChanged: fieldChanged
};
});
jen
05/19/2021, 8:26 PMN/record
moduleSteffen Andersland
05/19/2021, 8:29 PMjen
05/19/2021, 8:30 PMSteffen Andersland
05/19/2021, 8:30 PMjen
05/19/2021, 8:30 PMrustyshackles
05/19/2021, 8:36 PMN/record
and not N/currentRecord
?jen
05/19/2021, 9:43 PMmichoel
05/20/2021, 2:35 AMmichoel
05/20/2021, 2:35 AMThe urgency level assigned to your defect is U3. U3 issues are treated as priority work by NetSuite Product teams during business hours.
michoel
05/20/2021, 2:35 AMmichoel
05/20/2021, 2:38 AMexports.selectRebateAccrual = async () => {
// There seems to be a NetSuite bug including N/currentRecord as a dependency to the script, leading to following error
// when attempting to upload the file:
// - There was a problem when uploading the file. Details: Fail to evaluate script: {"type":"error.SuiteScriptModuleLoaderError","name":"UNEXPECTED_ERROR","message":"","stack":[]}.
// As a workaround, use local require
const requirePromise = (module) => new Promise((resolve) => require([module], resolve));
const currentRecord = await requirePromise("N/currentRecord");
// use currentRecord module here...
}
jen
05/20/2021, 2:40 PMtuli
05/25/2021, 4:25 PMmichoel
05/25/2021, 9:03 PMjen
05/25/2021, 11:43 PMmichoel
06/02/2021, 5:05 AMThis is the update about Defect 624685. Target has been set, which on another e-Fix schedule. Please refer to e-Fix Release Notification (Answer Id: 34424). This is not yet final and it is subject to change. We will keep you posted for any updates.