Adding a Custom Profiles Field to Advanced Search (InfoCenter is Wrong)

This blog post answers a question that was posed to me during my session at Lotusphere.   First a little background, SHOW303 was about customizing Lotus Connections, among other things we showed you how to add your own custom fields in Profiles, as well as use a custom resource bundle to add a nice label (and optionally add multi-language support to the label) for your custom profile fields.  For the complete overview you can view slides 113-128 of the presentation. So now the question.  One of the people who attended the session had successfully added a custom field, and labeled it, but when added to advanced search it looked like this: A picture named M2 Not exactly the nice field label you want to display.  In our demo the actual label we used was “Real Name” Off to the Lotus Connections 2.5 InfoCenter, where the section on Configuring Advanced Search tells us to use the following syntax to extend advanced search with a custom field. A picture named M3 In our demo that would translate to a line that looked like this <extensionAttribute showLabel=”true” extensionIdRef=”actorname”/></blockquote> Unfortunately this is what led to the result above. The missing ingredient is the linkage to the resource bundle and the label key which was used when  adding the custom field to the profile layout, when adding them the new line looks like this: <extensionAttribute showLabel=”true” labelKey=”label.custom.actorname” bundleIdRef=”sitcom” extensionIdRef=”actorname”/> Save this and restart Profiles and now Advanced Search looks a lot more friendly A picture named M4 Much better 🙂

2 Responses to Adding a Custom Profiles Field to Advanced Search (InfoCenter is Wrong)
  1. Luis Benitez
    February 10, 2010 | 3:21 pm

    Thanks for documenting this!

  2. Jorge Villagomez
    February 12, 2010 | 3:00 am

    Ohhhh excellent, i went to the core, editing the profiles properties file.

    But this is much better.

    By the way anynone knows who is editing the Developers Profiles Module? I liked what he/she has done en the section of edit my profile

    Thanks!