web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Form size too small

(0) ShareShare
ReportReport
Posted on by

I have a form consisting of a single group with a single grid inside of it. The width property of the design, group, and grid are all set to "column width", but the window cuts off right around 200px. Right around halfway through the second field on the grid. The grid itself is behaving as expected and is fully expanded, but the window of the form is not. The form is being used as a menu item on a DropDialogButton, but the behavior is the same when opened standalone.

I have another form with essentially identical properties and it loads expanded as I expected.

I have tried clearing usage data and deleting the cache.

Any help is greatly appreciated. Let me know if I have left out needed information.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Try duplicating it and check the duplicate. If it works then it's an issue with the object itself and you should just delete it (and use the duplicate). If not there has to be a programming error somewhere.

  • Community Member Profile Picture
    on at

    I duplicated the working form and replaced only the datasource and the fields on the grid (and the grid datasource). This caused it to go from expanded back to super narrow. I understand that grids are automatically sized based on field type and labels, but I did not think this was a problem with the grid. The grid is fully expanded but the form is narrow.

    Isolating the variables like this though, it has to be the table. The form that works uses a system table and the one that does not uses a custom tables. Is there a way of designing the table to a wider default?

    Thank you for your reply

  • Community Member Profile Picture
    on at

    I meant to clarify. Based on my understanding that grids are resized according to field type and labels, I do not believe the issue is on the field level. Regardless of how many fields I add to the grid, the window stays the same size.

  • Community Member Profile Picture
    on at

    I think you have to keep narrowing down where this could come from. Try removing the fields one by one from the grid to see if it's one of them. Sometimes settings on the EDT can cause weird designs in the form (e.g. product name causes the rows to become twice as big in some cases).  It really comes down to trial and error here.

    I don't think a the table itself has much influence on the design. Maybe check the table properties if there are any outstanding settings. Titlefields for example are the information displayed at top of the form...maybe somethings wrong there

  • Community Member Profile Picture
    on at

    I changed a bunch of the settings and changed which fields were on the grid. Still nothing. The closest I got was by changing the order to where the form remained the same size, but the information was still on the screen due to column length (the last column was cut off, but the info still showed). I ran across this flowchart, but it is for the column sizing algorithm and not the actual width of the form. http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-33-53/6366.column-sizing-algorithm.png.

    I thought changing the width to "column width" on the form controls was supposed to prevent cutting off fields given enough screen space. Does anyone have any other suggestions aside from manually defining the pixel length of the controls?

  • Suggested answer
    David Massey Profile Picture
    on at

    You mentioned that this is a drop dialog form.  A grid is not normally part of this form type.  Look at this Best practice document for usage of drop dialogs.  The dialog is intended to modify the current record selected.

    msdn.microsoft.com/.../gg886598.aspx

    The default state of the form should follow these rules:

    • The minimum size of a drop dialog should be 100 pixels in width by 50 pixels in height.

    • The maximum size of a drop dialog should be 600 pixels in width by 400 pixels in height.

  • Community Member Profile Picture
    on at

    The reason for the drop dialog is end user preference. Opening the form standalone from the AOT yields the same result.

  • Verified answer
    David Massey Profile Picture
    on at

    What are the results if you remove the design style "DropDialog"?  This will have the kernel impose design time constraints to the form.

  • Community Member Profile Picture
    on at

    I had the style set to auto. After trying out all of them in between usage data resets, SimpleList seems to fit the best. It's a little too big, but that's better than cutting off information. Unless there are other settings on the Design control that can enable me to have the form size exactly match the grid, I will mark this resolved. Thanks for the help!

  • David Massey Profile Picture
    on at

    One additional thing you can try is running "check form style best practice".  Right click on form in AOT, Add-ins

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans