cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete a row using Bdoc

Former Member
0 Kudos

Hi All,

I have a 'Delete' button on a detail tile. When I click on this button, I have to delete a particular row from the table. So, can I delete that row using BDoc so that the data would be synchornized into CRM server. Please help me out.

Thanks in advance,

Regards

Mateen

Accepted Solutions (0)

Answers (3)

Answers (3)

santosh_v
Employee
Employee
0 Kudos

Hi Mateen,

I am not sure why you want to do a delete using BDoc. The delete will be taken care automatically by the framework - you don't even have to write code for it. All you have to do is ensure that Allow Delete is enabled for the Tile.

Thanks and Regards,

Santo.

Former Member
0 Kudos

Hi Mateen,

Use .delete method of Business collection object.

Best Regards,

Pratik Patel

<b>Reward with Points!</b>

Former Member
0 Kudos

If you have a list, it is mapped to a business collection. So if you want to delete an entry when pressing the button, you have to go and do something like

myCollection.item(mySelectedRow).delete

An alternative if your list does not contain a business collection liked to Bo's and the database is that beforeDelete you go and instantiate the BO to be deleted and then do a myBO.delete on it.

Hope this helps, Kai