http://blogs.msdn.com/b/developingfordynamicsgp/archive/2011/02/02/adding-more-comments-to-sop-documents.aspx
http://dynamicsgpblogster.blogspot.com/2012/05/adding-more-comment-lines-to-pop.html
So there are these two posts from Musgrave and Gomez respectively, dealing with adding comments to reports. The techniques of which should translate to adding note text to an In-Transit packing slip using RW_GetNoteText - this report writer function is coded to fetch and return lines in exactly the same way as the functions described in David and Mariano's posts. (Interestingly, these report writer functions were all coded by David Musgrave in 2002). The problem I'm facing is we have note text formatted as an address:
DIRECT SHIP
C/O Chad Bruels
123 Main St
Everywhere, CA 12345
The carriage returns are problematic. If one follows the recommendation in these posts and sets the Number of Characters per Line parameter to 80, the first note field on the report will print DIRECT SHIP and all others are blank. The Field_ParseText() function used in these methods states that it will not return any more characters when it encounters a carriage return, but that you can call it again to begin parsing immediately following that carriage return. The problem is the report writer functions do not take that into account, they simply exit having encountered a carriage return.
Now, considering I have note text that in total is shorter than 80 characters, the second calculated note field on my report gets nothing and I see no way to choose a smaller number for this parameter as every address line will contain a different number of characters. The problem is their posts seem to state the carriage returns should not actually be problematic. In the Solution section they offer this: This gives the potential for 640 characters and so should easily be able to display the 500 characters of comment text (even without breaking words in half or additional carriage returns).
*This post is locked for comments
I have the same question (0)