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}.getTopParentObject() and state variables

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

    {dialog.object}.getTopParentObject() and state variables

    Hi Everyone,
    I'm putting this here because this is a combination of 2 topics.
    My ultimate goal is to programatically update a viewbox/list control from
    a child/grandchild/great grandchild component.

    The code below is getting the value of state variable "refreshbutton" from the
    main UX component.

    Code:
    // code on grandchild component button
    var topObj = {dialog.object}.getTopParentObject();
    //{dialog.Object}.getStateInfo();refreshbutton
    var x = topObj.stateInfo['refreshbutton'];
    alert(x);​
    Code:
    ' Code from primary UX on-initialize event to set state variable
    e._state.refreshbutton = "hotDOG"
    Gregg
    https://paiza.io is a great site to test and share sql code

    #2
    There seems to be a lot of embedded components here, so I assuming you you have a grid in there somewhere, anyhow - I would set an argument in the the object that has the button in it and get the value of the topObj.argument value.
    - but its been a long time since I messed with embedded controls.

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

    Comment


      #3
      Hey Pete,

      I probably should've(could've) done embedded, but it's all done with control clicks.
      Gregg
      https://paiza.io is a great site to test and share sql code

      Comment


        #4
        No, that's not what I mean, what are the controls - what type of control is the {dialog.object}.getTopParentObject() - it it in the same UX? or another parent UX.
        Insanity: doing the same thing over and over again and expecting different results.
        Albert Einstein, (attributed)
        US (German-born) physicist (1879 - 1955)

        Comment


          #5
          I think we are separated by the term "embedded". For example: I use a collapsing menu on the primary UX that has a list control (I really need to improve my viewbox skills) that displays upcoming events for a warehousing operation. Clicking the option to view the current active inbound transactions brings up a grid component. Clicking the ARRIVED button for a row brings up an UX to edit that row. If those changes alter the status of that transaction (it arrived) I want the change to be reflected in the list control on the primary UX.
          Gregg
          https://paiza.io is a great site to test and share sql code

          Comment


            #6
            sounds to me like it should all be in one UX with various viewboxes, I have stopped using cascading menu's and now use viewboxes instead, much more control and then if all on one simple UX no need for and topParent or parent stuff.

            Comment


              #7
              Originally posted by madtowng View Post
              Hi Everyone,
              I'm putting this here because this is a combination of 2 topics.
              My ultimate goal is to programatically update a viewbox/list control from
              a child/grandchild/great grandchild component.

              The code below is getting the value of state variable "refreshbutton" from the
              main UX component.

              Code:
              // code on grandchild component button
              var topObj = {dialog.object}.getTopParentObject();
              //{dialog.Object}.getStateInfo();refreshbutton
              var x = topObj.stateInfo['refreshbutton'];
              alert(x);​
              Code:
              ' Code from primary UX on-initialize event to set state variable
              e._state.refreshbutton = "hotDOG"
              What's your question?? ...I've read this post a couple times and I don't see one. Is the code not working or something else?
              Mike Brown - Contact Me
              Programmatic Technologies, LLC
              Programmatic-Technologies.com
              Independent Developer & Consultant​​

              Comment


                #8
                Hi Lance,
                I wanted to use viewboxes, but let's face it, viewboxes don't follow the low-code/no-code motto that brought many people to Alpha Software.
                Combine this with a lack of documentation that cause developers to suffer from text overload.

                There is a video from over a decade ago that shows the power of the grid ( )

                I'm still not a fan of the list control, but it certainly is a lot easier to use now than it was the first time I used it.
                I didn't have to use css to produce what I needed.

                The image below shows the primary screen the user sees. This is meant for use on the desktop, but I will soon be creating a mobile version.
                Each item uses grid, complete with multiple search controls to allow the end user to easily get to the data he needs.
                The several of the columns in many of the data rows are click enabled, allowing the user to easily edit data or generate required documentation
                including labels, checkin/pull sheets, and of course BOL's.

                The viewbox is a great tool, but it takes a lot more to design it to do what this project does.

                Don't get me wrong, I really do appreciate the assistance and knowledge I've gained from you and Peter and everyone that has shared information
                and ideas with me, and I will continue to seek this information as I continue trying to "create a better mousetrap".


                2022-10-27_9-45-19.png
                Gregg
                https://paiza.io is a great site to test and share sql code

                Comment


                  #9
                  Originally posted by mikeallenbrown View Post

                  What's your question?? ...I've read this post a couple times and I don't see one. Is the code not working or something else?
                  This didn't start as a question...it started as sharing information, not to mention a place to easily recall how to do something instead
                  of trying to remember which project I created it.
                  Gregg
                  https://paiza.io is a great site to test and share sql code

                  Comment


                    #10
                    Hi Gregg,

                    I know what you mean about the low code and lack of documentation, but a little perseverance is well worth it.

                    When you first put a viewbox on a UX you can load a sample viewbox from the home page of the viewbox builder, there are a few and they are all worth an experiment with. The menu in your panel card 1 could easily be replaced with one of the samples and the grid in panel card 2 with a list style viewbox. For a really good example have a look at 'Advance: List of orders for a customer', this has been the basis for many of my viewboxes

                    Comment


                      #11
                      There is a video from over a decade ago that shows the power of the grid
                      I wrote that application and did the video - at the time the iPhone was being born. - Times and needs change, the Grid in the right hands could do wonders - but developers wanting to be serious about developing in the now, need to plan without it.
                      Having your data bound to a preconceived control in general methods will not cut it in todays world - you never know what device your client will end up using now or in the future - that control just wont survive in anything other than a desktop browser, just like tabbed UI - make the jump, I stopped using grid the day the List Control arrived an stopped using List Controls the year the Viewbox arrived and have never looked back,
                      Pete
                      Insanity: doing the same thing over and over again and expecting different results.
                      Albert Einstein, (attributed)
                      US (German-born) physicist (1879 - 1955)

                      Comment


                        #12
                        Pete,
                        Please don't misunderstand what I was saying.
                        I would absolutely LOVE to use the viewbox for my project, but until I actually understand what I'm doing,
                        I have to work with what I know.

                        For this particular project, the end user is using a desktop computer. I was able to get him off the spreadsheet
                        his predecessors created before he considered joining the team. We now have a system that actually keeps
                        track of inventory, and charges the correct amount.

                        Up next is an app for a mobile device for the people working the dock to use.

                        Last but certainly not least, I was pointing out that Alpha seems to be drifting away from the low-code/no-code mantra,
                        and the documentation for those of us without computer degrees quite often leaves us frustrated.

                        Gregg
                        https://paiza.io is a great site to test and share sql code

                        Comment


                          #13
                          Originally posted by madtowng View Post
                          Hi Lance,
                          I wanted to use viewboxes, but let's face it, viewboxes don't follow the low-code/no-code motto that brought many people to Alpha Software.
                          Combine this with a lack of documentation that cause developers to suffer from text overload.

                          There is a video from over a decade ago that shows the power of the grid ( )

                          I'm still not a fan of the list control, but it certainly is a lot easier to use now than it was the first time I used it.
                          I didn't have to use css to produce what I needed.

                          The image below shows the primary screen the user sees. This is meant for use on the desktop, but I will soon be creating a mobile version.
                          Each item uses grid, complete with multiple search controls to allow the end user to easily get to the data he needs.
                          The several of the columns in many of the data rows are click enabled, allowing the user to easily edit data or generate required documentation
                          including labels, checkin/pull sheets, and of course BOL's.

                          The viewbox is a great tool, but it takes a lot more to design it to do what this project does.

                          Don't get me wrong, I really do appreciate the assistance and knowledge I've gained from you and Peter and everyone that has shared information
                          and ideas with me, and I will continue to seek this information as I continue trying to "create a better mousetrap".


                          2022-10-27_9-45-19.png
                          Hi
                          In your grandparent UX create a javascript function that returns the value of the needed state variable, for instance getMyState()
                          In your child or grandchild just call getMyState() to get that value.
                          It's a mesmerizing fact i learnt from one of the weekly webinars, calling a javascript function in a ux will drill back up to parents and grand parents until found !

                          Jaime

                          Comment


                            #14
                            It's a mesmerizing fact i learnt from one of the weekly webinars
                            I just wanted to chime in and say the team does an excellent job of putting these things together - if your not there be sure to visit the youtube page and catch up - I just cannot say enough about them.
                            NWCOPRO: Nuisance Wildlife Control Software My Application: http://www.nwcopro.com "Without forgetting, we would have no memory at all...now what was I saying?"

                            Comment


                              #15
                              I am often busy when they go live, so catch up on YouTube often and have learned a lot. My only gripe is the links are often posted in the chat window and therefore not available on YouTube. I have asked for them to be published with the videos but still seems to be missing

                              Comment

                              Working...
                              X