Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Align text and numbers in Box::Info() Ax2012

(0) ShareShare
ReportReport
Posted on by 44

HI All,

I am making a Info Box to display some total amounts on a selected production.

but...  I don't find the right way to display with a good/professional indent. Would be nice to be displayed more as a table since we are working with cost amounts

here the code example and box

pastedimage1620316104974v2.png pastedimage1620316208145v3.png

What would be the right way.. I am displaying and Box::Info Box::Stop Box::Warning depending on each scenareo 

Thanks a lot beforehand

  • CBNestor Profile Picture
    CBNestor 44 on at
    RE: Align text and numbers in Box::Info() Ax2012

    I would love to see that. Can you supply the code?, thanks very much

  • CBNestor Profile Picture
    CBNestor 44 on at
    RE: Align text and numbers in Box::Info() Ax2012

    Hi Martin,

    I will take a look a it and ask you later if I need, ok?

    I just wanted the same simple text but Aligned. Something very simple that is the best.

    is not only me who decides unfortunately :/

  • CBNestor Profile Picture
    CBNestor 44 on at
    RE: Align text and numbers in Box::Info() Ax2012

    Thanks Guys

    I got the logic now. I think I can do it from now.

    thanks for the support

    pastedimage1622043258067v1.png

  • ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 on at
    RE: Align text and numbers in Box::Info() Ax2012

    I was thinking setting the value at form so I said send value via args but you already set it at caller class so you don't need any paramvalues.

  • Martin Dráb Profile Picture
    Martin Dráb 230,466 Most Valuable Professional on at
    RE: Align text and numbers in Box::Info() Ax2012

    But do you really need HTML at all? Why don't you simply use fields with labels, as usual everywhere in AX? Doesn't it meet your requirements?

    FormFields.PNG

    And if needed, there is also a native Table control that you could use for tabular data.

  • CBNestor Profile Picture
    CBNestor 44 on at
    RE: Align text and numbers in Box::Info() Ax2012

    found how to write it from x++,

    I will keep trying to look how to get this done a better way.

    thanks beforehand

    pastedimage1622041685042v1.png

  • CBNestor Profile Picture
    CBNestor 44 on at
    RE: Align text and numbers in Box::Info() Ax2012

    Ergun, you are too fast my friend. Can you detail a bit more please.

    I understand for you is pretty simple but I have never tried to write into forms from x++

    args.param() and args.paramObject(); are returning null.

  • Suggested answer
    ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 on at
    RE: Align text and numbers in Box::Info() Ax2012

    Send html with args.parm or args.parmObject and at form's init method set value with Html.setText("");

  • CBNestor Profile Picture
    CBNestor 44 on at
    RE: Align text and numbers in Box::Info() Ax2012

    HI Nikolaos,

    fast question

    Here I just created a simple Form from AOT with a HTML field.

    I can open it, but..

    How Can I write Html to it from x++?..

    pastedimage1622038223924v1.png

  • Suggested answer
    ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 on at
    RE: Align text and numbers in Box::Info() Ax2012

    If you want use that html you can look for tutorial_Form_Controls's html tab

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans