Skip to Content
0
Former Member
Jun 14, 2007 at 09:54 AM

Inserting data into table using Business object

69 Views

Hi,

I have a list tile, in which records are being populated properly. On this tile I have a button. When I click this button, these records have to be inserted into some other table (for making history table).

for this, I have created one Business object of history table (for inserting the records into the table). I have added code on "mcore_BeforeSave" event.

> anchorofHistoryTable.bo.setattribute("column1",value1)

> anchorofHistoryTable.bo.setattribute("column2",value2) ...

> anchorofHistory.bo.save()

But when I debug, I am getting "NullReference Exception"..

Is this a right way? Please help me out

thanks

Mateen