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 (9.07 KiB) Viewed 2232 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.
Ruben de Jong
Stb Software Development
SAN Partner

Stb Software Development -
User avatar
Posts: 93
Joined: Wed Apr 18, 2007 12:43 pm

Return to Methods

Who is online

Users browsing this forum: No registered users and 1 guest