javascript

Suitescript saved search returning duplicate values  #angularjs #reactjs

  • What I want is, for every itemA get all the sublist of every itemA sublist.
  • I have a record with a sublist, and every item of the sublist is a record that has another sublist.
  • Stack Overflow works best with JavaScript enabled
  • = null && afulfill.length>0){ var filters = [ new nlobjSearchFilter(‘internalid’, null, ‘anyof’, afulfill), new nlobjSearchFilter(‘mainline’, null, ‘is’, ‘T’), ]; var columns = [new nlobjSearchColumn(‘item’)]; var searchresult = nlapiSearchRecord(‘itemfulfillment’, null, filters, columns); } for(var i = 0; i < searchresult.length; i++){ var search = searchresult[ i ]; htmlCode += "

    ” + JSON.stringify(search) + “

    “; }

  • I created a saved search,but the search returns duplicated values, aswell as empty ones, I read about mainline so I used that, but when _I do that, some records are missing.

I have a record with a sublist, and every item of that sublist is a record that has another sublist. What I want is, for every itemA get all the sublist of every itemA sublist. Like this

@ng_real_ninja: Suitescript saved search returning duplicate values #angularjs #reactjs

I have a record with a sublist, and every item of that sublist is a record that has another sublist. What I want is, for every itemA get all the sublist of every itemA sublist. Like this

I created a saved search,but the search returns duplicated values, aswell as empty ones, I read about mainline so I used that, but when _I do that, some records are missing.

Here is the full code:

As you can see, there are far more sublists that show up in transaction results than just the item sublist, so you need to filter out the others (tax, shipping, COGS). You could also add a filter like

javascript

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.