Matt
Posts: 0
Joined: Tue Oct 16, 2012 7:26 pm

Specific listitem with REST call issue

So, I have a list that is being populated from a REST get service. I have verified that the id field is being populated with good data for each item and everything is being displayed correctly.

I have a button in the listitem that is for deleting the record via a REST delete service. I have verified the service works correctly with the test mechanism. The uri for the service is http:/xxx.xxx.xxx.xxx/rest/{playList}/item/{id}. I have mapped the id text field from the listitem to id request parameter. However, when the service executes, it is sending every id for all of the records instead of for the item which was clicked.

What have I done wrong??

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Specific listitem with REST call issue

Hello! If Delete button is in the list item you need to delete, you have to save _id from list item to the localStorage (to do that on button Click event use Set local storage variable action and bind localStorage variable to element contained _id). In mapping map corresponding localStorage variable to corresponding request parameter.

Matt
Posts: 0
Joined: Tue Oct 16, 2012 7:26 pm

Specific listitem with REST call issue

That worked! Thanks Maryna!

Return to “Issues”