Hello,
It's my first day with this great platform, to hit the point. I'm building an application that retrieve a collection from database, bind it to collapsibleSet control, the header of collapsible.Item is the collection.name. inside the collapsible.item there is two buttons and a label.
By clicking a button inside this collapsible.Item I need to delete this item from database. The delete service need the record ID in order to delete a record. While mapping collection to collapsibleSet I'm keeping the record ID in a hidden label. When i click the delete button I need to delete the record, how can I do that?
I couldn't find a direct way to do this, so as I said I have the record ID in a hidden label, by clicking the delete button I'm trying to get the label value using JS, but no luck. since the lable lie in iteration control, I can't get its value by control ID. I've tried to get the parent of Delete button and find the label from there, but also I couldn't do it.
Would you please help?
Thanks.