Amirul Momenin
Posts: 0
Joined: Tue Apr 08, 2014 3:42 am

Overwrite echo in iconic app

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Overwrite echo in iconic app

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.

Amirul Momenin
Posts: 0
Joined: Tue Apr 08, 2014 3:42 am

Overwrite echo in iconic app

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

Return to “Issues”