You need to sign in to do that
Don't have an account?
disturbed118
data binding in dyanmic soql queries?
how can you use data binding like
:data.keySet() in dynamic soql queries i.e database.query();
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
how can you use data binding like
:data.keySet() in dynamic soql queries i.e database.query();
Use the get and put methods on an object to set or retrieve values for fields using either the API name of the field expressed as a String.
Schema.DescribeFieldResult f = Schema.sObjectType.Account.fields.AccountNumber;
Sobject s = Database.query('select AccountNumber from Account limit 1');
s.put(f.getsObjectField(), '12345');
Hope this helps.
You can do dynamic binding in the usual fashion, except you can't call function methods, so you would do this: