[gnukhata-devel] Re: Fwd: ui for units of measurements

  • From: bhagya.pandhare@xxxxxxxxxxxxxxx
  • To: gnukhata-devel@xxxxxxxxxxxxx
  • Date: Tue, 11 Oct 2016 17:12:42 +0530

On 2016-10-10 16:45, Krishnakant wrote:

On Monday 10 October 2016 03:29 PM, bhagya.pandhare@xxxxxxxxxxxxxxx wrote:


-------- Original Message --------
Subject: ui for units of measurements
Date: 2016-10-10 14:20
From: bhagya.pandhare@xxxxxxxxxxxxxxx
To: gnukhata-devel-bounce@xxxxxxxxxxxxx

Hello everyone,

I am sending raw design for units of measurements, can you please see it and suggest changes.

my Questions are

*are we going to keep criteria for deleting records eg. by uomid or name
*do we need options for retrieving single record or multiple record
*suggest any more changes if needed.

regards,
Bhagyashri, Kanchan.

We are looking into this and will let you know if any changes are required.
happy hacking.
Krishnakant.
hello developers ,
 i have done some raw structure , but in that i have one problem
*iin delete section , data can be deleted on certain criteria . After selecting option from dropdown only its corresponding field should be display, but it's not happening can anyone will help me to do this,
my html code is,

  <div class="w3-panel  w3-card-8">
      <div class="w3-container">
  <h2>Delete the Units</h2>
<div class="w3-dropdown-click">
<button onclick="myFunction()" class="w3-btn">Select Criteria</button>
<div id="Demo" class="w3-dropdown-content w3-card-4 w3-animate-bottom">
     <a href="#uomid">by ID</a>
      <a href="#unitname">by Unit Name</a>
      <a href="#frequency">By Frequency</a>
    </div>
  </div>
</div>
<p>
  <label>Unit ID</label>
<input class="w3-input w3-border w3-round-large" name="uomid" id="uomid" type="text"></p>
  <p>
  <label>Unit Name</label>
<input class="w3-input w3-border w3-round-large" name="unitname" type="text"></p>
  <p>
  <label>Frequency</label>
<input class="w3-input w3-border w3-round-large" name="frequency" type="text"></p>

<script>
function myFunction() {
    var x = document.getElementById("Demo");
    if (x.className.indexOf("w3-show") == -1) {
        x.className += " w3-show";
    } else {
        x.className = x.className.replace(" w3-show", "");
    }
}/*
$("#searchby").getattr(function(event) {

  var search = $("#searchby option:selected").val();

    if (search=="type")
    {
      $(".uomid").show();
      $(".unitname").hide();
      $(".frequency").hide();


    }
      else if (search=="unitname")
      {  $(".uomid").hide();
      $(".unitname").show();
      $(".frequency").hide();
       }
      else (search=="frequency"){
      $(".uomid").hide();
      $(".unitname").hide();
      $(".frequency").show();
      }
      }
      */
</script>
can anyone me guide this where i was wrong?

Other related posts: