LlDbSetMasterTable

Syntax:

INT LlDbSetMasterTable(HLLJOB hJob, LPCTSTR pszTableID);

Task:

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 report container object.

Parameter:

hJob: List & Label job handle

pszTableID: ID of the table which is used as the "master" table. Must be identical to the ID passed in LlDbAddTable().

 

Return Value:

Error code

Hints:

See the hints in chapter Printing Relational Data. Before using the call, the table must be passed with LlDbAddTable().

Example:

HLLJOB hJob;
hJob = LlJobOpen(0);

LlDbAddTable(hJob, "Orders", NULL);
LlDbSetMasterTable(hJob, "Orders");
<... etc ...>
LlJobClose(hJob);

See also:

LlDbAddTable, LlDbAddTableRelation, LlPrintDbGetCurrentTable, LlPrint­DbGet­CurrentTableSortOrder, LlPrintDbGetCurrentTableRelation