I have 2 collections:
Collection A: Id (int), Name (string)
Collection B: Id (int), Name (string)
Collection C: Id (int), Name (string), Amount (int), TypeA (single reference to Collection A), TypeB (multiple reference to Collection B)
I am trying to add items from Collection B to a repeater. And I wish to display calculated data in each item. Referencing to https://support.wix.com/en/article/corvid-tutorial-calculating-and-displaying-collection-data, I can do some calculation on Amount (int) and display the result to the repeater items. I can also get the TypeA (single reference)
However, I cannot get the TypeB (multiple reference). Below is how I get the itemData:
$w( ‘#DatasetC’ ).onReady(() => {
$w( ‘#DatasetCRepeater’ ).forEachItem(($item, itemData, index) => {
console.log(itemData);
}
}
I cannot see the TypeB when I try to console.log the itemData.
Could anyone help me?