Quantcast
Channel: Forum Microsoft Identity Manager
Viewing all articles
Browse latest Browse all 4767

Building a dependable DropDownList in Create User RCDC. where is the depends-on value stored?

$
0
0

Trying out the XmlDataSource block with 2 dependable DropDownLists.

I have 2 Divisions: Div1 and Div2. I want to populate my Countries DropDownList depending on my choice of Division.

The countries XmlDataSource is easy.

<my:XmlDataSource my:Name="countries">
  <Countries>
    <Div1>
      <CountryName Code="Finland" Name="Finland"/>

      <CountryName Code="Sweden" Name="Sweden"/>

    </Div1>

    <Div2>
      <CountryName Code="Greece" Name="Greece"/>
      <CountryName Code="Ireland" Name="Ireland"/>
    </Div2>
  </Countries>
</my:XmlDataSource>

However using it is not so easy.

My CountryName control is

<my:Control my:Name="CountryName" my:TypeName="UocDropDownList" my:Caption="{Binding Source=schema, Path=CountryName.DisplayName}" my:Description="{Binding Source=schema, Path=CountryName.Description}">
        <my:Properties>
          <my:Property my:Name="Required" my:Value="{Binding Source=schema, Path=CountryName.Required}"/>
          <my:Property my:Name="Columns" my:Value="40"/>
          <my:Property my:Name="ValuePath" my:Value="@Code"/>
          <my:Property my:Name="CaptionPath" my:Value="@Name"/>
          <my:Property my:Name="HintPath" my:Value="Hint"/>
          <my:Property my:Name="ItemSource" my:Value="{Binding Source=countries, Path=/Countries/<what goes here??>/*, Mode=OneWay}"/>
          <my:Property my:Name="SelectedValue" my:Value="{Binding Source=object, Path=CountryName, Mode=TwoWay}"/>
        </my:Properties>
      </my:Control>

If I plug the fixed text Div1 into my Path e.g. Path=/Countries/Div1/* I see (even before I enter my choice of Division) the available countries as Finland and Sweden. But I want to push the dynamically selected value of Division into my path. %Attribute_Division% doesnt seem to help me. Hopefully this value is available in some meta-data in the RCDC form..

What is the trick to push that value just picked off the list into a dependent DropDownLists source path??


Viewing all articles
Browse latest Browse all 4767

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>