Skip to main content
1-Visitor
November 16, 2021
Solved

How to delete repeater single row ?

  • November 16, 2021
  • 1 reply
  • 4210 views

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

 

Best answer by PaiChung

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

1 reply

22-Sapphire I
November 16, 2021

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_3164961-VisitorAuthor
1-Visitor
November 17, 2021

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.

22-Sapphire I
November 17, 2021

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."