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

Expected error

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

    Expected error

    Hi guys,

    I have a problem with my software of Alpha Five V11 when I try to use an operation that I created .
    This operation is an Update to a table with a variable at runtime of the current year ( see the script ). When I try to use this script I can update the table , but if I try to use another time the same script I receive a popup error as you see on the pictures attached, and I check the table the field is updated with this new value .






    'Date Created: 14-Feb-2013 04:29:26 PM
    'Last Updated: 14-Feb-2013 04:29:26 PM
    'Created By : Notebool
    'Updated By : Notebool
    'Operation is based on current filter and order of current table.
    'Get the current table's filter and order expression

    dim mru as p
    mru = mru_query("tbl_fatturatoclienti")
    current_filter = mru.filter
    current_order = mru.order
    current_flags = mru.flags

    'Check to see if current filter/order is valid in the context of "tbl_fatturatoclienti"
    if current_filter <> "" then
    if eval_valid(current_filter,"tbl_fatturatoclienti") =.f. then
    a5_Operation_Warning() 'Display warning if current selection is meaningless
    current_filter = ".t."
    end if
    end if

    if current_order <> "" then
    if eval_valid(current_order,"tbl_fatturatoclienti") = .f. then
    current_order = ""
    end if
    end if

    'Prompt for any ASK variables in filter/order expressions......
    ask_vars = <<%list%
    Askn_Anno_Di_Pertinenza

    %list%
    prompt_result = a5_prompt_for_ask_vars(ask_vars,session_variables(session_get()))
    if prompt_result <> "OK" then
    end
    end if
    a_tbl = table.open("tbl_fatturatoclienti")
    ON ERROR GOTO ERROR14022013162857402


    DIM a5_operation_filter as C
    a5_operation_filter = current_filter
    query.filter = a5_operation_filter
    DIM a5_operation_order as C
    a5_operation_order = current_order
    query.order = a5_operation_order
    query.options = "I"+current_flags
    query.description = "Temporary Query"
    a_tbl.query_create("N")

    update.fields = 1
    update.field1 = "ANNO"
    update.expr1 = "Var->askN_Anno_di_pertinenza"

    a_tbl.update()


    GOTO CONTINUE14022013162857402
    ERROR14022013162857402:
    ON ERROR GOTO 0
    ui_msg_box("Error","Error running Update Operation"+crlf()+error_text_get())
    END
    CONTINUE14022013162857402:
    a_tbl.close()'If the Operation is run from within a Form or Browse, then refresh the window
    if is_object(topparent.this) then
    if topparent.Class() = "form" .or. topparent.class() = "browse" then
    topparent.Refresh_layout()
    end if
    end if


    Attached you can findalso the dbf files





    I would be grateful if someone would tell me what kind of error is this
    Attached Files
    Cristiano
    [email protected]

    Skype: cris-do

    #2
    Re: Expected error

    No error here.
    There can be only one.

    Comment


      #3
      Re: Expected error

      I get unrecognised format.
      Did you convert this from a different version Cristiano?
      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


        #4
        Re: Expected error

        Originally posted by Ted Giles View Post
        I get unrecognised format.
        Did you convert this from a different version Cristiano?

        Hi,
        in effect I created the script with version 10.5 But I cannot believe that the transfer of a script from two different version can be the problem. I tried also to cancel and ricreate the script but I had the same result.
        Cristiano
        [email protected]

        Skype: cris-do

        Comment


          #5
          Re: Expected error

          Your update script uses the current filter and order of the table. Is this as you mean to have it? It is likely that the current filter and order of your table is different than the empty sample table you attached. Also likely that the filter and order are different when you run it from time to time. This could explain why you sometimes have an error and sometimes not.
          There can be only one.

          Comment


            #6
            Re: Expected error

            Originally posted by Stan Mathews View Post
            Your update script uses the current filter and order of the table. Is this as you mean to have it? It is likely that the current filter and order of your table is different than the empty sample table you attached. Also likely that the filter and order are different when you run it from time to time. This could explain why you sometimes have an error and sometimes not.
            Ok thanks Stan, I'm sorry, but the empty table should not be the same as the first one , and therefore also inherit the filters and order?
            Cristiano
            [email protected]

            Skype: cris-do

            Comment


              #7
              Re: Expected error

              No. The user queries are stored in the $$ or .mpx files and are not included in your compressed file.

              Note that if the current order of the table is anno the script will fail with the error that you cannot update the field used in the primary index (current order).
              Last edited by Stan Mathews; 02-14-2013, 05:56 PM.
              There can be only one.

              Comment


                #8
                Re: Expected error

                Thanks, and now ... I do not have any Idea to how make it . Maybe create some new tables ... but all the records ??

                Sorry but the $$ or mpx could be erased ?

                Do you have any other suggestion Stan ?
                Cristiano
                [email protected]

                Skype: cris-do

                Comment


                  #9
                  Re: Expected error

                  Add an anno field to the invoice_items table in AlphaSports. Save your script in AlphaSports and change the table references to invoice_items. Run the script there a few times changing the filter and order between tries.

                  No problem there? The problem is with your table or field rules, etc. If you do have a problem, note what the current filter and order were.
                  There can be only one.

                  Comment


                    #10
                    Re: Expected error

                    Ok Stan,
                    adesso provo a creare una nuova tabella


                    Sorry Stan I wrote in Italian ...;)

                    Now I create a new table and without rules and then I check if there are problems
                    Last edited by Cristiano; 02-15-2013, 07:19 AM.
                    Cristiano
                    [email protected]

                    Skype: cris-do

                    Comment


                      #11
                      Re: Expected error

                      Hello Stan,

                      * I want to thank you for the help that has been critical to the resolution of my problem. I created a new table and import all the data and now it works.

                      The problem was on the indexes of the table


                      Thanks again
                      Cristiano
                      [email protected]

                      Skype: cris-do

                      Comment


                        #12
                        Re: Expected error

                        Glad you resolved the issue.
                        There can be only one.

                        Comment

                        Working...
                        X