Something like this might do the trick (did not try it yet):

$tableName:=Table name(pTable)
$fieldName:=Field name(pField)
QUERY(ds[$tableName];ds[$tableName][$fieldName]=$aValue)

When an object property name is on  a variable, you can use the 
“object[property]” syntax.

hth
julio

> On Apr 11, 2018, at 4:08 PM, Keith Culotta via 4D_Tech <4d_tech@lists.4d.com> 
> 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:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************

--
Julio Carneiro
jjfo...@gmail.com



**********************************************************************
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:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to