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

Enter Must Begin First? AND Data value Cannot Fit into a numeric field of size

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

    Enter Must Begin First? AND Data value Cannot Fit into a numeric field of size

    Hello there, Im getting two very strange errors in a pretty basic attendance tracking application. "Enter must Begin First" and "Data value Cannot Fit into a numeric field of size". Ive tried searching for these errors but I couldnt find anything for Enter Must begin First.

    The second error I found online that my field is not large enough for the data im trying to input, but the field that gives me this error is a time field and all Im doing is entering the default value of Now(), i dont see a reason why it shouldnt fit.

    Ive attached a zip of the database, Im completely puzzled here. If you open the Time_Sheet Form all you have to do is enter into the first field (a numeric value) which is a variable field, then tab out of it, the next field (TodaysDate) it tabs into has an onArrive event that fires certain script.

    If you enter an ID number of 1 for example then tab, I get "Data value Cannot Fit into a numeric field of size", then if you try and cancel your changes, you get Enter Must Begin First. After you get Enter Must begin first you cant do anythign after that, you get stuck in an infinite loop, the only way to close database is to start the task manager and end the program. If ive left anything out or if you have more questions please let me know.

    Thank You, Ivan.

    SignInOut.zip

    #2
    Re: Enter Must Begin First? AND Data value Cannot Fit into a numeric field of size

    You start by putting a value in the employee variable.

    Then you go to date and run a query and other things.

    At first glance, I'm thinking you need to do this in a single script rather than multiple scripts.

    You can't control the flow of scripts in action scripting, they run at their own timing.

    You are also setting values of the objects on the form prior to starting the record entry.
    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


      #3
      Re: Enter Must Begin First? AND Data value Cannot Fit into a numeric field of size

      Im an amateur when it comes to writing xbasic or scripting, I run the query first to evaluate if there is a previous incomplete record, its determined incomplete by using the "Variable_Identifier" field. each individual script fires depending on the value in this field. If the Variable_Identifier field = 4, it begins a new record entry using the Variable vCurrentEmployee on the form.

      Action Scripting is the best way i know of to accomplish this.

      Separating the scripts was the only way I knew how to make scripts 2-5 fire conditionally.
      Last edited by Gustavo1478; 01-26-2015, 01:49 PM. Reason: Conditional Scripts

      Comment


        #4
        Re: Enter Must Begin First? AND Data value Cannot Fit into a numeric field of size

        Even if you go to the table directly and try and enter the start field you get "Data value Cannot Fit into a numeric field of size", why is this?

        Comment


          #5
          Re: Enter Must Begin First? AND Data value Cannot Fit into a numeric field of size

          I have not checked yet, but doesn't date and time like now() go into a character field?
          pm and am will not work as numeric.

          If a table is in enter mode, it does not need to be changed to enter data, but if it is not, it needs to be change to enter mode or nothing can be input;
          similar to:
          vmode = t.mode_get()
          select
          case vmode = 0
          t.enter_begin()
          case vmode = 2
          t.enter_end()
          t.enter_begin()
          end select

          (this may not be the exact code)
          In other words, test for the mode and change as needed before entering the data.
          Last edited by DaveM; 01-26-2015, 02:35 PM.
          Dave Mason
          [email protected]
          Skype is dave.mason46

          Comment


            #6
            Re: Enter Must Begin First? AND Data value Cannot Fit into a numeric field of size

            Originally posted by Gustavo1478 View Post
            Im an amateur when it comes to writing xbasic or scripting, I run the query first to evaluate if there is a previous incomplete record, its determined incomplete by using the "Variable_Identifier" field. each individual script fires depending on the value in this field. If the Variable_Identifier field = 4, it begins a new record entry using the Variable vCurrentEmployee on the form.

            Action Scripting is the best way i know of to accomplish this.

            Separating the scripts was the only way I knew how to make scripts 2-5 fire conditionally.
            From your action script, right click one of the steps and view xbasic. 2 tabs - Current action or All Actions.

            Use All Actions and copy to clipboard - replace script_play_local with actual code.


            To help triage the problems I used the divide and conquer method.

            I moved your script to a button.

            Took the script off the object event.

            The calculated fields of lunch total (et al) is causing the can't fit because you are not requiring both a lunch start and lunch end field. So if lunch end is missing, the value calculated is too large to fit.

            I think you are going to need to move away from action scripting for this process. Action scripting is an aid to coding, but you're in the deep end of the pool with this concept.

            The time clocks I've seen are xdialogs where you can control values and events easier.

            You need to work in smaller steps to keep an idea of what is happening.

            Good luck with your project.
            Last edited by Al Buchholz; 01-26-2015, 06:22 PM. Reason: clarity
            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: Enter Must Begin First? AND Data value Cannot Fit into a numeric field of size

              Originally posted by Al Buchholz View Post
              The calculated fields of lunch total (et al) is causing the can't fit because you are not requiring both a lunch start and lunch end field. So if lunch end is missing, the value calculated is too large to fit.

              Good luck with your project.
              Taking this into consideration, I removed the calculated field from the tables field rules and added it to the "set field values" Action Script to fire after the necessary fields have been filled in. I also removed the scripts as you said to have the entire script run as one, conditionally of course.

              Now this application is working just how I wanted, thanks Alan I would have been stuck here for quite some time.
              Last edited by Al Buchholz; 01-26-2015, 06:22 PM.

              Comment


                #8
                Re: Enter Must Begin First? AND Data value Cannot Fit into a numeric field of size

                Originally posted by Gustavo1478 View Post
                Taking this into consideration, I removed the calculated field from the tables field rules and added it to the "set field values" Action Script to fire after the necessary fields have been filled in. I also removed the scripts as you said to have the entire script run as one, conditionally of course.

                Now this application is working just how I wanted, thanks Alan I would have been stuck here for quite some time.
                Good to hear.

                Sometimes having field rules, code, et al gets confusing for what is being controlled when....

                Better to do it in one place.
                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

                Working...
                X