I'm using this to show different related record columns in a table view depending on a combobox which has the scopes.web_Catalog.selectedParticipantID as dataprovider.
It all works, but generates a buildmarker when I want to loop a set of art_article by code. Also I don't have code completion on a record of type JSRecord<db:/stb_data/art_article>.
- Code: Select all
var set = datasources.db.art_article.getFoundSet();
set.forEach(/** @param {JSRecord<db:/stb_data/art_article>} record */
function(record, i){
if(utils.hasRecords(record.web_art_article_to_web_pricing_article)){
// do stuff
}
}
}
Why is this? I'm expecting the relation to show up on a record of type JSRecord<db:/stb_data/art_article> because that is the primary dataSource.