Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
NSC | Dynamically Source the Entity List into a Suitelet Select Field
Scenario
User wants a Suitelet to have a Select field sourcing the list of Sales Orders. In this scenario, the list is being retrieved from the search.create method
Solution
To pull up the Sales Orders list from Sales Order Record using N/search module, user can use the getSelectOptions method.
For SuiteScript 2.0
Spoiler Spoiler Warning ▲▼
function onRequest(context) {
if (context.request.method == 'GET'){
var form = widget.createForm({
title: 'Sourcing Item'
})
var SOPF = form.addField({
id: 'custpage_sopf',
type: widget.FieldType.SELECT,
label: 'List of Items'
})
var srch=search.create({
type:search.Type.ITEM,
filters: [{
name: 'isinactive',
Richard James Uri - SuiteCloud | WMS Tech | SuiteCommerce Advanced
----
- New to NetSuite
- Explore the NSC Webinars Category
- Join our poll and share your ideas! We want to know what you think. Don't forget to comment and make your voice heard!
- Expand your NetSuite knowledge by joining this month's Ask A Guru Live about Basic Accounting. RSVP on this event now!