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

Guidance needed

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

    Guidance needed

    Hi All,

    OK, after spending 3 days going around in circles I am so far in the forest I can't see the trees or anything.

    I have a form to enter payments received that is based on a set. The sets primary table is "receipts" with a one to one link on "customer" which has a one to many link on "invoice header"

    What I want is to allow the user to either enter a customer number OR invoice number which in turn will bring up opened invoices for that customer or the specified invoice in an embedded browse (invoice header)

    I have no problem with entering the customer number and getting the desired results, however, I can't for the life of me figure out how to get the results if the user enters a invoice number.

    I suspect theres a way to link this in the set, but I am brain fried.

    Any suggestions would be greatly appriciated.

    #2
    RE: Guidance needed

    these 2 articles have everything you need:

    http://www.learn alpha.com/SearchOnChild/SearchOnChild.htm

    and
    http://www.learn alpha.com/QueryChildRecords/Query_on_child_records.htm

    Comment


      #3
      RE: Guidance needed

      If I got you right another way to let Alpha do is thru action scripting. If you go to events in the browse go to onrowblclk and use action scripting. When you enter an action go to open form and follow the rest. It will ask you for which form and will even allow you to pick the field as you want. Does that help?

      Comment


        #4
        RE: Guidance needed

        If I understand you correctly you want to double click on a row in an embedded browse and bring up the associated invoice record? If so then yes, action scripting will do it and it works great. By the way there is a bug and you need to press F5 after opening the form or it won't resynch. Selwyn is fixing this in the next patch.

        Russ

        Comment


          #5
          RE: Guidance needed

          Until the patch you could probably edit the code generated by the genie to include the resynch.

          Bill
          Bill Hanigsberg

          Comment


            #6
            RE: Guidance needed

            Thanks for everyones input, however I might have explained it wrong.

            I want the browse to show filtered records based on the value from the parent form.

            As of now when I enter a customer number in the parent field, the browse shows the invoices for that customer only. This works fine.

            My problem is trying to get the browse to display a specified invoice if the customer number is left blank but the invoice number is entered instead.

            The parent form holds both the customer number field and the invoice number field. All the browse does is display the invoice header items.

            Hope I am clearer this time. Sorry about the confusion and thanks.

            Comment


              #7
              RE: Guidance needed

              Can we assume
              -the parent form contains customer no and invoice number fields;
              -you want to filter the brouse by customer if you know it and otherwise by invoice number.

              If so couldn't you write a condition expression based on the content of the customer field along these lines:

              If customer is blank
              filter on invoice
              else
              filter on customer
              endif

              Bill
              Bill Hanigsberg

              Comment


                #8
                RE: Guidance needed

                William,

                Yes, both fields are on the parent form. Right now if I enter a customer number(1001), the browse will show invoices only for that customer#1001. This works the way I want it too.

                If I don't have a customer number value, BUT, I have the invoice number, I want to see only that invoice in the browse.

                In other words if I get a check in the mail that has a invoice number opposed to a customer number on it I want to use the same form and find the invoice to apply payment to based on the invoice number.

                My sets primary table is "Reciepts" - Included fields are: reciept_no; customer_number; invoice_no; date; amount.

                tbl.Reciepts has tbl.customer_info as a one to one link - customer_number as the linking field

                tbl.customer_info has tbl.invoice_header as a one to many link - again customer_number is the linking field

                Thats why entering the customer# produces the desired result.

                But now I don't have that customer# to enter .. only a invoice number. Is there some way to get the desired child record just with the invoice number without making a new set with different linking fields and another form?

                Comment


                  #9
                  RE: Guidance needed

                  You have several ways to go on this but let me ask one more thing. If you have an invoice number can you find out the cust number that goes with the invoice. If so, you could look it up and then search on the customer number as before.

                  Otherwise you get into searching on the child records which is what Peter Wayne's references were about
                  or
                  you invert the set and just search on the invoice number.

                  I like the first way (using the inv# to lookup the customer) if it can be made to work.

                  Bill
                  Bill Hanigsberg

                  Comment


                    #10
                    RE: Guidance needed

                    Bill,

                    I would like to invert the set as well, but this can't be done in xbasic can it?

                    I guess I will play with this a bit more and see what happens ....

                    Thanks for all your input.

                    Comment

                    Working...
                    X