Announcement

Collapse
No announcement yet.

pdf: not to display or print zero '0' value.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • pdf: not to display or print zero '0' value.

    I am printing the pdf report, but its showing zero value, if you guys add the option in numeric field not to print zero will be awesome, it took me hard time to remove zero from printing in pdf report.

    thanks.
    Website Design

  • #2
    Hello,

    Could you elaborate a bit more? Why is the '0' appearing? Is it because you have a record without any value assigned?

    regards,
    Bernhard Bernsmann

    Comment


    • #3
      actually, I have discount field which is generated discount_amount by the percentage, after save the transaction row, discount_amount saves zero into the field, and that 0 discount is printing into the pdf.

      hope you got that...
      Website Design

      Comment


      • #4
        bartho

        i didn't get reply from you...
        Website Design

        Comment


        • #5
          Hello,

          You could achieve that with a bit of code on the onRecord().

          For instance:

          if ({MyField} == 0}
          {MyField} = "";

          Just a quick example so you can get the idea.

          regards,
          Bernhard Bernsmann

          Comment


          • #6
            i did but it doesn't work, so I added directly into the mysql query, it works fine now, but my suggestion, it should add the 1 checkbox into the main settings, do not print zero value.
            Website Design

            Comment


            • #7
              Hello,

              I recommend you to try to "debug" the code. I also have just sent your suggestion to our team.

              regards,
              Bernhard Bernsmann

              Comment

              Working...
              X