Hi, if you want to show shortcut dimensions on the page, hope the following will help.


tableextension 50100 MyExtension extends Customer
{
fields
{
field(50103; "ZY ShortcutDim3Code"; Code[20])
{
Caption = 'Shortcut Dimension 3 Code';
CaptionClass = '1,2,3';
TableRelation = "Dimension Value".Code where("Global Dimension No." = const(3));
DataClassification = CustomerContent;
}
}
}
pageextension 50100 MyExtension extends "Customer Card"
{
layout
{
addafter(Name)
{
field("ZY ShortcutDim3Code"; Rec."ZY ShortcutDim3Code")
{
ApplicationArea = All;
}
}
}
}
As mentioned by Inge, the processing of Dimension is very special in BC, it is recommended that you can refer to the standard code to customize.
Hope this helps.
Thanks.
ZHU