📚 SAP Business One SDK Help

Project Overview

Description

This help provides complete reference information for the UI API objects and enumerations.

Classes

Class ModuleDescription
ActiveXRepresents an ActiveX object.
ApplicationThis is the root object for the UI API, reflecting the current SAP Business One application on which the connection is made.

Access the object via the SboGuiApi.GetApplication method.

BusinessObjectRepresents a user-defined object connected to a form.

Access the object via the Form.BusinessObject property.

BusinessObjectInfoContains information about the current FormDataEvent.
ButtonRepresents a button in a form.
ButtonComboRepresents an item that provides the functionality of a ComboBox and Button in a single control.
CellRepresents a matrix cell, specified by its column and row.   
CellPositionThe position of the cell.
CellsThe collection of Cell objects in a matrix column.
CheckBoxRepresents a check box in a form.
CheckBoxColumnRepresents a column with an check box.

Access the object via Column.Item when the column type is gct_CheckBox.

ChooseFromListRepresents a ChooseFromList form.
ChooseFromListCollectionA collection of ChooseFromList objects in a form.

Access the collection via the Form.ChooseFromLists property.

ChooseFromListCreationParamsContains information for defining a new ChooseFromList.

Mandatory properties: UniqueID and ObjectType

ChooseFromListEventContains information about the current choose from list event, which is an ItemEvent event of type et_CHOOSE_FROM_LIST.

To access this object, cast the ItemEvent object into this object.

CockpitRepresents a cockpit, which is a personalized work center where you can view, search, organize, and perform your regular work and related activities.
CockpitsA collection of Cockpit objects. This object holds all the cockpits in the application.
ColumnRepresents a matrix column.

Use this object to set column properties and to access specific cells.

ColumnsA collection of Column objects in a matrix.
ColumnSettingRepresents the settings for a special column cell in a grid or matrix.
ColumnTitleRepresents the title of a column in a grid or matrix.
ComboBoxRepresents a combo box in a form.
ComboBoxColumnRepresents a column with an combo box.

Access the object via Column.Item when the column type is gct_ComboBox.

CommonSettingRepresents the common settings for cells or rows in a grid or matrix.
CompanyRepresents the company database to which the SAP Business One application is connected.
ConditionRepresents an SQL condition (Where statement), for use with ChooseFromList and DBDataSource objects.
ConditionsA collection of Condition objects.
ContextMenuInfoContains information about the current RightClickEvent.
DataBindRepresents data that is bounded to a form item.
DataBrowserAn object that enables navigation buttons and menus for moving from one record to the next.

To enable the navigation buttons, set the BrowseBy property.

DataCellRepresents a cell in a DataTable object.
DataCellsA collection of DataCell objects.

Access the object via the DataColumn.Cells property.

DataColumnRepresents a column in a data tabe.

Access the object via the DataTable.Columns property.

DataColumnsA collection of DataColumn objects.

Access the object via the DataTable.Columns property.

DataRowsRepresents rows in a data table.

Access the object via the DataTable.Rows property.

DataSourceContains the open data sources of a form.
DataTableRepresents data in matrix form, for Matrix and Grid objects.
DataTablesA collection of DataTable objects.
DBDataSourceRepresents a SAP Business One database table to be attached to a form.
DBDataSourcesA collection of DBDataSource objects.
DesktopRepresents the SAP Business One desktop (main window).  Use this object to change window properties.
EditTextRepresents a text box in a form.
EditTextColumnRepresents a column with an edit text.

Access the object via Column.Item when the column type is gct_EditText.

EventFilterRepresents an event filter, which holds a collection of form types on which this event filter applies. 

Each event filter filters in a single event type, as specified in the EventFilters.Add method.

EventFiltersA collection of EventFilter objects.

By default, the UI API gets every event triggered by the SAP Business One application. Most of these events may not be useful to your add-on and handling all of them can hurt performance.

This object lets you filter the events your add-on receives and also specify the forms to which these filtered events apply.

EventFormContains information about the object level events for forms in the SAP Business One application.
ExtendedItemEventExtendedItemEvent Class
FieldContains metadata for a field in a database table (DBDataSource).
FieldsA collection of Field objects.

Access the collection from DBDataSource.Fields.

FolderRepresents a folder in a form.
FormRepresents a form in the SAP Business One application.

The form is identified by its unique ID, but only for the lifecycle of the form. 

FormCreationParamsContains information for defining a new form.

