maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

'value change' event for the toggle inside a dynamic list

I create the list in Appery.io:

Image

Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

'value change' event for the toggle inside a dynamic list

Me too, I am using Appery UI and the "value change" event is triggered on page load for every row....

Find it here:

http://appery.io/app/view/31c79da2-60...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

'value change' event for the toggle inside a dynamic list

Try removing the list and then adding it back, with the event.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

'value change' event for the toggle inside a dynamic list

Share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a

Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

'value change' event for the toggle inside a dynamic list

The project has been shared. Thank you.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

'value change' event for the toggle inside a dynamic list

I opened the app but not sure why it's not working. Going to look at it more.

Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

'value change' event for the toggle inside a dynamic list

You can use this project "TEST" for testing purpose.
We are working on another App.

Rafael Martínez
Posts: 0
Joined: Tue Apr 23, 2013 5:19 pm

'value change' event for the toggle inside a dynamic list

We have solved the problem by using a counter in this way:

  1. Set a local variable on service succes with the size of the array :
    localStorage.setItem('size',data.length);

  2. Set a local variable on "Value change" event for the list:
    n = parseInt(localStorage.getItem('count')) + 1;
    localStorage.setItem('count', n);

  3. Check the values on "Value change" event for the toggle:
    var s = parseInt(localStorage.getItem('size'));
    var c = localStorage.getItem('count');

    if (c s){
    alert ("Done !");
    }

    FInd it here:
    http://appery.io/app/view/42ec9b46-87...

    I hope this would help for other people.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

'value change' event for the toggle inside a dynamic list

The service when using Echo is still invoked in the same way. Instead of getting JSON response from a service, it uses the Echo response.

I'm going to look into this more.

Return to “Issues”