OCLOperators sqlpassthroughobjects
No edit summary
No edit summary
Line 1: Line 1:
===Example of using the sqlpassthroughobjects===
===Example of using the sqlpassthroughobjects===
The two examples below can be used in a derived association
The two examples below can be used in a derived association
=====If you already have the primary key available to can to like this=====
=====If you already have the primary key available you can to like this=====
  Kundfaktura.sqlpassthroughobjects('select ' + self.FakturaReferensnummer.toString )->first
  Kundfaktura.sqlpassthroughobjects('select ' + self.FakturaReferensnummer.toString )->first
=====If looking for a specific object using some field=====
=====If looking for a specific object using some field=====
  Kundfaktura.sqlpassthroughobjects('select FAKTURA_ID from tbl_FAKTUROR where FAKTURA_ID = ' + self.FakturaReferensnummer.toString )->first
  Kundfaktura.sqlpassthroughobjects('select FAKTURA_ID from tbl_FAKTUROR where FAKTURA_ID = ' + self.FakturaReferensnummer.toString )->first
[[Category:OCLOperators]]
[[Category:OCLOperators]]

Revision as of 11:38, 31 May 2018

Example of using the sqlpassthroughobjects

The two examples below can be used in a derived association

If you already have the primary key available you can to like this
Kundfaktura.sqlpassthroughobjects('select ' + self.FakturaReferensnummer.toString )->first
If looking for a specific object using some field
Kundfaktura.sqlpassthroughobjects('select FAKTURA_ID from tbl_FAKTUROR where FAKTURA_ID = ' + self.FakturaReferensnummer.toString )->first
This page was edited 101 days ago on 02/10/2024. What links here