Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

How to test if page group exist of Not

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,023 Moderator 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,554 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,588 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans