How customize JobTitle attribute
Hi, I want to modify JobTitle attribute from a text box to a DropDown list where I could choice within a defined set of options. I did that: - In attrbute schema, I filled the string model box of the validation tab with this string, for example: ^(xxx|yyy|zzz|ccc|bbb|nnn|hhh)?$ - I did the same for the string model box of the validation tab of binding settings; - On the target resource tab of "Administrators can read and updates Users" policy rule, all attributes is selected for Resource Attributes box. - I modify the RCDC for User Editing. Administration -> Resource Control Display Configuration-> Configuration for user editing RCDC. - I exported xml configuration file and I modified JobTitle section with these tags: <my:Control my:Name="JobTitle" my:TypeName="UocDropDownList" my:Caption="{Binding Source=schema, Path=JobTitle.DisplayName}" my:Description="{Binding Source=schema, Path=JobTitle.Description}" my:RightsLevel="{Binding Source=rights, Path=JobTitle}"> - <my:Properties> <my:Property my:Name="Required" my:Value="{Binding Source=schema, Path=JobTitle.Required}" /> <my:Property my:Name="Columns" my:Value="40" /> <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="{Binding Source=schema, Path=JobTitle, Mode=OneWay}" /> <my:Property my:Name="SelectedValue" my:Value="{Binding Source=object, Path=JobTitle, Mode=TwoWay}" /> </my:Properties> </my:Control> and reimported the file. I reset also the server but when I create a user I notice again a text box. How do it? Thank you very much. PS: I have no users except for administrator and built in sync account.
September 23rd, 2011 2:11pm

Put the option values in Options section and set the ItemSource to Custom. <!--Sample for drop-down list control--> <my:Control my:Name="Scope" my:TypeName="UocDropDownList" my:Caption="{Binding Source=schema, Path=Scope.DisplayName}" my:RightsLevel="{Binding Source=rights, Path=Scope}"> <my:Options> <my:Option my:Value="DomainLocal" my:Caption="Domain Local" my:Hint="to secure a local resource (i.e. a file share on your computer)" /> <my:Option my:Value="Global" my:Caption="Global" my:Hint="to secure resources across your team or division" /> <my:Option my:Value="Universal" my:Caption="Universal" my:Hint="to use this group across your organization" /> </my:Options> <my:Properties> <my:Property my:Name="Required" my:Value="{Binding Source=schema, Path=Scope.Required" /> <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=Scope, Mode=TwoWay}" /> </my:Properties> </my:Control> <!--End of Sample for drop-down list control-->Eric
Free Windows Admin Tool Kit Click here and download it now
September 23rd, 2011 9:49pm

Thank you for your reply Eric. I modified xml file following your instructions, imported the file and, when I clicked "Submit", in the Summary window "Processing the request failed: Unknown Error" message appears..
September 24th, 2011 5:27am

Hi. Unfortunately, I'm not yet able to resolv the problem. I followed this article http://www.wapshere.com/missmiis/listing-choices-in-rcdc-dropdowns but Fim answer everytime with the "Processing the request failed: Unknown Error" message. Could it be a problem about permissions? (Maybe not, given that I'm able to modify a letter of a country code, for example, into the xml file without problems). Or a problem about the xml syntax? I don't understund.. Moreover, there is the same problem for a NEW attribute that I have done (AccountStatus. I want a DropDownList with Active/Inactive choices). Thanks in advance.
Free Windows Admin Tool Kit Click here and download it now
September 25th, 2011 12:15pm

Most probably an error in your RCDC. Go back to the last-known-good version and then build it back to where you want it to be, making sure you: - only make one change at a time, - keep a copy of each working version, - recycle the Sharepoint(80) app pool between each change. http://www.wapshere.com/missmiis
September 25th, 2011 8:34pm

I resolved in this way: - export configuration.xml file; - modify the xml file in Visual Studio; - copy xml file rows; - click Advanced View of Configuration for User Editing, Extended attributes tab, delete xml tags of Configuration Data and paste our tags. - launch iisreset. It works! But the DropDownList appears only when I modify a user. When I create a user, the DropDownList become a TextBox and I can't choice :( What solution could there be? PS: For Configuration for User Editing I checked also Applies to Create and Applies to Show but nothing happens. Please help me. Thank you in advance and also for the last reply.
Free Windows Admin Tool Kit Click here and download it now
September 27th, 2011 7:03am

Do you still have another RCDC that applies to create (i.e. "Configuration for User Creation")? I've never tried having two RCDCs that applied to the same operation...not sure how (or if) FIM would decide which one to use. Try an Advanced Search and look for "Applies to Create" is "true" and "Target Resource Type" is "Person". Make sure the only result is the one you want to see. Make sure you clear your browser cache whenever you do the iisreset. I don't know if it is required, but I have seen some things not update even when I would expect them to after an iisreset.
September 27th, 2011 9:24am

Perfect! There is a RCDC called "Configuration for Group Creation" but its target resource is Person! Maybe it's a localization problem because the configuration.xml file is effectively for user creation. I have just written my customization into the file and it works perfectly :) THANK YOU!
Free Windows Admin Tool Kit Click here and download it now
September 27th, 2011 10:04am

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

Other recent topics Other recent topics