none
Nested Visibility in RCDC RRS feed

  • Question

  • Hi,

    I am trying to achieve something as below:

    There is a checkbox control and only when user selects the checkbox, he should be presented with another control which is Radio Button with 2 options available, Ex:A and B. Now when user selects B option, he should be presented with another control which is a checkbox option.

    Is this possible?

    I tried something as below, but doesn't seem to be working. None of the Radio Button options are selected when the page is loaded, even though I am setting default value to False.

    <my:Control my:Name="CheckBox1" my:TypeName="UocCheckBox" my:Caption="{Binding Source=schema, Path=CheckBox1.DisplayName}" my:Description="{Binding Source=schema, Path=CheckBox1.Description}" my:RightsLevel="{Binding Source=rights, Path=CheckBox1}"  my:AutoPostback="true">
            <my:Properties>
              <my:Property my:Name="ReadOnly" my:Value="false" />
              <my:Property my:Name="Checked" my:Value="{Binding Source=object, Path=CheckBox1, Mode=TwoWay}" />
              <!--<my:Property my:Name="Text" my:Value="%SYMBOL_CheckBox1_END%" />-->
              <my:Property my:Name="Hint" my:Value="{Binding Source=schema, Path=CheckBox1.Hint}" />
            </my:Properties>
    </my:Control>

    <my:Control my:Name="RadioButtonOption" my:TypeName="UocRadioButtonList" my:Caption="%SYMBOL_RadioButtonOption_END%" my:Description="{Binding Source=schema, Path=RadioButtonOption.Description}" my:Visible="{Binding Source=object, Path=CheckBox1}" my:AutoPostback="true">
    <my:Options>
              <my:Option my:Value="False" my:Caption="Option1" my:Hint="Option1"/>
              <my:Option my:Value="True" my:Caption="Option2" my:Hint="Option2"/>
            </my:Options>
    <my:Properties>
    <my:Property my:Name="Required" my:Value="{Binding Source=schema, Path=RadioButtonOption.Required}"/>
              <my:Property my:Name="DefaultValue" my:Value="False"/>
              <my:Property my:Name="CaptionPath" my:Value="Caption"/>
              <my:Property my:Name="HintPath" my:Value="Hint"/>
              <my:Property my:Name="ItemSource" my:Value="Custom"/>
              <my:Property my:Name="SelectedValue" my:Value="{Binding Source=object, Path=RadioButtonOption, Mode=TwoWay}"/> 
      </my:Properties>
      </my:Control>

    Kindly Help!!

    Thanks,


    Veena

    Wednesday, September 21, 2016 9:08 AM

