Discussions
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..