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.5 Profiles attributes
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

5.5 Profiles attributes 

expanded Abstract
collapsed Abstract
No abstract provided.
ShowTable of Contents
HideTable of Contents
  • 1 Read Only attributes
  • 2 Editable attributes
  • 3 Required attributes
Previous | Next

As a general rule, the Profiles attributes can be set as editable or read-only. However, there are a number of fundamental fields that cannot be edited. These fields are specified in the table in product documentation Profiles Attributes

Read Only attributes


The read-only fields are enabled using this syntax:
<attribute> mobileNumber </attribute>


Attributes enabled in this way appear on a profile display forms, but do not appear on the "Edit my profile form".

Attributes that IBM has determined as read only cannot be set as editable.

Editable attributes


The editable fields are enabled using this syntax:
<editableAttribute> mobileNumber </editableAttribute>


The editable attributes enabled in this way appear on a profile display forms, and also appear on the "Edit my profile" form for modification.

Attributes that IBM has determined as editable can also be set to as read only. Using the <attribute> syntax.

You can force an attribute to be displayed on the "Edit my profile" form as a read-only attribute using the disabled=true property.
<editableAttribute disabled=true"> mobileNumber </editableAttribute>

Required attributes


Making a field required is a little more involved than other tasks as files deep in the WebSphere folder tree need to be modified. In one of the example scenarios, Job Category is a required field. Use the required attribute only for attributes common to all profile types. Attribute validation works with all attributes in all layouts for all profile types. For example, requiring the Contract Agency field makes sense with a contractor profile, but not with a default profile because users with a default profile cannot see or edit the Contract Agency field.

IBM Connections uses the Struts framework and validator plug-in. Individual attribute validation is defined in the file validation.xml.

The detailed procedure follows, but the basic steps are:
1. Modify the validation.xml file.
2. Add an additional label to the profiles user interface properties file.
3. Restart the Profiles application.

Before you begin
  • Add the Job Category field to the Profiles application. For more information, see 5.1 Adding a field (custom extension attribute) to Profiles . 
  • Stop the Profiles application, or stop the whole WebSphere Application Server server running the Profiles application.

Procedure
  1. Navigate to the validation.xml file in the source application directory. <WAS_home>\profiles\<profile_name>\installedApps\<cell_name>\profiles.ear\lc.profiles.app.war\WEB-INF\lib\.
    For example on Microsoft Windows C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\renconCell01\Profiles.ear\lc.profiles.app.war\WEB-INF\validation.xml.
    Open the validation.xml file with a text editor.
  2. Add the validation lines to the file.
    1. Find the section <form name="editProfileForm">.
    2. Paste these lines in the validation.xml file at the start of the section as the first field:
      <field property="attribute(contactInformation.extattr.jobCategory)" depends="required">
          <msg name="required" key="errors.required" /> 
          <arg position="0" name="required" key="label.editprofile.contactinformation.jobCategory" />
          <var>
                  <var-name>subEditForm</var-name>
                  <var-value>contactInfo</var-value>
          </var>
      </field>
  3. Save the validation.xml file.
  4. Extract the properties JAR file. For more information about the properties files, see 2.2 Customizing product strings.
    1. Navigate to the lc.profiles.web.app-3.0.jar file in the source application directory, <WAS_HOME>\profiles.ear\lc.profiles.app.war\WEB-INF\lib\lc.profiles.web.app-3.0.jar.
      For example on Microsoft Windows C:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\renconCell01\Profiles.ear\lc.profiles.app.war\WEB-INF\lib\lc.profiles.web.app-3.0.jar.
    2. Back up the lc.profiles.web.app-3.0.jar file to another location. (Do not leave your backup copy in the same directory: It causes problems when Profiles loads classes.)
    3. Extract the JAR file to a temporary directory. If your compression utility does not recognize the JAR file as a compressed format, rename the extension to a .zip.
  5. Modify the properties file.
    1. Navigate to the temporary directory.
    2. Open the ui.properties file in com\ibm\lconn\profiles\strings directory with a text editor.
    3. Add this key-value string pair line near other similar lines in the ui.properties file on its own line:
      label.editprofile.contactinformation.jobCategory=Job Category:
    4. Save the ui.properties file.
  6. Save the changed information to the application source directory:
    1. Compress the files that you extracted and save with a .jar extension. If your compression utility does not recognize the JAR file as a compressed format, compress the files as lc.profiles.web.app-3.0.zip, then change the extension to .jar.
    2. Delete the installed lc.profiles.web.app-3.0.jar file from the source directory, <WAS_HOME>\profiles.ear\lc.profiles.app.war\WEB-INF\lib\. Do not leave a backup of the installed JAR files in this directory because doing so can cause issues with the Profiles application.
    3. Copy the modified lc.profiles.web.app-3.0.jar file to <WAS_HOME>\profiles.ear\lc.profiles.app.war\WEB-INF\lib\.
      Important: In IBM Connections 3.0.1, you must modify the Profiles properties file in the source application directory. Do not follow the standard customization procedure for product strings. IBM Connections does not load Profiles validation label strings from the customization directory.
  7. Restart the Profiles application.
  8. Test your changes:
    1. Clear your browser cache.
    2. Navigate to the Profiles application and Edit My Profile.
    3. Make a change to the profile - perhaps a telephone number, but do not enter a Job Category.
    4. When trying to save the profile, the error message is displayed as shown below:

Related tasks
  • Follow this link for adding attributes to Profiles 5.1 Adding a field (custom extension attribute) to Profiles
  • A general description for customizing product strings is found here: 2.2 Customizing product strings
    Parent topic: 5.0 Customizing Profiles

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

      This Version: Version 2 November 22, 2011 1:04:29 PM by Stephen Smith  IBMer

      expanded Attachments (0)
      collapsed Attachments (0)

       


      expanded Versions (2)
      collapsed Versions (2)
      Version Comparison     
      Version Date Changed by               Summary of changes
      This version (2) Nov 22, 2011 1:04:29 PM Stephen Smith  
      1 Nov 21, 2011 12:40:57 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