RCDC - Display attribute of reference
I am trying to edit my 'Edit User' RCDC config so that it shows the user's assistant's telephone number on the page. Is this possible? I have added the following to the RCDC, but the Assistant Telephone textbox remains blank even if the user has an assistant selected and the assistant has a 'WorkTelephone' set. <my:Control my:Name="TelephoneAssistant" my:TypeName="UocTextBox" my:Caption="Assistant's Telephone" my:Description="{Binding Source=schema, Path=Assistant.WorkTelephone.Description}" my:RightsLevel="{Binding Source=rights, Path=Assistant.WorkTelephone}"> <my:Properties> <my:Property my:Name="Required" my:Value="false"/> <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=Assistant.WorkTelephone, Mode=TwoWay}"/> </my:Properties> </my:Control> I have also added "WorkTelephone" to the MPR: "Users can read selected attributes of other users" Thanks, Mark
February 8th, 2010 11:14pm

Hi Mark,To be able to view the assistant phone number, we should query for the user's assistant. UocTextBox does not have this capability. You can use UocListView for this, <my:Control my:Name="AssistantTelePhone" my:TypeName="UocListView" my:Caption="Assistant Phone Number" my:ExpandArea="true"> <my:Properties> <my:Property my:Name="ColumnsToDisplay" my:Value="DisplayName,OfficePhone" /> <my:Property my:Name="ResultObjectType" my:Value="Person"/> <my:Property my:Name="EmptyResultText" my:Value=" User has no assistants" /> <my:Property my:Name="PageSize" my:Value="5" /> <my:Property my:Name="SearchOnLoad" my:Value="true" /> <my:Property my:Name="ShowTitleBar" my:Value="true" /> <my:Property my:Name="ShowActionBar" my:Value="false" /> <my:Property my:Name="ShowPreview" my:Value="false" /> <my:Property my:Name="ShowSearchControl" my:Value="false" /> <my:Property my:Name="EnableSelection" my:Value="false" /> <my:Property my:Name="SingleSelection" my:Value="false" /> <my:Property my:Name="ListFilter" my:Value="/Person[ObjectID='%ObjectID%']/Assistant" /> </my:Properties> </my:Control> This will display Assistant's displayname as hyperlink followed by Office Phone number of the Assistant.Thanks,Sri
Free Windows Admin Tool Kit Click here and download it now
February 9th, 2010 9:49am

Fantastic, thanks Sri!
February 9th, 2010 4:03pm

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

Other recent topics Other recent topics