Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Report Writer - rw_SelectAddrLine function

Posted on by 9,142

Hi

I have modified my report to include all the address fields as per a number of posts that I have found.  I can get all fields appearing fine, but wondered if there was any way to always have two fields appear on the same line - specifically City and Postcode.

I have defined 5 address fields, all with the following structure (and with the changing integer on the front):

"'rw_SelectAddrLine'( 2 'RM_Customer_MSTR_ADDR'.'Address 1''RM_Customer_MSTR_ADDR'.'Address 2''RM_Customer_MSTR_ADDR'.'Address 3'\"\" 'RM_Customer_MSTR_ADDR'.'City''RM_Customer_MSTR_ADDR'.'State''RM_Customer_MSTR_ADDR'.'Zip'\"\" 'RM_Customer_MSTR_ADDR'.'Country' )  "

So if I have data in Address 1, 2 and 3, City, Postcode and Country, Country does not show on the report because I only have five address lines.  I don't really want a sixth and was hoping that the postcode would concatenate with the City.  Interestingly, it does for the Ship To address (which has not been modified).

Help would be appreciated.

Cheers

Heather

*This post is locked for comments

  • Verified answer
    Heather Roggeveen Profile Picture
    Heather Roggeveen 9,142 on at
    Re: Report Writer - rw_SelectAddrLine function

    I have resolved this issue.  

    For those that may find this later looking for the resolution, I needed to have the City, State, Zip and Country fields as the last four fields.  The space before Country was causing the issue.  For more details see:

    dynamicsgpblogster.blogspot.co.nz/.../understanding-rwselectaddrline-address.html

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans