Modifying the Employee Type Pattern String
I would like to add another value to the 'pattern string', such as Student, and was wondering what the steps are to do this. I have already tried updating the 'pattern string' but something seems to be missing. When I double click on a user I can see the new value in the drop down box but when I select it and submit the request and then look at the details, employee type is blank. If I select any of the others it works as expected.
March 19th, 2010 11:32pm

Have you modified the employee Type pattern on the Attribute object and on the Bind Object ? If you just modify the bind, the new value appear on the RCDC, but if you don't mention it on the attribute object itself, it can't recognize the value and keep it not set.
Free Windows Admin Tool Kit Click here and download it now
March 20th, 2010 12:38am

Yes, I've modified the Employee Type Attribute object and the Employee Type bound to the User object.
March 20th, 2010 4:34am

You need to modify the pattern string on binding as well inaddition to atttribute.
Free Windows Admin Tool Kit Click here and download it now
March 26th, 2010 5:22pm

Yes, as I mentioned before I modified it on the attribute and the bnding. No problems seeing the updated pattern string in the drop down box when editing the user but in details view it is not visible.
March 30th, 2010 6:54pm

Have you performed iisreset after editing attribute and binding? - Sri
Free Windows Admin Tool Kit Click here and download it now
March 30th, 2010 10:09pm

Yes, because the system has been rebooted.
April 3rd, 2010 11:08am

The reply by Michael Franck did not resolve the problem. For some reason, when you add validation string patterns to the Employee Type attribute and the binding to the user object the values are not shown in the details view of the user. When you edit the user, a drop down list is presented with the add values but when you select it and then review via details it is not shown. Select any of the default values and it works as expected. This may be the same for other attributes. I've only modified the Employee Type attribute.
Free Windows Admin Tool Kit Click here and download it now
April 3rd, 2010 11:16am

You say that you can't see the value on the details. By that do you mean the summary that is shown before saving your change ? If you confirm the change then select the user again, is the value correct or is ther no value set for the employeeType ? Also do you use the administrator or another account to save the change ?
April 3rd, 2010 5:45pm

This is easy to repeat: Under Schema Management on the Portal, modify both the Employee Type attribute and the Employee Type bound to the user object to include "Student" in the Validation Sring Pattern. Goto Users and then double click on the user. This will bring the user up in edit mode. Select the Work Info tab and then select the Employee Type drop down box. You should notice the newly added Student entry. Select this entry and save. Now, click the check box on the user and select Details. Goto the Work Info tab and look at the Employee Type field. For me it is blank. If I go back and select "Contractor" it will show up in the Employe Field when viewed as "Details". Why?
Free Windows Admin Tool Kit Click here and download it now
April 3rd, 2010 9:42pm

You are correct, it isn't visible! I had a look at the RCDC's for the view mode and compared it to the edit mode... Edit mode: <my:Control my:Name="EmployeeType" my:TypeName="UocDropDownList" my:Caption="{Binding Source=schema, Path=EmployeeType.DisplayName}" my:Description="{Binding Source=schema, Path=EmployeeType.Description}" my:RightsLevel="{Binding Source=rights, Path=EmployeeType}"> <my:Properties> <my:Property my:Name="Required" my:Value="{Binding Source=schema, Path=EmployeeType.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="{Binding Source=schema, Path=EmployeeType.LocalizedAllowedValues}" /> <my:Property my:Name="SelectedValue" my:Value="{Binding Source=object, Path=EmployeeType, Mode=TwoWay}" /> </my:Properties> </my:Control> View Mode: <my:Control my:Name="EmployeeType" my:TypeName="UocLabel" my:Caption="{Binding Source=schema, Path=EmployeeType.DisplayName}" my:Description="{Binding Source=schema, Path=EmployeeType.Description}" my:RightsLevel="{Binding Source=rights, Path=EmployeeType}"> <my:Properties> <my:Property my:Name="Text" my:Value="{Binding Source=object, Path=EmployeeType.EnumerationString}" /> </my:Properties> </my:Control> The problem here is a bug in the RCDC in the view mode where it says "EmployeeType.EnumerationString" instead of simply "EmployeeType" as Path. You could simply fix this in your own "Configuration for User Viewing" RCDC. I've tested it and it works on the original values as well as for "Student". //Henrik Henrik Nilsson Blog: http://www.idmcrisis.com Company: Cortego (http://www.cortego.se)
April 4th, 2010 12:23am

Well I'm working on a VH wich as been upgrade from RC1 to RTM passing all the update and having no problem with this. Does it means it is a problem on the RTM version ?
Free Windows Admin Tool Kit Click here and download it now
April 4th, 2010 12:43am

In that case it seems like this is an RTM only problem... I'm just about to file this as a minor bug. //HenrikHenrik Nilsson Blog: http://www.idmcrisis.com Company: Cortego (http://www.cortego.se)
April 4th, 2010 12:45am

But SBMoor says that if it changes back to contractor it can be viewed in the details view. In this case, it means that the EmployeeType.EnumerationString does not take care of the new value specified for the bind and attribute. Is the EmployeeType.EnumartionString fix in this case ?
Free Windows Admin Tool Kit Click here and download it now
April 4th, 2010 12:51am

I'm not sure what the EmployeeType.EnumerationString is except it seems to work for the original values, After removing the EnumerationString part it works with custom values as well. Bug is filed: https://connect.microsoft.com/site433/feedback/details/548482/minor-bug-for-employeetype-in-rtm-configuration-for-user-viewing-rcdc //Henrik Henrik Nilsson Blog: http://www.idmcrisis.com Company: Cortego (http://www.cortego.se)
April 4th, 2010 12:54am

Thanks Henrik. I thought I was going crazy. I've never updated the RCDC. To do this I just export the configuration for the "Configuration for User Viewing" RCDC, update the file as follows. <my:Control my:Name="EmployeeType" my:TypeName="UocLabel" my:Caption="{Binding Source=schema, Path=EmployeeType.DisplayName}" my:Description="{Binding Source=schema, Path=EmployeeType.Description}" my:RightsLevel="{Binding Source=rights, Path=EmployeeType}"> <my:Properties> <my:Property my:Name="Text" my:Value="{Binding Source=object, Path=EmployeeType}" /> </my:Properties> </my:Control> and then import it back in?
Free Windows Admin Tool Kit Click here and download it now
April 4th, 2010 4:21am

Yes! That's pretty much it but keep a copy of the original in case something goes wrong. //HenrikHenrik Nilsson Blog: http://www.idmcrisis.com Company: Cortego (http://www.cortego.se)
April 4th, 2010 12:30pm

Problem solved! Thanks again Henrik. Bruce
Free Windows Admin Tool Kit Click here and download it now
April 4th, 2010 6:58pm

Not sure why this is showing as "Unmarked As Answer by SBMoore". I had proposed it as the answer.
April 5th, 2010 10:35am

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

Other recent topics Other recent topics