RE: How to add a dataitem to Report Extension?
Hi tanya07 , thanks for your active help. What I am trying to do create a report extension for the Customer Statement that:
- gets the shipping information of the customer from the Sales Invoices or Posted Sales Invoices that is related to the current customer
- get Sales Invoice Line information from all of the Posted Sales Invoices of the specific customer
Here is my code for the first bullet so far in the report extension after the add() command:
addlast(Customer)
{
dataitem("Sales Header"; "Sales Header")
{
DataItemTableView = sorting("Document Type", "No.");
DataItemLink = "Sell-to Customer No." = field("No.");
column(ShipToName; "Ship-to Name")
{
}
}
}