Dave Troxel
Posts: 0
Joined: Fri May 09, 2014 1:07 pm

Have to cycle my delete button twice to get it to actually delete from my list

Not sure what I am missing but I have to click 'Delete' twice to get it to actually delete a list item from the page. ANY suggestions?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Have to cycle my delete button twice to get it to actually delete from my list

H, Dave,

How do you delete the list item from the page? Provide us some screenshots, please.

Dave Troxel
Posts: 0
Joined: Fri May 09, 2014 1:07 pm

Have to cycle my delete button twice to get it to actually delete from my list

Image

I tried adding a navigate to page thinking it needed a refresh.

Dave Troxel
Posts: 0
Joined: Fri May 09, 2014 1:07 pm

Have to cycle my delete button twice to get it to actually delete from my list

Image

This is the page itself. The first image I added is the delete button, all set to Click.

Dave Troxel
Posts: 0
Joined: Fri May 09, 2014 1:07 pm

Have to cycle my delete button twice to get it to actually delete from my list

Please review my screenshots. Thanks.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Have to cycle my delete button twice to get it to actually delete from my list

Hello Dave,

Looks like wrong sequence of action. At first on click, you should set id value to local storage variable, then invoke delete service,
To refresh UI you should invoke list_service on "success" event of delete_service.
This tutorial should be helpful: http://docs.appery.io/tutorials/build...

Dave Troxel
Posts: 0
Joined: Fri May 09, 2014 1:07 pm

Have to cycle my delete button twice to get it to actually delete from my list

Works! Thank you. I knew there was something out of whack. Was definitely the sequence of events. You rock Evgene.

Return to “Issues”