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.
Dynamically Pull Saved Search Results using Reflection
Hello, we are looking to find a way to add new fields to saved searches without having to go in and change the source code. Let me describe what we are thinking.
Let's say we have a routine that gets saved search fields and inserts them into a database for EDI transmission, or export to a data warehouse. So traditionally this will get coded like this:
CustomerClass cust = new CustomerClass();
cust.NsCompanyName = customer.basic.altName[0].searchValue;
cust.CustomerNsInternalID = customer.basic.internalId[0].searchValue.internalId;
cust.NsCustomerCode = "X"; // just a constant
What we are thinking is to store the property names and values in a database table and maintain the fields to look for there (again, do not have to alter the source code). The property names would go in like this: