Hi Guys,
Im developing a report. Nothing fancy but i have some trouble getting the data right.
The dataset looks like this:
dataitem(Sales_Line; "Sales Line")
{
column(ItemNo; "No.") { }
column(Variant_Code; "Variant Code") { }
column(Quantity; Quantity)
{
// Method = Sum;
}
column(Sell_to_Customer_No_; "Sell-to Customer No.") { }
dataitem(PItem; Item)
{
DataItemLink = "No." = field("No.");
column(ItemDescription; Description) { }
}
dataitem(PurchaseLine; "Purchase Line")
{
DataItemLink = "No." = field("No."), "Variant Code" = field("Variant Code");
//SqlJoinType = FullOuterJoin;
column(PurchQuantity; Quantity)
{
//Method = Sum;
}
}
}
}
The problem is that i get rows without some data in some fields. Like this:
| ItemNo |
Variant_Code |
Quantity |
Sell_to_Customer_No_ |
ItemDescription |
PurchQuantity |
| 001CAN |
Medium |
1 |
7987 |
Item A - red |
NULL |
| 001SAN |
Medium |
1 |
7987 |
NULL |
NULL |
This should only have been one row and it seems that the PurchQty from the Purchase Line table forces it to be another row added. Is this fixable?
If i use a query i get the right data but then i cant use report parameters, and i need to use it.
Thanks in advance!