ooops, sorry I mixed up ‘classic 4D’ and ORDA :-)

The query line should read:

ds[$tableName].query($tableName+”.”+$fieldName+” = “+$aValue)
or
ds[$tableName].query($tableName+”.”+$fieldName+” = :1“;$aValue)

hth
julio

> On Apr 11, 2018, at 5:00 PM, Julio Carneiro <jjfo...@gmail.com> wrote:
> 
> 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
> 
> 
> 

--
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