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

How can I delete a list item on one page if form is residing with the list service on another?

How do I delete Collapseable list item (not mobilelistitem) if my form to create it is on one page but the Collapseable is on the other? I have tried the To Do List tutorial but my list service is tied to main form page, not the list page. Really lost here. I am able to get the list page to populate by using the read service instead. Please help.

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

How can I delete a list item on one page if form is residing with the list service on another?

Hi Dave.

Sorry but your situation is not clear for us.

If you want delete one item from the list you need to use "delete" service and then run "list" service after "delete" service is done.

If your "delete" service on first page and "list" service on second one you should:

1 Run Delete service on first page.

2 On "success" event of delete service - set LSV "itemIsDeleted" with "true" value. And navigate to second page after.

3 On "page show" event of second page you need get "itemIsDeleted" and if value = "true" - run list service. And delete "itemIsDeleted" LSV after.

Regards.

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

How can I delete a list item on one page if form is residing with the list service on another?

Im Sorry Yurii, what is LSV? Where do I find it and how do I access it? I searched appery.io Docs and got:

Your search for 'LSV' did not match any entries.
You can return ← Home or search for the page you were looking for.

I would be happy to attempt your solution, but it is too convoluted for me to follow not knowing what LSV is.

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

How can I delete a list item on one page if form is residing with the list service on another?

Ok, figured out you are referring to Local Storage Variable.. but do I use the Javascript button next to it to insert itemIsDeleted? Not sure how it should read.. is it just as follows?

itemIsDeleted=true

itemIsDeleted val="true"

not sure how to write these.

thnx,

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How can I delete a list item on one page if form is residing with the list service on another?

Hi Dave,

Sorry for the misunderstanding, it's localStorage variable.

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

How can I delete a list item on one page if form is residing with the list service on another?

Ok, this is coming together but still may need a completed suggestion for the value field.

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

How can I delete a list item on one page if form is residing with the list service on another?

Thank you Katya, I'm still a bit lost with step three of his instructions. How do I delete the LSV once all things have processed, and how to I reacreate it to use again each time I need it? Just doesn't make sense to me.. please elaborate. Thanks again.

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

How can I delete a list item on one page if form is residing with the list service on another?

Hello Dave,

You can delete localStorage variable (LSV) this code: localStorage.removeItem(key);
And it will be created when you set it value. For example, localStorage.setItem("test","s") create variable "test" and set value "s" to it.

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

How can I delete a list item on one page if form is residing with the list service on another?

Of the three steps Yurii outlined above, what changes if I am doing everything on a single page? I can't get that to work.

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

How can I delete a list item on one page if form is residing with the list service on another?

Hello Dave,

If you want to delete item from the list on the same page. You can skip steps with local variable. You call delete service and then on the same page you call getList service.

Return to “Issues”