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

Multi-column link not writing link fields in child

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

    Multi-column link not writing link fields in child

    I have a set with several tables in it. One of the child tables is linked through several columns (fields), e.g., the link is defined as:

    Code:
    ALLTRIM(ERNO)+ALLTRIM(DIVNO)+ALLTRIM(BENEFIT_CODE)+ALLTRIM(EE_CLASS)
    The child table is on the "many" side of the 1:M relationship. When I enter records directly into the resulting browse, none of the link fields are populated with any values, so records are being created in the child, but don't show in the browse. If I make the link fields required in the child table, I get an error message that a required field isn't filled.

    I don't want to create a "drill-down" form to add records to this browse as I've done with others--it's a relatively simple set of records and it makes sense to allow direct entry to the browse's records by data-entry people.

    What have I done wroing here? Is there a secret that I'm missing :)
    Lawrence Fox
    ComputerWizard Consulting
    http://www.computerwizardonline.com
    Bookkeeping, Accounting & Database Design
    "Nobody goes to work for themselves in order to do paperwork--so call the Wizard today and get back to doing what YOU love to do..."

    #2
    Lawrence, a simple search for multi-field link turned up this thread which appears to offer a good idea for you:

    http://msgboard.alphasoftware.com/al...lti-field+link

    Hope this helps. Let us know.

    -- tom

    Comment


      #3
      It is not a good idea to trim values that you are using in an index expression. The results will be unpredictable if the data trims to different lengths.

      Comment


        #4
        Tom:

        There's an article at LearningAlpha.com that discussed using a concatenated field as the link instead of doing it "on-the-fly" as part of the set definition, but I had a problem with it--I'm not at my office right now so I can't check until later today--I think I got an error message that a calcuated field couldn't be used as the link field for a set. I'll reread it again tonight and try again.

        Edward:

        Hmm...there were a couple of posts here last night that I was looking at that suggested the opposite--that all indexes and concatenated fields should use alltrim() to eliminate spaces within the key. Are you saying that is NOT the preferred method and that NONE of my indices or set linkages should use alltrim() in order to ensure consistent lengths within the index or link?

        What sort of inconsistent results? Queries that don't make sense? Inability to "parse" the concatenated link into its component parts?
        Lawrence Fox
        ComputerWizard Consulting
        http://www.computerwizardonline.com
        Bookkeeping, Accounting & Database Design
        "Nobody goes to work for themselves in order to do paperwork--so call the Wizard today and get back to doing what YOU love to do..."

        Comment


          #5
          What sort of inconsistent results?
          Lawrence, perhaps "inconsistent" is a poor choice of words. The difference between trimming field values when concatenating index keys can be illustrated like this.

          Assume two fields, Lastname and Firstname.
          Assume you want to build an index using a concatenated key
          Assume field values like this:
          ADAM TOM
          ADAM SMITTY
          ADAMS LARRY
          If you do Lastname + Firstname you get:
          ADAM SMITTY
          ADAM TOM
          ADAMS LARRY
          but if you do trim(Lastname) + trim(Firstname) you get:

          ADAMSLARRY
          ADAMSMITTY
          ADAMTOM
          Not the same result. This isn't surprising. Perhaps "different results" would be a better descriptor than "inconsistent results". If you concatenate trimmed fields you cannot be assured the resulting list will be sorted first by the field values in the first field, then second by the field values in the second field. Instead, you get the list sorted by the concatenated AND TRIMMED field values. This isn't wrong. It's just different.

          -- tom
          Last edited by Tom Cone Jr; 12-31-2005, 10:00 AM.

          Comment


            #6
            Tom:

            Thanks for the explanation re: concatentated with and without trims. Makes sense now. I think I'll leave them untrimmed for now.

            To test the linkage thing, I reprinted the artcile from LearnAlpha.com and I've gone back to some other tables and created a field called "ERNOKey" that's a calculated field with a derivation of ERNO+DivNo. (Erno means "Employer Number", btw).

            When I look at the table, there's no data in the field. If I retype the Employer Number, the ERNOKey field derives--and then disappears from the screen. How can one index a field that has no data in it? Or run queries quickly if the link field needs to be created on the fly? Is there a method of ensuring that a calculated field contains real not virtual values?

            Would I not be better off creating form-level events that ensured that the field always had "real" values in it and that they were the current values of the ERNO and DivNo fields? I'm a wee bit confused here...
            Lawrence Fox
            ComputerWizard Consulting
            http://www.computerwizardonline.com
            Bookkeeping, Accounting & Database Design
            "Nobody goes to work for themselves in order to do paperwork--so call the Wizard today and get back to doing what YOU love to do..."

            Comment


              #7
              Lawrence, are you mixing data types?

              -- tom

              Comment


                #8
                Tom:

                No, I'm not mixing data types.

                I spoke too soon :o . I didn't realize that I had to go back to the records that had been created and make a change (like retype the EmployerNumber, which is a charactere field) and then the new fields were calculated and the values stored in the table.

                I had thought that they'd been calculated when the new columns were added. My bad. I'll know better for next time :) .
                Lawrence Fox
                ComputerWizard Consulting
                http://www.computerwizardonline.com
                Bookkeeping, Accounting & Database Design
                "Nobody goes to work for themselves in order to do paperwork--so call the Wizard today and get back to doing what YOU love to do..."

                Comment


                  #9
                  OK, now I'm getting frustrated. I go directly into the tables to ensure that the values are there. I can get them to "stick" in the Employer_Benefits table (which is the "many" side) but every time I edit the Employers table, I see the new "key" field and they disappear after saving.

                  [a few minutes later]

                  Hmm...if I edit another field (not the EmployerNumber) and save the record, the calculated field recalcs. Is there a "recalc" command that would force this action?
                  Last edited by Lawrence Fox; 12-31-2005, 12:58 PM.
                  Lawrence Fox
                  ComputerWizard Consulting
                  http://www.computerwizardonline.com
                  Bookkeeping, Accounting & Database Design
                  "Nobody goes to work for themselves in order to do paperwork--so call the Wizard today and get back to doing what YOU love to do..."

                  Comment


                    #10
                    I had thought that they'd been calculated when the new columns were added.
                    Once the calc field rule is defined you can use the Rules option to Re-evaluate field rules, to do the calc in each record.

                    -- tom

                    Comment


                      #11
                      Tom:

                      Thanks for the pointer on the Rules recalc option. That makes life much easier as I change table stuff around :).

                      And as for the original problem, the "Linking a Set Using More than One Linking Field" article at www.learn alpha.com did the trick as well.

                      Much thanks to those who wrote it and posted it!
                      Lawrence Fox
                      ComputerWizard Consulting
                      http://www.computerwizardonline.com
                      Bookkeeping, Accounting & Database Design
                      "Nobody goes to work for themselves in order to do paperwork--so call the Wizard today and get back to doing what YOU love to do..."

                      Comment

                      Working...
                      X