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

Force report to only print 1 page

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

    Force report to only print 1 page

    Hi there, I have a report with a header and detail section. The detail section is made up of my notes table. I would like the report to only print one page (regardless of more records making up multiple pages) is this possible? I've tried selecting TRIM (DO NOT PRINT) OVERFLOW DATA but this does not seem to do anything. Any other suggestions?

    #2
    Re: Force report to only print 1 page

    Interesting.....

    Is there a way to determine the number of records on the first page?

    Could select only the first n records and then only get one page.

    Or generate the report to html/ascii and read into a table and print only the first 60 (or so) lines.
    Otherwise need more information on the structure.
    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.
    "Make it as simple as possible, but not simpler."
    Albert Einstein

    http://www.iadn.com/images/media/iadn_member.png

    Comment


      #3
      Re: Force report to only print 1 page

      why work so hard.
      almost all the reports from the web bring up the printer setup dialog when ready to print, there simply select the page you want as single or range or current.
      lot easier than wrestle with the report and varying content of the data.
      thanks for reading

      gandhi

      version 11 3381 - 4096
      mysql backend
      http://www.alphawebprogramming.blogspot.com
      [email protected]
      Skype:[email protected]
      1 914 924 5171

      Comment


        #4
        Re: Force report to only print 1 page

        This implied to me that Ivan wants it to work automagically.

        Would be the first time I was wrong since the last time.
        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.
        "Make it as simple as possible, but not simpler."
        Albert Einstein

        http://www.iadn.com/images/media/iadn_member.png

        Comment


          #5
          Re: Force report to only print 1 page

          Yes, I would like it to handle it automatically. the notes portion of my report (which is the part that spills onto multiple pages) can vary in size, depending on what kind of note record was entered, so this makes it difficult to determine how many records should be shown on the report. I know how to limit the records using sql statement but as I said, a person can have 5 small notes fit on the the first page with no problem and the next person can have only 2 records fit because of the size of the note.

          It does not sound like there is an easy solution for this.

          Ghandi, Selecting page range when printing the report would work, but only if this report were being ran on individual parent record. I have a need to print this report for many parent records.

          Comment


            #6
            Re: Force report to only print 1 page

            Well, I found this sub-Select on the web which seems to be doing the trick
            Code:
            (SELECT GROUP_CONCAT(concat_ws(' - ',DATE, NOTES) ORDER BY notes.DATE DESC, notes.NOTES_ID DESC SEPARATOR "\r\n") 
            		FROM notes 
            		WHERE notes.ssn = applicant.ssn) AS Notes
            And I switched from report to letter, but now the field gets cut off when printing through alpha, but the statement shows fine when I run it in navicat.

            Comment


              #7
              Re: Force report to only print 1 page

              what you really want is a report and group breaks on the name change and the contents to fit the page for each group break, i think.
              so you might want to plan on the input first. limit how many lines they can input on each notes. say 19 for example, then for each parent you can have 4 records. since you are breaking on the group change and pushing a page this set up should work. i think.
              thanks for reading

              gandhi

              version 11 3381 - 4096
              mysql backend
              http://www.alphawebprogramming.blogspot.com
              [email protected]
              Skype:[email protected]
              1 914 924 5171

              Comment


                #8
                Re: Force report to only print 1 page

                Originally posted by Al Buchholz View Post
                This implied to me that Ivan wants it to work automagically.

                Would be the first time I was wrong since the last time.
                the way i hear, when you join the conversation the problem automagically goes away. everything works perfect afterwards.
                thanks for reading

                gandhi

                version 11 3381 - 4096
                mysql backend
                http://www.alphawebprogramming.blogspot.com
                [email protected]
                Skype:[email protected]
                1 914 924 5171

                Comment


                  #9
                  Re: Force report to only print 1 page

                  Originally posted by GGandhi View Post
                  the way i hear, when you join the conversation the problem automagically goes away. everything works perfect afterwards.
                  Don't you love how rumors get started!!!

                  ;)
                  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.
                  "Make it as simple as possible, but not simpler."
                  Albert Einstein

                  http://www.iadn.com/images/media/iadn_member.png

                  Comment


                    #10
                    Re: Force report to only print 1 page

                    So... There is no easy way to do this?

                    The solution I mentioned in post #6 is doing what I would like it to do, but why does the text in the field I created using the Sql Sub Select statement get cut off when the report preview through the web server loads, but not in the raw select statement through navicat?

                    I placed the sub-select statement field in a rich text box, and it is still being shortened?

                    Comment


                      #11
                      Re: Force report to only print 1 page

                      Originally posted by Gustavo1478 View Post
                      So... There is no easy way to do this?

                      The solution I mentioned in post #6 is doing what I would like it to do, but why does the text in the field I created using the Sql Sub Select statement get cut off when the report preview through the web server loads, but not in the raw select statement through navicat?

                      I placed the sub-select statement field in a rich text box, and it is still being shortened?
                      Call me confused.

                      You want the notes to be cut off, but is it that they are being cut off too short?

                      How many characters are being displayed?

                      While the SQL statement will bring back all of the notes data, an object on the report can have limits to how much is displayed - depending on the options set on that object.
                      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.
                      "Make it as simple as possible, but not simpler."
                      Albert Einstein

                      http://www.iadn.com/images/media/iadn_member.png

                      Comment


                        #12
                        Re: Force report to only print 1 page

                        Yes I thought the same too about the character limitations in the objects of alpha, But I thought that rich text boxes didnt have this limitation. I understand that the way I am trying to construct this that the notes will be cut off based on how big I set the object (size in dimensions wise WxH, not characters), but it looks like the notes are being cut-off prematurely (not filling the object).

                        Comment


                          #13
                          Re: Force report to only print 1 page

                          Hello Al, I came up with an alternate solution to this issue. So currently i have a notes table that holds all the note records, I created a secondary notes table called notes_concat. On my dialog form (ux) I created an ajax callback that does the following:

                          Code:
                          SET group_concat_max_len=99999;
                          	INSERT INTO notes_concat (SSN, NOTES_CONCAT)
                          	SELECT SSN, GROUP_CONCAT(concat_ws(' - ',`DATE`, TYPE, NOTE) ORDER BY notes.DATE DESC, notes.NOTES_ID DESC SEPARATOR "\r\n") 
                          	FROM notes 
                          	WHERE ssn = :SSN
                          	ON DUPLICATE KEY UPDATE notes_concat = (SELECT GROUP_CONCAT(concat_ws(' - ',`DATE`, TYPE, NOTE) ORDER BY notes.DATE DESC, notes.NOTES_ID DESC SEPARATOR "\r\n") 
                          	FROM notes 
                          	WHERE ssn = :SSN)
                          Ive also added this to the after delete success event when a record gets deleted.
                          Then I created a new view that references my new notes table "notes_concat" and returns the information back just as I want it... This seems a bit complicated but its the only way I knew.

                          Comment


                            #14
                            Re: Force report to only print 1 page

                            why take this route instead of controlling the input?
                            for example if you limit the input for the notes to say 200 characters (or tweeter style 140 characters!!) then each record will only contain that many number of characters maximum.
                            and then if you design the report and find out how many number of characters will fit safely in a single page and bring in only that many child records for each parent. then you keep your group break to change with the parent.

                            so regardless how many or few the child records are there, the page will change on the parent and since you have limited number of records, it does not matter how many or few child records per each parent.
                            won't this be easy and you don't have to worry when they add or delete a child record?
                            Last edited by GGandhi; 02-01-2017, 08:40 PM.
                            thanks for reading

                            gandhi

                            version 11 3381 - 4096
                            mysql backend
                            http://www.alphawebprogramming.blogspot.com
                            [email protected]
                            Skype:[email protected]
                            1 914 924 5171

                            Comment


                              #15
                              Re: Force report to only print 1 page

                              Originally posted by GGandhi View Post
                              why take this route instead of controlling the input?
                              for example if you limit the input for the notes to say 200 characters (or tweeter style 140 characters!!) then each record will only contain that many number of characters maximum.
                              and then if you design the report and find out how many number of characters will fit safely in a single page and bring in only that many child records for each parent. then you keep your group break to change with the parent.

                              so regardless how many or few the child records are there, the page will change on the parent and since you have limited number of records, it does not matter how many or few child records per each parent.
                              won't this be easy and you don't have to worry when they add or delete a child record?
                              A problem that my application will have with this is that, the DBA before me was using one field in the parent table to enter ALL notes, in order to enter a new record the users were pressing return on their keyboard so as to "push" the previous notes down, then adding their note on top. Some of these memo records have years of notes inside of it. I'm not too sure how to extract separate records from this one field.

                              Plus I would not want to limit the length of a note record because some students have lengthy issues that are explained in the notes.

                              Comment

                              Working...
                              X