Localization of component profile properties

Hi all,
I need to localize properties in the component profile:
<property name="MyProperty" value="MyValue1">
       <property name="personalization" value="dialog"/>
       <property name="type" value="none"/>
    </property>
I found the following description in the SAP documentation:
description
The value of this attribute is used as a key in the associated ResourceBundles.
Now I have the problem:
Which ResourceBundle is this?
<component name="MyComponent">
      <component-config>
      <b><property name="ResourceBundleName" value="bve"/></b>     
      </component-config>
      <component-profile>
          <property name="MyProperty" value="MyValue">
              <property name="personalization" value="dialog"/>
              <property name="type" value="none"/>
             <b> <property name="description" value="MyPropertyKey"/></b>
          </property>
      </component-profile>
</component>
The key is in the ResourceBundle bve, but it does not work, it is only displayed "MyProperty".
Does anybody knows how this is supposed to work?
I had a look at "RoomUsageAnalyis", but it seems that they use another mechanism.
Thanks for any help.
Bye Rebecca

Hi Rebecca,
this is a bug, to speak carefully. In fact, there is no implementation at all which goes in the direction of the documentation you are referring to.
See com.sapportals.portaladmin.property_editor.PropertyEditor implementation, this only looks for the <i>plainDescription</i> attribute.
Quite interesting, because the behaviour you described is asked within certification for EP developer...
Would you be so kind to open an OSS message, referring to the documentation?!
Hope it helps
Detlev

