My Stuff
Comments
-
Hello, Try removing 'type' from your function definition. That is: getRESTlet(dataIn) instead of getRESTlet(type,dataIn) Thank you.
-
This occurs when you have your time settings set to 24 hour clock at home > set preferences > time format. You can set it to am/pm to avoid this, however, please open a case with NetSuite support to have a defect filed. Thank you.
-
Hello, Please try setLineItemValue instead salesOrder.setLineItemValue('item', 'item', i+1, 5297); salesOrder.setLineItemValue('item', 'description', i+1, 'This is the new line'); Thank you,
-
Hello mburstein, The internal id of letter template is not exposed for field source, thank you.
-
Since you're using tables, the reasoning may be due to the below information from bfo.com http://bfo.com/faq.jsp#3.7 Why does my table not continue onto the next page? With the Report Generator there are specific rules for where a page break can occur. Page 17 of the userguide has some useful information regarding this,…
-
What is the code generating strName? Thanks.
-
Hello, What environment are you working in? (ie, Sandbox, Production?) Please open a case with NetSuite Support including the environment also. Thank you.
-
Hello, Per the help, nlobjField -If you use nlapiGetField(fldnam) in a client script to return a nlobjField object, the object returned is read-only. Perhaps you can make use of nlapiInsertSelectOption() -Adds a select option to a select/multiselect field added via script. Note that this API can only be used on…
-
Perhaps this portion of code? Since location1 and location2 are equal in the firs t loop? var isAllNotChecked = true; if (((location1) == (location2)) && (isAllNotChecked)) { alert("Must ship complete,not all items checked"); return false; } If not, you will need to add more logs or alerts within your code to debug it…
-
Mchamma is correct, it is best practice to convert variables to numerical in SuiteScript when performing any calculations. Even if the field is a number type in the UI. Thank you,
-
Hello onemeat, Yes, that is the correct behaviour you are seeing. Per the help guide: nlapiSetFieldValue(fldnam, value, firefieldchanged, synchronous) Sets the value of a given body field. This API can be used in user event beforeLoad scripts to initialize field on new records or non-stored fields. Thank you.
-
Does using html instead work for you? That is use <br> instead of n, and for the spaces use emailtext += 'Order Date Order number Store Name Estimated Despatch' + '<br><br>; .... .... .... .... emailtext += soTrandate +' '+soTranId +' '+soStoreID +…
-
This may go without saying; but is your script logging anything? Are you using nlapiLogExecution in your script? With the appropriate 'type' parameter? (DEBUG, AUDIT, ERROR, EMERGENCY) nlapiLogExecution('DEBUG','my title','my details'); Thanks,
-
Hello, If you have filed a case, can you please update your case indicating the browser you are experiencing this issue on? I noticed that Firefox released an update on the same day this error was originally reported. http://en.wikipedia.org/wiki/Firefox_release_history Ver: 18.0.1 Code Name: Firefox 18.0.1 Release Date:…
-
Hi Andy, Due to this being an Unexpected error, please open a NetSuite Support case regarding this so we can investigate this fully for you. Thank you.
-
Hello, In addition to jmaipid's comment. You could also deploy your script as a Record Level Client Script instead of a form level client script. This would allow you to use nlapiLogExecution. Setup > Customization > Scripts > New > Client. In the Script record, Scripts tab > Buttons subtab is where you would instead…
-
Hi Andy, NetSuite Support tab > Visit SuiteAnswers > Contact Support Online. Thank you,
-
Does request.getFile work for you? var file = request.getFile("custpage_file") Thanks,
-
Hello, Please open a NetSuite Support case regarding this. (NetSuite Support tab > SuiteAnswers > Contact support) Thank you.
-
In your custom column field setup is the source list specifically referencing the project entity type? If it is referencing an entity type other than project and the value being pulled from the entity field is a project entity type, then it would not be able to make the reference. The script would likely not throw an error…
-
'Transaction' is listed in the SuiteScript Record Browser, Will this work for your scenario? nlapiLookupField('transaction',internalid,'type') This should return 'TrnfrOrd' for transferorder and 'SalesOrd' for salesorder. You could also use nlapiSearchRecord and pull the 'type' field.…
-
That is correct, you will have to add code to account for that.
-
Hello, This thread may interest you. Basically, there is a line item field named 'itemtype' that will return the item type for you. https://usergroup.netsuite.com/users/showthread.php?t=31237 Thanks.
-
Per the SuiteScript Record browser in the NetSuite help; try using 'messages' instead of 'message' for your joins. Thank you.
-
You can also try the following before creating the filter object, in case it is related to the date formatting. var todaysDate = nlapiDateToString(todaysDate); var yestDate = nlapiDateToString(yestDate); Thank you,
-
Hello, Yes, try something along the lines of: var itemType = SOrecord.getLineItemValue('item','itemtype',1); Thank you,
-
That should work, are you receiving a specific error or just no results? How are you calculating yestDate? Thanks,
-
Hello, If I recall, setting null for value in nlapiRemoveSelectOption should remove all options. nlapiRemoveSelectOption('myfield', null); Thanks,
-
Hello filename is not a valid column per the SuiteScript Record Browser. You can locate the browser in the NetSuite Help. However, if your saved search has a result column for 'File : Name', this column would be returned automatically in your nalpiSearchRecord results. Here is a script sample from the NetSuite Help: //…
-
Hello, Per the 'Scriptable Sublists' section of the NetSuite help, the file sublist is not scriptable. Thank you.