You have used an HTTPService object to retrieve this HTML file:
JoePresident
MaryCEO
The resultFormat property of the HTTPService object is set to object, and the id property is set to
myService. You want to use a DataGrid control to display the list of employees. Which is the
correct syntax for a binding expression to pass the employee objects to the dataProvider property
of the DataGrid?
Answer(s)
- dataProvider={myService.lastResult}
- dataProvider={myService.lastResult.employees}
- dataProvider={myService.result.employees.employee}
- dataProvider={myService.lastResult.employees.employee}
Correct Answer
dataProvider={myService.lastResult.employees.employee}