Friday, February 27, 2015

How to set up a default value to item-type property on ATG Oracle commerce

Oracle documentation says that you can set up a default value for properties into the repository definition, however all the OOTB definitions are for simple data-types such Boolean, string or enumerated, this can be set as well to item-type properties, but is important to mention that this can not be done on multi-valued properties.

This can be found at http://docs.oracle.com/cd/E24152_01/Platform.10-1/ATGRepositoryGuide/html/s1302property01.html but does not mention anything about item-type properties, so I was not sure if this was possible until I did it.

Below is an example of how to set up a default value to product's template property.

This is a hard coded value, just to show how this can be done. however this can be pointed to a component property

It was just as simple as ste the id of the component you want to point:
Post a Comment