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

Dialog submit now working

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

    Dialog submit now working

    Hi guys, (sorry the above title should say NOT working)
    this one little problem is sending me around the bend, I have searched the forums for an answer and came back with nothing and have also watched the related videos over and over but still missing somthing.

    i have created a dialog that has been bound to an sql table
    i have place the serverside action script as required and i even have the submit button working in "working preview" where it even adds the data to the sql table.
    But for some reason now that i have published the dialog, the submit button does nothing. I press the button and nothing happens at all, im just left looking at the submit page of the dialog.
    I feel i have tried just about all there is and am currently at a lose of where to go next.

    Thanks for any help you can offer
    Roland

    #2
    Re: Dialog submit now working

    Originally posted by Dspguards View Post
    I feel i have tried just about all there is and am currently at a lose of where to go next.
    Is the submit button enabled ?. Typically they are only enabled if a field has been amended but that might not be obvious in all browsers.
    You could add temporary code to the dialog serverside events dialogValidate, afterDialogValidate etc to confirm if the events are firing.
    e.g
    save_to_file("dialogValidate was called","c:\a5.txt",.t.)
    https://appsbydesign.co.uk/

    Comment


      #3
      Re: Dialog submit now working

      Hi Colin
      Yes the submit button is enabled and is only able to be used with the dialog is dirty. appears faded they coloured when the "dirty" condition is met.

      Ill try the code you supplied now and see what comes back.

      Thanks

      Comment


        #4
        Re: Dialog submit now working

        Does anyone find it odd that it all works fine in working preview but not when published ?

        Comment


          #5
          Re: Dialog submit now working

          Originally posted by Dspguards View Post
          Does anyone find it odd that it all works fine in working preview but not when published ?
          Several things work differently in working preview as it does not use the app server. That includes session variables, popup windows,security etc. The big advantage of working preview is you can access the debugger to display variables etc. Have you tested your code work using live preview and does that also work?
          Are you publishing to localhost or a remote server?
          You can also enable the application server logs to see if that reveals any errors not being reported to the UI.
          https://appsbydesign.co.uk/

          Comment


            #6
            Re: Dialog submit now working

            Have not tried in live preview as yet but will very soon and report back.
            Publishing to a remote server with zebra host.

            Comment


              #7
              Re: Dialog submit now working

              ok can now confirm that it also works fine in live preview
              just not working in the live site.

              Comment


                #8
                Re: Dialog submit now working

                Originally posted by Dspguards View Post
                ok can now confirm that it also works fine in live preview
                just not working in the live site.
                Could be an issue with the remote server setup.
                Is the dialog bound to populate the data fields on display and if so does that work correctly ?
                In addition to the options mentioned within the thread you can try
                publishing to localhost
                checking the live server WAS version matches the dev version
                check the browser for javascript errors
                publish a simplified version of dialog for testing
                https://appsbydesign.co.uk/

                Comment


                  #9
                  Re: Dialog submit now working

                  Thanks Colin.
                  So far have contacted zebra host and been advised they have no idea how the server could e effecting the dialog.
                  I have created a very simple version of the dialog and found the exact same problem with the submit button only working with working preview and love preview.

                  I'm not sure what you mean by I the dialog bound to populate data fields on display ?
                  And not sure how to check the browser for JavaScript errors.

                  I have since tried the dialog with web security on and off, this has no effect and the problem remains.

                  Roland.

                  Comment


                    #10
                    Re: Dialog submit now working

                    Colin covered it well.
                    Browser errors - use Firefox w/ Firebug addon. Check the console for any javascript errors that might stop the dialog from functioning.
                    Make sure to publish EVERYTHING to the server, including AEX files.
                    It is very important that you are publishing from a developer edition to a matching version of the App Server!

                    Comment


                      #11
                      Re: Dialog submit now working

                      I'm having this same issue: submit button not working. Only I'm using a local copy of sql express and I cannot get my submit dialog to add a new record. PK is set to auto-increment and fields are bound. I have looked at the videos, forums, etc. It's just a test table, company name, first name, last name, test_pk. I'm obviously missing something obvious. I started out with a blank dialog and added the 'submit reset' buttons from the pre-defined controls list. Any help would be appreciated.

                      Comment


                        #12
                        Re: Dialog submit now working

                        I am having a similar problem when adding a new item via one particular dialog. Other dialogs are working as expected.
                        It could be a bug, and hopefully they know about it already or else someone will have to produce a test case to show them what you mean :(

                        Comment


                          #13
                          Re: Dialog submit now working

                          Still having the same issue.
                          have not tried out firebug and am getting the following, unfortunatly it makes little sense to me.

                          Under the POST tab

                          V.R1.COURSE_NAME hi
                          V.R1.DATE hi
                          V.R1.USER_ID hi
                          _XbasicFunction system:submitDialog
                          __Ajax true
                          __FormAction GenericAjaxCallback
                          __FormID undefined
                          __submitType none
                          _currentRow 1
                          _part G
                          _state.__dialogGuid 7e8067c3-60b9-4dc8-9fce-eb186ff5fdba
                          _state.__dtfmt MM/dd/yyyy
                          _state.__os c0htNEVAZztVi3BPfiByWFF4fWFgLCwzeCpqSFNicXZtVH6VbVoqeV4uJytiSnR0KCh3Mns93pV/OV5fdj5Li2FybzpHJTdNdG9qld6V
                          _state.__tfmt
                          dirtyColumns.R1 USER_ID COURSE_NAME DATE
                          old.V.R1.COURSE_NAME
                          old.V.R1.DATE
                          old.V.R1.USER_ID
                          Source
                          _XbasicFunction=system:submitDialog&_currentRow=1&__FormAction=GenericAjaxCallback&__FormID=undefined&V.R1.USER_ID=hi&old.V.R1.USER_ID=&V.R1.COURSE_NAME=hi&old.V.R1.COURSE_NAME=&V.R1.DATE=hi&old.V.R1.DATE=&dirtyColumns.R1=USER_ID%0D%0ACOURSE_NAME%0D%0ADATE&_part=G&__submitType=none&_state.__dialogGuid=7e8067c3-60b9-4dc8-9fce-eb186ff5fdba&_state.__dtfmt=MM/dd/yyyy&_state.__tfmt=&_state.__os=c0htNEVAZztVi3BPfiByWFF4fWFgLCwzeCpqSFNicXZtVH6VbVoqeV4uJytiSnR0KCh3Mns93pV/OV5fdj5Li2FybzpHJTdNdG9qld6V&__Ajax=true


                          Under the response Tab

                          D_TEST_DlgObj.clearErrors();;
                          D_TEST_DlgObj._executeEvent('afterValidate',{hasErrors: false});;
                          D_TEST_DlgObj._executeEvent('afterAjaxCallbackComplete',{
                          xbasicFunctionName: 'system:submitDialog',
                          ajaxEvent: 'AjaxCallback'
                          } );;

                          Is any able to see any issues in there.

                          Thanks
                          Roland

                          Comment


                            #14
                            Re: Dialog submit now working

                            In comparrison this is what shows under the response tab when i use the local host to test, this is where is works fine

                            ;




                            DLG1_DlgObj.originalValues[0]['USER_ID'] = 'test';
                            DLG1_DlgObj.originalValues[0]['COURSE_NAME'] = 'test';
                            DLG1_DlgObj.originalValues[0]['DATE'] = 'test';


                            DLG1_DlgObj.populate(DLG1_DlgObj.originalValues[0]);
                            DLG1_DlgObj.refreshClientSideComputations();

                            var _o = {};
                            _o.keys = {};


                            _o.keys.INDUCTIONRECORDS3 = {};
                            _o.keys.INDUCTIONRECORDS3._key = ['1005']
                            DLG1_DlgObj.setStateInfo(_o);

                            DLG1_DlgObj.refreshClientSideComputations();

                            DLG1_DlgObj._cleanRepeatingSections();


                            ;
                            DLG1_DlgObj.clearErrors();;
                            DLG1_DlgObj._executeEvent('afterValidate',{hasErrors: false});;
                            DLG1_DlgObj._executeEvent('afterAjaxCallbackComplete',{
                            xbasicFunctionName: 'system:submitDialog',
                            ajaxEvent: 'AjaxCallback'
                            } );;
                            DLG1_DlgObj.setStateInfo({ __dialogGuid: 'c6b2b43c-6f23-42a4-972e-bf3af5c01459', __dtfmt: 'MM/dd/yyyy' });;

                            Comment


                              #15
                              Re: Dialog submit now working

                              Originally posted by Dspguards View Post

                              I'm not sure what you mean by I the dialog bound to populate data fields on display ?
                              And not sure how to check the browser for JavaScript errors.
                              You mentioned you were accessing adding records to an SQL database. Dialogs can be also be automatically populated and if you are using that feature and the correct data is initially displayed that rules out problems accessing the sql database.
                              Javascript errors can be viewed in firefox using the webdeveloper Error Console or similar.
                              I did a simple mock up of your dialog example without repeating section and the submit appears to work correctly although the response gives additional calls related to TESTDLG_DlgObj.setStateInfo(
                              Are you sure the component is being published correctly as the localhost response appears to differ for some reason000558.gif
                              https://appsbydesign.co.uk/

                              Comment

                              Working...
                              X