I am using javascript code to fetch items of some itemType, I see two method in aras - apply() and applyAsync().
How do i use applyAsync()? An example of working code would be helpful.
Thanks
Vinay
I am using javascript code to fetch items of some itemType, I see two method in aras - apply() and applyAsync().
How do i use applyAsync()? An example of working code would be helpful.
Thanks
Vinay
Hi Vinay,
the method "cui_common_favoritesearch_init" (it was included in my standard Innovator 12.0 installation) contains some code using applyAsync():
iomItem.applyAsync()
.then(renderList)
.catch(function() {
return function(dataItem) {
dataItem.roots = [];
dataItem.data = new Map();
dataItem.disabled = true;
return dataItem;
};
})
.then(updateTitlebar);
Cheers,
C
Hi Vinay,
the method "cui_common_favoritesearch_init" (it was included in my standard Innovator 12.0 installation) contains some code using applyAsync():
iomItem.applyAsync()
.then(renderList)
.catch(function() {
return function(dataItem) {
dataItem.roots = [];
dataItem.data = new Map();
dataItem.disabled = true;
return dataItem;
};
})
.then(updateTitlebar);
Cheers,
C