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

screwey viewbox results

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

    screwey viewbox results

    Hi everyone,
    I created an UX with a viewbox, but I can't seem to get the css to work as expected with the viewbox layout.
    I want the all the data in example one formatted like example 2.

    Because I'm still relatively new to css I'm assuming this is something I did wrong.
    It would be extremely helpful if someone would steer me in the right direction.


    eva21example.png
    Code:
    div {
    text-align: left;
    padding: 0px;
    margin: 0px;
    }
    body {
    margin: 0px;
    padding:0px;
    }
    
    .categories-container {
    display: grid;
    grid-template-columns: 10% 90%;
    position: fixed;
    top:0px;
    left:0px;
    right:0px;
    width:100%;
    padding-top:0px;
    border: 1px none red;
    margin: 0px;
    }
    
    .data-left {
    text-align: center;
    background-color: lightblue;
    margin: 0px;
    cursor: pointer;
    padding-left:5px;
    }
    
    .data-right {
    text-align: left;
    background-color: lightgray;
    margin: 0px;
    cursor: pointer;
    }
    .listItemSelected {
    color: #000;
    background: #659eff;
    border-style: solid;
    border-width: 2px;
    border-color: red;
    padding:0px;
    }​

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

    #2
    data-left should conain a float: left;
    Pat Bremkamp
    MindKicks Consulting

    Comment


      #3
      Hi Pat,

      I appreciate the fast response.
      I adjusted the css as shown in the image below, but all that happened is the ID moved left.

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

      Comment


        #4
        Hi Gregg,

        This is my goto CSS for laying out nice columns in a viewbox
        HTML Code:
        * {
          box-sizing: border-box;
        }
        .row::after {
          content: "";
          clear: both;
          display: block;
        }
        [class*="col-"] {
          float: left;
          padding: 1px;
        }
        .col-1 {width: 8.33%;}
        .col-2 {width: 16.66%;}
        .col-3 {width: 25%;}
        .col-4 {width: 33.33%;}
        .col-5 {width: 41.66%;}
        .col-6 {width: 50%;}
        .col-7 {width: 58.33%;}
        .col-8 {width: 66.66%;}
        .col-9 {width: 75%;}
        .col-10 {width: 83.33%;}
        .col-11 {width: 91.66%;}
        .col-12 {width: 100%;}
        .listItem {
            padding:3px;
        }​
        This gives you up to 12 different column widths, if you ever need more just play around with the percentages. Then for your layout in your viewbox use

        HTML Code:
        <div class="[theme:listBox.base.item.className|{dialog.style}ListItem]"  a5-item="_AARow" a5-value=""><div class="row">
            <div class="col-2">
                {CategoryID}
            </div>
            <div class="col-10">
                {CategoryName}
                <br>
                {Description}
            </div>
        </div></div>
        You can, obviously add your own colouring etc

        Comment


          #5
          Lance Gurd It's close, but not quite what I'm looking for.
          Your method returns all the data, but I really want the format shown in Example 2
          Capture.png
          Gregg
          https://paiza.io is a great site to test and share sql code

          Comment


            #6
            Example2.zip Example2.zip GreggExample2.png
            See how you go with this.
            Pete


            <div a5-item="_AARow" a5-value="{[count]}">
            <div style="display: table; width: 100%;;height:120px; ">
            <div style="display: table-cell; width: 200px; vertical-align: middle;background-color: lightblue;padding:30px">
            {CategoryID}
            </div>
            <div style="display: table-cell; width: 100%; vertical-align: middle;height:100px;background-color: lightgray;">
            {CategoryName}<br>{Description}
            </div>
            </div>
            </div>​
            Attached Files
            Insanity: doing the same thing over and over again and expecting different results.
            Albert Einstein, (attributed)
            US (German-born) physicist (1879 - 1955)

            Comment


              #7
              That works Pete.
              Makes me wonder what was wrong with my css/layout combination.
              Gregg
              https://paiza.io is a great site to test and share sql code

              Comment


                #8
                I figured it out, thanks to Lee Vasic.
                For some reason when using sqLite, I needed to put the db file in the <drive>\A5Webroot\LivePreview\Data folder.
                Now that I have this part working right, I need to figure out how to get headers to appear just at the top and not
                scroll off the page.

                Capture.png
                Code:
                <!-- CSS Code -->
                .categories-container {
                display: grid;
                grid-template-columns: 10% 90%;
                }
                .data-left {
                text-align: center;
                background-color: lightblue;
                }
                .data-right {
                text-align: left;
                background-color: lightgray;
                padding-left:5px;
                border-bottom-style:solid;
                border-bottom-width:1px;
                border-bottom-color:gray;
                }
                .listItemSelected {
                color: #000;
                background: #659eff;
                border-style: solid;
                border-width: 3px;
                border-color: red;
                padding:0px;
                }​
                Code:
                <!-- <div class="header-container">
                <div class="header-left">Category ID</div>
                <div class="header-right">Category / Product </div>
                </div> -->
                
                <div a5-item="_AARow" a5-value="{[count]}">
                <div class="categories-container">
                <div class="data-left">
                <b>{CategoryID}</b>
                </div>
                <div class="data-right">
                {CategoryName}<br>{Description}
                </div>
                </div>
                </div>​
                Gregg
                https://paiza.io is a great site to test and share sql code

                Comment


                  #9
                  categories-container -hint don't use inherited stuff - build it yourself - then use it - you will understand it better.

                  Always avoid using AA style sheet css - I just start by building my own - baby step until it does what I want - the AA generic css does not cut it any more for me.. - have added a developer and user theme builder all in the database and all client-side and all in my Hybrid viewbox's.

                  Check this out. it's less than 500k. has no field controls at all.

                  Video: https://www.screencast.com/t/6Di5WMJfXxR

                  Pete


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

                  Comment


                    #10
                    Hi Gregg,

                    Instead of using a header in the actual layout, use the wrapper on the viewbox properties tab, insert the sample HTML in the wrapper HTML and start from there. It should look something like this

                    HTML Code:
                    <div style="display: flex; flex-direction:column; height: 100%;">
                        <div class="header-left">Category ID</div>
                    <div class="header-right">Category / Product </div>
                        <div a5-layout-target="true" style="flex: 1 1;"></div>
                        <div>put your footer HTML here...</div>
                    </div>
                    Take out the footer <div> if you don't want anything in the footer

                    Or here is your component using the styling CSS columns that I put up earlier with your colours/alignment northWindLiteVBUX.zip

                    Comment


                      #11
                      I need to figure out how to get headers to appear just at the top and not
                      scroll off the page.​
                      I have showed you this before - the easiest way (and responsive way) is to just just it in the controlbar of the panel, above the vb.
                      Last edited by peteconway; 11-22-2022, 05:06 AM.
                      Insanity: doing the same thing over and over again and expecting different results.
                      Albert Einstein, (attributed)
                      US (German-born) physicist (1879 - 1955)

                      Comment


                        #12
                        What's the relevance of the record ID? Why should anyone see it?
                        Insanity: doing the same thing over and over again and expecting different results.
                        Albert Einstein, (attributed)
                        US (German-born) physicist (1879 - 1955)

                        Comment


                          #13
                          I'm using this as practice for a warehousing project where the clientID is part of the tracking label
                          and pull list. I haven't determined the ID number will be displayed, but it's an easy way for me to
                          know what's going on.
                          Gregg
                          https://paiza.io is a great site to test and share sql code

                          Comment


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

                            Comment


                              #15
                              Hi Pete , Hi Lance,
                              I really appreciate the time and effort from each of you as I try to understand
                              concepts I'm not yet comfortable with.
                              The image below shows 2 headers. The one I can't find the right settings for in the control bar, and the one
                              that uses the viewbox wrapper.
                              I keep using CSS grid to display content because even though I haven't mastered it, it appears to accomplish
                              the most with the least human interaction (less room for human error, and less time to debug when human
                              error is introduced).

                              I have one project where I was able to somehow get the header in the control panel to work as expected,
                              but I look back on it, I get erratic responses from AA.

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

                              Comment

                              Working...
                              X