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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Make LogisticsPostalAddress' Address in 1 Line

(0) ShareShare
ReportReport
Posted on by 209

im making a report where im getting Address Field from LogisticsPostalAddress Table

i put it in a textbox, it is working properly, but the output is making many lines, it looks like this:

----

street

city

country

----

i want it to be in a 1 line only, and look like this:

----

street city country

----

is there a textformatting to make it look like that? 

im using Visual Studio 2013 and AX 2012

please help, thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    Simply replace new line characters with spaces (or whatever delimiter you want).

  • XSpy Profile Picture
    209 on at

    it 1 field(Address), and i can't replace it in table, i just need to view it in 1 line.

  • Verified answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    I know it's one field - I told you how to manipulate the string in the field before displaying it.

    You can do it in an SSRS expression (Replace() function), in your RDP class, write a display method...

  • Hariharans87 Profile Picture
    3 on at

    You can concatenate the fields and use in SSRS report. LogisticsPostalAddress.Street +  ',' + LogisticsPostalAddress.City + ',' + LogisticsPostalAddress.County

  • Verified answer
    Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    I do agree what martin is suggesting.

    inside ax you can write some code as udnder

    TextBuffer txt = new TextBuffer();

    ;

    txt.setText(Table.AddressFieldHavingAdress); //assign text to textBuffer

    txt.replace('\n',' '); //replace new line

    Table.AddressFieldHavingAdress = txt.getText(); //get back text, after replacement of new line with space

  • XSpy Profile Picture
    209 on at

    thank you all, finally got it with Martin and Sohaib's suggestion.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans