Problem: Method chaining is useful to structure common functionality. A Implementation in Business Central requires a lot of objects and therefor object IDs. This blocks many reuse scenarios.
Idea: The interface object type has no object ID. It is used to provide a subset of methods of an implementation codeunit. By chaining Interfaces and with just 2 Codeunits (One to define the starting point, the other for the chained methods) it becomes possible to implement complex method chaining structures.
Collect Files contained in TempBlobs in a zip file. Create textfiles on the fly. Download all files in a zip package.
Objects | Description |
---|---|
Codeunit DocInfo | Access to DocInfo functions |
Codeunit DocInfoImpl | all interface implementations |
multiple interfaces | used to structure and chain methods |
- DocInfo.From(HeaderRecord)
- SalesAddress
- SellToAddress
- BillToAddress
- ShipToAddress
- RelatedTables
- PaymentTerms
- ShipmentMethod
- SalespersonPurchaser
- SalesAddress
- DocInfo.From(HeaderRecord)
- PurchAddress
- BuyFromAddress
- PayToAddress
- ShipToAddress
- RelatedTables
- PaymentTerms
- ShipmentMethod
- SalespersonPurchaser
- PurchAddress
- DocInfo.From(LineRecord)
- Item
- TrackingSpecification