Hi,
I created a form extension and added a new button then I created the following class to be able to override clicked method
[ExtensionOf(formControlStr(CaseDetail,AAbtnNewCase))]
final class CaseDetailAA_Extension
{
public void clicked()
{
//logic
}
name of class is CaseDetailAA_Extension
now if I want to add a new method for the form caseDetail which is AACreateRecord -- similar to the standard createRecord method in this class and call it inside the clicked method, shall I add this new method in this class I created?
[ExtensionOf(formControlStr(CaseDetail,AAbtnNewCase))]
final class CaseDetailAA_Extension
{
public void clicked()
{
this.aaCreateRecord();
}
public void aaCreateRecord()
{
//logic
}
OR
shall I create a new class with [ExtensionOf(formlStr(CaseDetail))] and add aaCreateRecord() in it? if that's the case then this class needs to be CaseDetailAA_Extension. Then what should I rename the extension class for the formControl? what's the best practice? would this work CaseDetailFormControlAA_Extension?