Hello,
I have a dynamic dialog created inside clicked() method of the button on the form. Like that:
void clicked()
{
Dialog dialog;
DialogField dlgStatusId;
EntAssetLifecycleStateId newEOStatusId;
OGK4_TriCpParameter paramOrig;
super();
dialog = new Dialog("Копирование");
dlgStatusId = dialog.addField(extendedTypeStr(EntAssetLifecycleStateId));
dlgStatusId.registerOverrideMethod(methodStr(FormStringControl, lookup),methodStr(element, lookupEntAssetLifecycleStateId),this);
How to override lookup method of the dlgStatusID field? Initially I wanted to add new ,lookup method on the form but compiler gives me an error

So it expects this argument to be a class. I previously overwrote lookup methods in classes inherited from RunBAse classes and such approach worked fine. IN argument I just pointed out the name of my class. But here it's button on the form. So how should I do something like that in this case?
Thanks.