this.api() access Options from JSON response
this.api() access Options from JSON response
Restful Web Services
Posts: 202Questions: 49Answers: 2
in Editor
Is it possible to access the options
key from the JSON
response when using the ajax server side method having set some options in the php file?
I.e. in my JSON
response below can I access the options
using a this.api
function in an initComplete
function?
{
"data":[],
"options":
{
"t_owneraccount.iChaletId":[{"label":"Test 1","value":"128"}],
"t_owneraccount.iChaletId":[{"label":"Test 2","value":"100"}],
},
}
This discussion has been closed.
Answers
Should have checked the documentation further! For anyone interested the answer is:
Thanks