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

Collapse All Expanding Menus On A UX?

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

  • #16
    Re: Collapse All Expanding Menus On A UX?

    Another update: In testing, I found that if I clicked a 2nd time on the top branch to close it manually, and THEN clicked the Collapse All button, its code found that the menuObj.state.state was 'open' and so made that expanding menu open. SO.. I changed the onclick for the top branch to the following and it seems to be taking care of that issue. David, let me know if there is anything wrong with this logic, please?

    Revised code for the OnClick event of the top branch in an expanding menu:
    Code:
    var menuObj = {dialog.object}.getControl('EXPANDINGMENU1');
    if (menuObj) {
    	if(menuObj.state.state == 'open'){
    		menuObj.state.state='closed';
    	} else {
       		menuObj.state.state='open';
       	}
    }
    Carol King
    Developer of Custom Homebuilders' Solutions (CHS)
    http://www.CHSBuilderSoftware.com

    Comment


    • #17
      Re: Collapse All Expanding Menus On A UX?

      Hi Pete,

      On one particular UX, there is an expanding menu, a viewbox, and 2 container windows with a few input controls which get populated when items in the viewbox are selected.

      The table (approx 6000 records) is indexed on all the 6 fields (out of 28) that are needed and then filtered into a view which has only records that meet the criteria (circa 2000 records) for the expanding menu. Running a select statement on the view completes in 0.052 seconds. The UX renders in 3-4 seconds, the expanding menu renders in around 28 seconds in this particular case. I would say the UX with the simplest expanding menu renders in about 15 seconds

      Comment


      • #18
        Re: Collapse All Expanding Menus On A UX?

        How many sibling and and how many child items in the 2000
        Insanity: doing the same thing over and over again and expecting different results.
        Albert Einstein, (attributed)
        US (German-born) physicist (1879 - 1955)

        Comment


        • #19
          Re: Collapse All Expanding Menus On A UX?

          Originally posted by kingcarol View Post
          Another update: In testing, I found that if I clicked a 2nd time on the top branch to close it manually, and THEN clicked the Collapse All button, its code found that the menuObj.state.state was 'open' and so made that expanding menu open. SO.. I changed the onclick for the top branch to the following and it seems to be taking care of that issue. David, let me know if there is anything wrong with this logic, please?

          Revised code for the OnClick event of the top branch in an expanding menu:
          Code:
          var menuObj = {dialog.object}.getControl('EXPANDINGMENU1');
          if (menuObj) {
          	if(menuObj.state.state == 'open'){
          		menuObj.state.state='closed';
          	} else {
             		menuObj.state.state='open';
             	}
          }
          Yes... that works really nice now. Overall, we must fully control the state of the menu... whether by a button... or by a menu event.
          I've updated my code. Thanks.

          Comment


          • #20
            Re: Collapse All Expanding Menus On A UX?

            Hi Pete,

            There are 3 siblings, the largest child has 4 branches, then the largest grand child has has 60 branches, in turn the largest great grand child has 17 branches, then at the next level there are anything between 4-10 branches, with the same type of quantity for the final choice

            Comment


            • #21
              Re: Collapse All Expanding Menus On A UX?

              Looks like a lot of JSON being nested there in the browser for things that may never be accessed i'd say the browser is struggling, i'd look at a LIST control for the siblings, then ViewBox for the rest using an ajax callback or maybe all Viewboxes, would be a lot smaller and faster. - just my thought on the issue.
              Cheers, Pete
              Insanity: doing the same thing over and over again and expecting different results.
              Albert Einstein, (attributed)
              US (German-born) physicist (1879 - 1955)

              Comment


              • #22
                Re: Collapse All Expanding Menus On A UX?

                Thanks Pete for the different perspective I will look into it

                Comment


                • #23
                  Re: Collapse All Expanding Menus On A UX?

                  there is a built-in method. for example
                  p.s. you could find this by using Chrome developer tools, getting the 'obj' pointer and then examining what's inside the obj pointer



                  var obj = {dialog.object}.getControl('ExpandingMenu')
                  obj.collapseAll();

                  Comment


                  • #24
                    Re: Collapse All Expanding Menus On A UX?

                    Just an FYI... I began having trouble with session timeouts after moving to using expanding menus BECAUSE expanding menus do not trigger a callback to the server which would reset the timer. My users were complaining that IF they had been idle for almost the time we give them before warning, and then started expanding and collapsing menus to look for something, they would get timeout warning. This, of course, feels odd to the user since they are performing some action. SO, on click of the top level of each of my expanding menus, I have added a javascript action that calls back to the server, but basically does nothing. That has taken care of the issue and really helps with keeping their session alive.
                    Carol King
                    Developer of Custom Homebuilders' Solutions (CHS)
                    http://www.CHSBuilderSoftware.com

                    Comment


                    • #25
                      Re: Collapse All Expanding Menus On A UX?

                      the behavior that you are seeing is the correct and desirable behavior - expanding a menu is done entirely client-side - so it does not extend a session. however, as you point out, there is a javascript event that you can hook when a menu branch is expanded and a dummy ajax callback can be made when the user does this

                      Comment


                      • #26
                        Re: Collapse All Expanding Menus On A UX?

                        Yes, that makes perfect sense to me, Selwyn, that it is client side. What's nice about doing a dummy callback for me is that it helps me see what clients are active because they will go to my Main Menu and use the expanding menus a lot to navigate. I can see that because each of my client's have separate databases in separate folders on our server, and the date on the folder changes every time there is a callback to it. I am actually opening and closing the connection in my 'dummy' callback just so it will let me see who is active.
                        Carol King
                        Developer of Custom Homebuilders' Solutions (CHS)
                        http://www.CHSBuilderSoftware.com

                        Comment

                        Working...
                        X