Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Creating a dynamic pivot report using suitescript
Hi,
I am trying to create a pivot report by fetching all row,column dimension and column values using getParameter().
In this step : reportDefinition.addSearchDataSource(rec_type, null, null, searchColumns,aliasMap); , the last parameter is for mapping..
I tried to hardcode mapping eg:- ( var aliasMap= {'entity':searchColumns[0], 'entitystatus':searchColumns[1], 'probability':searchColumns[2]};) and it seemed to be working.
Need help while trying to map it dynamically ie: the number of column dimension, column values will keep on varying..
0