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

Phone app won't run xbasic

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

    Phone app won't run xbasic

    I have a UX that works fine in a browser, but when I try to put it into an app, all of the xbasic stops working.

    This is not a disconnected app - I can update records, for instance. But when I try to run an xbasic function from a button, it doesn't work.

    I can run any javascript I want from a button, but Xbasic just simply does not fire.

    Am I missing a setting or something?

    #2
    Re: Phone app won't run xbasic

    Where is this Xbasic? In the component's Xbasic functions section? It is in UDFs from the code tab? Do you have a simple example?
    -Steve
    sigpic

    Comment


      #3
      Re: Phone app won't run xbasic

      The xbasic is in the component's xbasic functions section.

      It won't run ANY xbasic - it's like it doesn't exist. It won't give an error, just doesn't do anything.

      even

      function myfunction (e as p)

      myfunction = "alert('test');

      end function

      Again - works perfectly fine both on working preview and on the web - it's just within the app that it fails.

      Comment


        #4
        Re: Phone app won't run xbasic

        In further review, I think we have fixed the issue. Still working on it, but it's better than it was before.

        I am working with someone else on this one and they fixed it, so I don't know all what was done. But it looks like some settings are not quite setup right.

        Comment


          #5
          Re: Phone app won't run xbasic

          Originally posted by lgrupido View Post
          In further review, I think we have fixed the issue. Still working on it, but it's better than it was before.

          I am working with someone else on this one and they fixed it, so I don't know all what was done. But it looks like some settings are not quite setup right.
          Hi,

          Appreciate if you could sum key configuration settings required as we have encountered the same on occasion.

          Thank you
          Chris

          Comment


            #6
            Re: Phone app won't run xbasic

            We are still having issues with this app - so I don't feel right posting anything about it. I am not a phonegap expert!

            See this link for the latest problem:

            https://www.alphasoftware.com/alphaf...mixed-together

            Comment


              #7
              Re: Phone app won't run xbasic

              I use a single component that is both my mobile web app and the component used for my phone gap application. I a weird twist of events to you I am having an issue where the xbasic won't run on the web app version (but things seem to be working fine in the mobile version).

              When I run my component in working preview or in the web browser and click a button that runs a simple xbasic function with a javascript alert if it runs properly I get a 500 server error (looking at the console log in safari using the development tools) which states:


              HTML Code:
              <title>500 Internal Server Error</title>
              </head><body>
              <h1>500 Internal Server Error</h1>
              <b>Script Error</b><br />Error:Script:a5GridHelper_makeArgsFromStateInfo() line:23<br/>
              Property not found 
              <p>
              <hr>
              <address>Alpha Anywhere Application Server Application Server/12.0 Build/4918-5057 at WIN-BDV2VO6DE8S Port 80</address>
              </body></html>
              Can't find a5GridHelper_makeArgsFromStateInfo() anywhere and I know I don't directly call it in my code other than the fact that I use state variables upon login to store some information.

              Comment


                #8
                Re: Phone app won't run xbasic

                I would check a couple of things:

                1) make sure you are using the latest phone gap application version available to you
                2) make sure your Alpha server version and your developer version are the same
                3) make sure the database on your server and the database on your local pc have the same table structure - including views and other code that might affect your UX.

                Those are all issues that have plagued us in the past.

                Comment


                  #9
                  Re: Phone app won't run xbasic

                  That’s what is weird the running the component in PhoneGap works properly (using cli 7.1.0 because 8.0.0 would give me errors for android on PhoneGap build.

                  I have three separate components that are all their web app and PhoneGap app but only one of them works to login from the web app, the other two throw that error. Was hoping maybe somebody else was seeing the same error.

                  Comment


                    #10
                    Re: Phone app won't run xbasic

                    Larry... you never mention what build you're working with.

                    Josh, you're using the latest pre-release... so it's not at all surprising that you're encountering bugs. You can't really use a pre-release to diagnose another version's issues as they're usually a hot mess of old feature bugs and new feature bugs.

                    Comment


                      #11
                      Re: Phone app won't run xbasic

                      But the pre-release is the only way it seems the version numbers are working for phone gap so that is why I went with it. I will give a try using the most current non pre-release as I have not installed it yet to test the phone gap stuff, so we'll see what happens.

                      Thanks for the feedback!

                      Comment


                        #12
                        Re: Phone app won't run xbasic

                        From what I've seen the InstantUpdate Version numbers (if's that is what you're referring to) are not working in 4918. Actually 4918 is quite a mess for InstantUpdate.

                        I don't think InstantUpdate was available for the last official release... 4770.

                        Comment


                          #13
                          Re: Phone app won't run xbasic

                          Yeah instant update was a bust for me as well and I am afraid stuff I attempted to do with it is what might be causing my errors so I hope this roll back to the last stable release works. On another note has anyone seen that error message I posted above (also posted it here again), trying to figure out where I might go to alleviate this issue if it is still happening with the current production release once the install is done.

                          HTML Code:
                          <title>500 Internal Server Error</title>
                          </head><body>
                          <h1>500 Internal Server Error</h1>
                          <b>Script Error</b><br />Error:Script:a5GridHelper_makeArgsFromStateInfo() line:23<br/>
                          Property not found 
                          <p>
                          <hr>
                          <address>Alpha Anywhere Application Server Application Server/12.0 Build/4918-5057 at WIN-BDV2VO6DE8S Port 80</address>
                          </body></html>

                          Comment


                            #14
                            Re: Phone app won't run xbasic

                            There is never a last stable release. The first pre-release after 4770 fixed issues in 4770.

                            Comment


                              #15
                              Re: Phone app won't run xbasic

                              That response seems a bit over the top David, obviously no software is ever done being worked on haha.

                              By stable I just meant the last release they put out that was meant for production (ie there isn't a reason to make this distinction unless in doing so they believe these releases should be less buggy then say the pre-releases, otherwise why make the distinction, rather everyone should just use whatever release they find works for them and rollback if any release breaks their projects).

                              But some good news is the last "production ready" release from December does seem to have fixed the issue I was having with my web apps not working properly. Now to see if I can get phone gap versions of this final app to build properly under this release without having to make separate changes to the config file just to get it to work for both iOS and Android.

                              Comment

                              Working...
                              X