Skip to main content

Notifications

Announcements

No record found.

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

Page Extension Shows a + Icon in the field instead of the code

Posted on by

Hello,

We've written a very simple page extension that basically just defined a few new fields based on others. We have a Condition field that should display an asset status, but instead it's showing a plus sign. When using the Edit in Excel option the field displays the correct info, but in the list page they show a plus.

pastedimage1683034227354v1.png

Just wanted to know what this means?

  • Tech-Lucky Profile Picture
    Tech-Lucky 796 on at
    RE: Page Extension Shows a + Icon in the field instead of the code

    issue is not in this extension page show the code where the Condition field is defined on table as well as page

  • RE: Page Extension Shows a + Icon in the field instead of the code

    Hi,

    Sure, as I say it's very simple:

    tableextension 60100 "POA Assets" extends "DAM Asset"
    {
        fields
        {
            field(60100; "PoA Asset Category Name"; Text[100])
            {
                Caption = 'Asset Category';
                Editable = false;
                FieldClass = FlowField;
                CalcFormula = lookup("DAM Asset Category".Description where(Code = field("Category Code")));
            }
        }
        keys
        {
            key("PoA Sort Order"; "Category Code", "Asset Location Code", "No.")
            { }
        }
    }
    
    pageextension 60100 "PoA Asset List" extends "DAM Asset List"
    {
        layout
        {
            addafter("Parent No.")
            {
                field("Parent Description"; Rec."Parent Description")
                {
                    ApplicationArea = all;
                }
            }
            addafter("Category Code")
            {
                field("PoA Asset Category Name"; Rec."PoA Asset Category Name")
                {
                    ApplicationArea = all;
                    Caption = 'Asset Category';
                }
            }
            addafter("PoA Asset Category Name")
            {
                field("PoA Asset Location Name"; Rec."Asset Location Name")
                {
                    ApplicationArea = all;
                    Caption = 'Asset Location';
                }
            }
        }
    
        trigger OnOpenPage()
        begin
            rec.SetCurrentKey("Category Code", "Asset Location Code", "No.");
            rec.Ascending(true);
        end;
    }

  • Suggested answer
    Govinda Kumar Profile Picture
    Govinda Kumar 2,203 Super User 2024 Season 1 on at
    RE: Page Extension Shows a + Icon in the field instead of the code

    Hi,

    It's unusual that you see the correct information in Edit in Excel, but a plus sign on the list page.. don't know what it means, and its difficult to say what caused this, but it could be related to the way your Condition field is defined in your page extension..

    I can help you resolve the issue.. if you don't mind sharing the code for your page extension..

    Thank you.

  • Suggested answer
    Tech-Lucky Profile Picture
    Tech-Lucky 796 on at
    RE: Page Extension Shows a + Icon in the field instead of the code

    Please show your AL code for the Page

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans