Page 1 of 1

Specific listitem with REST call issue

Posted: Fri Nov 29, 2013 5:28 pm
by Matt

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??


Specific listitem with REST call issue

Posted: Fri Nov 29, 2013 6:45 pm
by Maryna Brodina

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.


Specific listitem with REST call issue

Posted: Fri Nov 29, 2013 7:10 pm
by Matt

That worked! Thanks Maryna!