Wednesday 14 June 2023

Read Values from SubGrid through JavaScript

   var gridContext = formContext.getControl("Subgrid_new_Applications");



      

            var appRows = gridContext.getGrid().getRows();


            //var RowCount = appRows.getLength();


        appRows.forEach(function (row, i) {

            var gridColumns = row.data.entity.attributes;

            console.log("Application Id =" + row.data.entity.getId());

            gridColumns.forEach(function (column, j) {

                var atrName = column.getName();

                var atrValue = column.getValue();

                console.log(atrName + ":" + atrValue);

            });


        });

No comments:

Post a Comment

Hide New... button on lookup controls in model-driven apps

  The 'New ...' button is shown upon opening the lookup search dialog whenever the logged in user has at least user create privileg...