BusinessCentralLinkedFields改写为中文
创始人
2025-01-08 03:00:03
0

"Business Central关联字段"

示例代码如下:

1、创建表1 "Sales Order" 和表2 "Customer":

table Sales Order
{
    field(Sales Order No.; Code[20])
    field(Customer No.; Code[20])
    field(Customer Name; Text[50])
    field(Current Balance; Decimal[18,2])
    field(Document Date; Date)
 
    // 此代码创建名为 "Sales Order No." 的关联字段。
    // 此字段将链接到 "Customer No." 字段,并通过 "Customer No." 获取 "Customer Name" 和  "Current Balance" 。
    field(Customer; Lookup(Customer No.; Customer Name; Current Balance))
}
 
table Customer
{
    field(Customer No.; Code[20])
    field(Customer Name; Text[50])
    field(Current Balance; Decimal[18,2])
}

2、在页面上使用 Sales Order 表中的关联字段:

page Sales Order Card
{
    // 在页面布局中添加
    // 列表卡片顶部的标题
    layout
    {
        group(General)
        {
            field("Sales Order No."; "Document Date")
            field("Customer No."; "Customer")
            {
                // 设置格式
                ApplicationArea = All;
                CaptionClass = Customer;
                MultiLine = false;
                NewLine = false;
                ShowCaption = true;
            }
            field(Current Balance)
            field("Customer Name")
            {
                // 将 "Customer Name" 字段标记为只读
                ApplicationArea = All;
                Editable = false;
            }
        }
    }
}

相关内容

热门资讯

透视线上!aapoker可以开... 透视线上!aapoker可以开挂吗,wepokerplus作弊,技巧教程(都是真的有挂);原来确实真...
透视了解!红龙poker脚本,... 透视了解!红龙poker脚本,德州透视是真的假的,透牌教程(最初是真的有挂);红龙poker脚本软件...
透视好牌!wepoker脚本下... 透视好牌!wepoker脚本下载,aapoker辅助工具免费下载,重大来袭(有挂介绍)1)aapok...
透视私人局!hhpoker透视... 透视私人局!hhpoker透视脚本视频,wepoker怎么破解游戏,我来教教你(往昔真的有挂);《W...
透视存在!德普之星辅助器app... 透视存在!德普之星辅助器app,epoker免费透视脚本,必胜教程(原生真的是有挂);德普之星辅助器...
透视科技!aapoker辅助器... 1、透视科技!aapoker辅助器是真的吗,hhpoker免费透视脚本,玩家必看科普(有挂攻略);详...
透视真的!wepoker透视脚... 透视真的!wepoker透视脚本下载,pokemmo修改器手机版,教你攻略(一贯真的有挂);《WPK...
辅助透视!wepoker透视底... 辅助透视!wepoker透视底牌脚本,aapoker可以开挂吗,最新研发(有挂黑科技)1、许多玩家不...
透视好友房!智星德州菠萝插件官... 透视好友房!智星德州菠萝插件官网,aapoker怎么提高中牌率,扑克教程(一向是真的有挂);科技详细...
透视中牌率!德普之星辅助器,w... 透视中牌率!德普之星辅助器,wpk辅助ai,热点推荐(有挂透明)是一款可以让一直输的玩家,快速成为一...