MIM — Group RCDC customization with OnChangeEmailEnabling event

Alexander Filipin
AlexFilipin
Published in
2 min readApr 4, 2018

The hotfix rollup package (build 4.3.2266.0) for MIM 2016 introduced the ability to extend the list of attributes which are shown or hidden based on the state of the email-enabling checkbox. Research on the event would most likely point you to this aged TechNet article suggesting changes to the JavaScript. The following customization works, however, only for this exact event.

The “OnChangeEmailEnabling” event may have a parameters attribute containing a comma-separated, case-sensitive list of controls to show or hide.

<my:Event my:Name="CheckedChanged" my:Handler="OnChangeEmailEnabling" my:Parameters="Alias,Email"/>

Example with EmailEnabling, Alias and Email control

Unchecked
Checked
<my:Control my:Name="EmailEnabling" my:TypeName="UocCheckBox" my:Caption="%SYMBOL_EmailEnablingCaption_END%" my:Description="%SYMBOL_EmailEnablingDescription_END%" my:AutoPostback="true" my:RightsLevel="{Binding Source=rights, Path=Email}">
<my:Properties>
<my:Property my:Name="Text" my:Value="%SYMBOL_EmailEnablingValue_END%"/>
</my:Properties>
<my:Events>
<my:Event my:Name="CheckedChanged" my:Handler="OnChangeEmailEnabling" my:Parameters="Alias,Email"/>
</my:Events>
</my:Control>
<my:Control my:Name="Alias" my:TypeName="UocTextBox" my:Caption="{Binding Source=schema, Path=MailNickname.DisplayName}" my:RightsLevel="{Binding Source=rights, Path=MailNickname}">
<my:Properties>
<my:Property my:Name="Required" my:Value="true"/>
<my:Property my:Name="HintPath" my:Value="Hint"/>
<my:Property my:Name="Text" my:Value="{Binding Source=object, Path=MailNickname, Mode=TwoWay}"/>
<my:Property my:Name="MaxLength" my:Value="128"/>
<my:Property my:Name="RegularExpression" my:Value="{Binding Source=schema, Path=MailNickname.StringRegex}"/>
</my:Properties>
</my:Control>
<my:Control my:Name="Email" my:TypeName="UocTextBox" my:Caption="{Binding Source=schema, Path=Email.DisplayName}" my:RightsLevel="{Binding Source=rights, Path=Email}">
<my:Properties>
<my:Property my:Name="Required" my:Value="true"/>
<my:Property my:Name="HintPath" my:Value="Hint"/>
<my:Property my:Name="Text" my:Value="{Binding Source=object, Path=Email, Mode=TwoWay}"/>
</my:Properties>
</my:Control>

--

--