Hi Kieth,
These are equivalent.
C_OBJECT($medicaidEligibleStudentsInDistr)
$medicaidEligibleStudentsInDistr:=ds.Student.query("Medicaid_Eligible = 'Yes' &
District_ID = :1";$districID)
$medicaidEligibleStudentsInDistr:=ds["Student"].query("Medicaid_Eligible =
'Yes' & District_ID = :1";$districID)
The 2nd statement uses a string to reference the table. You can use a var
instead. And the query string is just that, a string that is built up.
Dani
> On Apr 11, 2018, at 1:08 PM, Keith Culotta via 4D_Tech <[email protected]>
> wrote:
>
> Hello,
>
> I didn't recognize a solution for this in the docs.
> When the table and field are unknown until execution time, any suggestions on
> what the ORDA approach to this type of query would be?
>
> QUERY(pTable->;pField->=$aValue)
>
> Thanks - Keith - CDI
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ: http://lists.4d.com/faqnug.html
> Archive: http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub: mailto:[email protected]
> **********************************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************