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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Line breaks in labels in Dyn365FO

(0) ShareShare
ReportReport
Posted on by

Dear Sir/Madam,

It seems labels of new Dynamics AX cannot contain line breaks, even though we implement as instructed in http://axdaily.blogspot.jp/2010/04/labels-with-line-breaks.html

("\n" and "\r\n" do not work)

Appreciated if anyone tell us how to actualize it.

Best regards,

Mitsu

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Pravasti AK Profile Picture
    2,985 on at

    Hi Mitsugu,

     Please follow the below link as i think it may help,

    https://community.dynamics.com/ax/b/axdaily/archive/2010/04/07/labels-with-line-breaks

  • Community Member Profile Picture
    on at

    Hi Kavitha,

    Thank you for your quick answer, but the contents of this link is just the same as my link.

    Best regards,

    Mitsu

  • Community Member Profile Picture
    on at

    Can you check the link about Microsoft Dynamics AX, may be helpful

    www.gatewaytechnolabs.com/.../ms-dynamics-ax

  • Suggested answer
    Pravasti AK Profile Picture
    2,985 on at

    Hi Mitsugu,

    info(strFmtLB(strFmt("@SYS39890", "Line1", "Line2")));

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    If you check the link which you have pasted, it clearly states that labels by standard will not work using line break markers.

    You had to use a specific functionality of strFmtLB() in the Global collection class in order to format it like that.

    Did you try to use the same function for the label for which you want line breaks in AX7?

    If yes and it did not work, maybe you could try to put in <br/> tag instead of \n to maybe try to force it as HTML? I have not tried this way, but may be worth a shot. If AX renders it as text, you might have to check the source of the web page in order to insert the correct sequence of characters to close previous sections and interpret it as an actual line break.

  • Community Member Profile Picture
    on at

    Hi Vilmos and Kavitha,

    Thank you for your response. We tried both strFmtLB() and <br/>, but could not actualize line breaks.

    Appreciated if you could suggest other ways.

    Regards,

    Mitsu

  • Community Member Profile Picture
    on at

    Hi StephanieR,

    Thank you for your response. I am afraid I could not find the info about line breaks in your link. Could you point out where we can find it in the link?

    Regards,

    Mitsu

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Mitsugu,

    I got the following answer about this problem from Microsoft Support Team.

    "We do not support formatted text in the Dynamics 365 for Operation product offering. As html in plain text is considered a security threat."

    Therefore, This is a product restriction.

    I sent them improvement request about this.

    Regards,

    Yuki

  • Francesco Profile Picture
    524 on at

    Hi Mitsu,

    You can solve this in two slightly different ways:

    1. Create a label like @CUS101 = "Line1%1Line2". Then call it like strfmt("@CUS101", num2char(10));

    2. Create a label like @CUS102 = "Line/nLine2". Then call it like strfmtLB("@CUS102");

    The latter function strfmtLB is specifically intended for multiline. The first solution allows for some extra flexibility, which is most always good :)

    One way or the other you'll have to format your label before printing it.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans