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

Mobile App stuck on Working Message

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

    Mobile App stuck on Working Message

    I have a mobile app that has two UX Components, a login component and main app component. When a new user registers and tries to login, it just displays the message 'Working'. In the login component I have the main app component embedded in it and have the delay till render option selected. So it seems it is getting stuck trying to open the embedded UX Component. One of my logins work but new ones I create gets stuck on the Working message. Any ideas why it would get stuck on Working (ie trying to open the embedded UX Component)?

    #2
    Re: Mobile App stuck on Working Message

    Is it possible you forgot to set the component security or to publish it?
    David Weinstein
    Best Tech
    [email protected]t

    Comment


      #3
      Re: Mobile App stuck on Working Message

      No, that is set. In Web Security, in Users and Groups, there is only one user that is listed and it is the one that works. Could it be that is it isnt registering the accounts correctly?

      Comment


        #4
        Re: Mobile App stuck on Working Message

        I added another user to the Users and Groups in Web Security and now that user logs in fine and it pulls up the main UX Component fine. If this is it, what do I need to check to see why it isnt registering users correctly?

        Comment


          #5
          Re: Mobile App stuck on Working Message

          I am getting the below error in the A5XErrorStackLog when I try to create a new user. What assigns a new user a role when they register in Alpha?

          Web Security Error
          Message: Could not add security roles for new user
          Callresult: Unexpected exception
          Native error code: -1
          Native error text: The role '79bf4ef35f534aec89f6fbf51005b295' was not found.


          Source: a5ws_saveValidateUserIIS

          Comment


            #6
            Re: Mobile App stuck on Working Message

            Dion sent me this below, I still dont understand how to assign a new user a role when they register as a new user? What tables does it write to when adding a new user? I am running IIS Application Server.

            Check out the context.security functions. This is the way to grab the roles to be able to associate to a user. Things changed a bit when we moved to IIS

            https://downloads.alphasoftware.com/...t/context.html

            Specifically, we don't use the GUID to add users to a role. We use the role's name now.

            Here is the key function:
            GetRoles
            Search the above document to find that and there is documentation...

            Comment


              #7
              Re: Mobile App stuck on Working Message

              In your registration ux, in the ondialoginitialiize event, you should have something like this:
              e.control.UserRoles = a5ws_get_guid_from_group("myusergroup")

              Then, in the dialogvalidate event, you will see something like this:
              ExecuteServerSideAction("Validate Web Security Values::ValidateSecurity")

              If you put your mouse in that, and click on the "action scripting", then "edit action" you'll see where {UserRoles} is used as a placeholder. So, basically you are telling the ux at the start to use the guid from your named group and the userrole when it submits the request and validates the info.

              Comment


                #8
                Re: Mobile App stuck on Working Message

                In IIS you are not using the database tables to store the information anymore. That data is moved into IIS security tables as part of managing access to the database itself. You have programmatic access to that data, but can't view the tables directly.....that I'm aware of. The code to assign a role to a user upon registration should still work for you, unless you are trying to do something else custom that I'm missing.

                Comment


                  #9
                  Re: Mobile App stuck on Working Message

                  You may want to pick appart the the ux template "security framework - admin dialog - create users and assign roles". Lot of good stuff in there.

                  Comment


                    #10
                    Re: Mobile App stuck on Working Message

                    I was told to change my code to this in the OnDialogInitialize, e.control.UserRoles = GetRoles("User") which is causing it to write the user information to the aspnet_users table. However, it is not writing the role information to the aspnet_UsersInRoles table which is what I confirmed is causing my app to get hung when trying to open the main UX component when a user logs in.

                    Comment


                      #11
                      Re: Mobile App stuck on Working Message

                      I reported this as a bug but Selwyn is saying it is working on his system. I tried the create new user template and it is demonstrating the same behavior, that is, it is not writing the information to aspnet_usersinroles table which means the user isnt getting assigned a role causing my embedded UX Component not to open up when a new user logins. Is anyone else having this issue?

                      Comment


                        #12
                        Re: Mobile App stuck on Working Message

                        Hi Steven,

                        I ran into a circumstance one time where I was publishing to IIS and hadn't initially published the security data to the database. Although IIS doesn't use those tables, they must be present when doing the intial publication for it to set things up right. Anyway, this happened once and seemed to produce similar problems. I have no idea what version this was on, as it was a long time ago.....just figured I'd mention it.

                        Have you made headway on the issue otherwise?

                        Comment


                          #13
                          Re: Mobile App stuck on Working Message

                          There seems there is a stored procedure that writes the information to ASPNET_USERSINROLES table. If it was the security data then it probably wouldnt write to the ASPNET_USERS table either, correct? I think the stored procedure that writes to ASPNET_USERINROLES isnt being called or is erroring out, so it is possible it is a bug but Alpha is saying not. I wrote a stored procedure to write the information to the ASPNET_USERSINROLES table. Not sure what else to do, I know it isnt the best but it fixes the issue.

                          Comment


                            #14
                            Re: Mobile App stuck on Working Message

                            This is definitely an odd issue and you certainly shouldn't have to do custom coding for this purpose. If Selwyn said it worked on his system, then there must be a setup issue with your IIS server somewhere.....I would think. BUT....you have it working....so that is great!

                            Comment


                              #15
                              Re: Mobile App stuck on Working Message

                              What leads me to more believe it is a bug, is that at some point it had written to the aspnet_userinroles table so some upgrade to a new version must have cause the issue of not writing to that table. I have had issues before that Alpha claimed it wasnt a bug but it turned out to be a bug.

                              Comment

                              Working...
                              X