Writing Method in ListPage

hi,

am working in dynamics ax 2012. i have created a list page and displaying records in grid. whenever i delete a record from grid, it should check a particular field from the table.

the problem is i am unable to write any code in listpage .

how can i override delete action of the listpage through ListpageInteractionClass(which i have created for the listpage )… can anyone suggest me a solution???

why cannot you have it on validateWrite at table.

wouldn’t possible. But you can control the delete button in the interaction class.

how to control delete action in listpage class

I mean you can enable or disable the delete button in interaction class.

its validateDelete