Thursday, 29 July 2021

execution context javascript

  function versteckeFeld(executionContext){

        var formContext = executionContext.getFormContext();

        if (formContext.getAttribute("salutation").getValue() == null)
        {
            var name = formContext.ui.controls.get("new_geschlecht");
            name.setVisible(false);
        }
        else 
        {
            var name = formContext.ui.controls.get("new_geschlecht");
            name.setVisible(true);
        }
    }
var controls = Xrm.Page.ui.controls.get(); //
for (var i in controls) {
var control = controls[i];
if (control.getName="fieldAttributeName") {
control.setDisabled(false);
}
}

No comments:

Post a Comment

Flow: how to change the style of your HTML table in Microsoft Flow

I built an HTML table in Flow and now I want to change its style. I want to add CSS style to the table rows. If we look at the  Data Operati...