Revert "Adding XRM v8.2 features"

This reverts commit 65d062de61c4d7e014d73420c28e0999ab8f6c9d.
This commit is contained in:
clownwilleatme
2017-02-07 17:57:27 +11:00
parent 28634dc884
commit fe372f86ad
2 changed files with 124 additions and 731 deletions
+123 -705
View File
File diff suppressed because it is too large Load Diff
+1 -26
View File
@@ -75,8 +75,7 @@ Xrm.Utility.openQuickCreate("account").then(( object ) => { if (object) alert( `
/// Make all controls visible.
// Xrm.Page.ui.controls.forEach(( control ) => { control.setVisible( true ); }); // No longer works
Xrm.Page.ui.controls.forEach((control: Xrm.Page.StandardControl) => { control.setVisible(true); }); // Must cast to StandardControl
Xrm.Page.ui.controls.forEach(( control ) => { control.setVisible( true ); });
/// Make all tabs and sections visible.
@@ -167,28 +166,4 @@ autoCompleteControl.hideAutoComplete();
/// Demonstrate v8.2 quick form controls
const quickForm = Xrm.Page.ui.quickForms.get(0);
quickForm.getControlType(); // == "quickform"
quickForm.getName();
quickForm.getParent();
quickForm.getVisible(); // From UiCanSetVisibleElement
quickForm.getLabel(); // From UiLabelElement
quickForm.setLabel("Label"); // From UiLabelElement
quickForm.refresh();
// Get standard control
const ctrl = Xrm.Page.getControl<Xrm.Page.StandardControl>("controlName");
ctrl.getControlType()
ctrl.getName();
ctrl.getParent();
ctrl.getLabel();
ctrl.setLabel("Label name");
ctrl.getVisible();
ctrl.setVisible(true);