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

This error message is very annoying - annyone know what it means?

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

    This error message is very annoying - annyone know what it means?

    Every time I make ANY change to the components or pages of this module, and then re-publish each, I get this error message:

    500 Internal Server Error
    "Script Error
    Error:Script: /AMAv5.0/Scheduler_Totals.a5w line:17
    x_Scheduler_Total = a5w_run_Component(tmpl_Scheduler_Total)
    Property not found
    f.Value.dump method not found."

    Like I said, if I re-publish each changed page and component, I still get this error message. Even if I re-publish the entire application with the setting to just re-publish any files that have changed, I still get the error message. Only if I re-publish the ENTIRE application, then I do not get the error message. That works. Only problem, the application is large enough that republishing it in its entirety takes at least an hour!!!

    Does anyone understand what might be going on here???

    Gary
    Gary S. Traub, Ph.D.


    #2
    Re: This error message is very annoying - annyone know what it means?

    f.Value.dump method not found."

    It most likely means one of your scripts in the component's events is expecting a variable named "f" that doesn't exist, at least much of the time.

    A good way to trap this kind of error is to first check that the variable exists.

    Code:
    if eval_valid("f")
      somethinghere = f.Value.dump()
    end if
    -Steve
    sigpic

    Comment


      #3
      Re: This error message is very annoying - annyone know what it means?

      Good morning Steve,

      Thanks for responding.

      Where would I put that code?

      But also, I am not sure I understand how that addresses the question of why a full, re-publishing of the entire site does NOT produce the error. Or said differently, What does republishing the entire app do that, re-publishing just the changed components and pages does not do??

      Looking to understand ...

      Gary
      Gary S. Traub, Ph.D.

      Comment


        #4
        Re: This error message is very annoying - annyone know what it means?

        I can't help with the question of why the error does or does not appear based on publishing all, but I can help you know where to look.

        Rreading the error message, it says the problem is actually in a component named Scheduler_Total. The error is in the component, not in the page, because it is happening in the line that processes the component. If it is always the same component name, then you can look in that component.

        If the component name changes, or it happens in a variety of components, then I would suspect that you have made a change to a table (perhaps a field name) and not updated the change in the components. It is important, when you make a change, to always refresh the table in the component or you won't see any error messages as you work on the component.

        Pat
        Pat Bremkamp
        MindKicks Consulting

        Comment


          #5
          Re: This error message is very annoying - annyone know what it means?

          Pat,

          Thanks so much for answering.

          The component is a dialog component called Scheduler_Totals - alpha apparently truncates the last "s"

          The dialog has 4 fields, 2 of them date fields called date1 and date2, and 2 are character fields called prov1 and prov2.

          Here is the Xbasic code in the AfterValidate event:

          session.date1=CurrentForm.Controls.Date1
          session.date2=CurrentForm.Controls.Date2
          session.prov1=CurrentForm.Controls.Prov1
          session.prov2=CurrentForm.Controls.prov2


          dim tblv as p
          tblv=table.open("view_total_on_sched")
          tblv.zap(.t.)
          tblv.close()
          tblv=table.open("view_total_on_sched")

          dim tbl as p
          dim query.filter as c
          dim query.order as c
          dim query.options as c
          dim sdate1 as d
          dim sdate2 as d
          dim sprov1 as c
          dim sprov2 as c
          sdate1=ctod(CurrentForm.Controls.Date1)
          sdate2=ctod(CurrentForm.Controls.Date2)
          sprov1=CurrentForm.Controls.Prov1
          sprov2=CurrentForm.Controls.prov2

          dim tfee as n
          dim tiexp as n
          dim tpexp as n
          dim two as n
          dim ttexp as n

          dim tblp as p
          dim ndxp as p
          tblp=table.open("provider")
          query.filter="scheduleable='Yes' .and. prov>=sprov1 .and. prov<=sprov2"
          query.order="prov"
          query.options=""
          ndxp=tblp.query_create()
          dim tprov as c
          while .not. tblp.fetch_eof()
          tprov=tblp.prov
          tfee=0.00
          tiexp=0.00
          tpexp=0.00
          two=0.00
          ttexp=0.00

          tbl=table.open("appointments")
          query.filter="appt='Y' .and. date>=sdate1 .and. date<=sdate2 .and. prov=tprov"
          query.order="prov"
          query.options=""
          tbl.query_create()
          tbl.fetch_first()
          while .not. tbl.fetch_eof()
          tfee=tfee+tbl.fee
          tiexp=tiexp+tbl.insexp
          tpexp=tpexp+tbl.ptexp
          two=two+tbl.wo
          ttexp=ttexp+tbl.Totexp
          tbl.fetch_next()
          end while

          tblv.enter_begin()
          tblv.Prov=tprov
          tblv.Fee=tfee
          tblv.Insexp=tiexp
          tblv.Ptexp=tpexp
          tblv.Wo=two
          tblv.Totexp=ttexp
          tblv.enter_end()

          tblp.fetch_next()
          end while

          tblv.close()

          CurrentForm.RedirectTarget="Scheduler_Totals_View.a5w"


          I do not see any errors. Do you see anything wrong with this code?

          Any thoughts would bey very much appreciated.

          Gary
          Gary S. Traub, Ph.D.

          Comment


            #6
            Re: This error message is very annoying - annyone know what it means?

            Since you asked, I'll give it a try. Yes, I do see some errors...especially opening tables and not closing them. Looks like you open the appointments table every time you go through the loop, but never close it. So, you have multiple instances of that table open.

            Also, you should use the path alias when you open a table, like
            tblv=table.open("[PathAlias.ADB_Path]\view_total_on_sched")

            That said, the publishing problem is not due to an aftervalidate code error. The publish process does not validate your code. If you were getting that error when you run the page, then it could be a code error.

            The component builder is dropping the last "s" on your component name when it creates the alias back in the line

            tmpl_Scheduler_Total = a5w_run_Component(tmpl_Scheduler_Totals)

            Pat
            Pat Bremkamp
            MindKicks Consulting

            Comment


              #7
              Re: This error message is very annoying - annyone know what it means?

              Hi Pat,

              Thanks again for looking.

              I always add path alias before running the app from the internet, but it causes no problems when running from the local webroot.

              Thanks for catching the lack of a tbl.close() within the while loop!

              You mentioned alpha drops the "s" - is there any consequence to that? And why do they drop the "s", is the name too long?

              And, now I am back to what do you think might be causing a full re-publish to work, but a partial not?

              Gary
              Gary S. Traub, Ph.D.

              Comment


                #8
                Re: This error message is very annoying - annyone know what it means?

                Gary - you showed us the AfterValidate code. Is this when you get the error? Or do you get it at another stage? Do you have any code in this component with a .value.dump included?
                -Steve
                sigpic

                Comment


                  #9
                  Re: This error message is very annoying - annyone know what it means?

                  There is no adverse affect from droping the "s". It's because the name is too long.

                  I was still thinking that the error occurred in the publish process. Is that true, or is it when you run the page after a full (or not) publish?

                  The only time I use .dump() is when working on an array which comes from a multiselect dropdown or checkboxes. you didn't mention one of those in your component.

                  Pat
                  Pat Bremkamp
                  MindKicks Consulting

                  Comment


                    #10
                    Re: This error message is very annoying - annyone know what it means?

                    Steve and Pat,

                    The error ddid not occur during publishing, only when running the application, and only if the publish was partial. This apparently has something to do with use of dropdowns in the dialog, which was suggested to me by Jerry Brightbill. Removing drop downs from the dialog removes the problem, which is not acceptable (because I need drop downs), but it at least allows me to futher refine that component in that I can make a change, publish just it, and then test it.

                    Also, I do not use any code that contains a .dump method. The only code I use in that dialog component is: what I showed you in the AfterValidate event, and the following in the Initilaize event:

                    dim tdow as n
                    tdow=dow(date())

                    dim tdate1 as d

                    if tdow=1
                    tdate1=date()
                    else if tdow=2
                    tdate1=date()-1
                    else if tdow=3
                    tdate1=date()-2
                    else if tdow=4
                    tdate1=date()-3
                    else if tdow=5
                    tdate1=date()-4
                    else if tdow=6
                    tdate1=date()-5
                    else if tdow=7
                    tdate1=date()-6
                    end if

                    CurrentForm.Controls.date1=dtoc(tdate1)
                    CurrentForm.Controls.date2=dtoc(tdate1+6)

                    Gary
                    Gary S. Traub, Ph.D.

                    Comment


                      #11
                      Re: This error message is very annoying - annyone know what it means?

                      Gary - we're guessing away here and taking days to solve your problem. Maybe it's time you gave us a copy of the pertinent component, underlying data etc.
                      -Steve
                      sigpic

                      Comment


                        #12
                        Re: This error message is very annoying - annyone know what it means?

                        Steve,

                        Not having done that before, how do I do it?
                        Gary S. Traub, Ph.D.

                        Comment


                          #13
                          Re: This error message is very annoying - annyone know what it means?

                          Zip up the pertinent files (your component and any necessary table or tables) and upload 'em here using the "Manage Attachments" button at the bottom of the message editor.

                          Make sure you don't share confidential data in your tables.
                          -Steve
                          sigpic

                          Comment

                          Working...
                          X