Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

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

Problem with page_total function ...

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

    Problem with page_total function ...

    I use the page_total function to calculate totals on a page at the bottom of a HCFA. Works great ... most of the time. Sometimes the fucntion computes a total of 999,999.99, and what is really weird is that if the report is run again, it computes correctly. Has anyone else encountered this. Is this a bug? Any work arounds?

    Gary
    Gary S. Traub, Ph.D.


    #2
    RE: Problem with page_total function ...

    bump to the top
    Gary S. Traub, Ph.D.

    Comment


      #3
      RE: Problem with page_total function ...

      Gary,

      I suggest you monitor the report to see if you can detect a pattern. What were the antecedent conditions which triggered the error ? What steps will produce the error every time ? These are the kinds of things Alpha will need to know to deploy a fix.

      If you want to post the app, others can see if the same behavior occurs on their own machines.

      Personally, I don't recall seeing this happen before, but use the page total calc infrequently.

      -- tom

      Comment


        #4
        RE: Problem with page_total function ...

        Hi Tom,

        I have not been able to isolate antecedent conditions. It seems to occur randomly, so far. I will let you know if I I find any patterns. In the mean time though, I was wondering if anyone else has seen this problem?

        Thanks ...

        Gary
        Gary S. Traub, Ph.D.

        Comment


          #5
          RE: Problem with page_total function ...

          Your post brought this function to my attention.

          I tried it on a simple report and it's not adding properly for me. The detail section has a numeric field that contains a whole number from 0 to 99. On this particular page of the report, of the 20 records printed, 6 have a 1 in this field. At the bottom of the page, the page_total() function results is a 7. I have similar results on other pages of this report.

          I have another oddity where on this same page of the report, I have a calculated field, running_total(same field) which is yielding the same results.

          These records are smack dab in the middle of the page of the report.

          It looks like the functions are adding the first record from the next page.

          How would I fix this?
          Alpha 5 Version 11
          AA Build 2999, Build 4269, Current Build
          DBF's and MySql
          Desktop, Web on the Desktop and WEB

          Ron Anusiewicz

          Comment


            #6
            RE: Problem with page_total function ...

            The functions are definately including the value of the field from the first record on the next page.

            I have a 23 page report. Every page total error is followed by a page that has a number in the field of the first record.

            The page totals are correct if the following page has no number in the field in the first record on the next page.
            Alpha 5 Version 11
            AA Build 2999, Build 4269, Current Build
            DBF's and MySql
            Desktop, Web on the Desktop and WEB

            Ron Anusiewicz

            Comment


              #7
              RE: Problem with page_total function ...

              Ron,

              For the particular problem you seem to be having, I vaguely recall something similar - and that the solution had to do with adjusting the number of detail items on a page. For example, when I allowed 7 detail items, the page totals were wrong; when I allowed 6, they were correct. Something like that ...

              Gary
              Gary S. Traub, Ph.D.

              Comment


                #8
                RE: Problem with page_total function ...

                How did you adjust the records per page?

                In my case, the report is dynamic as each page has anywhere from 20 to 35 records depending on the group breaks.

                This really doesn't seem to be the right way to go.
                Alpha 5 Version 11
                AA Build 2999, Build 4269, Current Build
                DBF's and MySql
                Desktop, Web on the Desktop and WEB

                Ron Anusiewicz

                Comment


                  #9
                  RE: Problem with page_total function ...

                  I am bringing this to the top again because there does seem to be a problem with this function. I just got the problem again today. Secretary left me a note that when she printed HCFA's, all of them had a page total of 999,999.99. She then printed them again, and indeed they were accurate the second time around. By the way, this is happening on different machines on my network. What is going on here?

                  Gary
                  Gary S. Traub, Ph.D.

                  Comment


                    #10
                    RE: Problem with page_total function ...

                    Gary,

                    I'm sorry to hear the problem continues. What were the antecedent conditions? Were others entering data to the tables while report was running? (A5V5 permits you to lock the tables while report is running. Are you using that option? If not, have you tried it?) Was the user's machine running out of Windows resources by multi-tasking too many large apps? Would running reports in smaller batches make a difference? Does this happen on one machine, or all machines?

                    I don't know if any of these are particularly relevant, I'm just trying to give you some ideas of things to check. Hope you can get to the bottom of it. Good luck.

                    -- tom

                    Comment


                      #11
                      RE: Problem with page_total function ...

                      Hi Tom,

                      Thanks for looking into this for me.

                      Yes, I do have a5 lock the tables while the report is run (i.e., the 'Don't lock table' option is NOT checked).

                      I will look into the idea of whether this still occurs even if alpha is the only program running at the time - because we do a lot of multi-tasking. If this is the cause, though, how would it be corrected, without having to tell the user something like "Do not multi-task while using this program, or some mathematical calculations may be computed incorrectly"? Finally, yes this does seem to happen on various types of machines with at least one that the OS is ME and another with XP.

                      Is it possbile that this is a bug that alpha should look into? I know it is difficult to fix something unless it can reliably be reproduced. But this sure is frustrating because so far it appears to occur randomly and all I am really doing is using a function, e.g., page_total(fee). Shouldn't this be straightforward?

                      Again, thanks for your thoughtful response to my question. Any further thoughts would be greatly appreciated.

                      Gary
                      Gary S. Traub, Ph.D.

                      Comment


                        #12
                        RE: Problem with page_total function ...

                        gary:
                        i had a similar problem on 1 report.
                        I appended data to a tempory table and then wrote the report.
                        The temp table always contained the correct data.

                        turned out to be the order expression in the report
                        go to report design, detail properties
                        order expression.
                        It has to be ordered(sorted) the same way that you have all of your group breaks

                        charlie crimmel

                        Comment


                          #13
                          RE: Problem with page_total function ...

                          Charlie,

                          Thanks very much for the idea. I have implemented your suggestion - and will let you know if there are still any problems. The problem is that this occurred randomly, and thus I may not know for a while if the problem has been fixed. Thanks again.

                          Gary
                          Gary S. Traub, Ph.D.

                          Comment


                            #14
                            RE: Problem with page_total function ...

                            Oh well, despite the suggestion you made regarding sort orders, I still have the problem with page totals, randomly producing 999,999.99

                            Any other ideas - this sure is frustrating, mostly to my billing staff.

                            Gary
                            Gary S. Traub, Ph.D.

                            Comment


                              #15
                              RE: Problem with page_total function ...

                              Gary,

                              I fear your staff is letting you down. To get to the bottom of this you'll have to have more information about antecedent conditions.

                              Multi-tasking other large apps?
                              Same trouble machine(s)?
                              Other network activity?
                              Video display adapter?
                              Printer driver?
                              Operating system?
                              Available windows resources at inception of print run?

                              Something is happening that's triggering the fault. To find it will take a change in work habits. Staff must document conditions every time. Before the problem is encountered. Not fun, but necessary to spot patterns.

                              -- tom

                              Comment

                              Working...
                              X