combit List & Label 29 - .NET Help
combit.Reporting Namespace / LlCore Class / LlDbSetMasterTable Method
Table name
Example


In This Topic
    LlDbSetMasterTable Method
    In This Topic

    If the master data is passed as variables, List & Label needs to know which table is the "master" table in order to be able to offer the suitable sub tables in the table structure window. If you set the master table name using this method, all tables related to this table can be inserted at the root level of the table object.

    Syntax
    'Declaration
     
    
    Public Sub LlDbSetMasterTable( _
       ByVal tableName As String _
    ) 
    public void LlDbSetMasterTable( 
       string tableName
    )
    public:
    void LlDbSetMasterTable( 
       String^ tableName
    ) 

    Parameters

    tableName
    Table name
    Example
    // Pass the tables
    
    LL.Core.LlDbAddTable("Orders");
    LL.Core.LlDbAddTable("OrderDetails");
    LL.Core.LlDbAddTableRelation("OrderDetails", "Orders", "Orders2OrderDetails");
    LL.Core.LlDbSetMasterTable("Orders"); 
    
    // Localisation
    LL.Dictionary.Tables.Add("Orders", "Bestellungen")
    LL.Dictionary.Tables.Add("OrderDetails", "Bestellposten")
    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