Hello,
I would like to change the value of the field "AttributeModifier" in the initValue() method of a datasource (EcoResAttribute). The method on the form is implemented in the following way:
public void initValue()
{
super();
//the purpose of the below default assignment is to restrict the users to create attributes of type Catalog
// and later can be consumed by Categories and Products.
ecoResAttribute.AttributeModifier = EcoResAttributeModifier::Catalog;
}
I tried to handle my requirement with the "event handler" method in order not to overlayer the form. I chose the event "OnInitValue".
![]()
Unfortunatly is the code in the event handler executed during the "super()" context of the form method. Therefore the line "ecoResAttribute.AttributeModifier = EcoResAttributeModifier::Catalog;" afterwards orverrides my value.

How can I change the value in the field "EcoResAttribute.AttributeModifer" in the initValue() without overlayering the form?
Thanks in advance
Sebastian
*This post is locked for comments
I have the same question (0)