Change dynamic panel state inside repeater widget

repeater-widget

#1

Good day lady’s&gentlemen’s
Please tell me how to correctly write a function in the repeater widget to add rows and change the state of the dynamic panel inside it?

for example… I have 3 buttons, each of which adds one row and changes the state of the dynamic panel to the corresponding ones.

Test

How locally pin and not change DP state on existing rows in repeater.


#2

In your ‘Add Row’ you would put a value (1, 2 or 3) that corresponded to a column in your repeater (say 'DynamicPanelState).

Then on the repeater itself, you would have three cases for loading items with different states. Case 1 would be ‘Load Row and set Dynamic Panel to State 1’, Case 2 would be ‘Load Row and set Dynamic Panel to State 2’ and so on.

This can get very complex if you have multiple different dynamic panels inside a repeater row which can be set in lots of different combinations. I’d suggest going through this excellent overview of repeaters by one of the forum members here.