All replies

  • Hi Veena,

    We've never found a way of making it work.  In fact the only way we've managed to get that level of interaction is by building a custom web application, embedding it in a frame in FIM/MIM, and it communicating directly with the FIM/MIM service.

    Thanks,

    Paul.

    Wednesday, September 21, 2016 2:42 PM
  • Hello,

    I did this on my custom helpdesk password reset group, I have a checkbox, which when it is checked shows more controls, also a simple radio button.

    It looks like this:

    Here is my xml of that grouping:

    		<my:Grouping my:Name="ResetPassword" my:Caption="%SYMBOL_PasswordResetTabCaption_END%" my:Enabled="true" my:Visible="true">
    			<my:Control my:Name="AccountLocked" my:TypeName="UocSimpleRadioButton" my:Caption="{Binding Source=schema, Path=AccountLocked.DisplayName}" my:RightsLevel="{Binding Source=rights, Path=AccountLocked}">
    				<my:Properties>
    					<my:Property my:Name="FalseText" my:Value="%SYMBOL_ResetPasswordFalseText_END%" />
    					<my:Property my:Name="TrueText" my:Value="%SYMBOL_ResetPasswordTrueText_END%" />
    					<my:Property my:Name="SelectedItem" my:Value="{Binding Source=object, Path=AccountLocked, Mode=TwoWay}" />
    					<my:Property my:Name="ReadOnly" my:Value="true" />
    				</my:Properties>
    			</my:Control>
    			<my:Control my:Name="pwdLastSet" my:TypeName="UocDateTimeControl" my:Caption="{Binding Source=schema, Path=pwdLastSet.DisplayName}" my:RightsLevel="{Binding Source=rights, Path=pwdLastSet}">
    				<my:Properties>
    					<my:Property my:Name="Required" my:Value="{Binding Source=schema, Path=pwdLastSet.Required}" />
    					<my:Property my:Name="Value" my:Value="{Binding Source=object, Path=pwdLastSet, Mode=TwoWay}" />
    					<my:Property my:Name="ReadOnly" my:Value="true" />
    				</my:Properties>
    			</my:Control>
    			<my:Control my:Name="UnlockAccount" my:TypeName="UocSimpleRadioButton" my:Caption="{Binding Source=schema, Path=UnlockAccount.DisplayName}" my:RightsLevel="{Binding Source=rights, Path=UnlockAccount}">
    				<my:Properties>
    					<my:Property my:Name="FalseText" my:Value="%SYMBOL_RadioBoxFalseText_END%" />
    					<my:Property my:Name="TrueText" my:Value="%SYMBOL_RadioBoxTrueText_END%" />
    					<my:Property my:Name="SelectedItem" my:Value="{Binding Source=object, Path=UnlockAccount, Mode=TwoWay}" />
    				</my:Properties>
    			</my:Control>
    			<my:Control my:Name="ChangeUserPassword" my:TypeName="UocCheckBox" my:Caption="{Binding Source=schema, Path=ChangeUserPassword.DisplayName}" my:RightsLevel="{Binding Source=rights, Path=ChangeUserPassword}" my:AutoPostback="true">
    				<my:Properties>
    					<my:Property my:Name="Checked" my:Value="{Binding Source=object, Path=ChangeUserPassword, Mode=TwoWay}" />
    				</my:Properties>
    			</my:Control>
    			<my:Control my:Name="ResetPasswordAdmin" my:TypeName="UocTextBox" my:Caption="{Binding Source=schema, Path=ResetPasswordAdmin.DisplayName}" my:RightsLevel="{Binding Source=rights, Path=ResetPasswordAdmin}" my:Hint="%SYMBOL_NewPasswordHint_END%" my:Visible="{Binding Source=object, Path=ChangeUserPassword, Mode=TwoWay}">
    				<my:Properties>
    					<my:Property my:Name="Required" my:Value="true" />
    					<my:Property my:Name="Columns" my:Value="34" />
    					<my:Property my:Name="MaxLength" my:Value="128" />
    					<my:Property my:Name="Text" my:Value="{Binding Source=object, Path=ResetPasswordAdmin, Mode=TwoWay}" />
    				</my:Properties>
    			</my:Control>
    			<my:Control my:Name="ChangePasswordOnLogon" my:TypeName="UocSimpleRadioButton" my:Caption="{Binding Source=schema, Path=ChangePasswordOnLogon.DisplayName}" my:RightsLevel="{Binding Source=rights, Path=ChangePasswordOnLogon}" my:Hint="%SYMBOL_ChangePasswordOnLogonHint_END%" my:Visible="{Binding Source=object, Path=ChangeUserPassword, Mode=TwoWay}">
    				<my:Properties>
    					<my:Property my:Name="FalseText" my:Value="%SYMBOL_RadioBoxFalseText_END%" />
    					<my:Property my:Name="TrueText" my:Value="%SYMBOL_RadioBoxTrueText_END%" />
    					<my:Property my:Name="SelectedItem" my:Value="{Binding Source=object, Path=ChangePasswordOnLogon, Mode=TwoWay}" />
    				</my:Properties>
    			</my:Control>
    		</my:Grouping>
    

    /Peter


    Peter Stapf - ExpertCircle GmbH - My blog: JustIDM.wordpress.com

    Friday, September 23, 2016 6:32 AM