Hi All,
We just implemented DCO in our environment.
We created a subtype from dm_message_archive type, and we've been able to import emails into repository.
We also provide custom email searching function in Webtop.
Here is the xmls:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Confidential Property of Documentum, Inc. -->
<!-- (c) Copyright Documentum, Inc. 2001. -->
<!-- All Rights reserved. -->
<!-- May not be used without prior written agreement -->
<!-- signed by a Documentum corporate officer. -->
<!-- -->
<!-- Component: search -->
<!-- Scope: None -->
<!-- Revision $revision$ -->
<!-- Modified on $date$ -->
<config version="1.0">
<scope version="5.3">
<component id="tpmsearchs" extends="search:webcomponent/config/library/search/searchex/search_component.xml">
<desc>
The Webtop 5.3 search component performs a search query on the
current repository for the supplied string of keywords or other
type of query input. This component displays the search results.
Searches in indexed attributes as well as full-text. Can be
overridden by calling it with a null queryType parameter and
supplying a DQL string for the query attribute.
</desc>
<class>com.documentum.webtop.webcomponent.search.SearchEx</class>
<nlsbundle>com.tpmsearch.SearchExNlsProp</nlsbundle>
<failoverenabled>true</failoverenabled>
<!-- Component specific Configuration -->
<!-- default search docbases and sources -->
<!-- a value of "current_docbase": search the current docbase -->
<!-- a value of "visible_docbases": search all the visible docbase -->
<!-- a value of "preferred_sources": search the preferred sources -->
<!-- a value of "all_sources": all the visible docbases and external sources -->
<defaultsources>preferred_sources</defaultsources>
<!-- Indicate if the path information should be displayed for results coming from a docbase.-->
<!-- Fetching folder information may be an expensive operation -->
<displayresultspath>false</displayresultspath>
<!-- default object type for the search -->
<type>email_obj_type</type>
<!-- 'true' active or 'false' de-active term-hit highlighting -->
<highlight_matching_terms>true</highlight_matching_terms>
<!-- visibility and order of attribute columns -->
<!-- attribute names starting with uppercase are pseudo -->
<columns_list>
<loadinvisibleattribute>false</loadinvisibleattribute>
<column>
<attribute>object_name</attribute>
<label><nlsid>MSG_NAME</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>broker</attribute>
<label><nlsid>MSG_BROKER</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>ship_name</attribute>
<label><nlsid>MSG_SHIP_NAME</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>rate</attribute>
<label><nlsid>MSG_RATE</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>route</attribute>
<label><nlsid>MSG_ROUTE</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>c_p_date</attribute>
<label><nlsid>MSG_C_P_DATE</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>lay_can</attribute>
<label><nlsid>MSG_LAY_CAN</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>chartering_officer</attribute>
<label><nlsid>MSG_CHARTERING_OFFICER</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>status</attribute>
<label><nlsid>MSG_STATUS</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>hajoco</attribute>
<label><nlsid>MSG_HAJOCO</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>title</attribute>
<label><nlsid>MSG_ATTR_TITLE</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>authors</attribute>
<label><nlsid>MSG_AUTHORS</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>a_content_type</attribute>
<label><nlsid>MSG_FORMAT</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>r_content_size</attribute>
<label><nlsid>MSG_SIZE</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>owner_name</attribute>
<label><nlsid>MSG_OWNER_NAME</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>group_name</attribute>
<label><nlsid>MSG_GROUP_NAME</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>r_creator_name</attribute>
<label><nlsid>MSG_CREATOR_NAME</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>r_object_type</attribute>
<label><nlsid>MSG_OBJECT_TYPE</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>r_version_label</attribute>
<label><nlsid>MSG_VERSION_LABEL</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>r_creation_date</attribute>
<label><nlsid>MSG_CREATION_DATE</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>r_modify_date</attribute>
<label><nlsid>MSG_MODIFIED_DATE</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>r_modifier</attribute>
<label><nlsid>MSG_MODIFIER</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>r_access_date</attribute>
<label><nlsid>MSG_ACCESS_DATE</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>r_lock_owner</attribute>
<label><nlsid>MSG_LOCK_OWNER</nlsid></label>
<visible>false</visible>
</column>
<!-- this is a pseudo attributes refering to the folder path or external source URL -->
<column>
<attribute>Location</attribute>
<label><nlsid>MSG_ATTR_LOCATION</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>Source</attribute>
<label><nlsid>MSG_ATTR_SOURCE</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>topic_status</attribute>
<label><nlsid>MSG_DISCUSSION</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>room_status</attribute>
<label><nlsid>MSG_ROOM_ICON</nlsid></label>
<visible>true</visible>
</column>
</columns_list>
<columns_drilldown>
<loadinvisibleattribute>false</loadinvisibleattribute>
<column>
<attribute>object_name</attribute>
<label><nlsid>MSG_NAME</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>broker</attribute>
<label><nlsid>MSG_BROKER</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>ship_name</attribute>
<label><nlsid>MSG_SHIP_NAME</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>rate</attribute>
<label><nlsid>MSG_RATE</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>route</attribute>
<label><nlsid>MSG_ROUTE</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>c_p_date</attribute>
<label><nlsid>MSG_C_P_DATE</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>lay_can</attribute>
<label><nlsid>MSG_LAY_CAN</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>chartering_officer</attribute>
<label><nlsid>MSG_CHARTERING_OFFICER</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>status</attribute>
<label><nlsid>MSG_STATUS</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>hajoco</attribute>
<label><nlsid>MSG_HAJOCO</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>authors</attribute>
<label><nlsid>MSG_AUTHORS</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>a_content_type</attribute>
<label><nlsid>MSG_FORMAT</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>r_content_size</attribute>
<label><nlsid>MSG_SIZE</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>owner_name</attribute>
<label><nlsid>MSG_OWNER_NAME</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>group_name</attribute>
<label><nlsid>MSG_GROUP_NAME</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>r_creator_name</attribute>
<label><nlsid>MSG_CREATOR_NAME</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>r_object_type</attribute>
<label><nlsid>MSG_OBJECT_TYPE</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>r_version_label</attribute>
<label><nlsid>MSG_VERSION_LABEL</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>r_creation_date</attribute>
<label><nlsid>MSG_CREATION_DATE</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>r_modify_date</attribute>
<label><nlsid>MSG_MODIFIED_DATE</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>r_modifier</attribute>
<label><nlsid>MSG_MODIFIER</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>r_access_date</attribute>
<label><nlsid>MSG_ACCESS_DATE</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>r_lock_owner</attribute>
<label><nlsid>MSG_LOCK_OWNER</nlsid></label>
<visible>true</visible>
</column>
<!-- this is a pseudo attributes refering to the folder path or external source URL -->
<column>
<attribute>Source</attribute>
<label><nlsid>MSG_ATTR_SOURCE</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>summary</attribute>
<label><nlsid>MSG_ATTR_SUMMARY</nlsid></label>
<visible>true</visible>
</column>
<column>
<attribute>topic_status</attribute>
<label><nlsid>MSG_DISCUSSION</nlsid></label>
<visible>false</visible>
</column>
<column>
<attribute>room_status</attribute>
<label><nlsid>MSG_ROOM_ICON</nlsid></label>
<visible>false</visible>
</column>
</columns_drilldown>
</component>
</scope>
</config>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Developer's Comments
# Parameters
/* drilldown Set to true to use the drilldown view by
default to display the search results.
This parameter is set to false in Webtop
when the user selects classic view in
preferences.
*/
/* query Required. DQL query (for queryType =
dql) or search string (for queryType =
string)
*/
/* queryType Specifies the type of query. Valid
values: string (one or more full-text
search keywords) | objectId (of a saved
search) | querydef (string consisting of
smartlist content) | queryId (internal
ID for the current query to be revised)
| null (DQL)
*/
/* showwait Not used.
*/
#
# Elements
/* <failoverenabled> The query, but not results, is persisted
in the case of failover, and the query
is reissued.
*/
/* <defaultsources> Sets the default search locations to be
displayed for a search. Valid values:
current_docbase (current repository) |
visibile_docbases (all visible
repositories) | preferred_sources (all
visible repositories and external
sources set in the user's preferences) |
all_sources (all visible repositories
and external sources)
*/
/* <type> Default type for the search
*/
/* <columns> Configures the default columns to be
displayed in search results for both
search and advsearch components. Only
searchable attributes can be displayed.
The user can select other columns in the
display_preferences UI.
*/
/* <showfilters> Set to true to show the objectfilters
drop-down control
*/
/* <objectfilters> Contains filters that define which
objects should be shown in the objects
selection list.
*/
/* <objectfilter> Specifies a filter for the items that
are displayed. Contains <label>,
<showfolders>, <type>, <showallversions>
*/
/* <label> Displays a label for the filter such as
Folders or All. Can contain a string or
<nlsid>.
*/
/* <objectfilter>.<showfolders> | To show folders only, set <showfolders>
<type> to true and <type> to null (no value).
To show objects only, set <showfolders>
to false and <type> to dm_sysobject. To
show all, set <showfolders> to true and
<type> to dm_sysobject. <type> can take
any value that is a valid Documentum
type.
*/
/* <objectfilter>.<showallversions> To add a versions column, set
<showallversions> to true.
*/
/* <columns>.<loadinvisibleattribute> Uncommnet this element and set to true
to get invisible attribute values for
use in your component. The invisible
attributes can then be passed by
configuring a column in the <columns>
element. See <citetitle>
&wdkguide;</citetitle> for details.
*/
/* <columns><column> Specifies columns to show or hide
*/
/* <column><attribute> <attribute> sets the attribute to be
displayed in the column.
*/
/* <attribute><label> The value of <label> sets a label for
the column.
*/
/* <column><attribute><visible> Set <visible> to true to show the
column.
*/
#
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
But whenever we try to search the emails, it never appeared.
And in our webapps console there is an error :
13:47:49,015 ERROR [http-8082-2] com.documentum.web.formext.control.docbase.search.RepositorySearch - Force objectType back to [dm_document] since [email_object_type] is not a valid searchable type.
How can I fix this?
Please kindly advice.
We're using:
- CS 6.5 SP1
- Webtop 6.5 SP1
- DCO 6.5 SP2
Thanks