Relation with scope dataprovider gives buildmarker

Questions, tips and tricks and techniques for scripting in Servoy

Relation with scope dataprovider gives buildmarker

Postby Ruben79 » Wed Apr 06, 2016 4:36 pm

I have a relation which is defined like this:
2016-04-06_1631.png
2016-04-06_1631.png (9.07 KiB) Viewed 3074 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){
        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.
Ruben de Jong
Stb Software Development
SAN Partner

Stb Software Development - http://www.stb.nl
User avatar
Ruben79
 
Posts: 97
Joined: Wed Apr 18, 2007 12:43 pm

Return to Methods

Who is online

Users browsing this forum: No registered users and 6 guests

cron