New Line Character nor working in Display method of a report

Hi Friends,

I want to display data from 3 different fields of a table in 3 lines.

check the display method below :

Display str showData()
{
MyTable mt;
;

select firstonly mt;

return mt.field1+"\n"+mt.field2+"\n"+mt.field3;

}

but unfortunately the Next Line / New Line character is not worked for me here.

Let me know your ideas to fix this issue in AX 2009.

Thanks in advance

Have You tried strFmt function in place of directly returning value?

hi,

Did you try return strfmt("%1%2%3%4%5",mt.field1,"\n",mt.field2,"\n",mt.field3);

regards,

Thomas

Hi Shantaram,

Thanks for your reply.

I tried but no luck.

Hi Thomas,

Thanks for your reply.

I tried but no luck.

FYI

We are using Create!Form for report generation is there anything else do I need to look into to get your logics work…?

Does it work in the standard AX report? The answer will lead to one of the following conclusions:

  • The problem is in Create!Form, not in Dynamics AX.
  • That you’re using Create!Form is irrelevant.

I wouldn’t be surprised if the information got lost in the conversion to XML for Create!Form.

Nope

Try

Return strFmt("%1 \n %2 \n %3", mt.field1, mt.field2, mt.field3);

Also check that the dynamic height of the field.