Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

how to remove entire line if numeric field is 0.00 in a report

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

  • #16
    Re: how to remove remove entire line if numeric field is 0.00 in a report

    Originally posted by Raymond Lyons View Post
    And the region I thought we were talking about shrinking was the detail region of the report, but that has no effect in my testing.
    It should work either way.
    That said, most of the time the label is used as a column heading in the report and rarely used as a repeating object in the detail area.

    Comment


    • #17
      Re: how to remove entire line if numeric field is 0.00 in a report

      As to the bullets, a while back I attached a zip file showing how to do that.

      Comment


      • #18
        Re: how to remove entire line if numeric field is 0.00 in a report

        Originally posted by G Gabriel View Post
        As to the bullets, a while back I attached a zip file showing how to do that.
        It's one thing to have a series of bulleted lines--that was never my issue from years ago. I just did not know how to have those lines skipped when the condition for the line was not met, as lines can be when soft returns are used in an RTF box. The method you outlined here gets around that by putting the appropriate calc fields right in the detail region and even allows for bullets in a calc field using a Winding character. If there is yet another way to do that, I'd sure like to know about it, even though I do little development nowadays.

        FYI, my use of these lines was in a letter listing a variable list of things the recipient needed to send back to the company. (For this I had a form based on a set and logical fields in one table, using a check box format, and a series of items clients may or may not need to send back to the company in another table linked to the parent table.) In an RTF box on a letter layout everything worked great except that in place of bullets I ended up just using "--". Not bad, but not the bullets I would have preferred.

        And Bob, yes an RTF box can be set to shrink (which is great) but I had found no way to put "real" bullets in an RTF box, though now that I think about it I guess I could have tried having 2 RTF boxes side by side with the first one using a Wingding font--I suppose that might work and in some ways might even be a better option. More testing! [Edit: I just tested this and it not only works nicely, in some respects it is more flexible and easier to set up in the layout. Why didn't I think of this method way back when!]

        And yes, the detail section can also be set to shrink (also great) but that alone does nothing to skip the lines we are talking about here and shrink the dead space left by skipped lines--at least not in my testing of all this. For that one seems to have to set the calc field properties to allow shrinking AND one has to be very careful with how these calc fields are positioned in the layout (i.e., no overlapping and consistent spacing for all fields and lines).

        Raymond Lyons
        Last edited by Raymond Lyons; 02-17-2012, 12:06 PM.

        Comment


        • #19
          Re: how to remove entire line if numeric field is 0.00 in a report

          Originally posted by Raymond Lyons View Post
          And yes, the detail section can also be set to shrink (also great) but that alone does nothing to skip the lines we are talking about here
          It does at least in v8. If I have some time, I will post an example.
          Can't quite remember how I did the bullets. It was a while back but as I said there should be an example posted.

          Comment


          • #20
            Re: how to remove entire line if numeric field is 0.00 in a report

            Originally posted by G Gabriel View Post
            It does at least in v8. If I have some time, I will post an example.
            Can't quite remember how I did the bullets. It was a while back but as I said there should be an example posted.
            Once again you are correct! Something in my first test layout was keeping it from working (not sure what). But when I created a new test layout and just set the detail section to shrink (and not the Calc fields) it does work. Still, if I were re-doing my old project I think I'd go with side by side RTF boxes set to shrink, especially because in my old layout I had other, regular table fields off the the right side of my RTF box, and I have to think that would stop the dead space between calc fields from shrinking if the calc fields just in the detail region (but not in an RTF box).

            Raymond Lyons
            Last edited by Raymond Lyons; 02-17-2012, 01:43 PM.

            Comment


            • #21
              Re: how to remove entire line if numeric field is 0.00 in a report

              Again, nothing against RTF. In fact I use RTF a lot in reports. Just offering other options particularly when RTF might not be the best, as in lining certain fields vertically.

              Comment


              • #22
                Re: how to remove entire line if numeric field is 0.00 in a report

                With the advice above, What worked for me was to check mark "shrink contents in band" in group header. I have no detail section.

                Setting a fields format in the report to "Blank if Zero" works great, but only on that field. Doesn't wipe the line.

                Would be awesome if you could place a hidden calc field in the report that could wipe the entire line based on it's value!
                Tried "remove_blank_lines()" many ways, but couldn't get it to take the line out.

                In Alpha4 "DOS" you put "B-" in the format and if the value in that field was 0 it removed all content in that line. Was a beautiful thing!!!

                Comment


                • #23
                  Re: how to remove entire line if numeric field is 0.00 in a report

                  A conditional object might do the same so the fields only display based on the calculation you use to test for zero or blank.
                  Robin

                  Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                  Comment


                  • #24
                    Re: how to remove entire line if numeric field is 0.00 in a report

                    Originally posted by V7 Noob View Post
                    With the advice above, What worked for me was to check mark "shrink contents in band" in group header. I have no detail section.

                    Setting a fields format in the report to "Blank if Zero" works great, but only on that field. Doesn't wipe the line.

                    Would be awesome if you could place a hidden calc field in the report that could wipe the entire line based on it's value!
                    Tried "remove_blank_lines()" many ways, but couldn't get it to take the line out.

                    In Alpha4 "DOS" you put "B-" in the format and if the value in that field was 0 it removed all content in that line. Was a beautiful thing!!!
                    Must of missed this thread before.

                    You'll want a conditional object with a condition of <yourfield>=0 with nothing in it and a default area of the fields you want to display.

                    Use the shrink option in as many places as needed.
                    Al Buchholz
                    Bookwood Systems, LTD
                    Weekly QReportBuilder Webinars Thursday 1 pm CST

                    Occam's Razor - KISS
                    Normalize till it hurts - De-normalize till it works.
                    Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
                    When we triage a problem it is much easier to read sample systems than to read a mind.

                    Comment


                    • #25
                      Re: how to remove entire line if numeric field is 0.00 in a report

                      The conditional object works Great!

                      Didn't realize you could hide or show multiple fields with-in them.

                      Was nice to see, although calc fields inside the properties, expression builder, don't show. You can still use them in the expression!

                      Thanks so much!

                      Comment


                      • #26
                        Re: how to remove entire line if numeric field is 0.00 in a report

                        Possibly a filter on the report that only allows >0.00 records based on the fields? Then you don't have to code much of anything
                        Dave Mason
                        dave@aldadesktop.com
                        Skype is dave.mason46

                        Comment


                        • #27
                          Re: how to remove entire line if numeric field is 0.00 in a report

                          Interesting how this thread moved from one issue to one now far removed from the original.

                          Comment


                          • #28
                            Re: how to remove entire line if numeric field is 0.00 in a report

                            Originally posted by DaveM View Post
                            Possibly a filter on the report that only allows >0.00 records based on the fields? Then you don't have to code much of anything
                            Dave

                            Good idea.

                            But, I went back to reread the issue and noticed that Barry is not using a detail section. So the summary could result in zero, but the report filter won't catch a 5, -5 pair of records.

                            Ray

                            Yeah. Kinda funny how the thread morphed, but a good job of finding an old thread that is related.
                            Al Buchholz
                            Bookwood Systems, LTD
                            Weekly QReportBuilder Webinars Thursday 1 pm CST

                            Occam's Razor - KISS
                            Normalize till it hurts - De-normalize till it works.
                            Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
                            When we triage a problem it is much easier to read sample systems than to read a mind.

                            Comment


                            • #29
                              Re: how to remove entire line if numeric field is 0.00 in a report

                              Actually, I think the additional info is right on since the rtf object is not the only solution.
                              Robin

                              Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                              Comment


                              • #30
                                Re: how to remove entire line if numeric field is 0.00 in a report

                                Originally posted by MoGrace View Post
                                Actually, I think the additional info is right on since the rtf object is not the only solution.
                                Hmm, not the only solution to what issue? It's not 100% clear to my tired eyes but I suspect Barry's issue is very different from the original 2012 issue that started this thread. As for the original issue, as usual Stan Matthews pretty much nailed it using an rtf. I'm not sure one or more conditional objects would have addressed that original question at all, or at least in any simple way, but I do know that one can do surprising things with rtf's very simply that I for one would be hard pressed to do with conditional objects. But yes Al, good job of Barry's for finding a somewhat related thread that suggested a solution to his particular problem.

                                Comment

                                Working...
                                X