Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Connections wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search

Categories

Tag Cloud

  • 1.0
  • 1.0.x
  • 2.0
  • 2.0.1
  • 2.0.1.1
  • 2.0_media
  • 2.5
  • 2.5_deployment
  • 2.5_media
  • 2.5_performance
  • 3
  • 3.0
  • 3.0.1
  • 3.0.1_media
  • 3.0_media
  • 3_deployment
  • 8.1.1
  • 8.2
  • activities
  • administrators
  • api
  • best_practices
  • blogs
  • bookmarks
  • business_card
  • cluster
  • communities
  • community
  • community_manager
  • connections
  • connections_3
  • connections_301
  • customization
  • customize
  • customizing
  • demos
  • deploying
  • deployment
  • deployments
  • developers
  • dogear
  • Domino
  • Edge server
  • education
  • error messages
  • files
  • forums
  • getting_started
  • Help
  • home
  • home_page
  • homepage
  • how-to
  • HTTP server
  • ibm
  • index
  • installation
  • integration
  • iOS
  • ipad
  • iWidget
  • J2EE
  • javadoc
  • lc3.0
  • learning
  • lotus-connections
  • mml
  • mobile
  • Notes
  • performance
  • person_card
  • Portal
  • portlet
  • portlet_factory
  • profiles
  • proxy server
  • quickr
  • Redbooks
  • rest
  • reverse proxy server
  • Sametime
  • scenarios
  • search
  • security
  • self-paced
  • SSO
  • tags
  • test_infrastructure
  • troubleshooting
  • tuning
  • video
  • VideoFest
  • videos
  • WAI
  • WAS
  • web_seminar
  • WebAppIntegrator
  • WebSphere
  • widgets
  • wikis
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > IBM Redbooks: Customizing IBM Connections 3.0.1 > 5.1 Adding an attribute field to Profiles
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

5.1 Adding an attribute field to Profiles 

expanded Abstract
collapsed Abstract
No abstract provided.
Previous | Next

Adding an attribute to profiles is often required by organizations deploying IBM Connections. In this example scenario, many of the staff in the organization are contract staff, and the attribute of Contract Agency is to be added to the Profiles pages. A second example is to add a Job Category attribute to profiles.

The basic steps that are required to add an attribute to Profiles are:
  1. Check out the Profiles configuration file.
  2. Define the new attribute.
  3. Place the field on a layout.
  4. Check in the Profiles configuration file.
  5. Restart the Profiles application.
  6. Test the new attribute.

Procedure
  1. Check out the Profiles configuration file.
    The general process for checking out and checking in the configuration files is described in 1.4 Publishing customizations with the wsadmin tool.
    Adapt the following example commands for your system:
    cd e:\IBM\WebSphere\AppServer\profiles\Dmgr01\bin
    wsadmin -lang jython -user wasmgr -password d3moL0tus
    execfile("profilesAdmin.py")
    ProfilesConfigService.checkOutConfig("f:/temp", AdminControl.getCell() )

    Remember to leave the wsadmin session open to check in the file in a later step.
  2. Define the new attribute.
    1. Open profiles-config.xml in a text editor.
      The file found in the location where it was checked out to.
    2. Find the section <profileExtensionAttributes>.
    3. Add a new line just before the closing </profileExtensionAttributes>
      <simpleAttribute extensionId="contractAgency" length="80" />



  3. Place the field on a layout.
    The ordering and visibility of attributes on Profiles screens are controlled by the layout definitions in the same profiles-config.xml file. To place the field on a layout, perform these steps:
    1. Find the section <profileLayout profileType=”default”>.
    2. Add a new line in the ContactInformation section to place the extension attribute:
      <extensionAttribute showLabel="false" editable="true" extensionIdRef="contractAgency" /> 

      Add the line immediately after the displayName attribute.

  4. Check in the Profiles configuration file.
    In the same wsadmin session, check in the profiles configuration file using the following command:
    ProfilesConfigService.checkInConfig()

  5. Restart the Profiles application.
    This is necessary for Profiles to pick up the new configuration.
    The Profiles application can be stopped and started from the WebSphere Application Server Integrated Solution Console.
  6. Test the new attribute.
    1. Log into IBM Connections and navigate to My Profile.
    2. Edit My profile, and this should show partial success: a new field with an error on the Label name.
      Entering test data here is helpful.

      Notice that when the new attribute is displayed, the showLabel=false property is honored, but a label is needed for edit mode.

Next Steps
Although you created a field in the procedure, the field label does not appear correctly. Refer to 5.2 Specifying labels for attributes

Parent topic: 5.0 Customizing Profiles

expanded Article information
collapsed Article information
Category:
IBM Redbooks: Customizing IBM Connections 3.0.1
Tags:

This Version: Version 1 November 21, 2011 12:34:49 PM by Amanda J Bauman  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (1)
collapsed Versions (1)
Version Comparison     
Version Date Changed by               Summary of changes
This version (1) Nov 21, 2011 12:34:49 PM Amanda J Bauman  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use