ProductCreator set enabled = false

Hy,

I can’t find the IsEnabled-Property in component behaviours?

Has someone a good advice to deactivate this by .Net-Code?

image

Thx & Regards

1 Like

IProductCreator is IPropertyContainer, so get the “IsEnabled” IProperty from there.

Hy @TSy,

I’m not able to do it on this way!
The cast to IPropertyContainer is successfull but there isn’t any property “IsEnabled”…

image

Thx & Regards

Hy @TSy,

some recommendation?

Thx & Regards

OK I checked and the IsEnabled is a property only in the “single feed mode”, not the product creator itself.
So you need to get IProductCreatorSingleMode object (which is also a IPropertyContainer) from IProductCreator.SingleFeed and then the IsEnabled property from there using GetProperty(...)

1 Like