Hi guys,
i wrote an event handler one condition its working fine same i want to achieve in the COC so that
i did an Control name set as a "auto declaration" 'YES '
My event handler code below,
[FormDataSourceEventHandler(formDataSourceStr(HRMCourseAttendee, HRMCourseAttendee), FormDataSourceEventType::Activated)]
public static void HRMCourseAttendee_OnActivated(FormDataSource sender, FormDataSourceEventArgs e)
{
HRMCourseAttendee courseAttendee = sender.formRun().dataSource("HRMCourseAttendee").cursor();
FormButtonGroupControl course = sender.formRun().design().controlName("Course") as FormButtonGroupControl;
course.enabled(courseAttendee.status == HRMCourseAttendeeStatus::Confirmation);
}
Coc code,
[ExtensionOf(formDataSourceStr(HRMCourseAttendee, HRMCourseAttendee))]
final class HRMCourseAttendee_Extension
{
public int active()
{
int ret;
ret = next active();
CourseCertificate.enabled(HRMCourseAttendee.Status == HRMCourseAttendeeStatus::Confirmation);
return ret;
}
}
"CourseCertificate" not declared am getting error please let me know how to achieve same logic in the COC?
Thanks