Tuesday, February 10, 2015

Disable Sub grid

function VisibleGunTransactionEntries() {
var statusreason=Xrm.Page.data.entity.attributes.get("statuscode");
var reason = statusreason.getValue();
if (reason != 170000000) {

var objNavItem = Xrm.Page.ui.navigation.items.get("nav_jmh_jmh_guntransaction_jmh_guntransactionentry_guntransaction");
objNavItem.setVisible(false);
disableSubgrid('subgrid1');
}
}
function disableSubgrid(subgridName) {
document.getElementById(subgridName + "_span").disabled = "true";
}

No comments:

Post a Comment

How to Deploy your API as a web app or API app

  Before you can call your custom API from a logic app workflow, deploy your API as a web app or API app to Azure App Service. To make your ...