MJ
04/28/2020, 8:58 AMSteve Goldberg
04/28/2020, 9:38 AMMJ
04/28/2020, 9:43 AMSteve Goldberg
04/28/2020, 9:48 AMMJ
04/28/2020, 11:00 AMSteve Goldberg
04/28/2020, 11:14 AMApplication.on('after:Category.get', function () {
var customfield = nlapiLookupField('commercecategory', category.internalid, [
'yourcustomfield'
]);
return customfield
});Steve Goldberg
04/28/2020, 11:15 AMMJ
04/28/2020, 11:45 AMMJ
04/28/2020, 11:46 AMMJ
04/29/2020, 10:21 AMMJ
04/29/2020, 10:22 AMMJ
04/29/2020, 10:23 AMSteve Goldberg
04/29/2020, 10:30 AMApplication.on('after:Category.get', function (CategoryModel, category) {
var lookupResults = nlapiLookupField('commercecategory', category.internalid, [
'yourcustomfield'
]);
category.customfield = lookupResults.yourcustomfield
});
This person's solution takes full advantage of what the event wrapper offers and modifies the category object as it is passed through, so the whole thing is seamlessMJ
04/29/2020, 10:48 AMMJ
04/29/2020, 10:50 AMMJ
04/29/2020, 10:50 AM