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



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

Alpha5 NOT responding

  • Filter
  • Time
  • Show
Clear All
new posts

    Alpha5 NOT responding

    I have this code (not exactly I modified the exact group_id's and numbers) as a client side calculated field in a UX

    iif(Is_Active = 2 and Test_Field = 23,'a24f011111112345678902bc07b79ad6',iif(Is_Active = 1 and Test_Field = 23,'a24f011111112345678902bc07b79ad6',iif(Is_Active = 1 and Test_Field = 203,'a24f011111112345678902bc07b79ad6',iif(Is_Active = 1 and Test_Field = 304,'a24f011111112345678902bc07b79ad6',iif(Is_Active = 1 and Test_Field = 415,'a24f011111112345678902bc07b79ad6',iif(Test_Field = 203,'5f4c5ba7920843065b2b67',iif(Test_Field = 304,'b9c5eaeb3b574037839aae5694303db7',iif(Test_Field = 789,'a24f011111112345678902bc07b79ad6',iif(Is_Active = 0 and Test_Field = 23,'84e4d0592a1e9d133bc269',iif(Is_Active = 1 and Test_Field = 0,'8687071d1cf342ac89c3cd6b669a5aa0','1234'))))))))))

    The code for the calculated field works fine after its published, except when I save it, or rather hit OK - Alpha5 will lock up as not responding for HOURS! then I can save the UX and publish it.
    Everytime I added an iif condition the time alpha locks up gets extended. The first few had it locked up about an hour now with all of the iif conditions it takes about a day of sitting there then its fine and I can save the UX and publish. I think I read somewhere that alpha converts the calculation to javascript so thats what going on when it is "not responding" anyone else have any thoughts on this iif statement
    basically these are group_ids that I set depending on the 2 conditions.
    is there a more efficient method?
    I just added the last iif statement and I am certain that alpha will still be "not responding" in the morning. maybe tomorrow afternoon it will be fine I dunno the last time I did it it took about 14 hours to wake up.

    I just updated to the latest build - but it was the same in the previous build.
    NWCOPRO: Nuisance Wildlife Control Software My Application: "Without forgetting, we would have no memory at what was I saying?"

    Re: Alpha5 NOT responding

    That does not seem like the kind of expression you would need for a client side calculation. It sends a value to what I suspect is a hidden field.) So why not make it a server side action, on the afterDialogValidate. I copied your formula and confirm it takes forever to save the client-side calculated field dialog.

    In afterValidate I am sure it would work better as a SELECT CASE statement and it would be even better as a relationship between two tables, one with key=alltrim(str(Is_Active))+alltrim(str(test_field)) and the other table storing the same.
    Steve Wood
    See my profile on IADN


      Re: Alpha5 NOT responding

      Thanks Steve for taking the time to check that, at least I know its not my machine or install. Also thank you for the advice, but it looks like there is a wealth of experience behind your suggestion that I do not have yet. I get the idea of concatenating the two fields into a single result and then using that result to determine and set the value of the hidden field (your right btw, in fact they are all hidden fields)
      I am problematically (programatically) setting the usergroup based on the two fields. It seems like your suggesting to turn the two fields into one and then set the usergroup based on one field instead of two as a result.
      Am I on the right track?
      NWCOPRO: Nuisance Wildlife Control Software My Application: "Without forgetting, we would have no memory at what was I saying?"


        Re: Alpha5 NOT responding

        How does that change their security groups? Typically you need to use a5ws_save_webuser_values() to update security. Although I admit, I have never used any of the new "built in" UX functions for setting security, so I could be missing something. You would want to set security once they submitted the UX, so it still makes more sense to me for the whole deal to go in the afterValidate event rather than client-side.
        Steve Wood
        See my profile on IADN


          Re: Alpha5 NOT responding

          Well the calculated field updates the members table group_guid based on two other tables fields, is-active and status, my payment/subscription software updates the other tables so I check the payment/subscription values and set the security group based on whether or not they have an active paid account. All of the table are in the same database btw. I do not doubt your suggestion as clearly alpha really abhors my iif statement, but eventually says ok fine and works. I just wish I knew how to implement your advice.
          I guess this is not a typical setup, I have all of the security in MySQL tables as per

          and did that to be able to get this

          Last night I marvelled at myself for being able to figure all of this out and have it all work. You would probably look at what I have done and conclude I am a borderline idiot savant and have taken complicating an application to a new ALL TIME HIGH.

          During registration, a new user gets directed to another site in a window that has Amember (php) software installed which writes to the same database as my alpha5 app. So it sets the values based on payment subscription status of the "tenant" who in turn creates users who inherit the same paid status (or not paid).
          This is where my dilema begins when a tenant has a user who could also be a user of another tenant.

          So if you have followed me so far - its wierd.
          I think if my application and I had a status it would be "it's complicated"
          NWCOPRO: Nuisance Wildlife Control Software My Application: "Without forgetting, we would have no memory at what was I saying?"


            Re: Alpha5 NOT responding

            Well, no, this does get complicated and you are doing a good job with the complexity. I do think your IIF statements are limiting in that you will need to go edit the code if your application expands, if you have more security groups, etc. A better solution (whatever that is) would allow you to change your configuration without going back to edit your IIF statement.

            I know I do something similar over on the site. When a user registers they might be a Free member or a Paid member. So what I do is immediately set everyone up as a Free member, then wait for a confirmation form PayPal that they have paid for a higher membership level. If I get that confirmation it includes the users ID and I run the script below to update their security groups. I use an A5W page, so it might be different than what you would fire in a UX component.

            The code below shows IADN's "age" in that it uses ULINK as the users "ID" to get their GUID from security. Today no one uses ULINK and we would use USERID instead.

            dim item_number as c = this holds the type of membership they paid for, "Premium" or "Developer"
            dim r_ulink as c = this holds the user's ULINK which came from PayPal
            dim uservalue as p
            dim uservalue.guid as c
            dim uservalue.groups as c
            dim uservalue.ulink as c = r_ulink
            uservalue.guid = a5ws_get_guid_from_ulink(r_ulink)
            uservalue.groups = a5ws_get_user_assignments(uservalue.ulink)
            CASE item_number = "Premium"
            uservalue.groups = uservalue.groups + crlf() + "Premium"
            CASE item_number = "Developer"
            uservalue.groups = uservalue.groups + crlf() + "Developers"
            END SELECT

            dim output as p
            dim output.controls as p
            dim output.controls.guid.value as c
            result_ws = a5ws_save_webuser_values(output,uservalue,request)
            Steve Wood
            See my profile on IADN


              Re: Alpha5 NOT responding

              nothing better than a solid working example. Thanks for that. I dropped the ulink on your advice awhile back and that spurred on a whole boat load of learning for me. Looks like this is just another step in growth. Necessity is the mother of invention. I got to be honest I am trying to steer away from stuff like save_webuser_values because it seems like I am able to know exactly what is saved in the databinding anyway.
              You know I have ready many times that I should just use a "page" but I took that to mean with something on it and since I cannot write "code" per se I just made a page with a UX that the user clicks a button to proceed. I made about 5 different buttons based on the usergroup and although I know it could have been one button with text that is a variable based on the usergroup I dont know how to do it so I just made them visible as necessary and hide the rest.
              This is what I call doing my best with the knowledge that I have. As I learn I revisit my work.
              Anyways thanks for the example, I really appreciate your time and energy.
              NWCOPRO: Nuisance Wildlife Control Software My Application: "Without forgetting, we would have no memory at what was I saying?"