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

Automated complex query

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

    Automated complex query

    I have 3 interrelated tables which include a master table, a one to many link to another table and three- one to one links to the third table which may be a shadow table (trying to get A5 to use an ACT! contact database. So far, except for minor manicuring and formatting, so good.

    What I'd like to do is automate a button to,
    first access an input form so I can input some variables (text and numeric),
    then apply the input data to a complicated boolean query that looks up on a variety of fields in both the master table and the one to many link table.
    Once that is done, I'd like to
    first have a preliminary browse to either refine the search and/or make specific record selections and
    then finally a dialogue to offer either a screeen preview or a choice of reports to print.

    Please help if you can. Thank you.

    #2
    RE: Automated complex query

    Michael,

    It sounds to me as though you're tryig to replicate the query by form functionality that's already built-in. The QBF operators are quite powerful and flexible. If you haven't explored them all take a look at the User's Guide, pp 37, 38.

    If you need to base search criteria on values in the linked child tables, try inverting the set. That's often the quickest solution.

    -- tom

    Comment


      #3
      RE: Automated complex query

      Whew!!! Let's see if I can understand this.

      1. The parent table that is 1:Many to one child table.
      2. The parent table is linked 1:1 to another child table, not once, but 3 times. QUESTION: What is the purpose for 3 - 1:1 links?
      3. 'which may be a shadow table' QUESTION: What do you mean by this?
      4. '(trying to get A5 to use an ACT! contact database' QUESTION: Does this mean you are trying to read the ACT! database via ODBC?
      5. 'What I'd like to do is automate a button to,
      first access an input form' Question: Are you accessing the Act! database and using A5 to manipulate the data and perform all it's wizardry?

      I take it ACT! can't perform the queries. Be more specific about how you're setting this up. Wouldn't it be less complicated to import the data directly to A5 and then do the queries?

      kenn
      TYVM :) kenn

      Knowing what you can achieve will not become reality until you imagine and explore.

      Comment


        #4
        RE: Automated complex query



        Tom,


        Tom Cone Jr wrote:
        -------------------------------
        Michael,

        It sounds to me as though you're tryig to replicate the query by form functionality that's already built-in. The QBF operators are quite powerful and flexible. If you haven't explored them all take a look at the User's Guide, pp 37, 38.

        The QBF for some reason does not show the one-to-many database which is the majority, but not all, of the lookup criteria. Also, I need to get variable filled on the way to the query to make it applicable.

        If you need to base search criteria on values in the linked child tables, try inverting the set. That's often the quickest solution.

        Don't know what that means.


        -- tom

        Comment


          #5
          RE: Automated complex query

          Ken, (see below)

          Ken Nordin wrote:
          -------------------------------
          Whew!!! Let's see if I can understand this.

          1. The parent table that is 1:Many to one child table.
          Yes

          2. The parent table is linked 1:1 to another child table, not once, but 3 times. QUESTION: What is the purpose for 3 - 1:1 links?
          Because the child database is an ACT! contact file and the relationships can be three types.


          3. 'which may be a shadow table' QUESTION: What do you mean by this?
          Little documented, the shadow function allows the attachment of an outside database without modification.

          4. '(trying to get A5 to use an ACT! contact database' QUESTION: Does this mean you are trying to read the ACT! database via ODBC?
          No, through the shadow table, I am able to treat the main contact database in ACT! much like an attached active table in A5.

          5. 'What I'd like to do is automate a button to,
          first access an input form' Question: Are you accessing the Act! database and using A5 to manipulate the data and perform all it's wizardry?
          No, for now all I want to do is use the related contacts in ACT! for my other data. There may be a point in time where I might want a little more interaction and functionality. But I would not look to re-invent the wheel. ACT! features are sufficient for that.

          I take it ACT! can't perform the queries. Be more specific about how you're setting this up. Wouldn't it be less complicated to import the data directly to A5 and then do the queries?

          See previous para.


          kenn



          thanks for your interest.
          Mike.

          Comment


            #6
            RE: Automated complex query

            Michael,

            Alpha Five's query functionality (in the context of a form or browse) is based on fields in the parent table of your set, or those child tables linked one to one with the parent table.

            To invert a set, just create a new Alpha Five set making the original parent or primary table the child, and making the original child the parent or primary table, linked one to one. Base your form and your query on the new set. Piece of cake.

            -- tom

            Comment


              #7
              RE: Automated complex query

              Mike,

              Forgive my lack of knowledge here (not to mention confusion) but are you saying, that with A5, you can open ACT! to a specific form or table, treat it as if it werre A5 and then apply A5's queries, etc. to ACT!?

              Just trying to clear the fog.

              Thanks,

              kenn
              TYVM :) kenn

              Knowing what you can achieve will not become reality until you imagine and explore.

              Comment

              Working...
              X