Using this interface to create a new form enables you to specify the form type as string, so you can add your partner namespace to the form type. In addition, you can set a reference to a user-defined object with the ObjectType property. For more information, see User-Defined Objects in the UI API.

FormInfoContains resource information for a form.

Access the object via the ResourceData object.

FormsA collection of Form objects. This object holds all the open forms in the application.
FormSettingsRepresents form preferences for a Form object.
FormTypeRepresents a form type, for example, the Business Partners Master Data form type, which is 134.
GridRepresents a grid, which displays data in a table.
GridColumnRepresents a column in a grid.
GridColumnsA collection of GridColumn objects.
GridRowsRepresents the rows of a Grid.
ItemRepresents an item in a form. The Item object is uniquely identified by its UniqueID property and holds all the data of the referenced form item.

Use the this object to set item properties such as size, string, location, etc and to get its specific item properties.

ItemDragEventInherited from the ItemEvent object. Contains information about the current ItemEvent and the drag position.
ItemEventContains information about the current ItemEvent.
ItemInfoContains resource information (alias name) for an item.

Access the object via the FormInfo.GetItemInfo method.

ItemsA collection of Item objects.

Use this collection to access a form's items.

LayoutKeyInfoContains information about the current LayoutKeyEvent.
LinkedButtonRepresents an arrow link in a form.

An arrow link enables quick navigation between relevant objects. For example, an arrow link next to the Customer field in the A/R Invoice form opens the Business Partner Master Data form for the relevant customer.

Note: You can also use this feature to link to the UDO default forms and the user-defined forms.

MatrixRepresents a matrix, which displays data in a table.
MenuCreationParamsDefines the properties for new menu items.

With the Menus.AddEx method, you can use this object to do the following:

  • Add and update application menus: To create or modify application menus, use the unique ID provided with each menu in the application. This ensures that your menu modifications are not affected by future versions.
  • Add dynamic menu to your add-on forms: Using Form.Menu, you can add dynamic menus to your add-on forms. Dynamic menus appear under the Goto menu when the form gets focus.
MenuEventRepresents a menu event in SAP Business One application (click on a menu item only). You use this object to interfere with SAP Business One process for this event.
MenuItemRepresents an item in a menu.
MenusRepresents a menu, that is, a collection of MenuItem objects.

The menu may be the top-level menu, or a submenu.

OptionBtnRepresents an option button.
PaneComboBoxNo longer supported.
Use ComboBox instead.
PickerEventContains information about the current picker event, which is an ItemEvent event of type et_PICKER_CLICKED.
PictureBoxRepresents a picture box.
PictureColumnRepresents a column with an image.

Access the object via the Column.Item method when the column type is gct_picture.

PrintEventInfoContains information about the current PrintEvent.
ProgressBarRepresents a progress bar created using StatusBar.CreateProgressBar.
ProgressBarEventContains information about the current ProgressBarEvent.
ReportDataInfoContains information about the current ReportDataEvent.

Use this object to get the data of a report that was sent for print or print preview. To get the data, call the RegisterForReport method in the before notification of the event. The data is provided in the after notification.

ResourceDataContains resource information for forms and items.

Access the object via the ResourceData property.

RowHeadersRepresents the row header column of a grid, which is the first column in a grid.
SBOChooseFromListEventArgContains information about the current choose from list event.

To access this object, cast the SBOItemEventArg object into this object.

SboGuiApiThe object for establishing a connection to an active SAP Business One application.
SBOItemEventArgContains information about the current ItemEvent.
SBOPickerEventArgContains information about the current picker event.

To access this object, cast the SBOItemEventArg object into this object.

SBOWebMessageEventArgContains information about the current Web message event.

To access this object, cast the SBOItemEventArg object into this object.

SelectedRowsRepresents the selected rows of a Grid object.

Use this object to set lines as selected or as unselected.

Access the object via the SelectedRows property.

StaticTextRepresents a label item.
StatusBarRepresents the SAP Business One status bar.

Use this object to create a progress bar within the status bar or to set a status bar message.

UDOEventOccurs when you open a new UDO default form (with the header-line style) in SAP Business One.
UserDataSourceA container for item data that is not stored in the database.
UserDataSourcesA collection of UserDataSource objects.
ValidValueRepresents a valid value for an item, such as a ComboBox or ButtonCombo.
ValidValuesA collection of ValidValue objects.
WebBrowserRepresents a web browser.
WebMessageEventContains information about the current Web message event, which is an ItemEvent of type et_ITEM_WEBMESSAGE.
WidgetRepresents a widget instance in the cockpit. The widget can help users to perform a certain kind of task.
WidgetCategoryRegParamsThe registration parameters of the widget category.
WidgetDataContains the general information of a widget.
WidgetKeyParamsWidget key parameters are used to differentiate all instances of the same widget. The parameters are a pair of key-value strings.
WidgetKeysParamsA collection of WidgetKeyParams objects.
WidgetRegParamsThe registration parameters of the widget.
WidgetsA collection of Widget objects. This object holds all the widget instances in the cockpit.

