Back
eventDetailView
Table and Grid formating
eventDetailView
Calls PHP function defined here whenever the detail view changes
Default:
This event will be triggered as long as a keyCol primary key has been defined.

The easiest way to explain this is to give an example:

The detail view is useful for emulating user interfaces such as email readers. Whenever we view an email, we want to mark the email as read. So we do the following:

function MarkAsRead($id)
{
global $DB;

  $DB->Execute("update table set read=1 where id=$id and read=0");
}

$lens->eventDetailView('MarkAsRead');

 Basic:Yes  Advanced/Enterprise:Yes  DynamicEdit:Yes   [Version 2.0]