Similar Messages

  • How  to read Component profile.properties without using CAF?

    Do you know how to read DC WebDynpro Component profile.properties without using CAF.
    A Component.profile.properties is located under
    Scr/components/fullcomponentname/
    Thanks, Best regards
    Peter

    import com.sap.tc.webdynpro.services.sal.config.api.IWDConfiguration
    import com.sap.tc.webdynpro.services.sal.config.api.WDConfiguration;
    import com.sap.tc.webdynpro.services.sal.deployment.api.WDDeployableObject;
    import com.sap.tc.webdynpro.services.sal.deployment.api.WDDeployableObjectPart;
    import com.sap.tc.webdynpro.services.sal.deployment.api.WDDeployableObjectPartType;
    WDDeployableObjectPart myComponent = WDDeployableObject.getDeployableObjectPart
      "mycompany.com/myapp~mydc" // name of DC
      "com.mycompany.myapp.mydc.MyComponent" // full component name
      WDDeployableObjectPartype.COMPONENT
    IWDConfiguration config = WDConfiguration.getConfigurationByName
      myComponent
      "profile.properties" // not sure, try "profile" as well
    Exception handling ommited.
    Hope this helps. Just wondering what's for?
    Valery Silaev
    P.S. full disclosure: CAF developer, author of PropertyConfigurable components concept

  • Access component profile from AbstractCommand

    Hello
    I have created an AbstractCommand and I wonder if I can access the component profile properties of the iview that has called this command.
    I have tried this :
    IPortalComponentRequest request = (IPortalComponentRequest)                                         this.getProxy().getDynPage().getPageContext().getRequest();
    String StartUri = request.getComponentContext().getProfile().getProperty("StartUri");
    but doesn´t work.
    Thanks in advance.

    hello Praveen
    I get 'pcd:portal_content/every_user/general/eu_role/com.sap.km.home_ws/com.sap.km.hidden/com.sap.km.urlaccess/com.sap.km.Navigation'
    which is not the iview from where i´m calling this command.
    What am i doing is the following. I have programmed a command that redirects me to another iview and i would like to pass to this redirected iview a parameter so that it knows which iview has called and when it finishes it can go back.
    I know that i can put this parameter when the command is created, but I don´t like the idea. For example. If I have to call this iview from 3 different iviews i would need 3 different Command definitions and One Different Layout set for every command. The ideal solution would be that the iview could pass a parameter to the command so that I only have to define 1 command.
    I don´t know if i have explained myself very well.

  • Translate attributes of component-profile section

    I've defined an attribute called welcomeMsg in the component-profile section of my portal application. I want to use this attribute to configure a welcome message which is shown at the iview. Further I want this attribute to provide a mechanism to translate this welcome message into different languages using the portal content translation service. At the jsp-site of the portal application I access this attribute by
    <% out.print( componentRequest.getComponentContext().getProfile().getProperty( "welcomeMsg") ); %>
    I can configure this attribute at the properties dialog of the portal content studio and the value is shown at the iview. So everything works fine. But if I use the portal content translation service to translate the iview, only the name of the iview appears at the list of attributes which could be translated by this translation service.
    Is there any way to use the portal content translation service to translate this attribute or should I use another way to achieve this claim.
    Due to my approach I have yet another problem by accessing the attribute: if I open the iview in a new browser window by
    window.open('/irj/servlet/prt/portal/prtroot/TestPar.TestPar', '', 'width=350,height=50');
    the attribute isn't shown anyway, while the attribute is shown if I add the iview to a portal page which is shown at the main browser window. What could be the problem with the new browser window and has anybody an idea to solve this problem?
    so long, thank you in advance
    rené

    I have to use the ResourceBundles mechanism to provide multiple languages in one IView!!

  • Reading User Profile Properties pragmatically in SharePoint 2010 Returns Null Values Although it has values returned from AD

    Reading User Profile Properties pragmatically in SharePoint 2010 Returns Null Values Although it has values returned from AD
    I configured the user profile service application and run Sync and user profiles and its properties returned from Active directory but when I want to read it pragmatically it returns null values.
    this is my code...
       void runQueryButton_Click(object sender, EventArgs e)
               // Get the My Sites site collection, ensuring proper disposal
                using (SPSite mySitesCollection = new SPSite("http://sp/my"))
                    //Get the user profile manager
                    SPServiceContext context = SPServiceContext.GetContext(mySitesCollection);
                    UserProfileManager profileManager = new UserProfileManager(context);
                    UserProfile profile = profileManager.GetUserProfile("Contoso\\user");
                    foreach (Property prop in profileManager.Properties)
                       // if (prop.Name == "Department")
                        resultsLabel.Text += prop.DisplayName + ":" + profile[prop.Name].Value + "<br />"; ;

     Hi,
    Please try with the following code
          PrincipalContext principalContext = new PrincipalContext(ContextType.Domain);
                                SPServiceContext context = SPServiceContext.GetContext(site);
                                UserProfileManager profileManager = new UserProfileManager(context);                        
      foreach (Property prop in profileManager.Properties)
                       // if (prop.Name == "Department")
                        resultsLabel.Text += prop.DisplayName
    + ":" + profile[prop.Name].Value + "<br />"; ;
    Thanks,
    Vivek
    Please vote or mark your question answered, if my reply helps you

  • How to Get user profile properties in provider -cloud hosted app in sharepoint online - office 365 using REST API?

    How to Get user profile properties in provider -cloud hosted app in sharepoint online - office 365 using REST API?
    any idea?

    Hi,
    From your description, my understanding is that you want to get user profile properties in provider-hosted app in SharePoint online using REST API.
    Here is sample code for getting user profile properties:
    http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html
    Here is a blog below about accessing data from the provider-host apps:
    http://dannyjessee.com/blog/index.php/2014/07/accessing-sharepoint-data-from-provider-hosted-apps-use-the-right-context/
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Reorder User Profile properties in SharePoint 2013.

    Hi, I have created custom user profile properties in SharePoint 2013 under User Profile Service Application, now I want to change the order of properties as well as also want to move OOTB properties and custom properties from one section to another section.
    Is there any Power Shell command available to move properties between sections?
    Regards,    

    Hi Prakash,
    Use the script in this blog to retrive user profile properties from a certain section.
    http://stevemannspath.blogspot.in/2013/05/sharepoint-20102013-using-powershell-to.html
    # Dynamic Settings
    $mySiteUrl = "http://mysite.company.net"
    $findProperty = "PictureUrl"
    Next, we needed to establish the server context:
    # Obtain Context based on site
    $mySiteHostSite = Get-SPSite $mySiteUrl
    $mySiteHostWeb = $mySiteHostSite.OpenWeb()
    $context = Get-SPServiceContext $mySiteHostSite
    From the context we can instantiate a ProfileManager object and retrieve all of the SharePoint User Profiles:
    # Obtain Profiles from the Profile Manager
    $profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)
    $AllProfiles = $profileManager.GetEnumerator()
    $outputCollection = @()
    Next, we loop through the profiles and retrieve the account name (for identification purposes) and the property we are interested in finding:
    # Loop through profiles and retrieve the desired property
    foreach ($profile in $AllProfiles)
    $output = New-Object System.Object
    $output | Add-Member -type NoteProperty -Name AccountName -Value $profile["AccountName"].ToString()
    $output | Add-Member -type NoteProperty -Name $findProperty -Value $profile[$findProperty]
    $outputCollection += $output
    Finally, we list out the collection items that do not have a value for the property (ie. null):
    # List all Accounts that do not contain the property
    $outputCollection | Where-Object {[bool]$_.($findProperty) -ne $true}
    FULL SCRIPT
    # Dynamic Settings
    $mySiteUrl = "http://mysite.company.net"
    $findProperty = "PictureUrl"
    Write-Host "Beginning Processing--`n"
    # Obtain Context based on site
    $mySiteHostSite = Get-SPSite $mySiteUrl
    $mySiteHostWeb = $mySiteHostSite.OpenWeb()
    $context = Get-SPServiceContext $mySiteHostSite
    # Obtain Profiles from the Profile Manager
    $profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context)
    $AllProfiles = $profileManager.GetEnumerator()
    $outputCollection = @()
    # Loop through profiles and retrieve the desired property
    foreach ($profile in $AllProfiles)
    $output = New-Object System.Object
    $output | Add-Member -type NoteProperty -Name AccountName -Value $profile["AccountName"].ToString()
    $output | Add-Member -type NoteProperty -Name $findProperty -Value $profile[$findProperty]
    $outputCollection += $output
    # List all Accounts that do not contain the property
    $outputCollection | Where-Object {[bool]$_.($findProperty) -ne $true}
    In this blog, we can refer the script to create new section and new properties to this section.
    http://sergioblogs.blog.co.uk/2013/01/08/powershellscript-to-add-new-user-profile-properties-from-the-term-store-15407371/
    # PowerShell Script to Add New User Profile Properties from the Term Store
    # Get parameters
    $mySiteWebApp = Read-Host "Please enter the MySite Web Application URL"
    $termStoreSrvApp = Read-Host "Please enter the Term Store Service Application name"
    # Add SharePoint DLLs
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Sharepoint.Administration")
    [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Sharepoint.Taxonomy")
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server")
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server.UserProfiles")
    # Get site collection for MySite
    #$sitecollection = Get-SPSite | Where-Object {$_.Url -eq "http://yourMySiteHostURL"}
    $sitecollection = Get-SPSite | Where-Object {$_.Url -eq $mySiteWebApp}
    if($sitecollection -ne $null) {
    # Get the taxonomy session
    $taxSession = Get-SPTaxonomySession -site $sitecollection
    # Get the term store - you will need to amend the value for the correct name of your MMS Name
    #$termStore = $taxSession.TermStores["Managed Metadata Service"]
    $termStore = $taxSession.TermStores[$termStoreSrvApp]
    if($termStore -ne $null) {
    # Get the term store group for Swisslo
    $termStoreGroup = $termStore.Groups["Name of Term Store"]
    # Get the term sets - Preset with examples for terms (Customer, Function, IndustrySegment, Language, Location, Organization), amend as required
    $termSetCustomer = $termStoreGroup.TermSets["Customer"]
    $termSetFunction = $termStoreGroup.TermSets["Function"]
    $termSetIndustrySegment = $termStoreGroup.TermSets["Industry Segment"]
    $termSetLanguage = $termStoreGroup.TermSets["Language"]
    $termSetLocation = $termStoreGroup.TermSets["Location"]
    $termSetOrganization = $termStoreGroup.TermSets["Organization"]
    # Get the user profile app - change UPS Name as required
    $serviceApplication = Get-SPServiceApplication | ?{$_.TypeName -eq "User Profile Service Application"}
    $serviceContext = [Microsoft.SharePoint.SPServiceContext]::GetContext($serviceApplication.ServiceApplicationProxyGroup, [Microsoft.SharePoint.SPSiteSubscriptionIdentifier]::Default)
    $userProfileConfigManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileConfigManager $serviceContext
    $userProfilePropertyManager = $userProfileConfigManager.ProfilePropertyManager
    $userProfileTypeProperties = $userProfilePropertyManager.GetProfileTypeProperties([Microsoft.Office.Server.UserProfiles.ProfileType]::User)
    $userProfileSubTypeManager = [Microsoft.Office.Server.UserProfiles.ProfileSubTypeManager]::Get($serviceContext)
    $userProfile = $userProfileSubTypeManager.GetProfileSubtype([Microsoft.Office.Server.UserProfiles.ProfileSubtypeManager]::GetDefaultProfileName([Microsoft.Office.Server.UserProfiles.ProfileType]::User))
    $userProfileProperties = $userProfile.Properties
    $ps = $userProfileSubTypeManager.GetProfileSubtype([Microsoft.Office.Server.UserProfiles.ProfileSubtypeManager]::GetDefaultProfileName([Microsoft.Office.Server.UserProfiles.ProfileType]::User))
    $pspm = $ps.Properties
    #Create new section in User Profiles - set the 'Name of the Section' throughout next chunk of code
    Write-Host "Creating new section for 'Name of Section'...."
    $allEntries = $userProfileConfigManager.GetPropertiesWithSection();
    $sectionExists =$false
    foreach ($temp in $allEntries) {
    if($temp.Name -eq "Name of Section") {
    Write-Host "Section for 'Name of Section' already exists.";
    $sectionExists = $true;
    $section = $temp
    if ($sectionExists -ne $true){
    $section = $allEntries.Create($true);
    $section.Name = "Name of Section";
    $section.ChoiceType = [Microsoft.Office.Server.UserProfiles.ChoiceTypes]::Off;
    $section.DisplayName = "Name of Section"
    $section.Commit();
    Write-Host "Section 'Name of Section' created"
    Write-Host "Creating new properties...."
    $Privacy = "public"
    $PrivacyPolicy = "OptIn"
    $coreProperties = $userProfilePropertyManager.GetCoreProperties()
    # Setting Custom Properties below, amend names as you did above to match your fields
    # Set new Custom Property for "Customer"
    $PropertyName = "SLCustomer"
    $PropertyDisplayName = "Customer"
    $newProperty = $coreProperties.Create($false)
    $newProperty.Name = $PropertyName
    $newProperty.DisplayName = $PropertyDisplayName
    $newProperty.Type = "string"
    $newProperty.Length = "50"
    $newProperty.IsMultivalued = $true
    $newProperty.TermSet = $termSetCustomer
    # Add the new property
    $coreProperties.Add($newProperty)
    $profileTypeProp = $userProfileTypeProperties.Create($newProperty)
    $profileTypeProp.IsVisibleOnEditor = $true
    $profileTypeProp.IsVisibleOnViewer = $true
    $userProfileTypeProperties.Add($profileTypeProp)
    $profileSubTypeProp = $pspm.Create($profileTypeProp);
    $profileSubTypeProp.IsUserEditable = $true
    $profileSubTypeProp.DefaultPrivacy = $Privacy
    $profileSubTypeProp.AllowPolicyOverride
    $pspm.Add($profileSubTypeProp);
    # Set new Custom Property for "Function"
    $PropertyName = "SLFunction"
    $PropertyDisplayName = "Function"
    $newProperty = $coreProperties.Create($false)
    $newProperty.Name = $PropertyName
    $newProperty.DisplayName = $PropertyDisplayName
    $newProperty.Type = "string"
    $newProperty.Length = "50"
    $newProperty.IsMultivalued = $true
    $newProperty.TermSet = $termSetFunction
    # Add the new property
    $coreProperties.Add($newProperty)
    $profileTypeProp = $userProfileTypeProperties.Create($newProperty)
    $profileTypeProp.IsVisibleOnEditor = $true
    $profileTypeProp.IsVisibleOnViewer = $true
    $userProfileTypeProperties.Add($profileTypeProp)
    $profileSubTypeProp = $pspm.Create($profileTypeProp);
    $profileSubTypeProp.IsUserEditable = $true
    $profileSubTypeProp.DefaultPrivacy = $Privacy
    $profileSubTypeProp.AllowPolicyOverride
    $pspm.Add($profileSubTypeProp);
    # Set new Custom Property for "Industry Segment"
    $PropertyName = "SLIndustrySegment"
    $PropertyDisplayName = "Industry Segment"
    $newProperty = $coreProperties.Create($false)
    $newProperty.Name = $PropertyName
    $newProperty.DisplayName = $PropertyDisplayName
    $newProperty.Type = "string"
    $newProperty.Length = "50"
    $newProperty.IsMultivalued = $true
    $newProperty.TermSet = $termSetIndustrySegment
    # Add the new property
    $coreProperties.Add($newProperty)
    $profileTypeProp = $userProfileTypeProperties.Create($newProperty)
    $profileTypeProp.IsVisibleOnEditor = $true
    $profileTypeProp.IsVisibleOnViewer = $true
    $userProfileTypeProperties.Add($profileTypeProp)
    $profileSubTypeProp = $pspm.Create($profileTypeProp);
    $profileSubTypeProp.IsUserEditable = $true
    $profileSubTypeProp.DefaultPrivacy = $Privacy
    $profileSubTypeProp.AllowPolicyOverride
    $pspm.Add($profileSubTypeProp);
    # Set new Custom Property for "Language"
    $PropertyName = "SLLanguage"
    $PropertyDisplayName = "Language"
    $newProperty = $coreProperties.Create($false)
    $newProperty.Name = $PropertyName
    $newProperty.DisplayName = $PropertyDisplayName
    $newProperty.Type = "string"
    $newProperty.Length = "50"
    $newProperty.IsMultivalued = $true
    $newProperty.TermSet = $termSetLanguage
    # Add the new property
    $coreProperties.Add($newProperty)
    $profileTypeProp = $userProfileTypeProperties.Create($newProperty)
    $profileTypeProp.IsVisibleOnEditor = $true
    $profileTypeProp.IsVisibleOnViewer = $true
    $userProfileTypeProperties.Add($profileTypeProp)
    $profileSubTypeProp = $pspm.Create($profileTypeProp);
    $profileSubTypeProp.IsUserEditable = $true
    $profileSubTypeProp.DefaultPrivacy = $Privacy
    $profileSubTypeProp.AllowPolicyOverride
    $pspm.Add($profileSubTypeProp);
    # Set new Custom Property for "Location"
    $PropertyName = "SLLocation"
    $PropertyDisplayName = "Location"
    $newProperty = $coreProperties.Create($false)
    $newProperty.Name = $PropertyName
    $newProperty.DisplayName = $PropertyDisplayName
    $newProperty.Type = "string"
    $newProperty.Length = "50"
    $newProperty.IsMultivalued = $true
    $newProperty.TermSet = $termSetLocation
    # Add the new property
    $coreProperties.Add($newProperty)
    $profileTypeProp = $userProfileTypeProperties.Create($newProperty)
    $profileTypeProp.IsVisibleOnEditor = $true
    $profileTypeProp.IsVisibleOnViewer = $true
    $userProfileTypeProperties.Add($profileTypeProp)
    $profileSubTypeProp = $pspm.Create($profileTypeProp);
    $profileSubTypeProp.IsUserEditable = $true
    $profileSubTypeProp.DefaultPrivacy = $Privacy
    $profileSubTypeProp.AllowPolicyOverride
    $pspm.Add($profileSubTypeProp);
    # Set new Custom Property for "Organization"
    $PropertyName = "SLOrganization"
    $PropertyDisplayName = "Organization"
    $newProperty = $coreProperties.Create($false)
    $newProperty.Name = $PropertyName
    $newProperty.DisplayName = $PropertyDisplayName
    $newProperty.Type = "string"
    $newProperty.Length = "50"
    $newProperty.IsMultivalued = $true
    $newProperty.TermSet = $termSetOrganization
    # Add the new property
    $coreProperties.Add($newProperty)
    $profileTypeProp = $userProfileTypeProperties.Create($newProperty)
    $profileTypeProp.IsVisibleOnEditor = $true
    $profileTypeProp.IsVisibleOnViewer = $true
    $userProfileTypeProperties.Add($profileTypeProp)
    $profileSubTypeProp = $pspm.Create($profileTypeProp);
    $profileSubTypeProp.IsUserEditable = $true
    $profileSubTypeProp.DefaultPrivacy = $Privacy
    $profileSubTypeProp.AllowPolicyOverride
    $pspm.Add($profileSubTypeProp);
    Write-Host "Completed"
    } else {
    #Termstore not found
    Write-Host "Unable to connect to term store"
    } else {
    Write-Host "Unable to connect to MySite Web Application"
    Need more effort to change this code to work for your requirement.
    Thanks & Regards,
    Emir
    Emir Liu
    TechNet Community Support

  • Best way to create a conact list from the user profile properties

    We have a customer looking for a phone book utility, starting with a table showing main user information and with some search options. We would like o base it on the user profile properties and not to create an indipendent studion record browser porlet.
    What is best way to create a conact list from the user profile properties ?

    I did something like this using search.  It can get messy, so you need to take care with it.
    * Identify the properties you want to make accessible to search (ex: name, etc.)
            - add them to the user property map
            - flag them as searchable
    * I broke down and used the native server API.  I'd still suggest this approach.
    * Write some simple code to do vcard export if you like
    (my code is all in vb.net)
    I really believe this is the &#034;right&#034; approach, but honestly, this was a bit painful and has been
    messy for us given some other business issues.  (to my chagrin we have users with 2-letter last
    names...)
    I have code you're welcome to poke at, but it's more or less slapped together and has various
    different search methods commented out so you can see how I tinkered w/ the remote vs. server
    API.
    If you'd like it mail me at [email protected] and I'll send you a zipped copy w/ a
    readme.  I hope it may be useful to you as both a starting reference.

  • Mapped a custom user profil propertie office 365

    Hi,
    I created a customer user profil propertie named ="CodeUO" , Type Text. 
    I have ticked the index and alias box
    then I created the property bag for this property.
    but when I user the search 
    https://--------/_api/search/query?querytext='*'&sourceid='B09A7990-05EA-4AF9-81EF-EDFAB16C4E31'&selectproperties='CodeUO,AccountName'
    I have this result:
    -<d:element m:type="SP.KeyValue">
    <d:Key>CodeUO</d:Key>
    <d:Value m:null="true"/>
    <d:ValueType>Null</d:ValueType>
    </d:element>
    Best Regards,
    ND

    You have to perform a new crawl of the user profiles in order to get values in the properties. So you have new user profile properties which are getting corresponding crawled properties called People:PropertyName, and you have mapped these to two managed
    properties in the search schema named CodeUO and AccountName..right?
    Thanks,
    Mikael Svenson - Search Enthusiast
    SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

  • User Profiles properties in SharePoint 2013

    Hello Everyone,
    Can we set User Profiles properties in SharePoint 2013 ? 

    Most of them, yes. What are you specifically looking to do?
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • SharePoint 2013: Update User Profile Properties is giving error

    Hello all SharePoint Gurus - I am trying to update the User Profile Properties. The update I am trying is to
    Property Mapping for Synchronization.  Mapping mobile property of AD to the User Profile Property Mobile Phone.
    It is giving error "An Error occurred when updating a property". Check ULS is not showing any error. 
    The FIM Service, USer Profile Services and Synchronization Services all are in Started mode. Properly synchronizing with AD. 
    Please throw some light on this. 
    Regards,
    Khushi

    Hi Khushi,
    According to your description, my understanding is that you got an error when you make "Mobile Phone" map to "mobile" from AD properties.
    I did a test as your description, in my testing, everything worked well.
    Please try to stop User Profile Synchronization service and User profile service, then restart them, compare the result.
    There are some similar posts about this issue, pease check if they are useful for you:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/32937e1d-830e-4553-bdfc-23d3ee7f6d07/why-mapping-of-user-profile-property-fails
    http://sharepoint.stackexchange.com/questions/34634/mapping-user-properties-fails
    If this issue still exists, please check Windows Event Viewer to check there is something about this issue:
    How to use Windows Event Viewer:
    http://blog.credera.com/technology-insights/microsoft-solutions/troubleshooting-sharepoint-errors/
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Unable to read the FBA user user profile properties in Sharepoint 2010

    hi,
     how to read the FBA user profile properies in code . i have Sharepoint2010 FBA site when i need to read teh FBA user profile
    when i am trying read the properties by using
    UserProfile CurrentUserProfile = upm.GetUserProfile(i:0#.f|fbamembershipprovider|[email protected])
    i am getting soem exception like
    unable to read user profiles how  to fix this isse
    Srinivas

    hi,
    thanks for response i have fba data base in my sql server where user user formation will store  i am using (http://sharepoint2010fba.codeplex.com/documentation) . i am using user name as email id for user login. at the time of user signup process in
    to sharepoint i am storing the user deatils like user name ,password, passwordquestion, answer etc  at the same time i am storuing another deatils like firstname last name age sex etc to anothe list which is sharepoint2010 list. user login into sharepoint
    site i am getting the user display namelike"#:0|Parvider|[email protected] i need to change this name like "First Name Last Name " how can i do it.. database does not contain any deatils related to First Name Last Name this information extist
    in sharepoint list
    this is my requirement
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/ed543e3c-00e5-4a52-92ee-75f49cd0fbb2/how-to-change-the-user-display-name-in-fba-site-and-place-my-own-display-name-in-sharepoint2010-fba?forum=sharepointdevelopmentprevious#ed543e3c-00e5-4a52-92ee-75f49cd0fbb2
    Srinivas

  • Modifiying users' profile properties for self-registration

    I am trying to create a self-registration page flow in portal 8.1 but cannot seem to get any of the properties of a profile to save. I want users to add in values for address etc after they create a login.
    This is the code I have written which seems to work (no exceptions anyway). However when I check the new user through the Admin console the Suffix property of the CustomerProperties profile is still empty. Any ideas? I cannot find any other help after many many searches.
    ProfileFactory profFact=new ProfileFactory();
    ProfileWrapper profWrap;
    CreateUserForm user;
    try{
    user= (CreateUserForm) getSession().getAttribute("userform");
    //nOw add a profile for this user and modify the suffix
    profWrap=profFact.getProfile(user.getUsername(),null);
    if (profWrap!=null){
    profWrap.setProperty("USER","Suffix","Test");
    }else{
    System.out.println("no profile");
    System.out.println(form.getValue());
    System.out.println(user.getUsername());
         catch(Throwable t)
                   t.printStackTrace();
              }

    Hi,
    if the property is defined in the CustomerProperties set, then this line should be closer:
    <snip/>
    profWrap.setProperty("CustomerProperties","Suffix","Test");
    <snip/>
    - Anders M.

  • Casting profile properties to ArrayList

    I have a piece of code that is currently generating a casting exception... I inherited this so I don't know if it even works right. Could someone point me in the right direction as to how to fix this?
    Here's some of the code in question:
    public void addSearch (HttpServletRequest req,
    int whichProp) {
    ArrayList allSearches = null;
    allSearches = getProperty(req);
    fast forward
    private ArrayList getProperty (HttpServletRequest req) {
    ArrayList al = null;
    ProfileWrapper profile = SessionHelper.getProfile(req);
    if (profile == null) {<create anon profile>}
    try {
    al = (ArrayList) profile.getProperty(PROPERTYSET,PROPERTYNAME);
    The very last line is what is causing the exception.

    Does that ClassCastException tell you the actual type of the object?
    Only multi-valued properties will return a Collection of values, and I
    don't belieived it's guarenteed to be an ArrayList especially if a UUP
    is involved.
    To be safe, you can change the bottom to say:
    try
    Object c = profile.getProperty(PROPERTYSET,PROPERTYNAME);
    if (c instanceof ArrayList)
    al = (ArrayList)c;
    else if (c instanceof Collection)
    al = new ArrayList((Collection)c);
    else // not a multi-valued property
    al = new ArrayList(1);
    al.add(c);
    Greg
    Joe Tseng wrote:
    I have a piece of code that is currently generating a casting exception... I inherited this so I don't know if it even works right. Could someone point me in the right direction as to how to fix this?
    Here's some of the code in question:
    public void addSearch (HttpServletRequest req,
    int whichProp) {
    ArrayList allSearches = null;
    allSearches = getProperty(req);
    fast forward
    private ArrayList getProperty (HttpServletRequest req) {
    ArrayList al = null;
    ProfileWrapper profile = SessionHelper.getProfile(req);
    if (profile == null) {<create anon profile>}
    try {
    al = (ArrayList) profile.getProperty(PROPERTYSET,PROPERTYNAME);
    The very last line is what is causing the exception.

  • When do a component's properties get set?

    I've been trying to understand at what stage in an MXML
    component's lifecycle the MXML properties are assigned by the
    runtime. The component event lifecycle is documented in the chapter
    on containers in the Developers' Guide but there's no mention of
    when the properties are assigned. Is it after the initialise event
    and before the creationCompete event? If the component itself has
    children, do the properties get assigned after the component's
    children are instantiated and the initialize event is dispatched on
    them by the runtime or after?

    g -
    I was able to fix the problem with some help from Apple. Whenever I last downloaded Reader, I apparently didn’t complete the process by accepting the Reader contract. I was able to go right to that point in the process and complete the installation. The messages that I needed Reader but it was already installed were quite confusing. It would have been nice if the Adobe installation process that I was re-trying this morning had been able to detect a partial installation. The Troubleshooting page almost had me doing some ridiculous things that wouldn’t have helped.
    MP

Maybe you are looking for

  • My iMac is ******* me off...

    I recently had my power supply replaced (it was a terrible ordeal BTW) only to have this new odd problem less than a month later. I came back to my computer after class and moved the mouse, thus getting my password prompt. After entering my password

  • Using dbms_job package

    1.I wanted to know if I can run a .sql file from the dbms_job package. 2. I also wanted to know the feature in oracle that I can use to send email to myself once the job is executed- showing successful execution or errors. Thanks for your suggestions

  • How is exempt amount calculated for involuntary deductions?

    How is the exempt amount calculated for involuntary deductions? For child support CHILD_SUPP_CALCULATION_FORMULA fast formula can be used for getting the exempt amount? What about other involuntary deductions like alimony, creditor debt, bankruptcy?

  • UNIX "ln" command and Mac OS X applications

    I have an application hardwired to read 4 files with specific names, in a specific location. I want to move the files to the Users/Shared folder so other users can access them; however, the application must still be able to open and save them, meanin

  • Binding JSF components and servlets to eachother

    Hi, I have some JSF components in my jsp page like this one: <h:form rendered="true" id="myForm">                <h:selectOneListbox>                     <f:selectItem itemdisabled="false" itemlabel="item1" itemvalue="1"></f:selectItem>