1 Reply Latest reply on Jan 11, 2019 1:54 PM by Mahmoud_Rabie

    APEX 18.2 Interactive grid, column total value into page item (JavaScript)

    Fernando Lima

      Hello, I need get the total of column values and set the total value into page item.

      Before I used to use

       

      var model = apex.region("GRID_ID").widget().interactiveGrid("getViews", "grid").model;

      var detValueKey = model.getFieldKey("COLUMN");

      var total = 0;

       

      model.forEach(function(r){

              var row_val=parseFloat(r[detValueKey]);

              total+=row_val;

      });

      alert(total);

       

       

      When I upgraded to Apex 18.2 version, this javascript code didn't work.