cancel
Showing results for 
Search instead for 
Did you mean: 

Predifine property type date

Former Member
0 Kudos

Hi all,

I just created a predefined property Zvalidto( type date).

a) How can I set up the

default vale = today+360 days?

b) Also how to define a query (in taxonomy)

Zvalidto >= today

Many thanks

Vasso

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Vasso,

a) You cannot, at least not via the property defintion settings. What you could do would be to implement a repository service which sets the property to the desired value (programtically, so you would have every possibility) at document/folder creation, as you want.

Another question would be, if you shouldn't use the creation time as comparator within your logic which uses the Zvalidto value. Example: The Zvalidto turns into "ValidDays" and now you can set the default value to 360.

b) You cannot. But you could think of implementing a KM report to show all valid/invalid documents referring to your predefined property.

In addition, did you check time-based publishing service if that could fulfill your needs?!

Hope it helps

Detlev

Former Member
0 Kudos

Hi Detlev,

Thank you for your reply. At least I 'll stop looking for it, in the documentation.

Can you give me some more hints, about implementing a repository service? From where I have to start?

Any hint is very welcome.

Thanks again

Vasso

detlev_beutner
Active Contributor
0 Kudos

Hi Vasso,

look here: and search for "repository service" within the forums, you'll get a bunch of hints.

Hope it helps

Detlev

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vasso,

Can you pls tell me how to create a Predefined Property Type..

My actual problem is:

I have been using the Advanced Search facility in KM.

When we create a document or upload a document, it is possible to set Custom Properties for the doc which inturn helps in customized search.

However, allowing every user to set their own Custom Property Type and values for the documents would lead to inefficient search results and confusion.

Is it possible to set some predefined Custom Property Types for documents, so that the user can enter the value alone and not the type while setting the custom property.

Kindly help..

Former Member
0 Kudos

hi venkat,

I can give you some hints, but I dont have an url of full documentation concerning the predefined properties.

System Adminstration-> System Configuration-> Knowledge management -> content Management -> Global Services -> Property Metadata -> Properties

You can create an new property there, with the follwoing characteristics as an example.

<i>Description:</i> News

<i>ID:</i> News

<i>Namespace:</i> JnJ_NS (you defined it in namespaces)

<i>Type:</i> String

<i>Group:</i> JnJ_Group ( you defined it in groups)

<i>Mandatory:</i> yes

<i>Maintainable:</i> Yes (user can select values)

<i>Indexable:</i> Yes (enabled for indexing)

<i>Default Value:</i> Company

<i>Allowed Values (csv):</i> Company,Product,Business

<i>Key for Label:</i> News

<i>Meta Data Extension:</i> Not set

<i>Folder Validity Patterns (csv):</i> nothing

<i>Document Validity Patterns (csv):</i> /documents/News/**

Then in

Global Services-> Property Structures->Property Groups

you create a property group as below

<i>Description:</i> JnJProperties

<i>Group Items:</i> JnJ_NS:News,JnJ_NS:anotherproperty

<i>Key for Label:</i> JnJProperties

Next, in order to see the new predefined property in the document detail screen, you need to add the previous property group(JnJProperties) in the "all_groups".

So, edit the property group "all_groups" and add the JnJProperties in the Group Items, using the comma to separate the values.

I hope this can you give an idea about predefined properties. I am sure there is documentation available, step by step, in the help.

Have a nice new year.

Vasso