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

5.9 Customizing Profiles search 

expanded Abstract
collapsed Abstract
No abstract provided.
ShowTable of Contents
HideTable of Contents
  • 1 Configuring Profiles directory search options
  • 2 Customizing directory search results
  • 3 Customizing settings for the search type-ahead
Previous | Next

You can customize Profiles search to allow the extension attributes to be available on the search form. You can also remove attributes from the search for that are not relevant to your organization.

Configuring Profiles directory search options


In our scenario, we add the Job Category attribute to the search form.

Before you begin
  • Ensure that you have an Extension attribute already defined. 5.1 Adding a field (custom extension attribute) to Profiles
  • Ensure that you have defined a label for the Extension Attribute. 5.2 Specifying labels for attributes
  • Ensure you have test data to search on. 5.3 Populating custom extension attributes

Procedure
  1. Check out the profiles-config.xml file.
    The general process of checking out and checking in 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. Open the profiles-config.xml file in a text editor.
    Find the <searchLayout> section.
    Add the following line:
    <extensionAttribute showLabel="true" labelKey="label.custom.jobCategory" bundleIdRef="custom" extensionIdRef="jobCategory" />
  3. Save and close the file.
  4. Check in the profiles-config.xml file.
    In the same wsadmin session check in the profiles config file using the following command:
    ProfilesConfigService.checkInConfig()

  5. Restart the Profiles application.
  6. Test the search form in a browser.
    A successful customization shows results similar to this:



Next steps
After placing the extension attribute on the Search form, it makes sense to add the field to the Search results page. The procedure follows below.

Tip
In the Contract Agency example, we have an attribute that is not common to all users. It might be useful to allow API searches on the attribute without allowing interactive searches on the Search form. This can be accomplished using the hideOnSearchUIForm="true" syntax as shown in the following example
<extensionAttribute hideOnSearchUIForm="true" extensionIdRef="contractAgency" />

The Search layout is common for all profile types - because we are just embarking on a search the profile type is unknown. Contrast this with the SearchResults layout where the Profile Type is known on the results.

Customizing directory search results


You can customize Profiles search results to show extension attributes. You can also remove attributes from the search results layout that are not relevant to your organization.

In our scenario, it would be useful to add the Contract Agency to the search results where it exists.

Before you begin
  • Ensure that you have an Extension attribute already defined. 5.1 Adding a field (custom extension attribute) to Profiles
  • Ensure that you have defined a label for the Extension Attribute. 5.2 Specifying labels for attributes
  • Ensure that you defined a Contractor Profile Type or similar. 5.6 Adding profile types

Procedure
  1. Check out the profiles-config.xml file.
    The general process of checking out and checking in 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. Open the profiles-config.xml file in a text editor.
    Find the <searchResultsLayout profileType="default"> section.
    Duplicate the section for the profileType="Contractor".
  3. Add the following line to the section for the Contractor profileType. Adding it to the third Column section under groupwareEmail:
    <extensionAttribute showLabel="true" hideIfEmpty="true" labelKey="label.custom.jobCategory" bundleIdRef="custom"  extensionIdRef="contractAgency" />

  4. Save and close the file.
  5. Check in the profiles-config.xml file.
    In the same wsadmin session check in the profiles configuration file using the following command:
    ProfilesConfigService.checkInConfig()

  6. Restart the Profiles application.
  7. Test the search results form in a browser. A successful customization shows results similar to this:



Tip
Using hideIfEmpty="true" is useful for all attributes on the SearchResults layout as it saves screen space on a long list.

Customizing settings for the search type-ahead


Connections has a number of parameters for configuring the search type-ahead for Names.


The parameters are easy to configure and are described in the product Infocenter.
The factors that would cause you to modify the parameters are:
  • You have a large number of users and the type ahead returns too many results after only a few key presses.
  • Many of the users are remote and the type-ahead is slow to respond over the network.
  • You have very good server performance and network and would like to offer users the option to see Business Cards and Thumbnails.

The correct values for these settings will vary for each organization and trial and error is the best determinant of the values.


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 4 November 22, 2011 1:21:07 PM by Amanda J Bauman  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (4)
collapsed Versions (4)
Version Comparison     
Version Date Changed by               Summary of changes
This version (4) Nov 22, 2011 1:21:07 PM Amanda J Bauman  
3 Nov 22, 2011 1:16:40 PM Stephen Smith  
2 Nov 22, 2011 1:14:16 PM Stephen Smith  
1 Nov 21, 2011 12:46:40 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