📚 SAP Business One SDK Help

ReportType Property
See Also  Example

Description

The report type code. By setting this property, you can relate the form with a report type.

Property type

Read-write property

Syntax

Visual Basic
Public Property ReportType() As String

Example

Setting Report Type of the Form (C#)Copy Code
SAPbobsCOM.ReportTypesParams reportTypes = rptTypeService.GetReportTypeList(); 
for (int i = 0; i < reportTypes.Count; i++) 

    if ( 
        reportTypes.Item(i).TypeName == "Addon Demo Type 3" 
        && 
        reportTypes.Item(i).AddonName == "SimpleForm" 
        && 
        reportTypes.Item(i).MenuID == "MySubMenu01" 
        && 
        reportTypes.Item(i).AddonFormType == "MySimpleForm" 
        ) 
    { 
        oForm.ReportType = reportTypes.Item(i).TypeCode; 
        break; 
    } 

See Also