Page 1 of 1

Overwrite echo in iconic app

Posted: Fri Apr 21, 2017 12:02 pm
by Amirul Momenin

I need to store data in a localstorage as a json format
then I need to overwrite this data in service's code

I want to set this json data before service call
How will I set json data as echo for service call


Overwrite echo in iconic app

Posted: Fri Apr 21, 2017 5:56 pm
by Serhii Kulibaba

Hello Amirul,

Appery.io doesn't have such default functionality. So we are very sorry, but this is something outside the scope (https://docs.appery.io/docs/general-s...) of our standard support.


Overwrite echo in iconic app

Posted: Fri Apr 21, 2017 6:07 pm
by Amirul Momenin

1.Apperyio.get("getArticles")(requestData).then(
function(success){ // success callback
(function mapping1717(success, $scope){

Code: Select all

     success = JSON.parse(localStorage.getItem("articles")); 

OR
2.
$timeout(function() {
try {
var service = Apperyio.EntityAPI('getArticles'),
echo = service.echo,
defaults = service.request.data,
request,
response;

Code: Select all

                        $articlesData = localStorage.getItem("articles"); 
                      echo          = $articlesData; 

I fix this