Skip to main content
Nov 16, 2021 9:47 AM UTC
Solved

How to delete repeater single row ?

Hi Everyone,

I have used repeater widget to show some name on selection of dropdown entry.
Now I want to delete a row from the repeater by clicking on repeater row.

I am using Thingworx 8.2 I know its too old version but I don't have option right now. I could not find any solution on it. If you guide the solution it will help me,

Please refer attachment

 

PaiChungAnswer
Dec 2, 2021 1:22 PM UTC

Sounds like you are making good progress, as I mentioned in my previous comment: "chain service invoke complete to a parameter change either mashup or session that goes back to the parent and there you can use mashup parameter value changed event to run the service to re-generate the repeater data."

So now within the repeater mashup as you click the x and do the delete, use that service's invoke complete to toggle some value either in mashup parameter or session to bring that back to the repeater's parent mashup to then using mashup parameter value changed event to trigger your 'add user' service

13 replies

Nov 16, 2021 12:49 PM UTC

The repeater itself also honors 'selected row'. Set 'Allow Selection' to true, then have a delete button outside the repeater and use the selected row to do the delete, then refresh.

Alternate would be to make sure that you pass some sort of 'index' into each repeated entry and have a delete button inside the repeated mashup that can use that to do the delete, and then you'll need to 'pass up' a refresh.

DT_316496Author
Nov 17, 2021 4:40 AM UTC

Hi @PaiChung 

Yes I know taking delete button outside mashup it will work to delete selected row I don't want this.
I want to delete a row when I will click on X icon which is present in the repeater so that one name should be delete.

Or 

let me know if this requirement I can developed in the grid also I just want to delete a single name on the click of X icon.

Using grid or repeater is also fine but I am not sure whichever widget will run.

Appreciate your response.

Nov 17, 2021 3:37 PM UTC

You want to do this part then:

"Alternate would be to make sure that you pass some sort of 'index' into each repeated entry and have a delete button inside the repeated mashup that can use that to do the delete, and then you'll need to 'pass up' a refresh."