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

Default values and Automatic append

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

    #16
    Re: Default values and Automatic append

    Ok.

    mypatient.zip
    There can be only one.

    Comment


      #17
      Re: Default values and Automatic append

      Originally posted by Stan Mathews View Post
      Ok.

      [ATTACH=CONFIG]30265[/ATTACH]
      Thank you so much Stan. I'll try to learn from your solution, and have to figure out how to compute the patient bill with discounts,
      maybe my table design is not normalize, but i have to identify the bills for every type of bill on a report

      Comment


        #18
        Re: Default values and Automatic append

        With a table structure such as I suggested you could summarize by patient by date range by type and total the fee. You could crosstab with patient as the row and type as the column and total the fee, filtering the records to be crosstabed by date range.

        All sorts of possibilities.
        There can be only one.

        Comment


          #19
          Re: Default values and Automatic append

          Originally posted by Ted Giles View Post
          CAL. Do you ever use the Audit Trail feature?
          I haven't used it in years. Most of my stuff isn't that critical and I didn't like the idea of having a huge text file out there will all kinds of stuff that I didn't care about. I'm also assuming that there is no built-in limit to the size of the text file and it would be up to the developer to set up a routine to periodically remove old info. A couple of my apps have been running for over 10 years and that would be a lot or "auditing".

          But your question has me thinking and I should probably add that to one of the apps I use for "personal" stuff (tracking addon owners, my business info, etc.) and become more familiar with it. There's a possibility it might help me resolve some issues in customer apps.

          By the way, in case you missed my last edit, I finally realized that Stan was referring to a dummy table with one field in it - and I completely agree that one field in a dummy table is enough.

          Comment


            #20
            Re: Default values and Automatic append

            I think an audit feature is key to data integrity. ( and tracking who did what..)

            While it may be something to maintain, it's saved my bacon a number of times.

            There have been a couple of scripts/functions posted on the board that each take a different approach to the issue than the built in Alpha audit feature.
            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


              #21
              Re: Default values and Automatic append

              Yap I'll try that Stan, Thank you

              Comment


                #22
                Re: Default values and Automatic append

                Originally posted by Stan Mathews View Post
                Ok.

                [ATTACH=CONFIG]30265[/ATTACH]
                Stan, Thanks for your help with the sample that you made, it is really of great help for beginners to see a working sample and learn from it rather than reading, although we really HAVE TO READ but it will help beginners learn by learning from the samples of alpha experts. I still have one question about your sample, is it recommended or is it possible to just put all the code behind the buttons into one button? so that end users will just click one button and the bill of all patients not yet discharged will be updated. or maybe the patients family member will inquire about how much the bill is.

                Comment


                  #23
                  Re: Default values and Automatic append

                  The one button in the second sample does that. The first four buttons that only worked on one date at a time can all be combined into one button. They were created separately so that one could push one button, examine the tables to see what happened, push the next button, etc.

                  All you need to do to combine them is to edit the onpush event of the second button, right click on and copy the action script element, close and then edit the first button (top), paste in the action. Repeat for the third and fourth buttons.
                  There can be only one.

                  Comment


                    #24
                    Re: Default values and Automatic append

                    Originally posted by Stan Mathews View Post
                    The one button in the second sample does that. The first four buttons that only worked on one date at a time can all be combined into one button. They were created separately so that one could push one button, examine the tables to see what happened, push the next button, etc.

                    All you need to do to combine them is to edit the onpush event of the second button, right click on and copy the action script element, close and then edit the first button (top), paste in the action. Repeat for the third and fourth buttons.
                    Thank you Stan, great help for me as a starter

                    Comment


                      #25
                      Re: Default values and Automatic append

                      As for the Audit Trail. It will indeed create a large .txt file, so an additional process - like zipping it - should limit the space requirements.
                      The reason I have used it is where there may be a risk element in the data being deleted.
                      Example:
                      Care home has an Incident logged - say medication mismanagement accusation.
                      Duty team log the incident but fail to pass on the Incident so it doesn't get investigated.
                      Patient gets seriously ill, relatives sue.
                      Duty team deny receiving complaint and delete the event.

                      It's more a case of "if I get asked what was deleted and who deleted it", how would I answer.
                      The fact that the audit trail exists - especially in an environment where it is possible to track the user - sharpens up work practice.
                      While I'm rambling on, finding out who creates most duplicate clients is another point. The unscrambling of data where both records hold pertinent data but are different Client ID's is a nightmare.
                      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


                        #26
                        Re: Default values and Automatic append

                        Stan,
                        What are these?
                        append.m_key = ""
                        append.t_key = ""
                        append.m_filter = ""
                        append.t_filter = ""
                        append.type = "All"
                        append.m_count = 5
                        append.m_field1 = "PDATE"
                        append.m_exp1 = "@TPATIENT->PDATE"
                        append.m_field2 = "P_ID"
                        append.m_exp2 = "@TPATIENT->P_ID"
                        append.m_field3 = "ROOM"
                        append.m_exp3 = "@TPATIENT->ROOM"
                        append.m_field4 = "PROFFEE"
                        append.m_exp4 = "@TPATIENT->PROFFEE"
                        append.m_field5 = "DISCHGD"
                        append.m_exp5 = ".F."
                        append.t_count = 0
                        Are these commands fixed? are they applicable in any table? Why is this included which is a constant append.m_count = 5
                        And what will i do so that values will be extracted from a table?example, the prof fee and Room rate, as i saw in your sample is fixed values or constant values,i want to get the fees from a separate table.

                        Comment


                          #27
                          Re: Default values and Automatic append

                          See this.
                          There can be only one.

                          Comment


                            #28
                            Re: Default values and Automatic append

                            Yap i saw that Stan but i can't figure out how to get the values of append.m_exp3 = "400" and append.m_exp4 = "150" from another
                            table so that whenever users will change the rates it will be dynamically fetched from another table.

                            append.m_key = ""
                            append.t_key = ""
                            append.m_filter = ""
                            append.t_filter = ".not. Dischgd .and. pdate = "+s_quote(last_date)
                            append.type = "All"
                            append.m_count = 4
                            append.m_field1 = "PDATE"
                            append.m_exp1 = s_quote(last_date+1)
                            append.m_field2 = "P_ID"
                            append.m_exp2 = "@PATIENT->P_ID"
                            append.m_field3 = "ROOM"
                            append.m_exp3 = "400"
                            append.m_field4 = "PROFFEE"
                            append.m_exp4 = "150"
                            append.t_count = 0

                            Comment


                              #29
                              Re: Default values and Automatic append

                              What is the name of the "other table"? How would you decide which record in the other table to use if you did it manually? What is the name of the field that holds the value you want to get?
                              There can be only one.

                              Comment


                                #30
                                Re: Default values and Automatic append

                                Originally posted by Stan Mathews View Post
                                What is the name of the "other table"? How would you decide which record in the other table to use if you did it manually? What is the name of the field that holds the value you want to get?
                                Stan,
                                The name of the table would be:
                                rates.dbf
                                rateid type Amount
                                001 ProfFee 150
                                002 RoomRate 450
                                003 OtherFees 200

                                the other tables would be the one's from your sample.

                                Comment

                                Working...
                                X