Developing on D365FO
I'm trying to make a line feed in a infobox, but it won't work, in many forums people say that \n will do the job.
Example
public static void main(Args _args)
{
str infostr = 'FirstLine\nSecondLine';
Box::info(infostr);
}
This returns "FirstLine SecondLine" the \n is converted to a space
:
Have you tried the AX2012 solution for infolog line feed?
This will list each output on a separate line within the infolog
info(strFmt('Journal number: %1',ljt.JournalNum));
info(strFmt('Account type: %1',ljt.AccountType));
info(strFmt('Payment status: %1',ljt.PaymentStatus));
info(strFmt('Class Id: %1',vpmt.ClassId));
info(strFmt('Class Id: %1',vpf.bankFormat));
Hi Carsten,
In taking a look into this I found the below which states "Dynamics AX development team mentions that this is the limitation of D365FO due to security reason."
Line break does not work in message box in D365FO
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156