•The objective of the Portlets course is to make aspirants understand about Usage of Portlet Scripts and sample program to create Portlet.
•This Course will help you to grow your career as NetSuite Functional and NetSuite Technical Consultant.
•If you are IT professionals, System Administrator, ERP domain and Cloud Developer, Portlets will help you to become NetSuite Administrator, NetSuite Functional and NetSuite Technical Consultant.
•Usage of Portlet Scripts
•Sample program to create Portlet
Portlet Script Overview
•Portlet scripts can be used to define and publish custom dashboard content.
Types of Portlet
The Portlet types that are available in scripting are:
•Links and Indents
Portlet Script Execution
•When writing portlet scripts, NetSuite automatically passes two arguments to your user-defined function.
•These arguments are
Portlet Script In NetSuite
•Load the file into NetSuite.
•Create a Script record.
•Define all runtime options on the Script Deployment page.
Portlet Scripts On Dashboard
•Go to your dashboard and click the Personalize Dashboard link.
•Click one of the Custom Portlet links under the Standard Content folder. An empty Custom Content portlet appears on your dashboard.
•Hover over the Portlet Setup arrow and click Set Up.
•In the Set Up Scripted Content popup, select the desired portlet script from the Source drop-down list, and then click Save.
•The portlet will populate with data as defined in your portlet script.
Portlet scripts can be used to define and publish custom dashboard content. The following portlet types can be created:
•LIST – A standard list of user-defined column headers and rows (for example a Search Results portlets). See List Portlet for an example of a list portlet.
•FORM – A basic data entry form with up to one submit button embedded into a portlet (for example a Quickadd portlet). This type of portlet supports APIs to refresh and resize the portlet, as well as the use of record-level client-side script to implement validation. See Form-level and Record-level Client Scripts for details about this type of script. See Form Portlet for an example of a form portlet.
•HTML – An HTML-based portlet, the most flexible presentation format used to display free-form HTML (images, Flash, custom HTML). See HTML Portlet for an example of an HTML portlet.
•LINKS – This default portlet consists of rows of formatted content (for example an RSS portlet). See Links Portlet for an example of a links portlet.