Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By Zora99
#825731
How to unset required field inside a grid based on dropdown value?
Code: Select all
function set_jenis_dokumen(){
  var aGridVals = $('#allItem').getValue();
	//loop through grid
    for (var i = 1; i <= aGridVals.length; i++) {
      var jenis_dokumen = $("#allItem").getValue(i, 25);
      if(jenis_dokumen == 4){
        $("#allItem").getControl(i, 26).showColumn();
        $("#allItem").getControl(i, 27).showColumn();
        $("#allItem").getControl(i, 28).hideColumn();
        $("#allItem").getControl(i, 26).attr("disabled", false);
        $("#allItem").getControl(i, 27).attr("disabled", false);
        $("#allItem").getControl(i, 28).attr("disabled", true);
      }else if(jenis_dokumen == 3){
        $("#allItem").getControl(i, 26).showColumn();
        $("#allItem").getControl(i, 27).showColumn();
        $("#allItem").getControl(i, 28).hideColumn();
        $("#allItem").getControl(i, 26).attr("disabled", false);
        $("#allItem").getControl(i, 27).attr("disabled", false);
        $("#allItem").getControl(i, 28).attr("disabled", true);
      }
      else if(jenis_dokumen == 2){
        $("#allItem").getControl(i, 26).showColumn();
        $("#allItem").getControl(i, 27).showColumn();
        $("#allItem").getControl(i, 28).showColumn();
        $("#allItem").getControl(i, 26).attr("disabled", false);
        $("#allItem").getControl(i, 27).attr("disabled", false);
        $("#allItem").getControl(i, 28).attr("disabled", false);
      }
      else if(jenis_dokumen == 1){
       	$("#allItem").getControl(i, 26).hideColumn();
        $("#allItem").getControl(i, 27).hideColumn();
        $("#allItem").getControl(i, 28).hideColumn();
        $("#allItem").getControl(i, 26).attr("disabled", true);
        $("#allItem").getControl(i, 27).attr("disabled", true);
        $("#allItem").getControl(i, 28).attr("disabled", true);
      }
    }
}

Sending documents as base64 worked the last time I[…]

I don't see those problems using PM 3.3.10 Communi[…]

Tengo el mismo problema con el MultipleFile, inten[…]

Getting this error

_ERROR_ : The row '3149943815d31b85fdf39650326697[…]