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

Filling in the key linking field when opening an entry form from another form

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

    Filling in the key linking field when opening an entry form from another form

    When I first started setting up this database in A5 I was the one doing most of the data entry and viewing the data in a browse, etc. Now, several years later I have mostly other users entering the data and sometimes the results are not as good as I want. We also have a lot more data to input. I am trying to learn how to set up better controls to help make sure I get good data and I want to make it easier and faster to input the data.

    One of the things I have always struggled with is getting a form to open to enter a �new record� and automatically enter an associated key field in the form. For instance, I have a form we use to track customer requests called �Requests�. If I put a button on the form used to view a customer's record (we call this form �Customer Contact Manager�) and name this button �Enter New Request� I want the customer number to automatically fill in to the Cust_Num field on the Requests form. I've never been successful getting that to happen.

    I have another form called �Transactions� that we use to track sales slips. On that form I have a button to enter payments received. I managed to get it to work with a browse to automatically fill in the transaction number but I am now trying to open a separate form for entering a new payment record. I can't figure out how to automatically fill in the key field (Trans_Num) that already exists on the Transactions form.

    I have a set with the following tables

    Transactions
    ==Payments
    --PaymentDetail

    Each Transaction can have multiple Payments (one-to-many)
    Each Payment can have one Detail (journal entry) (one-to-one)

    When I click the �Add a Payment� button I want to open a new data entry form and I want the Trans_Num from the Transactions table to automatically fill in to the Trans_Num field of this entry form. Next I want the Payment_Number to automatically generate in the Payments table and the PaymentDetail table. The rest of the entries are user entered.

    In my own words I would say it like this
    OnClick open the SalesJournal form and begin entering a new record.
    Populate the Trans_Num field with the same Trans_Num as is now on the Transactions form, from which this button was pressed.
    Autogenerate the Payment_Num field with the next available payment number

    I've used the Action Script to open the form but I can't figure out what commands to use to enter the Trans_Num.

    Does the entry form I open have to based on the same set as the form from which the button is pressed?

    Thanks for the help,
    Sean

    #2
    Re: Filling in the key linking field when opening an entry form from another form

    An oldie but a goodie.

    http://msgboard.alphasoftware.com/al...een-forms-Full
    There can be only one.

    Comment


      #3
      Re: Filling in the key linking field when opening an entry form from another form

      Ahh, I wasn't using the term "passing values". I don't always know the right terms as a programmer might. Thanks for the link.

      Sean

      Comment


        #4
        Re: Filling in the key linking field when opening an entry form from another form

        Thank you Tom! And Stan!

        All these years I've failed to find this. I'm studying it now and I'm sure I will finally be able to fix my forms.

        Am I correct in that this feature of passing values is not available from the menu/genies? If it's there I've never found it.

        Thanks again,
        Sean

        Comment


          #5
          Re: Filling in the key linking field when opening an entry form from another form

          All these years I've failed to find this.
          Sean,

          Different folks have different needs and priorities. You've been using Alpha for seven years and you haven't studied all the submissions in the code archive? Wonder what else might be in there that you could use?

          Not criticizing, just a thought.
          There can be only one.

          Comment


            #6
            Re: Filling in the key linking field when opening an entry form from another form

            The sample shows me three options for passing the value from one form to another. I can follow each example and it all makes sense. My question is - does it make a difference which method I use? Why would I choose one method over another?

            I like the idea #2 which does not use variables but just passes the value from the parent form into the appropriate field on the newly opened form. But is there an advantage to using the variables? Or a disadvantage to using the direct form values?

            Sean

            Comment


              #7
              Re: Filling in the key linking field when opening an entry form from another form

              Actually, I haven't studied any code at all. My day job is managing our contracting business. I've never taken the time to learn how to code. I just pull down menus and click on genie choices and layout forms. It worked for me so far. But like I said, maybe in another post, I am starting to see the need to go beyond the genies and start making this application better and easier for my employees to use. Up until now I've been the primary user of A5, and A4 before that (more like 15 years?).

              Thanks Stan, and everyone else. I appreciate the tips and the suggestions.

              Sean

              Comment

              Working...
              X