Skip to Content
author's profile photo Former Member
Former Member

custom meta-data property

Hi all,

I am trying to create a custom meta-data property.

I have followed the

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/knowledge management and collaboration developers guide.html >>>>

<b>Implementing a Metadata Extension for KMC Properties</b>

My ResourceBundle file has following values:

	label.key1=value1
	label.key2=value2
	label.key3=value3
	label.key4=value4

In System Config > Content Mgt > Global services >> Property Metadata >>>>

i created a metadata extension using a dropdown .. later, i created a property too..

Meta-data property details:

	<i>propertyId</i>=myTest_property
	Group=default
	Metadata Extension=Test_Dropdown_MetadataExtension

Metadata Extension details:

	Bundle File: com.sap.km.ui.provider.SimpleDynamicValueProvider
	Dynamic Values Class:  com.sap.km.ui.provider.SimpleDynamicValueProvider

The values in the dropdown are coming as <<i>propertyId</i>>.key1, <<i>propertyId</i>>.key2, <<i>propertyId</i>>.key3 ..etc.. instead of coming as value1,value2,value3,value4.

why is this so ?

Also, if i want to have a property with text field.. what changes should i do?

Please help me..Awaiting your reply.

Regards.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 03, 2006 at 01:22 PM

    Hi,

    did you set the "key for label" property in the property-definition? You need to put in the label key in order to map the bundle file with the property.

    Regards, Eik Sunke

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I know what you are using, that's why I told you that you probably needed to do some modifications when getting the diferent labels.

      About the cache, I have no idea, if your are in a test environment it would be good to reboot the system. This is not allways posible depending on the users connected.

      Please re-read the java code and try to find any error or posible misspeling.

      best regards,

      Gregori Coll Ingles.

  • author's profile photo Former Member
    Former Member
    Posted on May 03, 2006 at 03:21 PM

    Hi,

    did you fill the Allowed values property on the metadata property? This should be filled with label.key1,label.key2....

    I never use the dynamic value class, so I guess you could leave this field empty.

    If you want a simple string property, you should leave the Allowed values property blank.

    And finally be sure that the name of your bundle file is the one you set in the metadaextension as Bundle file.

    Hope it helps.

    Gregori Coll Ingles.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.