Tuesday, May 28, 2019

Receive Demand Sublist Fields for a Different Year than Predefined for an Item Demand Plan Record

To receive the Demand Sublist Fields for a different year as it is predefined for an Item Demand Plan record load the record in SuiteScript in dynamic mode. Change the Filter Field values of the Item Demand Plan sublist. 

  1. Load the Item Demand Plan record in dynamic mode (documented in SuiteAnswers article Working with Records in Dynamic Mode):
    var record = nlapiLoadRecord('itemdemandplan', 2, {recordmode: 'dynamic'});
  2. To receive Demand Sublist Fields for year 2014 set the Value of the Field "year":
    record.setFieldValue('year', '2014');

No comments:

Post a Comment