Hi Ashwin,
Thanks it's working now.
- Without any parameter, i,e oModel.read("/EmployeeSet",null,null,true,function(oData,repsonse)
The statement ("/results/0") will work fine and we will get the value in variable empname.
var results = oJsonModel.getProperty("/results/0");
var empname = results.Empname;
- With a parameter, i,e oModel.read("/EmployeeSet('00011930')",null,null,true,function(oData,repsonse)
The statement ("/results/0") will NOT work. So, we have to change the code to
var empname = oData.Empname;
to get the value in empname
Many Thanks,
Firoz.