Issue with tablerepeat + cookie value

Good day, can someone please help me with why this doesn’t work, I’m new to Wappler…

I can’t manage to set the cookie value for a row in a tableRepeat:

  1. In the cookie manager I created “carID”.
  2. In the table I created a mouse click dynamic event on the Row
  3. It should create a cookie for “carID” with the value for that row’s ID
  4. But when clicking on any row it gives an “undefined” Value.

I followed the tutorial step by step, I really don’t understand why it doesn’t work.
When I put a static value on the dynamic event it works, why doesn’t it work for the tableRepeat?

I hope that I explained the problem well

Hi, on your third screenshot I notice a wrong value selected. It must be just id and not tableRepeat1[0].id - probably you picked a wrong expression there?

1 Like

Thank you for your reply!
Yes… when I changed it in the code to only “id” it worked.

When I click in the selection on “id” it returns tableRepeat1[0].id.
Would that be a bug? Or what else should I press on next time?

Thank God it’s that simple. I spent hours figuring out the same issue that you had!

1 Like