Mike Casey
09/16/2024, 8:46 PMCeligo AI
09/16/2024, 8:46 PMAI generated answer (using internal Slack threads):****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** Yes, it is possible to access custom modules or client-side loaded scripts in a portlet SuiteScript. You can attach a client script to a portlet script similar to how you can with a suitelet by using
Portlet.clientScriptModulePath
.
For creating portlets on the Customer Dashboard with custom HTML/CSS/JS, you have two primary choices:
1. Use a Simple Form Portlet, which behaves similarly to a suitelet form and allows you to add inline HTML fields and attach a client script.
2. Use a suitelet via an iframe, which also allows you to use an Inline HTML Portlet. However, be aware that NetSuite strips out script elements in an inline HTML portlet, which makes it hard to use JavaScript.
If you need to create a suitelet on the home dashboard that displays the results of a saved search where the user can select the transactions they need to take action on, you can create a portlet script and display it. If the portlet itself does not fit your requirement, you can use a portlet with an iframe to embed your suitelet.Celigo AI
09/16/2024, 8:46 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.870901823
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.86145097
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.858941853
Celigo AI
09/16/2024, 8:46 PM