Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

what table field add to item card ? (not tableextension add)

(0) ShareShare
ReportReport
Posted on by 5

My project  ID  limit  

I need reduce use

I need try  table field add to item card(page),

But  fail

I need help

Thanks!

Leo Liu

  • Suggested answer
    SHI_IT Profile Picture
    5 on at
    RE: what table field add to item card ? (not tableextension add)

    THANKS ALL

    My question

    I got the solution

    ------CODE------

    pageextension 60071 testpageext extends "Item Card"         //page add table  to Item Card
    {
    
    
    
        layout
        {
            addlast(Item)                                   //add ITEM category
            {
    
                field(LPK; Leo_P.Leo_PK1)                 //got Leo_P.Leo_PK1
                {
                    ApplicationArea = all;
                    Caption = 'test1_PK';
                }
    
    
            }
        }
        var                                        //call value load Table:Leo_table_TEST
            Leo_P: Record Leo_table_TEST;
    
    
    }
    
    
    //--------------------------------------------------------------------------------
    
    table 60072 "Leo_table_TEST"                      // Customize Table
    {
        Caption = 'Leo_table_TEST';
        //DataClassification = CustomerContent;
    
        fields
        {
            field(1; Leo_PK1; Code[30])
            {
                Caption = 'Leo_PK1';
                DataClassification = ToBeClassified;
    
            }
            field(2; Leo_PK2; Code[30])
            {
                Caption = 'Leo_PK2';
                DataClassification = ToBeClassified;
            }
            field(3; leo_ITEM; Code[30])
            {
                Caption = 'leo_ITEM';
                DataClassification = ToBeClassified;
            }
            field(4; leo_head; text[30])
            {
                Caption = 'leo_head';
                DataClassification = ToBeClassified;
            }
            field(5; leo_line; text[30])
            {
                Caption = 'leo_line';
                DataClassification = ToBeClassified;
            }
            field(6; "leo_test_BOX"; Code[30])
            {
                Caption = '';
                DataClassification = ToBeClassified;
            }
            field(7; "leo_test_ITEM"; Code[30])
            {
                Caption = '';
                DataClassification = ToBeClassified;
            }
    
        }
        keys
        {
            key(PK; Leo_PK1, Leo_PK2)
            {
                Clustered = true;
            }
        }
    
    
    }

  • Suggested answer
    Amit_Sharma Profile Picture
    2,545 on at
    RE: what table field add to item card ? (not tableextension add)

    Hi,

    Refer the below link

    https://erpconsultors.com/add-field-in-existing-table-using-extension/

    Regards

    Amit Sharma

    www.erpconsultors.com

  • Suggested answer
    Govinda Kumar Profile Picture
    2,211 Moderator on at
    RE: what table field add to item card ? (not tableextension add)

    Hello SHI_IT.

    I guess you want to add the table extension field in item card page..

    To add the field in item table

    tableextension 50101 itemTableExtension extends Item
    {
        fields
        {
            field(50100; YourField; Code[20])
            {
                DataClassification = ToBeClassified;
            }
        }
    }

    Then make the extension of the Item Card Page.

    pageextension 50103 CustomerCardExtension extends "Item Card"
    {
        layout
        {
            addbefore(Item)
            {
                group(MyGroup)
                {
                    Caption = 'My Group';
                    field(myField; Rec."myField")
                    {
                        ApplicationArea = All;
                        Importance = Standard;
                        Caption = 'My Field';
                    }
                }
            }
        }
    }

    Thanks and Regards.

    People

  • Suggested answer
    DAnny3211 Profile Picture
    9,276 Moderator on at
    RE: what table field add to item card ? (not tableextension add)

    Hello

    your request is not very clear

    can you be more precise?

    do you want to add a new field of the Item table to the relative PAGE Item Card?

    if so said, extend the page of the article card and insert the new field.

    I don't know if you mean this, otherwise you should give us one more example

    Daniele

  • SHI_IT Profile Picture
    5 on at
    RE: what table field add to item card ? (not tableextension add)

    Not code error

    Is Idea error

    I need table field  add  to item card new field, (reduce ID use)

    But I don`t have idea

    Thanks!

  • Suggested answer
    Nitin Verma Profile Picture
    21,544 Moderator on at
    RE: what table field add to item card ? (not tableextension add)

    Hi,

    Can you please share the screen shot? where you are getting the errors?

    Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,101 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans