locked
RCDC - Display attribute of reference RRS feed

  • Question

  • 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
    Monday, February 8, 2010 8:14 PM

Answers

  • 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



    • Marked as answer by Mark Shoemaker Tuesday, February 9, 2010 1:03 PM
    Tuesday, February 9, 2010 6:49 AM

All replies

  • 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



    • Marked as answer by Mark Shoemaker Tuesday, February 9, 2010 1:03 PM
    Tuesday, February 9, 2010 6:49 AM
  • Fantastic, thanks Sri!
    Tuesday, February 9, 2010 1:03 PM