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

HTML/CSS Element IDs

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

    HTML/CSS Element IDs

    I've been having trouble using element Ids to customize buttons in my project. Button class selectors work but button element selectors do not. I've taken the same section of code and it works as a plain HTML file outside of AA. I was wondering if AA overrides button element Id's that I've assigned and uses it's own and that's why my CSS is not applying.

    So in the case below the #main-clear-filter-btn is not green it has no color and takes the parent section's background color. The div element Id's work but maybe the buttons are reassigned. I'm not sure what is wrong.

    HTML Code:
    <style>
    button {
    font-family: Arial;
    color: #ffffff;
    font-size: 15px;
    padding: 5px 10px 5px 10px;
    text-decoration: none;
    outline: none;
    border: none;
    }
    #main-clear-filter-btn {
    	background: #45B449;
    	width: 50%;
    	
    }
    td {
    padding-left:10px;
    padding-right:10px;
    }
    
    #search-table {
    width: 100%;
    font-weight: 12px;
    margin: 10px;
    }
    
    .searchheader {
    padding-top:100px;
    }
    
    #search-field{
    width: = 100%;
    }
    #advanced{
    font-weight: 10px;
    }
    
    .search-cells {
    	width: 100%;
    }
    .search-fields-rows {
    	top: 0px;
    }
    
    </style>
    
    <div id="summary"></div>
    <table id="search-table">
    <tr><td id="advanced">Advanced Filter:</td></tr>
    <tr class="searchheader">
    <td class="search-cells" id="SiteId">Site Id</td><td class="search-cells" id="StartDate">Start Date Range Start</td><td class="search-cells" id="Initiative">Initiative</td>
    </tr>
    <tr class="search-fields-rows">
    <td class="search-cells">{SiteId}</td><td class="search-cells">{StartDate:search_start}</td><td class="search-cells">{Initiative}</td>
    </tr>
    <tr class="searchheader">
    <td class="search-cells" id="ProjectName">Project Name</td><td class="search-cells" id="To.StartDate">Start Date Range End</td><td class="search-cells" id="EquipmentType">Equipment</td>
    </tr>
    <tr class="search-fields-rows">
    <td class="search-cells">{ProjectName}</td><td class="search-cells">{StartDate:search_end}</td><td class="search-cells">{EquipmentType}</td>
    </tr>
    <tr class="searchheader">
    <td class="search-cells" id="City">City</td><td class="search-cells" id="EndDate">Completion Date Range Start</td><td class="search-cells" id="Status">Status</td>
    </tr>
    <tr class="search-fields-rows">
    <td class="search-cells">{City}</td><td class="search-cells">{EndDate:search_start}</td><td class="search-cells">{Status}</td>
    </tr>
    <tr class="searchheader">
    <td class="search-cells" id="State">State</td><td class="search-cells" id="To.EndDate">Completion Date Range End</td><td class="search-cells" id="Milestone">Milestone</td>
    </tr>
    <tr class="search-fields-rows">
    <td class="search-cells">{State}</td><td class="search-cells">{EndDate:search_end}</td><td class="search-cells">{Milestone}</td>
    </tr>
    <tr class="searchheader">
    <td class="search-cells" id="Zip">Zip</td><td class="search-cells" id="Incentive">Incentive Range Lower</td><td class="search-cells" id="RebateProgram">Rebate Program</td>
    </tr>
    <tr class="search-fields-rows">
    <td class="search-cells">{Zip}</td><td class="search-cells">{Incentive:search_start}</td><td class="search-cells">{RebateProgram}</td>
    </tr>
    <tr class="searchheader">
    <td id="Id">RWW Id</td><td id="To.Incentive">Incentive Range Upper</td>
    </tr>
    <tr class="search-fields-rows">
    <td class="search-cells">{Id}</td><td class="search-field">{Incentive:search_end}</td><td><button id="advanced-filter-btn" class="filter" onclick="{grid.object}.submitSearchForm(); return false;">Search</button><button id="main-clear-filter-btn" onclick="clearAllFilters()">Clear Filters</button></td>
    </tr>
    </table>
    The section below is from the onSummarySectionRender event and inserted into the innerHTML of div#summary above.

    HTML Code:
    <tr>
    <style>
    #summary-table{
         
        border-collapse: separate;
        border-spacing: 0px;
        border-color: gray;
        font-family: Arial;
        font-size: 16px;
        margin: 10px;
        text-align: right;
    	width: 100%;
    }
    #summary-title{
    	font-weight: bold;
    	font-size:20px;
    	padding-bottom: 10px;
    	text-align:justify;
    }
    
    .filter {
      font-family: Arial;
      color: #ffffff;
      font-size: 15px;
      background: #2F5FAC;
      padding: 5px 10px 5px 10px;
      text-decoration: none;
      outline: none;
      border: none;
    }
    .filter:hover {
      background: #1b4b98;
      text-decoration: none;
    }
    
    .clear-filter-btn {
      font-family: Arial;
      color: #ffffff;
      font-size: 10px;
      background: #45B449;
      padding: 5px 8px 5px 8px;
      text-decoration: none;
      outline: none;
      border: none;
      visibility: visible;
    }
    .clear-filter-btn:hover {
      background: #32a038;
      text-decoration: none;
      visibility: visible;
    }
    .summary-row-labels{
    	position: relative;
    	left: 0px;
    	text-align: left;
    }
    .filter-btn-cells {
    
    }
    
    .dynamic-clear-filter-btn-div {
    
    }
    
    td.dynamic-clear-filter {
    	width: 5%;
    }
    
    </style>
    <!--<tr><td colspan="{colspan}"style="padding-left:10px;">-->
    <!--<fieldset style="width: 50%;-moz-border-radius:0px;-webkit-border-radius: 0px;">-->
    <!--<legend style="font-weight: bold;font-size: 12pt;">Projects Summary</legend>-->
    <!--<table width="100%" border="1" cellspacing="0" cellpadding="2">-->
    <table id="summary-table">
    <tr><td id="summary-title" colspan = 4><center>Projects Summary</center></td></tr> 
    <tr><td></td><td> # Count </td><td> $ Sum Total </td></tr>
    <tr id="row-check-received"><td class="summary-row-labels">Total Rebate Checks Received</td><td>{totalchecks}</td><td>{sumchecks}</td><td class="filter-btn-cells"><button class="filter" onclick="filterChecksReceived()">Show Projects</button></td><td class="dynamic-clear-filter"><div class="dynamic-clear-filter-btn-div" id="btn-check-received"></div></td></tr>
    <tr id="row-final-app"><td class="summary-row-labels">Total Final Applications Submitted</td><td>{totalfinalapps}</td><td class="filter-btn-cells">{sumfinalapps}</td><td><button class="filter" onclick="filterFinalApps()">Show Projects</button></td><td class="dynamic-clear-filter"><div class="dynamic-clear-filter-btn-div" id="btn-final-app"></div></td></tr>
    <tr id="row-pre-app"><td class="summary-row-labels">Total Pre-Approval Applications Submitted</td><td>{totalpreapps}</td><td class="filter-btn-cells">{sumpreapps}</td><td><button class="filter" onclick="filterPreApps()">Show Projects</button></td><td class="dynamic-clear-filter"><div class="dynamic-clear-filter-btn-div" id="btn-pre-app"></div></td></tr>
    <tr id="row-active"><td class="summary-row-labels">Total Active Projects Not Submitted</td><td>{totalactivepresubmit}</td><td class="filter-btn-cells">{sumactivepresubmit}</td><td><button class="filter" onclick="filterActive()">Show Projects</button></td><td class="dynamic-clear-filter"><div class="dynamic-clear-filter-btn-div" id="btn-active"></div></td></tr>
    <tr id="row-termed"><td class="summary-row-labels">Total Projects Terminated</td><td>{totaltermedprojects}</td><td>NA</td><td class="filter-btn-cells"><button class="filter" onclick="filterTerminated()">Show Projects</button></td><td class="dynamic-clear-filter"><div class="dynamic-clear-filter-btn-div" id="btn-termed"></div></td></tr>
    <tr><td></td><td></td><td></td><td id="clear-filter-holder"></td></tr>
    <!--</table>-->
    <!--</fieldset>-->
    </tr>

    #2
    Re: HTML/CSS Element IDs

    So it works if I move the #main-clear-filter-btn selector into the html that is in onSummarySectionRender. The button shows up green. I'm not sure why though, there are no naming collisions. It's weird.

    Comment


      #3
      Re: HTML/CSS Element IDs

      Nevermind, I found the local CSS section in the component and moved everything there. I probably should make this part of the style too.

      Comment

      Working...
      X