88
Points
Questions
0
Answers
11
-
I have had a look within the N/url module and there doesn’t seem to be a way to resolve that pages URL.
You should be able to include a link to the “/app/accounting/transactions/inventory/billofmaterialsinquiry.nl” page. As the URL won’t change between accounts.
- 845 views
- 1 answers
- 0 votes
-
If you are certain that the below line of code is causing the error:
var soRec = nlapiLoadRecord(‘salesorder’, soId, {recordmode:’dynamic’});I would assume that the nlapiLoadRecord is triggering other User Event scripts on beforeLoad
This answer accepted by t(^__^t). on May 22, 2023 Earned 15 points.
- 1538 views
- 1 answers
- 0 votes
-
NetSuite does not have a standard way to increase the search box width.
As a workaround, you can create a Custom Record with an inline HTML field that will adjust the width of the search box and the results box. Example below:
This is the best option until NetSuite update this to allow the box to be adjusted by standard
The steps for creating the custom record are as follows:
Step 1 – Create a custom record
Navigate to Customisation > List Records Fields > Record Types > New
Step 2 – Populate details for the custom record
Populate the Name and ID fields. Then untick the Include Name checkbox.
Step 3 – Adding a custom inline HTML field
Using the add field button on the custom record:
Populate the following details for the Inline HTML field
Default Value Code
The 140ch is the number of characters wide you would like the search box and the results box to be. So if you update these make sure that both are updated.
<style> #_searchstring { max-width: 140ch !important; } #uif30 { width: 140ch !important; } </style>Step 4 – Navigate to the record
You can navigate to the record by typing into the global search or from the Custom Record Type record, go to More > View Records.
When you are on this new custom record the search bar should be considerably wider. You can add a link to your user’s dashboards for quick access to this record.
- 1461 views
- 2 answers
- 0 votes
-
You could take 2 approaches.
1. You could get the unique line ref of the lines you have already deleted and skip over them when you are deleting other lines, preventing the infinite loop.
2. The other option would be attempting to run this functionality on sublistChanged rather than validate delete, then in the context check if the line has been removed. As this triggers on sublist edit insert or removed
This answer accepted by aleseux. on November 14, 2022 Earned 15 points.
- 1564 views
- 2 answers
- 0 votes
-
So far I haven’t been able to pull fields sourced via saved search to display on a PDF.
Previously I have replaced the saved search fields with a script that will run the saved search and populates the value into a non-sourced custom field.
That way the field is treated the same way all of the other form fields are and should be able to be used within your PDF, although this is probably not the answer you were hoping for.- 2492 views
- 3 answers
- 0 votes
-
One of the main reasons would be backwards compatibility, if they remove schedule scripts a lot of existing systems would break.
Also with schedule scripts you are not restricted to using the getInputData, Map, Reduce and Summary functions. You can structure the script however you like which is useful when you want to have context of the whole script and not a single instance like in a Map/Reduce.I can’t see NetSuite completely removing schedule script but I could see them stopping you from adding more in a later version.
- 861 views
- 2 answers
- 0 votes
-
You could use a new Custom Record to store a set of information.
It is the equivalent of adding a new table to a database.Example below:
If that solution is suitable, try following the step in the linked document below, which should walk you through most of what you are trying to achieve.
This answer accepted by erpeters. on October 31, 2022 Earned 15 points.
- 1159 views
- 1 answers
- 0 votes
-
I would generally advise storing the value you want to display on the record itself.
For example, before you render the PDF you can look up the value you would like to display and use Nrecord.submitFields to store the value on the record if the value isn’t populated already. Alternatively, if you are not concerned with historic data, you could have a User Event that populates the value on save of the afterSubmit of the record.
That way you can simply add the field reference to the template, rather than try to manipulate it before rendering.
- 877 views
- 1 answers
- 0 votes
-
Essentially, you are asking for javascript to act as an XLSX parser.
This is difficult but there is third-party code to parse this.
Check out this GitHub repo that should do what you are after:
https://github.com/SheetJS/sheetjsHere is also a live demo of the repo code:
https://oss.sheetjs.com/sheetjs/How well you can get this to work with NetSuite is the big question, but this should point you in the right direction.
- 1679 views
- 2 answers
- 1 votes
-
This depends on the setup of your filing cabinet.
You can have a Map/Reduce script that searches for all PDFs in the filing cabinet, but I imagine you would have other PDFs you didn’t want to send emails for.
So if all of the PDFs you would like to send are in one folder, you can use a Map/Reduce script with a file search to find all of the PDFs within a specific folder(s).
For each PDF you will need to use string manipulation to get the email ID, then send the email using the N/email module.
You are probably best moving the PDF to a separate folder within the Filing Cabinet once the email has been sent to avoid sending out the same email twice.Again, much of what I mentioned above depends on how the Filing Cabinet is set up and the format of the PDF names.
- 1549 views
- 1 answers
- 0 votes





