Guide - Universal Functions - Dynamic Code - How to use ExtendedEventInformation

  • Updated

In B1UP 2015.05 we added a new ExtendedEventInformation property to dynamic code that allows you to get the raw eventData of an event that happened.

When you are inside dynamic code you have access to a variable called "eventData" from this you have a property called ExtendedEventInformation which returns an object.

This object represents a core event object that you can convert. We support ItemEvent/ChooseFromListEvent, FormDateEvent and MenuEvent.

 

Sample 1: (ItemEvent)

var pValRaw = eventData.ExtendedEventInformation as ItemEvent;
string colUid = pValRaw.ColUID;

Sample2: (ChooseFromListEvent)

var pValRaw = eventData.ExtendedEventInformation as ItemEvent;
DataTable selectedObjects = ((ChooseFromListEvent)pValRaw).SelectedObjects;
if(!selectedObjects.IsEmpty)
{
   //do something
}

Sample 3: (MenuEvent)

var pValRaw = eventData.ExtendedEventInformation as MenuEvent;
string menuId = pValRaw.MenuUID;

 

Sample 4: (FormDataEvent)

var pValRaw = eventData.ExtendedEventInformation as BusinessObjectInfo;

string xml = pValRaw.ObjectKey;

 

 

 

Was this article helpful?

2 out of 2 found this helpful

Comments

0 comments

Please sign in to leave a comment.