Skip to content

Dynamic Ship · Developer

Extend the Package Worksheet in Dynamic Ship to Display Custom Data Fields

Last updated May 21, 2026

This article demonstrates how to extend the Package Worksheet in Dynamic Ship to display custom data fields. This could be any piece of data related to the order line, item, or anything custom you may have in your process.

Example scenario

A company wants to display a custom field from the Sales Line on the Package Worksheet so that packers can see additional shipping instructions.

The objectives are:

  • Retrieve the custom field from the Sales Order.
  • Pass the value into the Package Worksheet context.
  • Display the value to the user while packing items.

Implementation

Create a table extension

Add a custom field to the DSHIP Package Line Buffer (can also be a flowfield):

tableextension 80308 "IW EG Package Line Buffer Ext." extends "DSHIP Package Line Buffer"
{
    fields
    {
        field(80301; "IW EG Additional Notes"; Text[250])
        {
            Caption = 'Additional Notes';
        }
    }
}

This field stores the additional notes for the item.

Extend the Package Worksheet Page
pageextension 80308 "IW EG Package Worksheet Ext." extends "DSHIP Package Worksheet"
{
    layout
    {
        addafter(Description)
        {
            field("IW EG Additional Notes"; Rec."IW EG Additional Notes")
            {
                ApplicationArea = All;
                ToolTip = 'Additional notes.';
            }
        }
    }
}

This adds the additional notes to the worksheet interface.

Create a page extension to display the custom data:

Populate the Field

Use an event subscriber to load the value from the related Sales Order. Example:

[EventSubscriber(ObjectType::Codeunit, Codeunit::"DSHIP Event Publisher", 'OnAfterLoadLineBuffer', '', true, true)]
    local procedure HandleOnAfterLoadLineBuffer(recRef: RecordRef; var lineBuffer: Record "DSHIP Package Line Buffer" temporary)
    begin
                if (lineBuffer.FindSet(false)) then begin
            repeat
                lineBuffer."IW EG Additional Notes" := 'Notes here';
                lineBuffer.Modify(false);
            until (lineBuffer.Next() = 0);
        end;
    end;

This ensures the custom field is populated when the order is loaded into the Package Worksheet.

Result

When a user opens the Package Worksheet for a Sales Order:

  • The system loads the order,
  • custom data is retrieved, and
  • the field is displayed on the worksheet page.

Warehouse staff can now see important information during packing.

View this article as Markdown

Still need help?

Ask other Business Central users in the Insight Works community, or send the details to the support team. Include the steps you took and any error message you saw.