📚 SAP Business One SDK Help

EventType Property
See Also  Example

Description

The event type, specifying the action performed on the widget.

Property type

Read-only property

Syntax

Visual Basic
Public Property EventType() As BoWidgetEventTypes

Example

Setting the Event Type When You Create or Close a Widget (C#)Copy Code
void SBO_Application_WidgetEvent(ref SAPbouiCOM.WidgetData pWidgetData, out bool BubbleEvent) 
If (pWidgetData.EventType == SAPbouiCOM.BoWidgetEventTypes. wet_content_save) 

    //This event is raised when SAP Business One is being closed 
    oWidget.SetValue(“URL”, “www.google.com”); 
    oWidget.SetValue(“BPCode”, “i001”); 

 
if (pWidgetData.EventType == SAPbouiCOM.BoWidgetEventTypes.wet_created) 

    String bpcode = oWidget.GetValue(“BPCode”); 
    oEditText.string = bpcode; 

See Also