urmas wrote:
Still wondering where that is stored in the database as it was not in ODF_DEFAULT_OVERRIDES?
In my system, the Fields/Override Default is in the ODF_VIEW_ATTRIBUTES.DEFAULT_VALUE - don't recognise "odf_default_overrides"?
--
Simple test;
I create a new attribute and give it an attribute level "Default Value" of "AttrDefault" - this is stored in ODF_CUSTOM_ATTRIBUTES;
select column_name , default_value
from Odf_Custom_Attributes
where Column_Name = 'myattribute'
COLUMN_NAME | DEFAULT_VALUE |
---|
myattribute | AttrDefault |
Creating a new instance of my object gives a default in "MyAttribute" of "AttrDefault".
Looking in ODF_VIEW_ATTRIBUTES now;
select attribute_code , view_id, default_value
from ODF_VIEW_ATTRIBUTES
where attribute_code = 'myattribute'
ATTRIBUTE_CODE | VIEW_ID | DEFAULT_VALUE |
---|
myattribute | 5065033 | |
myattribute | 5065034 | |
myattribute | 5065037 | |
Then I go into the [FIELDS] settings for my attribute and enter an "Override Default Value" of "ViewDef".
Run that last query again and now I see;
ATTRIBUTE_CODE | VIEW_ID | DEFAULT_VALUE |
---|
myattribute | 5065033 | ViewDef |
myattribute | 5065034 | ViewDef |
myattribute | 5065037 | |
Creating a new instance of my object gives a default in "MyAttribute" of "ViewDef".