Unable to override echo

I want to populate a list from an array. So I am overriding the __requestOptions.echo value as suggested at http://devcenter.appery.io/documentat....

The alerts show that the echo value was undefined before I set it, and was then set to the new value. However, when I execute the code below, the list is populated using the example echo items that I entered for the service, not the items that I am supplying at run time.

alert("before ~" + skillsEchoService.__requestOptions.echo + "~");

var echoJSON = '[{"skillName":"woodworking"}, {"skillName":"dancing"}]';
skillsEchoService.__requestOptions.echo = echoJSON;

alert("after ~" + skillsEchoService.__requestOptions.echo + "~");

skillsEchoService.execute();
Appery("skillsAddedList").listview("refresh");

What am I doing wrong?
1 person has
this problem
+1
This topic is no longer open for comments or replies.