Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > disable eventlogger custom table add/delete View modes: 
User avatar
Member
Member
Allan - 7/20/2012 2:04:14 AM
   
disable eventlogger custom table add/delete
Hi,

Is there a way to disable event logging on custom table insert/delete when done through API? im using CustomTableItemProvider btw

Thanks!

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 7/20/2012 1:36:59 PM
   
RE:disable eventlogger custom table add/delete
I think that you'll have to do it without using the CustomTableItemProvider.

User avatar
Certified Developer 8
Certified Developer 8
arindam-discoverit.co - 2/13/2014 10:10:08 AM
   
RE:disable eventlogger custom table add/delete
hi, could you please tell us how to delete rows from a custom table without using CustomTableItemProvider through code?

Thanks,
AD

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 2/13/2014 11:02:17 AM
   
RE:disable eventlogger custom table add/delete
Hello,

You can manage the Custom tables data via CMS Desk -> Tools -> Custom tables.

For more details take a look at the Dev Guide -> Managing data in custom tables.

Best Regards,
Martin Danko

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 7/22/2012 5:37:21 PM
   
RE:disable eventlogger custom table add/delete
Hi,

You would need to override method SetEventLogInfoInternal as described in this customization blog post: global events blog post
         /// <summary>
/// Sets event log.
/// </summary>
/// <param name="eventLog">Event log object</param>
protected virtual void SetEventLogInfoInternal(EventLogInfo eventLog)
{
if (eventLog != null)
{
if (eventLog.EventID > 0)
{
eventLog.Generalized.UpdateData();
}
else
{
//TODO: check for custom table events
eventLog.Generalized.InsertData();
}
}
else
{
throw new Exception("[EventLogProvider.SetEventLogInfoInternal]: No EventLogInfo object set.");
}
}

Best regards,
Ivana Tomanickova