My Stuff
Comments
-
Ok figured it out! When removing lines you must start with the last line. This was true for SS1.0, I just forgot! // remove existing ATP buckets for (var i = ct-1; i >= 0; i--) { objRecord.removeLine({ sublistId: 'recmachcustrecord_sot_item', line: i, ignoreRecalc: true }); }
-
No luck. Thanks for the suggestion. [COLOR=#0080FF]lapiSetFieldValue('custpage_custrecord_inv_state', 2); [/COLOR] [COLOR=#222222][COLOR=red !important][COLOR=inherit]ReferenceError: selectmap is not defined[/COLOR][/COLOR] [/COLOR] [COLOR=#0080FF]nlapiSetFieldValue('custpage_custrecord_inv_state', 'CA'); [/COLOR]…
-
Looks like you might need to break this into two functions? function saveSOCheck(){ var despatchDueDateValue = nlapiGetFieldValue('custbody_despatch_due_date'); var despatchDueDate = nlapiStringToDate(nlapiGetFieldValue('custbody_des patch_due_date')); var today = new Date(); if ((despatchDueDate < today) &&…
-
Gentlemen, Thanks for taking the time to respond to my post. The work-around was to port the script to a client based script. Long story short, I am doing some pretty hairy calculations which involve rolling up customer defined calculations through a range of years. A search could only get me so far as my solution required…
-
/** *@NApiVersion 2.x */ require(['N/xml', 'N/file'], function(xml, file){ var xmlFileContent = file.load(4732).getContents(); var xmlDocument = xml.Parser.fromString({ text : xmlFileContent }); var xp = '//nlapi:DocuSignEnvelopeInformation/nlapi:EnvelopeStatus/nlapi:Subject'; // really weird!!! WORKS var node =…
-
I'm getting a similar error attempting to upload Suitescripts. Sometimes it works and sometimes it errors out with a similar message. This is a Sandbox environment. I'm NOT seeing the same behavior on other accounts. Any input would be greatly appreciated. Running SuiteCloud 2.3.3
-
Hey I figured this out. The sample on NS help is wrong. You need to use the scriptId in lieu of internal id. Note you could use internal id, but you will need to look up the corresponding numeric id of the field. So this works.... //create an instance of the fields of the custom record $customFieldList = new…
-
To date, I have found a few bugs with SuiteScript 2.0. For those instances where you are leveraging a client script, you can call the SuiteScript 1.0 API by reference of the window object in your 2.0 client script. This technique is not ideal but will get around some of the bugs. util.each(rulesObj.lines, function(field){…
-
Michoel, Wow, you're right the code does work. I figured out that since I was not setting the name property for the file object NetSuite was defaulting to a value of report.pdf for the name. To add to the confusion, the file timestamp was being updated, yet the content remained the same for report.pdf in the SuiteScripts…
-
Perhaps, do you know if there is a way to change the default configuration in the Eclipse IDE?
-
Hello, I am experiencing the same issue and I am using Kepler Service Release 2, Build 20140224-0627. Any update on this thread? Many Thanks! Marty
-
Any insight on this thread yet? Is matter related to an Eclipse versioning issue or Netsuite release issue?