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

Newbie: 'staging area' for data prior to db 'upload'?

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

    Newbie: 'staging area' for data prior to db 'upload'?

    This post poses a very general question.

    First, my background: I have been fiddling with a5v9(desktop)for about a week now. While I am not an experienced programmer, I did a vis.basic project a couple years ago.

    Anyway, with that background, I am trying to contruct a database application that does the following: My group of physicians want to keep a db of their patient encounters. Each encounter is defined by..
    -a patient name (or unique medical record number)
    -physician name
    -date of encounter (assume one encounter per day)
    -billing code (describes the level of services, eg low, mod, or high)

    So, I envision the physician filling out a grid on my alpha5 application. This grid would, more or less, have the info listed above. Then, after the info was entered and looked correct,the physician would click a button to send it to the master database. In other words, the data would NOT be 'saved' into the database upon entry - which typically occurs when putting data into a browse. We need a sort of 'staging area' for the data before it is sent to the database. Is there any way to program this into and alpha five application (without importing from excel sheets)? Thanks for your help.

    jim

    #2
    Re: Newbie: 'staging area' for data prior to db 'upload'?

    Sounds like extra work to me, but you could base the data entry form on a transaction table that would be periodically checked and copied over to a master table. The difficulty occurs when you need to see data in the master table but only present the transaction table to the user. Perhaps you could explain why a "staging area" is needed?

    -- tom

    ps. In Alpha Five the term "database" is not synonymous with "table". And, records are not stored in "databases". They're stored in "tables". You seem to be talking about tables, right?

    Comment


      #3
      Re: Newbie: 'staging area' for data prior to db 'upload'?

      Hi Jim,

      Welcone to Alpha.

      The simple way to do this is to open the form from a button in New Record mode. You will not need the staging area that you mentioned.
      Regards
      Keith Hubert
      Alpha Guild Member
      London.
      KHDB Management Systems
      Skype = keith.hubert


      For your day-to-day Needs, you Need an Alpha Database!

      Comment


        #4
        Re: Newbie: 'staging area' for data prior to db 'upload'?

        Thanks for your reply, Tom. Actually, using a transaction table was my initial thought as well.

        Why do I feel that we need a data 'staging area'? It is because, I am trying to combine 2 work-flow processes into one process. The two processes are
        1)construction of a 'rounding sheet' as described below (we use Excel now) and
        2) capturing the patient-encounter data into a database (the excel sheets don't work for this).

        Another reason we need a data staging area, is that the data sometimes goes through several iterations before we decide on what should be in the database. In this way, our current Excel sheets function like a scratch pad or worksheet. I would like to avoid the multiple concurrent physician users from making frequent changes to their entries in the table set. By 'table set' I mean the parent and its linked tables. The term 'table set', of course, would not refer to the non-linked transactional tables. (I'm trying to be more precise with my database terminology here.) By the way, I assume that the transactional tables could be partially purged, or 'trimmed' periodically. We would only need to keep very recent data on the transactional tables. For example, if I pick up a list of patients from my partner, I could just copy them from his transactional list into my browse layout. In this way, I would not have to re-generate an entire patient list by typing in 20 patient names and medical record numbers.

        A 'rounding sheet' is a list of patients with billing information, patient info, presumptive diagnoses, notes to self, notes to other doctors (used for hand-off of patients), things to do, etc. Only some of information needs to go into the database. The other info on the sheet is 'volatile' and is needed just to guide me through the day or, at most, the week.

        I guess we could continue to construct our rounding sheets with Excel, and then at the end of the day re-enter all of the patient names and medical record numbers again - this time into alpha five table-set browse. Of course, the day is busy and time is at a premium. For this reason, I really need to find a way to combine the processes into a slick, easy-to-use app. If I could incorporate a rounding-list generator into my alpha five app, then the final 'capture-worthy' data could just be appended to the master table (non-transactional, table set). Voila! rounding list plus database all in one work-flow process.

        As you mentioned, there are some disadvantages to using transaction tables here. If I use transaction tables, it seems like I would have to construct a transaction table for each user (physician). We have 40 physicians in our group. That's a lot of tables. Furthermore, each transaction table would be associated with it's own separate browse layout (essentially a user-interface for that table). Unfortunately, I have found no way to make copies of a particular browse layout (forms, panels, buttons, fields, dialogs, etc.) and apply it (or associate it) to an analogous (but separate) transaction table. This limitation suggests that I would have to build 40 separate browse layouts essentially from scratch. I don't want to do that if I can possibly avoid it.

        Now, I did figure out how to make a quick copy of a browse layout, but it stays associated with the table that it was based on (of course). I could easily make 40 copies of the layout in this way, but each browse layout would be a 'window' onto the same transaction table. Hmmmm... maybe I can just have the physicians draw from the same transaction table. They can see just their own patients if I add a different filter script (upon activation of the form) to each browse. I don't know, I'd have to think about the details of how it will be used. Any thoughts? Am I making any sense? Maybe I need to hire a consultant. Did I bite of more than I can chew. I still have 20days left on my alpha five trial. :)

        jim
        Last edited by drjgs200; 06-08-2009, 07:20 PM.

        Comment


          #5
          Re: Newbie: 'staging area' for data prior to db 'upload'?

          Originally posted by Keith Hubert View Post
          Hi Jim,

          Welcone to Alpha.

          The simple way to do this is to open the form from a button in New Record mode. You will not need the staging area that you mentioned.
          New record mode? I haven't come across that mode yet. It sounds too easy. I will certainly give a try right now. Thanks, Keith.

          jim

          Comment


            #6
            Re: Newbie: 'staging area' for data prior to db 'upload'?

            Originally posted by Keith Hubert View Post
            Hi Jim,

            Welcone to Alpha.

            The simple way to do this is to open the form from a button in New Record mode. You will not need the staging area that you mentioned.
            Well, Keith, I now see what you mean by 'New Record' mode. If I'm not mistaken, it seems that 'New Record mode' is the only mode that allows one to enter data into a browe or table. This mode is activated by Contol-E, or by going up to the 'Records' menu, then clicking 'Enter new record'. Am I right?

            If so, then the 'new record' mode unfortunatley doesn't help me much. It only allows me to correct a record if I haven't yet moved the cursor from that record row (and if I'm going 'modeless', I think). I was hoping to find a 'mode' whereby I could enter my data quickly, then sit back and look at the overall table and decide what changes, if any, need to be made. Only after that final birds-eye assessment, would I send it to it's final table.

            jim

            Comment


              #7
              Re: Newbie: 'staging area' for data prior to db 'upload'?

              Originally posted by drjgs200 View Post
              ... I could easily make 40 copies of the layout in this way, but each browse layout would be a 'window' onto the same transaction table. Hmmmm... maybe I can just have the physicians draw from the same transaction table. They can see just their own patients if I add a different filter script (upon activation of the form) to each browse. I don't know, I'd have to think about the details of how it will be used. Any thoughts? Am I making any sense?
              Wow! That's quite a scenario. Actually though, it's probably simpler than you make it sound. You don't need 40 browses for 40 physicians. That's like having 2000 forms for 2000 customers. Not necessary. One form with an embedded browse or something along those lines. You filter the form/browse on the particular physician (presumably when he/she logs in). I guess a transaction table makes sense. Probably much preferable over Excel. You could use a relatively simple script to copy over the relevant records/or fields to the final table when ready. There is no need to retype data. Enter once and then manipulate as may be needed. Think digital, not analog (I don't mean that as a criticism). ;)
              Peter
              AlphaBase Solutions, LLC

              [email protected]
              https://www.alphabasesolutions.com


              Comment


                #8
                Re: Newbie: 'staging area' for data prior to db 'upload'?

                Originally posted by Peter.Greulich View Post
                Wow! That's quite a scenario. Actually though, it's probably simpler than you make it sound. You don't need 40 browses for 40 physicians. That's like having 2000 forms for 2000 customers. Not necessary. One form with an embedded browse or something along those lines. You filter the form/browse on the particular physician (presumably when he/she logs in). I guess a transaction table makes sense. Probably much preferable over Excel. You could use a relatively simple script to copy over the relevant records/or fields to the final table when ready. There is no need to retype data. Enter once and then manipulate as may be needed. Think digital, not analog (I don't mean that as a criticism). ;)
                Thanks Peter. Your explanation is what I was trying to say in my bolded sentences: put the patients for all of the physicians on the same transaction table, use one 'window' to this table (a single browse 'application') and use a physician-specific patient filter (applied upon login, as you suggested).

                I assume that I would use an 'append' operation to get the transaction data over on to the main table-set?

                Thanks, again. This has been very helpful. It's nice to know that the transaction-table approach is not a ridiculous one. I think I can now take another stab at it - and with a little more confidence.

                Jim

                PS: ok, now I see.... I don't even need to modify the otherwise identical browses (as I suggested in my prior post). I can do the physician-specific filtering in response to the physician log-on.

                Comment


                  #9
                  Re: Newbie: 'staging area' for data prior to db 'upload'?

                  Originally posted by drjgs200 View Post
                  I assume that I would use an 'append' operation to get the transaction data over on to the main table-set?
                  Yes, that would be the most direct way to accomplish what you want.


                  It's nice to know that the transaction-table approach is not a ridiculous one.
                  Not ridiculous at all. It always comes down to one's needs.

                  Good luck!
                  Peter
                  AlphaBase Solutions, LLC

                  [email protected]
                  https://www.alphabasesolutions.com


                  Comment


                    #10
                    Re: Newbie: 'staging area' for data prior to db 'upload'?

                    negate
                    Mike W
                    __________________________
                    "I rebel in at least small things to express to the world that I have not completely surrendered"

                    Comment

                    Working...
                    X