combit List & Label 29 - .NET Help
combit.Reporting.Dom Namespace / SubItemChart Class / SourceTablePath Property
Example


In This Topic
    SourceTablePath Property (SubItemChart)
    In This Topic

    Gets or sets the data source for this sub item. The string contains the full path within the database structure in the form ParentTable;ChildTable(Relation)..., e.g. Customers;Orders(Customers2Orders).

    Syntax
    'Declaration
     
    
    Public Property SourceTablePath As String
    public string SourceTablePath {get; set;}
    public:
    property String^ SourceTablePath {
       String^ get();
       void set (    String^ value);
    }
    Example
    // Add a chart item and name it.
    SubItemChart chart = new SubItemChart(LlChartType.Pie3D, container.SubItems);
    
    // Define the table from which the data comes from. The data source is the table "Order_Details".
    chart.SourceTablePath = "Employees;Orders(Employees2Orders);Order_Details(Orders2Order Details)";
    ' Add a chart item and name it.
    Dim chart As New SubItemChart(LlChartType.Pie3D, container.SubItems)
    
    ' Define the table from which the data comes from. The data source is the table "Order_Details".
    chart.SourceTablePath = "Employees;Orders(Employees2Orders);Order_Details(Orders2Order Details)"
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also