Hello everyone,
I am trying to extend Formcontrol method with extension class but it's not working. By the way the control is custom control. And the coc is not hitting this point.
I am attaching code below if anyone have an idea i ll be glad to hear
I am trying to work with PCRuntimeConfigurator Form object this have a
[Control("Custom")
class PCRuntimeControl and this control have a method named public PCAttributeDetailsContract getAttributeDetails(int64 _recId)
Here is my extension class header
[ExtensionOf(formControlStr(PCRuntimeConfigurator,PCRuntimeControl))]
final class PRXPCRuntimeConfigurator_Extension
{
public PCAttributeDetailsContract getAttributeDetails(int64 _recId)
{
EcoResCategoryAttribute categoryAttribute;
ImageReference imageReference;
PCAttributeDetailsContract ret;
EcoResProductImage ecoResProductImage;
ret = next getAttributeDetails(_recId);
categoryAttribute = EcoResCategoryAttribute::find(_recId);
imageReference = ecoResProductImage::attributeImage(categoryAttribute,EcoResProductImageSize::Thumbnail);
ret.parmImageType(imageReference.parmImageType());
ret.parmImageData(imageReference.parmImageData());
return ret;
}
}
The code not hitting this extension class, when i was trying other formcontrol's i am not facing this problem. I did not find any other method which i can extend it.