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 :
Microsoft Dynamics NAV (Archived)

Alter the way plain text on orderline shows

(0) ShareShare
ReportReport
Posted on by

Here some questions regarding text on orderlines:

  1. Plain text is only possible from the description field/column and has a maximum number of characters. How can we get more space for more characters?
  2. Is it possible to begin the text from item column?
  3. An orderline with text still shows "0" in colums quantity, salesprice and totals on reports - how can these be "hidden"? 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    49,097 Super User 2025 Season 2 on at
    RE: Alter the way plain text on orderline shows

    Since you are displaying data in the RDLC, open the layout by using view -> layout and from there check report properties where different all VB functions are written, to use any one of those functions

    use just need refer like below

    =Code.BlankZero(Fields!LineAmount.Value) ... just an example

  • mmv Profile Picture
    11,471 on at
    RE: Alter the way plain text on orderline shows

    hi JesperJensen,

    You need to open the Report Layout by clicking on to the View -> Layout.

    Once you are in the Layout, you can get into the Report Properties.

    Best Regards,
    MMV

  • Suggested answer
    Mohana Yadav Profile Picture
    60,601 Super User 2025 Season 2 on at
    RE: Alter the way plain text on orderline shows

    You have to check in rdlc layout

  • Community Member Profile Picture
    on at
    RE: Alter the way plain text on orderline shows

    Sorry - just saw this is the LineAmount property...

  • Community Member Profile Picture
    on at
    RE: Alter the way plain text on orderline shows

    Hi Again,

    I dont get report properties when right clicking, but if I go to "design" the report I can gain access to properties via Shift+F4. But here there are no "Code" to select on left side. Please see here:

  • mmv Profile Picture
    11,471 on at
    RE: Alter the way plain text on orderline shows

    Hi,

    You may find the BlankZero as below:

    Best Regards,

    MMV

  • Suggested answer
    Mohana Yadav Profile Picture
    60,601 Super User 2025 Season 2 on at
    RE: Alter the way plain text on orderline shows

    BlanknZero function is already available in Report 1306

    You can check it in Report Properties

    Right Click on your report and select Report Properties

    Select Code on Left side options

    You will see BlankZero function

    we have to use it as =code.BlankZero(Fields!MyField.value)

    Just add Code.Blankzero in your field expression

  • Community Member Profile Picture
    on at
    RE: Alter the way plain text on orderline shows

    Hi Suresh,

    Thanks for your suggested answer. I can't find the BlankZero in any report properties - can you show me more detailed where I should put the code on ie. report 1306?

    Thank you.

  • Suggested answer
    Suresh Kulla Profile Picture
    49,097 Super User 2025 Season 2 on at
    RE: Alter the way plain text on orderline shows

    For decimal field if you do not want to display 0 then you can copy the function from any one of the standard reports i.e BlankZero from report properties --> code or below is the function.

    Public Function BlankZero(ByVal Value As Decimal)
        if Value = 0 then
            Return ""
        end if
        Return Value
    End Function
    Just use this function: ex. Code.BlankZero(Fields!Quantity.Value)

  • Suggested answer
    Mohana Yadav Profile Picture
    60,601 Super User 2025 Season 2 on at
    RE: Alter the way plain text on orderline shows

    1. you can reduce the width of other columns and increase the columns width of description.

    Or try by setting CanGrow property of the Description column to yes

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans