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 <[email protected]> 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 >> <[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] >> ********************************************************************** > > -- > Julio Carneiro > [email protected] > > > -- Julio Carneiro [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] **********************************************************************

