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, ...
Answered

Report Writer Hide a Calculated Field

(0) ShareShare
ReportReport
Posted on by 750

Hello,

  I have created two calculated fields in report writer that pull information on the SOP Packing Slip in to create a barcode using the 39 font this works perfect however I do not need one of the bar codes to display all the time. I need to only show when another field that is a string contains the letter R. Is this possible?

  Thanks 

Categories:
I have the same question (0)
  • Verified answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,069 Most Valuable Professional on at
    RE: Report Writer Hide a Calculated Field

    Hi

    Just create a calculated field that looks at the field that contains an R and either returns the data you want to see or an empty string.  You can use use the hide when empty option to stop date and numeric fields showing with zero or empty values.

    You can use the RW_Pos report writer function I added to v7.0 of GP to check if there is an R in the string. It is a wrapper for the Dexterity pos() function.

    {-----------------------------------------------------------------------
    RW_Pos

    Returns a numeric value indicating the starting position of a string within a string.

    16Jan02 DMUSGRAVE PR29033: Added RW function to wrap Dex functions
    -----------------------------------------------------------------------}

    function returns integer OUT_pos;
    in string IN_target; { The string you want to search in }
    in string IN_search; { The string you want to search for }
    in integer IN_start; { The position at which the search will start in the target string }

    OUT_pos = pos(IN_target, IN_search, IN_start);

    Regards

    David

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,069 Most Valuable Professional on at
    RE: Report Writer Hide a Calculated Field

     Harry132 Don't just copy someone else's (mine) reply and hide a website link by making the font the same color as the background.

    Highlighting your spam post, shows the website.

    I have requested your account be blocked.

  • Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at
    RE: Report Writer Hide a Calculated Field

    David,

    I've reported countless spam posts in recent times... spammers get more and more creative, as they don't post any garbage anymore, they try to make the answer look some kind of legit, but always have some embedded links included that points to not-so-legit web sites..

    I don't think there is much the site admins can do against that plague... the system should have some user creation validation, but it's hard to track of the hundreds of accounts that likely get created every day.

  • fireinc Profile Picture
    750 on at
    RE: Report Writer Hide a Calculated Field

    Thanks this worked exactly as I had hoped.

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 813

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 566 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans