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