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

Dialog component will not submit data to DBF table

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

  • Dialog component will not submit data to DBF table

    I created a simple table using a DBF table. I followed the example in the videos on creating a dialog component.
    When I click on the button to submit to submit data to the table, nothing happens.
    I placed a debug(1) in Server Side - afterDialogValidate and as I step through I get 4 errors that reference
    Property not found e.rtc.a_sections sublement not found, Property not found e.fatalerror sublement not found, Property not found e.rtc.flag RecordWas Saved sublement not found, and Property not found e.htmlUpdateCommands sublement not found.

    Any suggestions as to what I may be doing wrong?

  • #2
    Re: Dialog component will not submit data to DBF table

    George


    I have the same issue. I however build another dialog connecting to an Access database and it worked. I however also want to use it with an Alpha Five database. Surely seems like a bug or unfinnished development. I am so excited with the endless possibilities using the new dialog, but sure wants to use the genies to speed up my job. Alpha gurus please help us

    Comment


    • #3
      Re: Dialog component will not submit data to DBF table

      When V11 was in Beta the save data action script only saved to SQL tables and DBF's would be added. Not sure if this was ever done because it was at this point I started the arduous task of converting all my tables to SQL.

      Comment


      • #4
        Re: Dialog component will not submit data to DBF table

        If you want to submit to a .dbf you have to write your own code in the afterDialogValidate.

        The Server Side Action Scripting action to write the code for you to save to a table is only currently implemented for sql.

        However, to save data from a dialog to a table (in the case were you are saving to a single table) is pretty trivial.

        for example, say your dialog has fields call firstname, and lastname
        and you want to save to a table called 'mycustomers' which has fields called fname and lname

        you would write


        Code:
        dim t as p
        t = table.open("[PathAlias.ADB_Path]\mycustomers")
        dim r as p
        r.fname = e.datasubmitted.firstname
        r.lname = e.datasubmitted.lastname
        t.enter_record(r)
        t.close()

        Comment


        • #5
          Re: Dialog component will not submit data to DBF table

          Deleted
          Jim Coltz
          Alpha Custom Database Solutions, LLC
          A5CustomSolutions.com
          jimcoltz@a5customsolutions.com

          Comment


          • #6
            Re: Dialog component will not submit data to DBF table

            Selwyn
            Thaks for the reply. The code is understandable. The repeating columns is my problem. What will the code be for repeating columns. I have more than one project based on alpha five databases. The new dialog is stunning except for this hurdle.

            Comment


            • #7
              Re: Dialog component will not submit data to DBF table

              Selwyn

              Does this means that with all new development sql connection will have priveledge? I have to know because I am only usingAlpha Five @ the moment with great success

              Comment


              • #8
                Re: Dialog component will not submit data to DBF table

                Was this corrected? The current builders in data binding show dbf as an option? I have been unable to create a dialog component that will save to a DBF. It also does not bring up the debugger when this option is selected.

                Must you still hand code this as Selwyn suggests? Can some one get me up to speed on this?
                Tks
                Bob
                Last edited by bob9145; 04-04-2012, 04:59 PM.

                Comment


                • #9
                  Re: Dialog component will not submit data to DBF table

                  Submitting a dialog and saving the data into a .dbf using server side action scripting works fine.

                  You can see for yourself using the attached dialog which uses alphasports customer.dbf

                  you will need to edit the data binding section in the dialog and fix the reference to the customer table since yours is likely not in c:\alphasports



                  CustomerDialog_DBF.a5wcmp

                  Comment


                  • #10
                    Re: Dialog component will not submit data to DBF table

                    Thank you

                    Comment


                    • #11
                      Re: Dialog component will not submit data to DBF table

                      I found the solution to my problem. When using action scripting to enter the afterdialogvalidate event, "Save Submitted Data to Table(s)" the genie adds:

                      ExecuteServerSideAction("Save Data::commitrecord")

                      on a line before: function afterDialogValidate as v (e as p)

                      function afterDialogValidate as v (e as p) must fire first because there is nothing in e.datasubmitted to commit until it fires.

                      Putting the curser in the script after: function afterDialogValidate as v (e as p) solve the problem.

                      The instructional video clearly demonstrates this however doesn't make specific mention of it. So when using the action scripting genie make sure to click in below this standard function.

                      This I guess is pretty basic to coders but maybe it will help some one new to Alpha5. It sent me around the block a few times.


                      Tks
                      Bob

                      Comment


                      • #12
                        Re: Dialog component will not submit data to DBF table

                        Originally posted by Selwyn Rabins View Post
                        Submitting a dialog and saving the data into a .dbf using server side action scripting works fine.

                        You can see for yourself using the attached dialog which uses alphasports customer.dbf

                        you will need to edit the data binding section in the dialog and fix the reference to the customer table since yours is likely not in c:\alphasports



                        [ATTACH]31611[/ATTACH]
                        Right,the dialog successfully submits every data entered, but on a lan, when the workstation submits data to the server, it produces the same error mentioned on the first post,
                        Please try this Mr. Selwyn, and pelase suggest the solution for it. Thank you very much!
                        Last edited by JetLi; 05-04-2012, 01:56 AM.

                        Comment


                        • #13
                          Re: Dialog component will not submit data to DBF table

                          i don't really understand the point you are making. i am not sure what you mean by 'on a lan'.

                          are you saying that when you run the dialog in working preview or live preview on your development machine, it works fine, but not when you publish the component to your server?

                          can you make a video showing the error you are getting?

                          i am pretty confident that submitting a dialog and saving the data in .dbf tables is working ok.

                          Comment


                          • #14
                            Re: Dialog component will not submit data to DBF table

                            Local Area Network (LAN), Yes Selwyn, submitting on a Web dialog and saving data in .dbf tables is working fine, i have mentioned it in my other posts, Have you tried submitting a dialog and saving on a shadowed database? try that and put a debug(1) and you will get an error like the one in post #1.

                            Errors= Property not found e.rtc.a_sections sublement not found, Property not found e.fatalerror sublement not found, Property not found e.rtc.flag RecordWas Saved sublement not found, and Property not found e.htmlUpdateCommands sublement not found.

                            Comment


                            • #15
                              Re: Dialog component will not submit data to DBF table

                              Please show a solution for this. Thanks!

                              Comment

                              Working...
                              X