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

Form post on a webpage

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

    Form post on a webpage

    Has anyone been able to go to a web page form and populate fields on the form with data in a db? I want to save a user registration time on a thrird party site by simply entering the main fields with the defaults already stored in the db
    -----------------------------------------------
    Regards
    Mark Pearson
    [email protected]
    Youtube channel
    Website

    #2
    Re: Form post on a webpage

    Yes this is no problem. If you use a dialog the fields are populated in the Activate Event. You do need some key id to determine which record you want. So if the URL had maybe ?id=12345 you would lookup that value in the table, grab the field values for that record, and then populate the dialog field. They are populated with syntax: currentform.controls.myfield = tbl.myfield. Obviously that line needs to go within your xbasic statement that returns the values from the table.
    Steve Wood
    See my profile on IADN

    Comment


      #3
      Re: Form post on a webpage

      Thanks Steve, got a slight hurdle in this at the moment. I cannot get to the page as it embedded as ieframe and I think using a flash form. I cannot view the page source so it is a little bit of a trial
      -----------------------------------------------
      Regards
      Mark Pearson
      [email protected]
      Youtube channel
      Website

      Comment


        #4
        Re: Form post on a webpage

        Flash? I obviously thought this would be an A5 form.
        Steve Wood
        See my profile on IADN

        Comment


          #5
          Re: Form post on a webpage

          Sorry might not have explained it properly. I want to bring up a signup page on the web from within a desktop db, then populate the main fields with data like name address from data in my DB. Then all I need do is click the signup button. I have got to the signup page oK and can see the fields now, but trying to work out if I can put text in them.
          -----------------------------------------------
          Regards
          Mark Pearson
          [email protected]
          Youtube channel
          Website

          Comment


            #6
            Re: Form post on a webpage

            Well, normally if you have a field named "Name" and you include "name" as a parameter in the URL that opens that control, it will populate the field. I still don't know if you have an Alpha grid as your registration form, or a Flash form. The URL might be like this: mydomain.com?name=steve
            Steve Wood
            See my profile on IADN

            Comment


              #7
              Re: Form post on a webpage

              Steve. It is not my registration form it is a third party. I do not know what they use. I have been able to get the page to load, but as the actual registration fields are embedded in a a flash. I cannot get focus of the fields to input text. I tried ?lastname= but that fails. I thought send_keys() might work, but this is foiled by the focus issue. I will keep playing. The page I am trying to enter the data into is:

              https://www.smsbroadcast.com.au/signup
              -----------------------------------------------
              Regards
              Mark Pearson
              [email protected]
              Youtube channel
              Website

              Comment


                #8
                Re: Form post on a webpage

                I actually found a shareware program that does what I want - this was to prove it can be done. Just need to workout how I can do from inside alpha. My problem as the moment seems be to I cannot get focus of the web page until I mouse click on it. Once I do that the tab key statrts to work. Another interesting fact. While at first I could not see the source code to the page, once I opened the page in Alpha I could.
                -----------------------------------------------
                Regards
                Mark Pearson
                [email protected]
                Youtube channel
                Website

                Comment


                  #9
                  Re: Form post on a webpage

                  Did this work out? I can't see how a shareware program can do something that you cannot do direct from Alpha. The target form is just HTML (not Flash).
                  Steve Wood
                  See my profile on IADN

                  Comment


                    #10
                    Re: Form post on a webpage

                    Haven't get there yet. I can seem to get focus to the fields. I have tried your suggestions, 'but alas poor yorick'. I agree if the shareware program can do so should Alpha. I appreciate the help. If I get the solution I will certainly post it here.
                    -----------------------------------------------
                    Regards
                    Mark Pearson
                    [email protected]
                    Youtube channel
                    Website

                    Comment


                      #11
                      Re: Form post on a webpage

                      Mark:

                      Do a forum search for "screen scraping" or variants on that. There have been discussions on how to pull data into Alpha from web forms of different types.
                      Finian

                      Comment


                        #12
                        Re: Form post on a webpage

                        I seem to remember an article on that at www.learn alpha.com
                        There can be only one.

                        Comment


                          #13
                          Re: Form post on a webpage

                          Do you need to actually display the form and fill the fields, or just submit what the form submits and receive the response? In many cases, there is no need to show the web form, and the programming is much simpler.

                          Lenny Forziati
                          Vice President, Internet Products and Technical Services
                          Alpha Software Corporation

                          Comment


                            #14
                            Re: Form post on a webpage

                            By using the http_get_page2() function I noted the actual fields on the page are built into another page which is called by https://www.smsbroadcast.com.au/ajax/signup.php When I put this into the URL line I now get to see the fields as anothert page. Still can't seem to get the parameters to populate any of the fileds on this page.
                            -----------------------------------------------
                            Regards
                            Mark Pearson
                            [email protected]
                            Youtube channel
                            Website

                            Comment


                              #15
                              Re: Form post on a webpage

                              Bingo! Thank you Stan that document reference got me going. I have now successfully created an xdialog that brings up the web page. using the built in xdialog events to web page the following works for the page I am looking at

                              function documentcomplete as v (pDisp as P,URL as A)
                              myurl.object.document.getElementById("firstname")="mark"
                              myurl.object.document.getElementById("lastname")="pearson"
                              end function
                              -----------------------------------------------
                              Regards
                              Mark Pearson
                              [email protected]
                              Youtube channel
                              Website

                              Comment

                              Working...
                              X