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.object}.argumentValue bug

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

    {dialog.object}.argumentValue bug

    {dialog.object}.argumentValue is no longer returning the correct value.

    Using latest version of Alpha (3670_4684).

    Steps to reproduce in UX Component:

    1. Create new UX Component.
    2. Create Argument from Properties -> Arguments. For the sake of testing, set argument name to "TestArg". Set argument value to "test"
    3. Create a button control.
    4. In Click Javascript event, set code type to Text Mode, and insert this code: alert({dialog.object}.argumentValue('TestArg').toLowerCase());
    5. If you open the console, you will see the error that you can't call toLowerCase() on undefined.

    If you remove toLowerCase() from the function, it should alert undefined.

    This error is causing much of our code to break. We have a huge app built in alpha that uses argumentValue() in many locations, and many of those locations we use .toLowerCase() to ensure we check for the correct value regardless of case. We also have checks to see if the argument is blank by checking for either "" or "__notSet__", which is now evaluating incorrectly because the argument is always undefined. In the previous version of alpha that we were using (2999_4519), if we used argumentValue() it would return "__notSet__" if the argument has not yet been set.

    Is there some easy way to fix this that would fix it everywhere without having to go through the entire application to look for every place we use argumentValue(), or will this require a patch from Alpha? The current part of the project that we are working on is time sensitive, so we really need a solution for this quickly.

    While I'm on the topic, is there an "official" place to submit bug reports to Alpha, or is this forum the only place?

    Thanks.

    #2
    Re: {dialog.object}.argumentValue bug

    It works for me in pre-release build 3730_4695
    I set the argument value to TEsT

    2016-07-21_16-45-06.png
    Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

    Comment


      #3
      Re: {dialog.object}.argumentValue bug

      So it is a legitimate bug in this version.

      So I guess at this point my only option is to wait for the release, or update to the pre-release?

      Is there any ETA on the next stable release?

      Comment


        #4
        Re: {dialog.object}.argumentValue bug

        You have two choices ... try the pre-release or roll back to a previous version where you did not have this issue.

        If you were to submit a bug report on the stable version, you will be told you are not running the latest release.
        I know, they say don't use pre-releases in production environments. Anyone's guess when the next stable release will be issued.

        If it were me, I'd try the pre-release. You can always roll back by installing the version you were using.
        I always have a complete backup (image) in case of total disaster but thankfully that's never happened to me .. still better safe than sorry.
        Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

        Comment


          #5
          Re: {dialog.object}.argumentValue bug

          I'm on 3670_4684 and this is working for me.

          ScreenShot_002.jpgScreenShot_003.jpgScreenShot_004.jpg

          Submit bugs to [email protected]

          When you submit a bug include a test case, your version of developer, and of course the bug description.
          Mike Brown - Contact Me
          Programmatic Technologies, LLC
          Programmatic-Technologies.com
          Independent Developer & Consultant​​

          Comment


            #6
            Re: {dialog.object}.argumentValue bug

            2016-07-22_1331bugrep.png
            Insanity: doing the same thing over and over again and expecting different results.
            Albert Einstein, (attributed)
            US (German-born) physicist (1879 - 1955)

            Comment


              #7
              Re: {dialog.object}.argumentValue bug

              But if you HAVE to use latest official version then bug hunting is vast of time. As mentioned you never know if problem already solved in pre release versions and things may have changed some how.

              I recommend leaving bugs testing for pre release users. Testing and finding bugs is the point of using pre release versions.

              Comment


                #8
                Re: {dialog.object}.argumentValue bug

                Thank you all for the responses.

                At this point, I have a few things I'm gonna try. I'm going to create a brand new project, create a new UX component, and see if the problem still appears. If it doesn't, then it's probably something in my project, which is disconcerting, so hopefully that isn't the case. After that, I'll update my installation to the latest pre-release to see if that fixes the issue. If it does, then the only thing I can really do is wait for the release, which will hopefully not be too long.

                Thank you for the information on Bug Reporting as well. That will help in the future whenever we find a potential bug.

                Comment


                  #9
                  Re: {dialog.object}.argumentValue bug

                  After some more testing, I've discovered that the problem only occurs in components that already existed when I upgraded to the latest stable release (3670_4684). In my project, if I create a brand new component, and follow the steps, it alerts the value as it should. If I go to any existing component, no matter how large or small, and repeat the steps, it returns undefined.

                  Does anyone have existing components on the same version that they can test to confirm this?

                  Edit: Sorry for the double post

                  Comment


                    #10
                    Re: {dialog.object}.argumentValue bug

                    It's been a while since I used it, but there used to be a Recalculate All Controls function.
                    Now that I look, there is a Recalculate UX Components bulk operation you can run. It might help.

                    Recalculate.jpg

                    I 'believe' this just reindexes all controls on the UX components but I can't actually find any documentation on it.
                    So ..make sure you have a backup first!
                    Last edited by iRadiate; 07-22-2016, 03:01 PM. Reason: Added screenshot
                    Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

                    Comment


                      #11
                      Re: {dialog.object}.argumentValue bug

                      I'll definitely try that. Just backed up my project, so hopefully this fixes the problem, that would be fantastic.

                      I'll let you know the result. Thanks!

                      Edit: I saw that in the bulk operation, you can select which components to recalculate, so I decided to just select one to try it out, and it didn't work. I'll update to the pre-release later on and let you know if that works. Hopefully someone else can confirm if this is a problem for them in existing components after upgrading as well.

                      Comment


                        #12
                        Re: {dialog.object}.argumentValue bug

                        David, can you post a simple "existing" component that exhibits this behaviour?

                        From which version did you upgrade?

                        Comment


                          #13
                          Re: {dialog.object}.argumentValue bug

                          argument_bug.zip

                          This is a general component that I use for testing. I removed all custom controls/javascript/xbasic so that it's just the argument and the button control.

                          It still has the error, so you should be able to enter Working Preview, and get the same javascript error.

                          Let me know if you need anything else.
                          Last edited by DVD528; 07-22-2016, 09:05 PM. Reason: Fixed attachment link

                          Comment


                            #14
                            Re: {dialog.object}.argumentValue bug

                            That component works in my pre-release build ...

                            TempTest.png
                            Alpha Anywhere v12.4.6.5.2 Build 8867-5691 IIS v10.0 on Windows Server 2019 Std in Hyper-V

                            Comment


                              #15
                              Re: {dialog.object}.argumentValue bug

                              Looks like it's an issue with 3670_4684. It's something to do with the way the UX is interpreted and rendered. I'm not sure if this is the exact problem, or just connected, but... if you open your component and go to server-side events... and then delete the onDialogInitialize event... function header and all... everything... then save and run... it will work. At some point Alpha may put the default code back in, but that code... which is all commented... is not placed into the UX... so it's still ok.

                              However, if you need actual code in that event you're out of luck... because that code is placed into the UX... and then it fails.

                              There is a bit of a workaround... if you want to stay in 3670... but it might be messy for you depending on how many arguments you've got. Instead of setting the Default Value in the Argument, create a Textbox control and set the default of that Textbox control to ="Test". Now set the Argument to that new Textbox control. That works regardless of what's going on in the server-side events.

                              If you only have a few arguments it's not too bad. You could add them, and then put a container around them and set the show/hide of the container to 1=0. All the extra textboxes will be hidden.

                              Comment

                              Working...
                              X