Anthony Hyams
Posts: 0
Joined: Tue Apr 01, 2014 10:54 am

refresh list after deleting an item

I built it using your to do list tutorial except mine is a schedule rather than a personal to do list but exactly the same really.

http://docs.appery.io/tutorials/build...

So I use the rest service imported and use the taskid - or in my case just called the schedule id - it works fine, and on the success of this I try to refresh the list

Anthony Hyams
Posts: 0
Joined: Tue Apr 01, 2014 10:54 am

refresh list after deleting an item

i posted a comment on your last reply about my question but this thread seems to have got lost with Paul's issue

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

refresh list after deleting an item

Hi Anthony.

Your issue is a just you do refresh for the component.

Component don't know about data in your DB.

But datasource knows.

Please follow these steps to get your logic works:

1 Open your goal page in "data" mode.(click on data tab).

2 Add "Success" event on your "delete" datasource. With action "Invoke service". And select as invoked service your list service(that populates your list).

See details: http://prntscr.com/3jmitl/direct

That's all.

Regards.

Anthony Hyams
Posts: 0
Joined: Tue Apr 01, 2014 10:54 am

refresh list after deleting an item

Yes - tried this and when the item is deleted the page refreshes but now the list fails to appear at all

I should get this
Image

but I get this
Image

The item has gone from the database.

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

refresh list after deleting an item

Hello Anthony,

You should upgrade libraries version in your app to v2.0: http://docs.appery.io/documentation/a...
This will eliminate the problem.

Anthony Hyams
Posts: 0
Joined: Tue Apr 01, 2014 10:54 am

refresh list after deleting an item

This did work but broke my theme etc and some other stuff. However nothing major. But users should be aware changing libraries is not a small thing. It would be wise to make sure if you are changing libraries you create a new version so you can go back, I didn't so don't do as I do...

May I suggest support point that out if you think change is needed :)

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

refresh list after deleting an item

Hi Anthony.

Thanks for your update.

Regards.

Return to “Issues”