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

print records from a browse

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

    print records from a browse

    I've put a button on several forms with embedded browses to "Print current selection of records". Each was created using the button tool on the toolbox: built in action - print/preview - print a browse - ("salesbrws") - print current selection of records. The script it ends up with is:

    print:
    :Browse.print("salesbrws")
    goto cleanup
    cleanup:
    end


    I want the user to be able to sort & filter the data, then print the records on the screen. This works on all but one form and I don't know why it's not working. I get the printer box but nothing happens when I press OK.

    The problem form is based on a set with one one-to-many link and several one-to-one links. Has anyone else experienced this or know off the top of his or her head what's happening?

    #2
    RE: print records from a browse

    Ant ideas, anyone?

    Comment


      #3
      RE: print records from a browse

      Becky,

      It's hard to respond because it's not quite clear exactly what you're doing.

      Is is possible that on the forms where the process works you have embedded a named browse layout and where it doesn't you have the default browse. I don't think you are printing the form itself, along with the embedded browse. My recollection is that the browse won't print under those circumstances.

      So my only advice is that you make a detailed comparison of the browse and form properties to find the difference.

      However, I wonder why you don't just define a report for the the table in question. Set it to print the current selection of records and be done with it. You get more flexibility in designing the layout this way.

      Still, if your process works, it is hard to advise you to change it.

      Anyway, if I'm off base with the diagnosis, write back with more details. Is the offending layout based on a set with the others on a table (or vice versa)?

      Bill
      Bill Hanigsberg

      Comment


        #4
        RE: print records from a browse

        Thanks for your reply, Bill. I know it is vague - I thought maybe there was something obvious I was overlooking ??

        I have designed and named 15 browses. Each named browse is inserted onto a separate form (attached to various tables AND sets) and the "Print current selection of records" is one of the buttons at the bottom of each form.

        I've reviewed the browse and form layouts and can't find anything that would make them behave differently EXCEPT that the troublesome form is attached to the only set where there is a one-to-many link. Could this be the problem?

        I haven't designed a report because there are 45 fields which I need to view in a columnar comparison. A report would probably be 30-40 inches across. I think I'm limited in a report layout to 21-22 inches (?).

        If the one-many relationship is the problem, is there any way to modify the print script to get around this? Thanks much for your help.

        Comment


          #5
          RE: print records from a browse

          Hi Becky,

          You've hit on it: the one to many relationship.

          I don't see why the number of fields should make a report any wider than a browse. They're the same fields. If the browse omits some, so too can the report. But this is so obvious it can't be what your talking about, can it?

          What precisely do you mean by "current selection of records" in your problem case. Do you mean the current selection of parent records? Or do you mean the child records of the current parent?

          Do you need to see fields from the parent as well as the child? I would guess not as all you want to do is show the browse which has only child fields, right?

          What is the linking field in your set design?

          Bill
          Bill Hanigsberg

          Comment


            #6
            RE: print records from a browse

            The browse is designed with parent AND child fields (parent fields will repeat when there are multiple children in one parent record). I want to be able to use filtering tools from the toolbar then get a printout (in this browse format) of those filtered records.

            The linking field from the parent to child on the one-to-many link is "T19G_No". There are also several one-to-one links from the parent.

            When the browse is viewed on the form, I scroll on and on to the right to see all of the fields. Unless I'm missing something on the report layout, I can only get about one third of them across the widest custom page layout.
            Thanks for your help.

            Comment


              #7
              RE: print records from a browse

              Becky,

              Unless somebody else has a bright idea I think you are going to have to resort to a report layout. You might give some thought to how you could get creative with the layout. Do you always need all fields do they have to be arrayed horizontally, can records be grouped by parent,etc.

              Bill
              Bill Hanigsberg

              Comment


                #8
                RE: print records from a browse

                Becky, I've been watching this thread with interest. Sounds like your form will have to be patched together after it's printed, right? Only so many columns per page, so the other columns appear on other pages, and then you manually tape them together. If I'm right, it reminds me of many spreadsheet printouts I've dealt with over the years.

                I'd recommend you consider several landscape mode reports. A surprising amount of information can be positioned on each sheet by adjusting the font to a smaller size. On the first report include as many fields as will fit. Put the next bunch on the second report. Put the remaining fields on the last report. Arrange each report in the same way, and the rows should line up just fine. You could include the same field on each report just to help get them aligned when you start taping them together. I'll bet you can get by with less pasting and taping in the end.

                If you set the report (in its properties) to use current selection of records your user can run the query, and the print the report and only the records meeting the query will appear.

                -- tom

                Comment


                  #9
                  RE: print records from a browse

                  Tom-
                  After reading Bill's replies, your suggestion is what I'd about decided to do. I already have a dozen or so reports which sort the set's information in different ways, but sometimes I just need to compare them to the whole ball of wax to double-check data.

                  But - is it "normal" that a browse built on a set such as this (with the one-many relationship) can't be printed either by the button created with the button genie on the form OR from the print icon on the toolbar when the browse is opened up directly?

                  Thanks, Bill and Tom, for your help.

                  Comment


                    #10
                    RE: print records from a browse

                    Sorry, I don't know. I don't print my forms. Alpha Five's report engine is so powerful and flexible that I much prefer using it to produce my printed output.

                    -- tom

                    Comment


                      #11
                      RE: print records from a browse

                      Becky, I use this feature often, so I know it works, however, you must manually make the browse that you use, and you must go to properties and for "records" filter so that only what you want is displayed - like for one of mine, that shows only members within an age group, that I capture when the user pushes the button
                      filter in browse: cage >= var->number1 .and. cage number2

                      also, the browse is for the child table only, not the set

                      hope this helps
                      Cole Custom Programming - Terrell, Texas
                      972 524 8714
                      [email protected]

                      ____________________
                      "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                      Comment


                        #12
                        RE: print records from a browse

                        Becky and Martin,

                        If Martin is right (which I assume) I may have misled Becky for which I apologize. But, Martin, could you be clearer about what you mean by "manually adjust." Surely you can't mean every time you print?

                        I see the variables in the browse filter expression. I assume that is how you change the selection of records from instance to instance, no?

                        And are you printing the form with the embedded browse or are you printing the browse itself in which case it is probably a named browse.

                        It is the printing of the form with the browse embedded that I find problematic and worth avoiding.

                        Thanks,
                        Bill
                        Bill Hanigsberg

                        Comment

                        Working...
                        X