Skip to Content
0
Former Member
Oct 04, 2005 at 11:15 AM

Sample Repository Filter not working

31 Views

Hello,

I'm going to develop a custom property repository filter based on the SDN article "Developing a Property Filter" (see the following link)

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/Developing%20a%20Property%20Filter.article>

I've imported the sample project at the end of this article into my SAP NW Developer Studio,

made some corrections to the lib paths and successfully deployed the PAR to the Enterprise Portal.

After configuring and activating the new repository filter, it doesn't replace the "created by" or any other properties.

The objects in the attached repository always show their original properties.

It seems that the repository filter never reaches the inner body of the following "if"-clause:

...
// create a new property representation of the standard created by property
IPropertyName createdByPropertyName = new PropertyName(IWcmConst.SAP_WCM_NAMESPACE, WcmConst.PROP_DISPLAYNAME);

// check if property is in map
if (map.containsProperty(createdByPropertyName)) {
...

Does anyone knows how to solve this problem? We really need a custom property repository filter to solve our project requierements!

I'm currently using a SAP NW Enterprise Portal 6.0 SP12 and the SAP NW Developer Studio SP12

Thanx a lot!

With Kind Regards

Joerg Loechner