+ Start a Discussion
SushiSushi 

using DynaBean beta3.3 Ajax Toolkit

hi

i was using ajax toolkit beta 1 and there DynaBean was working properly but with beta 3.3 i get a error DynaBean is undefined moreover i was using qr.records[i].name qr.records[i].id where qr is query result but with beta 3.3 it does not works is there any documentation for changes done if yes please tell


Thanks and Regards

Sushi
andyCandyC
Try using these examples:

var qr = new Sforce.QueryResult();
qr = sforceClient.Query("Select....");

and

var sample = new Sforce.Dynabean("Opportunity");

Note the case difference on Dynabean

Cheers
Andy
SushiSushi
Thanks Andy this Solves my first problem but u havent addressed other problem


Please look at this code

var qr = new Sforce.QueryResult();
qr = sforceClient.Query("Select Id, Name From Account");
for (var i=0;iaccounts = qr.records[i];
}

Here accounts is having id and name earlier with beta 1 i was extracting them as

id = accounts.id;
name = accounts.name;

my question is how to do this now


thanks and regards

Sushil
andyCandyC
I would use accounts.get("Id") or accounts.get("Name")
SushiSushi
Thanks for ur fast response


It works know



regards

Sushil