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.
Getting sitecategory name in scheduled script
I’m trying to implement a way of cross selling into our product pages.
IE: having a list of other categories the item is in listed on the product page with links to these categories.
At first I wrote a script which was ran each time an item was opened and then saved:
for ( var i = 1; i <= nlapiGetLineItemCount('sitecategory'); i++ )
{
text = nlapiGetLineItemText('sitecategory', 'category', i);
strCategories += text.replace("'", "\\'");
if( i != nlapiGetLineItemCount('sitecategory') )
strCategories += ' | ';
}
this got me a list of categories the item is in like 'Cat : Sub Cat 1 | cat2 : sub cat2'
This was becoming unmanagable and so i decided to make it a scheduled script, the problem is the same code returns for example '1075 | 57734'.