Sascha
2010-08-05 08:42:03 UTC
Hello,
I have a similar Form/Table - constellation like the SalesTable - form.
I have SalesTable-records and SalesLine-records.
The difference is, that "my" salesTable is in a VirtualCompany and I show
the SalesLine-records from all appropriate Companys.
Now under certain conditions I want to see only SalesTable-records with at
least one SalesLine-record.
Therefor I have created a QueryBuildDataSource on the Form and added the
following code in the init() of the SalesTable_DS:
qbdsExistsJoin =
this.query().dataSourceTable(this.table()).addDataSource(tablenum(SalesLine));
qbdsExistsJoin.relations(true);
qbdsExistsJoin.joinMode(JoinMode::ExistsJoin);
With this, the form shows all SalesTable-records which have at least one
SalesLine-record in the current company. But I want also to show
SalesTable-records which have SalesLine-record(s) in all companies.
So the question:
Is there a way to set the QueryBuildDataSource to crosscompany?
In the methodList of the qbds I only find .company()...
I have a similar Form/Table - constellation like the SalesTable - form.
I have SalesTable-records and SalesLine-records.
The difference is, that "my" salesTable is in a VirtualCompany and I show
the SalesLine-records from all appropriate Companys.
Now under certain conditions I want to see only SalesTable-records with at
least one SalesLine-record.
Therefor I have created a QueryBuildDataSource on the Form and added the
following code in the init() of the SalesTable_DS:
qbdsExistsJoin =
this.query().dataSourceTable(this.table()).addDataSource(tablenum(SalesLine));
qbdsExistsJoin.relations(true);
qbdsExistsJoin.joinMode(JoinMode::ExistsJoin);
With this, the form shows all SalesTable-records which have at least one
SalesLine-record in the current company. But I want also to show
SalesTable-records which have SalesLine-record(s) in all companies.
So the question:
Is there a way to set the QueryBuildDataSource to crosscompany?
In the methodList of the qbds I only find .company()...