Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Adjusting column width on form control lookup

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

I have a form control lookup for an invoice number. The column's default format has half the invoice number cut off. Is there any way to adjust the pixel length of the field? It looks like the SysTableLookupBase class controls this, but I would rather not touch base code if possible.


Any suggestions?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Adjusting column width on form control lookup

    Thank you guys! This worked. I appreciate your help!

  • Verified answer
    Srinath Sundaresan Profile Picture
    Srinath Sundaresan 510 on at
    RE: Adjusting column width on form control lookup

    Hi

    The width of the column is decided by the length of the column label. Adding a order by also increases the width of the column as it adds a arrow button. You may want to increase the label length here.

    Hope this helps.

  • Verified answer
    RamK Profile Picture
    RamK 2,580 on at
    RE: Adjusting column width on form control lookup

    Hi Spatton, If you try to add this, field width will go up, hence I suggested this.  Try this option and let me know the result

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Adjusting column width on form control lookup

    Hey, thanks for the reply!

    I'm not concerned with the field order however. That is all sorted out. I'm looking for a way to default the column width without touching base AX code.

    Thanks again!

  • Suggested answer
    RamK Profile Picture
    RamK 2,580 on at
    RE: Adjusting column width on form control lookup

    Try to add "addOrderByField" for this lookup.  Refer msdn.microsoft.com/.../querybuilddatasource.addorderbyfield.aspx

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

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans