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

Advice for Grid "Billboard" that cycles through different Grids.

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

    Advice for Grid "Billboard" that cycles through different Grids.

    I'm seeking advice on the best way to set this up.

    A maintenance manager wants to put up a big T.V. in his department that will show open maintenance work orders. There are a three different types of work orders. General, Preventative, and Safety. These receive a different priority based on their type and another separate priority setting. Because of that, I'd like to have 3 separate grids. I'd like the page the grids are in to cycle through each of those grids on a time interval. Basically like a changing billboard.

    Bonus points are awarded to anyone who knows the best way to cycle through all the pages of records in each of the grids WHILE doing the above.


    My thoughts are to embed each grid in a separate page and then have a master page (of sorts) that cycles through the child pages. I'm hoping one of you has this licked already or knows a nice streamlined way of doing it.

    Thanks!

    #2
    Re: Advice for Grid "Billboard" that cycles through different Grids.

    I would embed all 3 grids into a UX. Each time the UX is refreshed, you increment a counter by 1. When the counter reaches 3, drop it to 1 again. (The counter would be a session variable.)

    The counter will determine which grid is shown on the screen. (Show/Hide on the grid container, session.counter = #)

    Then just set the UX to auto-refresh and put it in an a5w page.

    That should pretty much do it!

    Comment


      #3
      Re: Advice for Grid "Billboard" that cycles through different Grids.

      Alternate method:

      Don't use grids. In the UX, create 3 list controls that have the same basic setup as your grids. (You could even use a single list and modify the list settings if you want, but that might get a bit crazy.)

      The list controls, if done right, will look better than a grid and be easier to control.

      Comment


        #4
        Re: Advice for Grid "Billboard" that cycles through different Grids.

        Thanks lgrupido,
        I generally prefer to work with grids in this type of instance for speed and navigability. I love lists and use them for a lot of things as well, but I find that they generally don't work well when there are a large amount of records to show.

        I haven't set up the mechanism to cycle through different grids just yet but I DID figure out how to cycle through pages on a grid.

        onGridInitializeComplete event:
        Code:
        setInterval(function(){ {grid.Object}.refresh(); }, 5000);
        onGridRefresh event:

        Code:
        var detailView = {};
        var grid = {};
        {grid.object}._getGridVariables(grid,detailView);
        if(grid.hasNextPage) {
         {grid.Object}.pageNavigate('next');
        } else {
        {grid.Object}.pageNavigate('first');
        }
        There's probably a more elegant way to do it but this seems to be working since I wanted to refresh at an interval anyway.

        Comment


          #5
          Re: Advice for Grid "Billboard" that cycles through different Grids.

          I cannot offer advice BUT I do want to say great post - made me think and appreciate the versatility of Alpha to get something done pronto...
          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


            #6
            Re: Advice for Grid "Billboard" that cycles through different Grids.

            setInterval(function(){ {grid.Object}.refresh(); }, 5000);
            instead of that you may be able to just check autorefresh in the grid properties and set to 60 seconds which is default or whatever you like.
            you can place those grids in separate pages and call them grid1.a5w, grid2.a5w and grid3.a5w
            then in the head portion of each page you may be able to add this code and see if it works.
            Code:
            <script>
            <!--
            setTimeout(function() {
            window.location.href = "grid2.a5w";
            },3000);
            -->
            </script>
            this will be in the grid1.a5w, then just increase the numbers to cycle thru.
            see if that works.

            incidentally, you showed me something very good: how to cycle thru the grid. wonderful. learned something very nice today.
            thank you.

            http://screencast.com/t/o7TELLDI3Z9
            this is done with just a5w pages (3) seen in live preview did not publish to test it yet.
            Last edited by GGandhi; 11-01-2016, 08:42 AM. Reason: reference in sentence corrected.
            thanks for reading

            gandhi

            version 11 3381 - 4096
            mysql backend
            http://www.alphawebprogramming.blogspot.com
            [email protected]
            Skype:[email protected]
            1 914 924 5171

            Comment


              #7
              Re: Advice for Grid &quot;Billboard&quot; that cycles through different Grids.

              Thanks,

              I did end up using a UX component with embeded grids. Definitely the way to go over A5W pages. I tried them first but getting the layout to look the way I want was a constant battle. Using the UX component made layout a snap with it's containers and other layout options. I did have to use the UX component to create it's own A5W page so a browser has something to point to but no modification of that page is needed.

              GGandhi,
              I had NO idea there was an "autorefresh" setting for the grid! I just kind of assumed there wouldn't be. So I learned something new today too. Thanks!

              The manager decided that he wanted only one grid to show the work orders, which is fine since I figured out the automatic page navigation, and instead he'd like to see another grid with the employees and their number of work orders and past due work orders. Once again, a snap due to using the UX as my "base" with embedded components.

              If I do want to switch to other views in the future, I think I will use seperate UX components with embeded components and just redirect from one to another similar to GGandhi's idea. I admit, I havent' tried hiding the various grids instead so that will be the backup. I shy away from that option just because it's hard to get rid of the "empty space" that's not really empty which occurs when you hide stuff client-side.

              Comment


                #8
                Re: Advice for Grid &quot;Billboard&quot; that cycles through different Grids.

                Always more then one way to skin the Alpha Cat.
                Nicholas Wieland
                LedgerSuite.com Corp
                [email protected]
                http://www.ledgersuite.com

                Comment


                  #9
                  Re: Advice for Grid &quot;Billboard&quot; that cycles through different Grids.

                  Jinx,

                  When hiding stuff client side in a UX - wrap what you want to hide in a container and then hide the container instead of the individual controls.
                  Much easier to get rid of the space that way, because the container itself doesn't have any space.

                  Test different settings of allowing the container to float or not - it sometimes makes a difference.

                  Comment


                    #10
                    Re: Advice for Grid &quot;Billboard&quot; that cycles through different Grids.

                    you can also do in another way.
                    create an ux/dialog and add a placeholder below the dialog and insert buttons in the dialog to open the components on fly.(of course this will need user interaction to cycle thru other grids)
                    http://www.screencast.com/t/oXeMbBHxufoO

                    i haven't tested with auto refresh settings on these grids.
                    thanks for reading

                    gandhi

                    version 11 3381 - 4096
                    mysql backend
                    http://www.alphawebprogramming.blogspot.com
                    [email protected]
                    Skype:[email protected]
                    1 914 924 5171

                    Comment

                    Working...
                    X