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.
Code: Select all
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?