After using add() to an existing dataitem on my report extension, I've noticed that I can't add another data item after using that command (add()).
How do I add another dataitem to a report extension?

After using add() to an existing dataitem on my report extension, I've noticed that I can't add another data item after using that command (add()).
How do I add another dataitem to a report extension?
Hi, jdrco,
Please use addafter() to add another dataitem.
Thanks,
tanya kharbanda
Please check the below screenshots:
Where can I get a more in depth explanation of dataitemlink? Still not sure what that does.
Please check the below -
Hi,
In the below example if you see, I have added dataitemlink where in -
ItemAttributes."No." field is linked to Sales Invoice."No"
For more queries, please share your code.
Thanks,
TK
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")
{
}
}
}
When I do this, the fields come up blank when try to render the report
Hi, just adding some info from MS.
More details: https://yzhums.com/10723/
Hope this also helps.
Thanks
ZHU