kjell1906
(Kjell Dirdal)
October 1, 2016, 1:49pm
#1
How to query datasource in one table from selection in another table.
I have one table with entities I can access the Collection of related entities from the edit view but would like to show the collection without open the edit screen.
krivopustov
(Konstantin Krivopustov)
October 3, 2016, 5:55am
#2
You can implement master-detail relationship between datasources using query parameters as explained here (see parameters with “ds” prefix):
https://doc.cuba-platform.com/manual-6.2/datasource_query_params.html
An example of master-detail datasources can be found here:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
~ Copyright (c) 2016 Haulmont
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<window xmlns="http://schemas.haulmont.com/cuba/screen/window.xsd" caption="msg://browseCaption"
focusComponent="projectsTable"
messagesPack="com.haulmont.timesheets.gui.project">
This file has been truncated. show original