Skip to main content

Notifications

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

How to test if page group exist of Not

(0) ShareShare
ReportReport
Posted on by 25

Hello,

I'm working on 3 extensions controlled by 3 boolean fields in company information.

Those extensions have no dependencies.

In each extension, I created a page extension to company information and I put that field in new group named "X Pack".

The result is that the same group name showed 3 time in company information page !!

pastedimage1662990871514v1.png

Is there any way to check the page group already exist or not ?? or any idea how to group all those field in same page group ?

  • RE: How to test if page group exist of Not

    Hi Amit,

    Application Area is not allowed inside the group

    pastedimage1663052575377v1.png

    pastedimage1663052639319v2.png

    Thanks

  • Suggested answer
    Amit Baru Profile Picture
    Amit Baru 3,025 on at
    RE: How to test if page group exist of Not

    /Extension A:

    pageextension 50801 "Company Information LUX" extends "Company Information"

    {

      layout

      {

          addafter("User Experience")

          {

              group("X Pack")

              {

                  CaptionML = ENU = 'X Pack', FRB = 'X Pack';

                 ApplicationArea = All

                  field(DD; Rec.DC) { ApplicationArea = All; }

              }

          }

      }

    }

    //Extension B:

    pageextension 50801 "Company Information LUX" extends "Company Information"

    {

      layout

      {

          addafter("User Experience")

          {

              group("X Pack")

              {

                  CaptionML = ENU = 'X Pack', FRB = 'X Pack';

                  ApplicationArea = All;

                  field(INT; Rec.INT) { ApplicationArea = All; }

              }

          }

      }

    }

    Pls deployed the updated

    Regards

    Amit Sharm

    www.erpconsultors.com

  • RE: How to test if page group exist of Not

    Thanks for your reply, in fact the code is quite simple.

    I would like to check the group already exist then add the field in that existing one, do not create new..

    //Extension A:

    pageextension 50801 "Company Information LUX" extends "Company Information"

    {

       layout

       {

           addafter("User Experience")

           {

               group("X Pack")

               {

                   CaptionML = ENU = 'X Pack', FRB = 'X Pack';

                   field(DD; Rec.DC) { ApplicationArea = All; }

               }

           }

       }

    }

    //Extension B:

    pageextension 50801 "Company Information LUX" extends "Company Information"

    {

       layout

       {

           addafter("User Experience")

           {

               group("X Pack")

               {

                   CaptionML = ENU = 'X Pack', FRB = 'X Pack';

                   field(INT; Rec.INT) { ApplicationArea = All; }

               }

           }

       }

    }

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: How to test if page group exist of Not

    Hi,

    Please share your code.

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

News and Announcements

Announcing Category Subscriptions!

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans