I'm creating a report for which I need to link the Item Ledger Dataset to an Item Dataset.
I'm unsure on how to set the DataItemTableView and DataitemLink. My thoughts were the DataItemLink would be Item No. = FIELD(No.)?
Here's my code for the purpose of retreiving the Item Ledger Entry.
recInvtSetup.FINDFIRST;
CLEAR(gstrItemVariant);
gstrItemVariant := "Item Ledger Entry"."Item No.";
IF recitem.GET("Bin Content"."Item No.") THEN
"Item Description" := recitem.Description;
recItemLedgerEntry.GET(recItemLedgerEntry."Entry No.");
IF recItemLedgerEntry."Variant Code" <> '' THEN BEGIN
LotNo :=
recItemLedgerEntry."Item No."+
' - ' +
recItemLedgerEntry."Variant Code";
EncodedBarCode :=
cuCPUtils.EncodeBarcode128(
recItemLedgerEntry."Item No."+
'|' +
recItemLedgerEntry."Variant Code"
);
END ELSE BEGIN
LotNo := recItemLedgerEntry."Item No.";
EncodedBarCode :=
cuCPUtils.EncodeBarcode128(
recItemLedgerEntry."Item No."
)
END;
ERROR('ll');
LotNoLabel := Text004;
NoOfLoops := 1
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
check whether you are getting records in item dataitem.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav