OCLOperators sqlpassthrough
This page was created by Hans.karlsen@mdriven.net on 2018-01-08. Last edited by Stephanie@mdriven.net on 2025-02-04.

The sqlPassThorugh is described here PSExpression , or how to do things in the DB from MDriven

Example of using the sqlpassthroughobjects

The two examples below can be used in a derived association

If you already have the primary key available to 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