Page 1 of 1

Relation with scope dataprovider gives buildmarker

PostPosted: Wed Apr 06, 2016 4:36 pm
by Ruben79
I have a relation which is defined like this:
2016-04-06_1631.png (9.07 KiB) Viewed 1804 times

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){
            // 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.