Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Compare fields in a table

    Hello,
    1. i got a material table wich contains the article number, a quantity input field, a max quantity field... How can i test that the input quantity is less than the max quant one ?
    2. The max quantity field has to be invisible so i have a hidden attribute for it. The problem is that the table shows an empty column instead of nothing. Is there a way to hide the column to ?
    Here is a sample of my code :
    Code:
    <table id = "visu-table">
        <tr>
            <th>Article N.</th>
            <th>Article descr.</th>
            <th>Art. Quant COL</th>
            <th>Quality</th>
            <th>Comments</th>
        </tr>
    <%
      sort palettes.
      cpt = 0.
      Describe table palettes lines sizePalettes.
      loop at palettes_out into wa_pal.
      SHIFT wa_pal-matnr LEFT DELETING LEADING '0'.
      cpt = cpt + 1.
    %>
    <tr>
            <td>&nbsp<input class="gris" type="text" name="matnr" value="<%= wa_pal-matnr%>" size=5 maxlength=18 onFocus="return clifirst()"></td>
            <td><input class="gris" type="text" name="maktx" value="<%= wa_pal-maktx%>" size=40 maxlength=40 ></td>
            <td>&nbsp<input type="text" id = "qtePal<%=cpt%>" name="qtePal" size=8 MAXLENGTH=8 value=""></td>
            <td>
                <select name="qual">
                    <option value = "No info">No info</option>
                    <option value = "Good">Good</option>
                    <option value = "Average">Average</option>
                    <option value = "bad">Bad</option>
                </select>
            </td>
            <td>&nbsp<input type="text" id="comm<%=cpt%>" name="comm" size=20 MAXLENGTH=30 value=""></td>
            <td>&nbsp<input type="hidden" id="qtColl<%=cpt%>" name="qtColl" size=20 MAXLENGTH=30 value="<%= wa_pal-zqtpal%>"></td>
    </tr>
    <%
      endloop.
    %>
    Thanks a lot

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,461
    Thanks
    11
    Thanked 600 Times in 580 Posts
    Quote Originally Posted by Tompa View Post
    Is there a way to hide the column to ?
    Thanks a lot
    not really, no.

    you would need to fix it at each row.
    some browsers support column CSS, but in my experiences it is flaky, and any row styling over-rides it.
    my site (updated 2014/10/20)
    BROWSER STATS [% share] (2014/9/03) IE7:0.1, IE8:4.3, IE11:9.2, IE9:2.7, IE10:2.6, FF:16.8, CH:47.5, SF:7.8, NON-MOUSE:37%

  • #3
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the reply.
    Any clue for the comparison ?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •