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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Free notes with carriage return

(0) ShareShare
ReportReport
Posted on by 135

In Accounts Receivable I'm using the Free Notes.

For example I have few notes for an invoice, though when printed the notes are not separated by a blank row, making it messy to read.

In the form it appears to be impossible to add a carriage return to create the a Note with basically two lines one with text and one empty.


Any suggestion on how to achieve it?

If possible, I would prefer to avoid to recreate all the notes, and prefer to modify the existing ones.

Thanks

Regards

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at
    RE: Free notes with carriage return

    Hi Sjoe,

    Could you please provide a few screenshots to explain the issue?

  • Sjoe Profile Picture
    135 on at
    RE: Free notes with carriage return

    Sure, I'm attaching the pdf document of an invoice where you can see the free notes highlighted in yellow,

    and then a screen shot for the setting of each note from Account Receivable - Setup - Free Notes - Customers free notes setup

    As you can see all the notes are written without a space in between. I would like to insert a blank lineinvoice-example-with-free-notes.jpgFree-Notes-first-line.jpgFree-Notes-second-line.jpgFree-Notes-third-line.jpgFree-Notes-fourth-line.jpg

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at
    RE: Free notes with carriage return

    Hi Sjoe,

    This will need you to make a code change at a couple of pleaces -

    The notes for Sales Invoice are being generated from SalesInvoiceBaseDP\getDocumentNote -

    pastedimage1599730440895v1.png

    Since Docu::concatDocumentNote will be used in a lot of places. I would suggest creating a new method under Classes\Docu -

    static Notes concatDocuRefNotesBlankLine(DocuRefSearch _search)
    {
        DocuRef     docuRef;
        Notes       result;
        #xppTexts
    
        if (_search)
        {
            docuRef.recordLevelSecurity(true);
            while (_search.next())
            {
                if (result)
                {
                    result  = #newline;
                    result  = #newline;
                }
                result  = _search.docuRef().Notes;
            }
        }
    
        return result;
    }
    

    You can now call this method from the same place replacing the old line like this -

    notes = Docu::concatDocuRefNotesBlankLine(docuRefSearch);

    This should insert the blank line as you need.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Free notes with carriage return

    What if you add carriage returns in the end of your note texts?

  • Sjoe Profile Picture
    135 on at
    RE: Free notes with carriage return

    How do you suggest I do it? Just trying to add the \r at the end of the text of the free note? Do you think AX is going to recognize it as a command rather then an additional text to add?

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Free notes with carriage return

    Hitting enter ("carriage return") one or two times.

  • Sjoe Profile Picture
    135 on at
    RE: Free notes with carriage return

    The form where to enter the free notes doesn't allow me to hit enter twice. At first enter it considers my editing of the note complete

  • Gunjan Bhattachayya Profile Picture
    35,423 on at
    RE: Free notes with carriage return

    Hi Sjoe,

    Can you try adding "\n" at the end of the text?

  • nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Free notes with carriage return

    Ah, then Shift-Enter might work just like in Excel.

    Is this some customized form? I don't see such form in my system. I see just Form notes and there I can add line breaks in the notes by hitting enter.

  • Sjoe Profile Picture
    135 on at
    RE: Free notes with carriage return

    tried but it considers it as a text to be printed as part of the note

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,157

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 883 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 674 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans