Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Field Groups under Table

Posted on by Microsoft Employee

How does field group help in terms of creating form? (Any example would be great)

Also, when I make a change to a table such as change the name of a field then the Table drops itself under Datasource node on Form. Any explanation as to why this is happening would be helpful. Thanks!

*This post is locked for comments

  • Suggested answer
    RE: Field Groups under Table

    you can change their properties by code via iterating inside the field group and getting them by their names

    see an example here alexvoy.blogspot.com/.../how-to-set-properties-for-reference.html

  • Muhammad Zahid Profile Picture
    Muhammad Zahid 480 on at
    RE: Field Groups under Table

    Hi,

    In my Form there is a datagroup of assigned on the form and AutoDataGroup porperty set to yes.But if I set AutoDataGroup Property set to yes tha the properties of the fields inside that group are not editable.

    does any one know how can i make it editable without changing the AutoDataGroup to no. 

  • Verified answer
    Dick Wenning Profile Picture
    Dick Wenning 8,705 on at
    RE: Field Groups under Table

    don't forget to set the auto group property on yes in the form control. otherwise restore will not help you

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Field Groups under Table

    Thank you! This makes lot of sense now :D

  • Suggested answer
    dolee Profile Picture
    dolee 11,279 on at
    RE: Field Groups under Table

    Hi Lhadol,

    When creating a form, you can drag a field group to a grid to add all fields in the field group in the grid at once. If you drag a field group to a tab, a group control will be created in the tab containing all fields in the field group.

    When you update the field group, say add a new field to the field group at the table, the added fields will appear in the form as well.

    There are many examples in AX. One would be the LedgerJournalTable Form. You can go to Designs > Design > Group:Group > Tab:Tab > TabPage: General > Group:Identification.

    If you look at the DataGroup property of the group, you'll see "Identification" assigned.

    As for your other inquiry, I never encountered that. Normally I would change the field name, then "restore" the form object (so that the datasources are refreshed), then edit the DataField property of the affected controls. So that's an unexpected behavior you got there.

    Kind Regards,

    Dominic

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans