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.
- 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'}); - To receive Demand Sublist Fields for year 2014 set the Value of the Field "year":
record.setFieldValue('year', '2014');
if I need to load it weekly as it should be?
ReplyDelete