title: How do I add Mark all / Unmark all button in inlineeditor type sublist netsuite
body: <p>I am trying to add a Mark all/Unmark all button in sub-list which is a type of inline-editor sub-list. below I have added a code for list type sub-list which will not work on inline-editor sub-list. Can anyone help to find this?</p>
  
  <pre><code>function button1Func(type) {
  if (type=='edit' || 'view')
      {
          var record =  nlapiLoadRecord(nlapiGetRecordType(), nlapiGetRecordId());
          var intCount = record.getLineItemCount('item');
          var headrow = document.getElementById("item_headerrow");
          var head = headrow.insertCell(0);
          head.innerHTML ="Select";
          for (var rep = 1; rep &lt;= intCount; rep++)
              {
                  var row = document.getElementById("item_row_"+rep);
                  var x = row.insertCell(0);
                  var newCheckbox = document.createElement("INPUT");
                  newCheckbox.setAttribute("type", "checkbox");
                  newCheckbox.setAttribute("id", "select_CheckBox"+rep);
                  x.appendChild(newCheckbox);
              }
      }
   }
  
  function button2Func(type) {
  if (type=='edit' || 'view')
      {
          var record =  nlapiLoadRecord(nlapiGetRecordType(), nlapiGetRecordId());
          var intCount = record.getLineItemCount('item');
          for (var rep = 1; rep &lt;= intCount; rep++)
              {
                  var repId = record.getLineItemValue('item', 'item', rep);
                  if(document.getElementById("select_CheckBox"+rep).checked==true){
                      makecopyfun(repId);
                  }
                  else
                  {
                      continue;
                  }
              }
          alert("Success");
      }
  }
  
   function makecopyfun(repId){
     var record =  nlapiLoadRecord(nlapiGetRecordType(), nlapiGetRecordId());
    var intCount = record.getLineItemCount('item');
    record.insertLineItem('item',intCount + 1);
    alert (intCount);
    record.setCurrentLineItemValue('item','item',repId);
    record.commitLineItem('item');
    var id = nlapiSubmitRecord(record, true);
   }
  </code></pre>