According to the documentation you can use mx.data.get to retrieve objects https://apidocs.mendix.com/7/client/mx.data.html#.get
var valueList = [];
for(var i=0;i<rowList.length;i++){
mx.data.get({
guid: rowList[i].getGuid(),
path: "CompareDOE.row_Value",
callback: function (values) {
// do something with values
},
error: function (error ) {
console.error(error);
}
});
}
To wait to retrieve all values you can use Promise.all
function fetchRowValuesAsPromise(row) {
return new Promise(function (resolve, reject) {
mx.data.get({
guid: rowList[i].getGuid(),
path: "CompareDOE.row_Value",
callback: function (values) {
resolve(values);
},
error: function (error ) {
reject(error);
}
});
});
}
var valueList = [];
Promise.all(rowList.map(fetchRowValuesAsPromise))
.then(function (valueInValueList) {
// valueInValueList = [[1,2,3],[4,5,6],[7,8,9]]
}).catch(function (err) {
console.error(err);
};