My Stuff
Share Your SuiteWorld Experience & Earn a Special Badge!
Intelligent Payment Automation version 1.0.3 is now available in the SuiteApp Marketplace. The SuiteApp, powered by BILL, lets you automate payments, manage vendor details, and bank account information within NetSuite. Learn more
Comments
-
Thanks! I am getting the following error: org.mozilla.javascript.EcmaError: TypeError: Cannot find function setValueInPage in object Mon Nov 13 2023 06:35:33 GMT-0800 (PST). (/SuiteBundles/Bundle 490515/src/Restlets/Custom Restlets/mobile_postlastlotcode.js#22) I don't need to set up an Input/Output parameter on the…
-
I get: Syntax error: missing } after function body
-
I am approaching this issue differently and trying to directly set the value in the mobile page. However, I have been unsuccessful. See code below. Can you please take a look and tell me what I am doing wrong? /** * @NApiVersion 2.x * @NScriptType Restlet * @NModuleScope SameAccount */ define([ 'N/record','N/format' ],…
-
I checked the execution log. It does not have a record Do I need to use: getValueFromPage() setRecordInState() In order to store the data in the mobile state?
-
/** * @NApiVersion 2.x * @NScriptType restlet * @NModuleScope SameAccount */ define(['N/record'], (record) => { const post = (requestBody) => { var recType = requestBody.recordType; var recId = requestBody.recordId; if (recType && recId) { var testRec = record.load({ type: recType, id: recId }); // Set the custom column…
-
Thoughts on mobile element/state API?
-
I made the changes and double checked code but it is still not working. Am I using the correct function to work with the mobile page element data? As per suiteanswers: https://suiteanswers.custhelp.com/app/answers/detail/a_id/102798 https://suiteanswers.custhelp.com/app/answers/detail/a_id/102800/loc/en_US Thanks for your…
-
I would like the restlet to store data from the custom column so I can use the state path to populate this lot code field by default, etc
-
Attached are screenshots of my current setup and app
-
Is there a different way of finding state path of custom columns?
-
I got it to work by changing to NApiVersion 2.1 but its not saving in state path...so, I still don't know what is going on.
-
Below is edited. When I try to upload the script file I get the following error: Fail to evaluate script: {"type":"error.SuiteScriptModuleLoaderError","name":"UNEXPECTED_ERROR","message":"syntax error (SS_SCRIPT_FOR_METADATA#5)","stack":[]} /** * @NApiVersion 2.x * @NScriptType Restlet */ define(['N/record'], (record) => {…
-
/** * @NApiVersion 2.x * @NScriptType Restlet */ define(['N/record'], (record) => { const post = (requestBody) => { var recType = requestBody.recordType; var recId = requestBody.recordId; if (recType && recId) { var testRec = record.load({ type: recType, id: recId }); // Set the custom column value to the custom column you…
-
Here is what I have so far. What am I missing? It isn't working, etc. /** * @NApiVersion 2.x * @NScriptType Restlet */ const post = (requestBody) => { var recType = requestBody.recordType; var recId = requestBody.recordId; if (recType && recId) { var testRec = record.load({ type: recType, id: recId }); // Set the custom…