Points not displaying when ON_DEMAND mode is used

Discussion created by gavin443 on Jul 18, 2011
Latest reply on Jul 26, 2011 by gavin443

I am using ON_DEMAND mode to display features on a map as with the following example ( When pointing the code at an exisiting layer that has been set up all points show up fine and everything looks as it should. However as soon as I change my code to point at a newly created layer only one point is returned (I have checked the rest service and there should be over 700 points). No other changes have been made to the code.

Do layers have to be set up in a specific way to allow for the use of ON_DEMAND as given what I have explained above Im assuming the issue lies with the layer and not my code.

Has anyone else come across this issue.