UocDropDownList in RC1
has anyone tried to use the UocDropDownList in Resource ControlDisplay Configuration in RC1. I am trying to modify the "User Creation" xml to include a UocDropDownList that i was using in RC0 but it keeps telling me there is an error in teh configuration of the xml file. Any idea? this is the UocDropDownList configuration that i am putting:<my:Control my:Name="Country-Branch" my:TypeName="UocDropDownList" my:Caption="{Binding Source=schema, Path=Country-Branch.DisplayName}" my:Description="{Binding Source=schema, Path=Country-Branch.Description}"><my:Options> <my:Option my:Value="Lebanon-Beirut" my:Caption="Lebanon-Beirut" my:Hint="" /> <my:Option my:Value="Lebanon-Jdeideh" my:Caption="Lebanon-Jdeideh" my:Hint="" /> </my:Options> <my:Properties> <my:Property my:Name="Required" my:Value="True"/> <my:Property my:Name="ValuePath" my:Value="Value"/> <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=Country-Branch, Mode=TwoWay}"/> </my:Properties> </my:Control>MM
October 27th, 2009 1:09pm

Hi! The release note s states the following: Default value in many Resource Control Display Configuration controls is not supported In this release, setting default values in controls in Resource Control is not supported except for radio button control. You can work around this problem for drop down box by specifying a default value that is not associated with any value to force customer to change the selection. To work around this problem with other controls, you have to use a authorization workflow to supply a default value during submission of the request. So maybe if you remove the SelectedValue property and add an empty option it should work... //Henrik Henrik Nilsson Blog: http://www.idmcrisis.com Company: Cortego (http://www.cortego.se)
Free Windows Admin Tool Kit Click here and download it now
October 27th, 2009 1:34pm

Thank you Henrik for your reply. i have tried what you suggested and i have put: <my:Control my:Name="Country-Branch" my:TypeName="UocDropDownList" my:Caption="{Binding Source=schema, Path=Country-Branch.DisplayName}" my:Description="{Binding Source=schema, Path=Country-Branch.Description}"><my:Options> <my:Option my:Value="" my:Caption="" my:Hint="" /> <my:Option my:Value="lebanon-jdeideh" my:Caption="lebanon-jdeideh" my:Hint="" /> <my:Option my:Value="lebanon-beirut" my:Caption="lebanon-beirut" my:Hint="" /> </my:Options> <my:Properties> <my:Property my:Name="Required" my:Value="True"/> <my:Property my:Name="ValuePath" my:Value="Value"/> <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:Properties> </my:Control>still same error. any idea?MM
October 29th, 2009 3:07pm

Hi! I've looked at how RCDC are done for the pages coming with FIM and couldn't find anything strange with your configuration but after having a look at the RCDC XML reference I found this regarding the Value of the Option controls: Value: This is a required attribute of string type. The value attribute must be unique within the same control. Only regular A-Z case insensitive characters can be used . ...So you must probably remove the "-" in your values. What I said before about the SelectedValue seems to be false, you can still use that in order to set the value for change but as the text in the release note s say you could have an empty value as you've already solved it unless you wish to force your users to make a choice. //Henrik Henrik Nilsson Blog: http://www.idmcrisis.com Company: Cortego (http://www.cortego.se)
Free Windows Admin Tool Kit Click here and download it now
October 29th, 2009 4:12pm

i have put this instead of i what using in order to use a built-in attribute with simple values. <my:Control my:Name="Department" my:TypeName="UocDropDownList" my:Caption="{Binding Source=schema, Path=Department.DisplayName}" my:RightsLevel="{Binding Source=rights, Path=Department}"> <my:Options> <my:Option my:Value="" my:Caption="" my:Hint=""/> <my:Option my:Value="test" my:Caption="test" my:Hint=""/> <my:Option my:Value="testing" my:Caption="testing" my:Hint=""/> </my:Options> <my:Properties> <my:Property my:Name="Required" my:Value="true"/> <my:Property my:Name="ValuePath" my:Value="Value"/> <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=Department, Mode=TwoWay}"/> </my:Properties> </my:Control>i have removed the default control for the department field which was a text box and replaced it by this one.. still no luck. i have also looked at the RCDC for group creation and the scope object is a dropdownlist and they are using it the same way as i am. i can add any other control to the user creation RCDC but not a dropdownlist.Thanks for your help MM
October 29th, 2009 4:22pm

Crazy but after a lot of testing and a successful validation against the schema I managed to get your last example to work after making the t in True for the required property value capital. <my:Property my:Name="Required" my:Value="T rue"/> I also removed the my:RightsLevel="{Binding Source=rights, Path=Department}" and when I added it again it didn't work. Here's my complete example that I managed to get working: <my:Control my:Name="Department" my:TypeName="UocDropDownList" my:Caption="{Binding Source=schema, Path=Department.DisplayName}"> <my:Options> <my:Option my:Value="empty" my:Caption="Choose value" my:Hint="Test1"/> <my:Option my:Value="test" my:Caption="test" my:Hint="Test2"/> <my:Option my:Value="test2" my:Caption="test2" my:Hint="Test3"/> </my:Options> <my:Properties> <my:Property my:Name="Required" my:Value="True"/> <my:Property my:Name="ValuePath" my:Value="Value"/> <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=Department, Mode=TwoWay}"/> </my:Properties> </my:Control> Henrik Nilsson Blog: http://www.idmcrisis.com Company: Cortego (http://www.cortego.se)
Free Windows Admin Tool Kit Click here and download it now
October 29th, 2009 5:40pm

Really crazy...it worked. Thanks a million Henrik!!MM
October 29th, 2009 5:47pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics