What is the difference between this line:
and this line:
I thought the first one is if you are connecting to a remote datasource. I tried the first one and it only seems to work if you are using json. I'm using the second and it is working for me.
Here is what my controller code looks like that works with the 2nd one and not the first.