DMXzone Server Connect Support Product Page

Under investigation

how to delete data from a table

Reported 06 Aug 2018 13:37:39
1
has this problem
06 Aug 2018 13:37:39 andrea mac posted:
Hi, I'm trying to do something like this tutoril:
www.dmxzone.com/go/32190/dmxzone-server-connect-manual/23306/delete-database-records
In other words, I have a page with a table and a delete button on each row (at the moment the button is not on the page).
I've followed the tutorial so I've a form on each row with an hidden field. The hidden field has a dynamic attribute - VALUE set on the ID of the repeat (data binfings).
The problem is the thidden field doesn't get the id but shows "[object Object]".
Can someone help me?
You can visit a test page at this url:
www.campaniaturismo.org/test_room/test_sort_and_delete.php
Thank you

Replies

Replied 07 Aug 2018 07:27:28
07 Aug 2018 07:27:28 Teodor Kuduschiev replied:
That is strange indeed, what happens if you bind the {{idprovinciaarea}} in the repeat?
Replied 07 Aug 2018 08:10:58
07 Aug 2018 08:10:58 andrea mac replied:

If you bind the Idprovinciaare like text (no in the text field but directly on the page) it runs well
Replied 07 Aug 2018 08:12:40
07 Aug 2018 08:12:40 Teodor Kuduschiev replied:
Please try changing the name and id of the input to something else, as they are using the "idprovinciaarea" and maybe the repeat is putting this value as name/id for them.
Replied 07 Aug 2018 08:15:24
07 Aug 2018 08:15:24 andrea mac replied:
Ok Theodor. I'll try in the afternoon because I"m at work now. I'll keep you posted
Replied 07 Aug 2018 12:23:04
07 Aug 2018 12:23:04 andrea mac replied:
Ok Theodor, it runs now. So the id/name of the field must be different from the database field.
Replied 07 Aug 2018 12:31:38
07 Aug 2018 12:31:38 Teodor Kuduschiev replied:
Well, in your case this causes the issue as they see the name/id as the dynamic binding and render it instead.

Reply to this topic