Public Enumerations

EnumerationDescription
BoAppEventTypesApplication event types.
BoAutoFormModeUser modes available to your add-on form, used for automatic management of form modes.
BoAutoManagedAttrDetermines the item attribute for which you want to set automatic behavior in Item.SetAutoManagedAttribute.
BoButtonTypesButton types.
BoCellClickTypeTypes of mouse clicks on a cell.
BoClientTypeIdentifies if the SAP Business One client is operating in Windows desktop mode or Browser Access mode.
BoColumnDisplayTypeTypes of column cells displayed in a matrix or a grid. 
BoColumnSumTypeTypes of the sum cell.
BoComboDisplayTypeTypes of items displayed in a combo box.
BoConditionOperationComparison operations.
BoConditionRelationshipLogical operations.
BoCreatableObjectTypeTypes of objects created by Application.CreateObject.
BoDataTableXmlSelectThe types of XML that is returned from the SerializeAsXML method of a DataTable object, or the XML that is uploaded by the LoadSerializedXML method.
BoDataTypeData types.
BoEventLevelTypeThe event level.
BoEventTypesItem, form data, right-click, print, and report data event types.

All events are item events, unless otherwise indicated in italics in parentheses.

BoExpandTypeThe expand types of the combo box.
BoExtensionLCMStageTypeThe stage of your extension lifecycle management.
BoFieldsTypeField types for fields in the DataTable and DBDataSource objects.

The decimal precision of some of the fields is determined by settings located at Administration --> System Initialization --> General Settings.

BoFontStyleTypes of the font styles in a cell.
BoFormBorderStyleTypes of form borders.
BoFormItemTypesTypes of form items.
BoFormModalityA modal form is a child form to a parent form and suppresses parent's control. A user may not press any controls or enter any information on the parent form until the modal has been closed.
BoFormModeModes in which a form can appear.
BoFormObjectEnumThe form objects.
BoFormSizeableItemTypesThe item that is sizable in a form.
BoFormStateEnumStates of the SAP Business One main window.
BoFormTypesDetermines a visual attributes of the form border.
BoGridColumnTypeTypes of GridColumn objects.
BoGridSortTypeSort orders for grid columns.
BoLanguagesLanguages and localizations for the user interface of SAP Business One.
BoLicenseStatusAccess rights for a form.
BoLinkedObjectTarget objects of a LinkedButton object.
BoMatrixLayoutTypeMatrix layouts.
BoMatrixSelectMatrix selection formats.
BoMatrixXmlSelectThe type of XML that is returned from the SerializeAsXML method of a Matrix object.
BoMenuTypeTypes of menu items.
BoMessageTimeTimespans for a message to appear in the SAP Business One application.
BoModeVisualBehaviorDetermines the item behavior in the selected item attribute and form mode set by Item.SetAutoManagedAttribute.
BoModifiersEnumModifier keys that can pressed at the same time as a standard key.
BoOrderTypeIndicates how the GetNextSelectedRow method of the Matrix object returns results.
BoPickerTypePicker types, used to find out what type of picker triggered an event or is active in an EditText item.
BoPrintEventTypesPrint event types.
BoProgressBarEventTypesProgress bar event types.
BoScrollBarsTypes of scroll bars for the extended EditText item (text box with multiple lines).
BoSearchKeyIndicates how the Select and SelectExclusive methods of the ComboBox object locates items within its valid values.
BoSeparateLineTypeThe type of the separate line.
BoSeriesModeIndicates which series to load into valid values.
BoSkinStyleThe skin for the SAP Business One user interface.
BoStatusBarMessageTypeTypes of status bar messages.
BoTextStyleFont styles for items and columns, used with the TextStyle property.
BoUDOObjectTypeThe object type of the user-defined object.
BoValidValueDefaultsDefault valid values.
BoWallpaperDisplayTypesIndicates how a wallpaper image is displayed on the SAP Business One desktop.
BoWidgetEventTypesWidget event types.
BoWindowsMessageTypeMessage types for the RemoveWindowsMessage method.