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

Multiple Addresses Challenge

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

    Multiple Addresses Challenge

    In a case management app I am working on I have a scenario where it is required that for each member of a household,
    records are maintained for every change of address which may or may not be different from the others in the household.

    In my form want to be able to link an address in a child table that may or may not be the same as the parent address.
    And if the address is the same, I do not want to create an additional address record for the child:
    the condition for this would be ASAME = .T.

    However, since the parent record may have multiple address records as well, then the child would need to use the same
    DATA_ID field that the parent is using for that address. This is where is gets complicated for me because the
    DATA_ID field right now is auto increment and would thereby be unique for each address record in the address table.

    All records for parent & child are in the same table which requires 2 keys: one is shared by all family members,
    so they may be grouped together, while the other is unique to the member.
    Ex: Common CLIENT_ID = "C000123", related MEMBER_ID = M000123.01, M000123.02, M000123.03, etc.

    For the HOH member only, a flag is set to true.

    It also has to be possible to move a member to another client_id either creating a new Client_ID for him, or by
    changing it to that of another HOH client member. This can be handled by NOT allowing his original MEMB_ID to
    be changed, so that the combined ID fields remain unique to the table. I created a calc field KEYLINK for this.

    Over time, the members of the household may vary and I have an intermediary table to help handle this.
    Each HOH Client may have more than one Case linked to which ever household members are present at that time.
    So for a particular case, these links may be changed from any prior ones. Also it is possible that for a period
    of time in one particular case, the HOH member may not be residing at the same address as the other members
    and that change needs to be noted (Ex: Mental Health facility, VA Hospital, Long Term Care facility, etc.).

    It's probably obvious that I could use some design help in how to handle the many to many relationships in this app.
    But if someone could help me figure out this address scenario, I would be well on my way to wrapping it up.

    Somehow I need to be able to lookup the Data_ID field and assign it to a household member without losing the ability
    to auto increment that field in the address table when adding a new record. This is what has me stumped...
    Last edited by MoGrace; 03-31-2018, 05:38 PM.
    Robin

    Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

    #2
    Re: Multiple Addresses Challenge

    Having worked on very expensive case management systems, I know this is not always that easy to design.
    One thing which would help would be a logical diagram of the process without the words.
    Can you do one in Visio?
    See our Hybrid Option here;
    https://hybridapps.example-software.com/


    Apologies to anyone I haven't managed to upset yet.
    You are held in a queue and I will get to you soon.

    Comment


      #3
      Re: Multiple Addresses Challenge

      I have come quite close to this in a church app. I did do similar in a car lot program, where the buyer is always first, and pulled buyer from existing if exists, then pull co-buyer in from existing if exists.
      On the church app, I had intended to have a separate table just for addresses. Use as a lookup if exists.
      Dave Mason
      [email protected]
      Skype is dave.mason46

      Comment


        #4
        Re: Multiple Addresses Challenge

        I suspect it's a lot more complicated Dave, that's why a logical 1:M diagram would help explain it.
        See our Hybrid Option here;
        https://hybridapps.example-software.com/


        Apologies to anyone I haven't managed to upset yet.
        You are held in a queue and I will get to you soon.

        Comment


          #5
          Re: Multiple Addresses Challenge

          I think my intermediary table will be the place to handle this because that is the table I use to link to multiple family members for the client. So by selecting the DATA_ID field from a lookup in that table, it will create the link I need for the child address table. Still testing...since I also have to be able to create a new address, I think the lookup field rule can accomplish that. Getting this designed in a flow chart is a bit different than getting that design to work in the UI - too many 'what if's!
          Robin

          Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

          Comment


            #6
            Re: Multiple Addresses Challenge

            I developed a system for paternity tests in Alpha 4 - a long time ago in a far away land....

            I used tables for people, places, and family units (actual and potential).

            Then built other tables to hold relationships and history of those relationships.

            You always need an audit trail and history of what has transpired at all of the tables.

            Definitely a lot of fun.
            Al Buchholz
            Bookwood Systems, LTD
            Weekly QReportBuilder Webinars Thursday 1 pm CST

            Occam's Razor - KISS
            Normalize till it hurts - De-normalize till it works.
            Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
            When we triage a problem it is much easier to read sample systems than to read a mind.
            "Make it as simple as possible, but not simpler."
            Albert Einstein

            http://www.iadn.com/images/media/iadn_member.png

            Comment


              #7
              Re: Multiple Addresses Challenge

              Al - I almost have my broken form fixed - at least enough that it can be loaded
              Robin

              Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

              Comment


                #8
                Re: Multiple Addresses Challenge

                "Getting this designed in a flow chart is a bit different than getting that design to work in the UI"
                Not a flow chart, a logical design, possibly using UML
                Going down the "If Then And" route will drive you nuts.
                There are only so many logical events in a M:M:M relationship, all based on a FK of some type, whether constructed or actual.
                Personally, I don't find textual description half as useful as a decent diagram. Words have different meanings, diagrams rarely do.
                See our Hybrid Option here;
                https://hybridapps.example-software.com/


                Apologies to anyone I haven't managed to upset yet.
                You are held in a queue and I will get to you soon.

                Comment


                  #9
                  Re: Multiple Addresses Challenge

                  Ok Ted, since you asked - here is my 'logical design' using Libre Office-Draw. It didn't have the right connectors so I used arrows as the 1:N link connectors. No arrow = 1:1. Also my color coding is supposed to show that there is a relationship - well sort of. Finance is not actually related to Visit. Well maybe it is, since the client's finances may have changed on a per visit basis...

                  CaseMgt.pdf
                  Last edited by MoGrace; 04-03-2018, 11:09 AM.
                  Robin

                  Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                  Comment


                    #10
                    Re: Multiple Addresses Challenge

                    Cool! Let me cogitate.
                    See our Hybrid Option here;
                    https://hybridapps.example-software.com/


                    Apologies to anyone I haven't managed to upset yet.
                    You are held in a queue and I will get to you soon.

                    Comment


                      #11
                      Re: Multiple Addresses Challenge

                      Do you want all of the tables shown on one form?
                      I suggest not. (Although I have something working - badly)
                      The logical flow I imagine is

                      Add Case
                      .Case has primary person
                      ..Primary person has Address(but one main one for letters etc.)
                      ..Primary person has Contacts and type of contact (Relative, Friend etc.)
                      ...Contacts have Address( as above)
                      .Primary person has Requests

                      .Case has Notes
                      .Case has Visit Diary
                      .Case has Vouchers
                      .Case has Income

                      So, the Case has the primary person, all their contacts, all their employers, all the addresses and their requests.

                      I don't know how you did it Robin, but I would use a Relationship Type for contacts (Cousin, employer).
                      Then you have just 4 tables, Person, Contacts, Addresses and Requests
                      See our Hybrid Option here;
                      https://hybridapps.example-software.com/


                      Apologies to anyone I haven't managed to upset yet.
                      You are held in a queue and I will get to you soon.

                      Comment


                        #12
                        Re: Multiple Addresses Challenge

                        Having seen the application, I can see the complexity now.
                        Excellent design and graphics.
                        See our Hybrid Option here;
                        https://hybridapps.example-software.com/


                        Apologies to anyone I haven't managed to upset yet.
                        You are held in a queue and I will get to you soon.

                        Comment


                          #13
                          Re: Multiple Addresses Challenge

                          It seems to me I mentioned this other problem somewhere but can't find it now. I have very complex sets for the 2 main forms I have. Then needed to create a new set for the vouchers form and a variation of it to print out the voucher, using pretty much the same tables. However, when I have the form open and go to preview the voucher before printing it, I get an error that AA can't add the relationship in the set to one of the tables because it is being used in another process. The set the form is based on is open but not in change mode or anything, so why is this error happening? I tried using an alias in the set structure for the report (seems this 'worked' before...), but it is not helping now.

                          I am out of ideas on this one since it never happened to me in v11.
                          Robin

                          Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                          Comment


                            #14
                            Re: Multiple Addresses Challenge

                            Somehow I need to be able to lookup the Data_ID field and assign it to a household member without losing the ability to auto increment that field in the address table when adding a new record. This is what has me stumped...
                            I suppose you may need another related table called data_ids where you store the id and the member_id to include an auto increment then you just look up the highest value for the member which would always hold the current value. I am not a db expert so disregard if I am off base on that...This might also allow for some ID history as well if you included a date/time field.
                            NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

                            Comment


                              #15
                              Re: Multiple Addresses Challenge

                              Can you try building it in V11 and running it, then run it in V12?
                              If the error is in one and not the other it is a bug and you could report it.
                              See our Hybrid Option here;
                              https://hybridapps.example-software.com/


                              Apologies to anyone I haven't managed to upset yet.
                              You are held in a queue and I will get to you soon.

                              Comment

                              Working...
                              X