Grouping found set Property into spec file

Forum to discuss the new web client version of Servoy.

Grouping found set Property into spec file

Postby binkal.patel » Sat Jun 17, 2017 2:20 pm

hello

To group some property into spec file as show into code attached image, like masterDetail section having childfoundset and childcolumns, can you please guild me how to set foundset into childcolumn-->dataprovider section (highlighted into red) means require syntax for this case

"model":
{
"allowExportData": { "type": "boolean","default":true},
"masterDetail":
{
"droppable": false,
"type": "MasterDetail",
"pushToServer": "shallow",
"elementConfig":
{
"pushToServer": "shallow"
}
}
},
"types":
{
"MasterDetail":
{
"enabled":{"type":"boolean","default":false},
"relationName":{"type":"relation"},
"childfoundset": { "type": "foundset", "pushToServer": "allow","dynamicDataproviders":true,"provideColumnFormats":true, "sendSelectionViewportInitially": true},
"childcolumns": { "type": "childcolumn[]", "droppable": true, "pushToServer": "shallow", "elementConfig": { "pushToServer": "shallow" } },

},
"childcolumn":
{
"dataprovider": { "type": "dataprovider", "forFoundset": "childfoundset" },
"headerText": { "type": "tagstring", "initialValue": "header", "tags": { "showInOutlineView": true } },
"width": { "type": "string" },
"fsDpName":{"type":"string"},
"visible":{"type":"boolean","default":true}
},
},
Thank you
You do not have the required permissions to view the files attached to this post.
binkal.patel
 
Posts: 5
Joined: Mon Jun 12, 2017 3:59 pm

Re: Grouping found set Property into spec file

Postby Andrei Costescu » Mon Jun 19, 2017 8:25 am

This is not supported in 8.1.x (so "forFoundset" or "for" always look on the root level of properties in the web component - at runtime).
In 8.2 what you want to do should work. There it will look for property dependencies in all parent nested custom objects (due to some cases that are in-progress atm).
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 11 guests

cron