Info | ||
---|---|---|
| ||
|
...
Excerpt |
---|
Modify an existing Report Print standard report, to include more information in the layout and barcode. |
Available reports: Standard Label Reports (Report Print)
See also: Microsoft Learn Reports overview
...
Using the Report Extension object you can add additional fields to the dataset and request page etc.
reportextension51065"MOB Item Label Ext"extends"MOB Item Label"
{
//
// [How to] [How-to: Extend Mobile WMS Report and Barcode]
//
dataset
{
// Add changes to dataitems and columns here
add(Item)
{
// Add a new standard field to dataset
column(BaseUom; "Base Unit of Measure")
{
}
// Add a new custom field to dataset
column(ItemVersion; ItemVersionReq)
{
}
}
modify(Item)
{
triggerOnBeforeAfterGetRecord()
begin
// You can add and encode you own values to the barcode used in the report.
// Example, add custom Ai 96 + 97 and values to be encoded.
ifItemVersionReq<>0then
Add_CustomAiAndValue('96', Format(ItemVersionReq, 0, 9));
Add_CustomAiAndValue('97', Item."Base Unit of Measure");
end;
}
}
requestpage
{
// Add you custom field to the requestpage here
layout
{
addafter(OptionalValues)
{
// Add field from table extension to request page
field(ItemVersion; ItemVersionReq)
{
Caption='Item Version Number', locked=true;
ApplicationArea= All;
}
}
}
}
var
ItemVersionReq: Integer;
}
Anchor | ||||
---|---|---|---|---|
|
Encode custom value to GS1 Datamatrix barcode (optional)
...
You can add custom values to be encoded using the procedure as shown in the code from step 1.
triggerOnBeforeAfterGetRecord()
begin
// You can add and encode your values to the report's barcode.
// Example, add custom Ai 96 + 97 and values to be encoded.
ifItemVersionReq<>0then
Add_CustomAiAndValue('96', Format(ItemVersionReq, 0, 9));
Add_CustomAiAndValue('97', Item."Base Unit of Measure");
end;
Step 2: Modify RDLC layout
...