@Override protected void onCcReportTemplateSearchValueChanged() throws ims.framework.exceptions.PresentationLogicException { if (ReportTemplateSearchEvent.BTNSEARCHEVENT.equals(form.ccReportTemplateSearch().getSelectedEvent())) { clearInstanceControls(); } else if (ReportTemplateSearchEvent.GRIDSELECTIONEVENT.equals(form.ccReportTemplateSearch().getSelectedEvent())) { form.getLocalContext().setselectedTemplate(form.ccReportTemplateSearch().getSelectedTemplate()); if (form.getLocalContext().getselectedTemplate()!=null) { form.getLocalContext().setcurrentAdviceLeaflet(domain.getAdviceLeafletByTemplate(form.getLocalContext().getselectedTemplate())); populateInstanceControls(form.getLocalContext().getcurrentAdviceLeaflet()); } } updateControlsState(); }
@Override protected void onCcReportTemplateSearchValueChanged() throws ims.framework.exceptions.PresentationLogicException { if (ReportTemplateSearchEvent.BTNSEARCHEVENT.equals(form.ccReportTemplateSearch().getSelectedEvent())) { clearInstanceControls(); } else if (ReportTemplateSearchEvent.GRIDSELECTIONEVENT.equals(form.ccReportTemplateSearch().getSelectedEvent())) { form.grdPrePrintedAdviceLeafletSearch().setValue(null); //WDEV-20437 form.getLocalContext().setselectedTemplate(form.ccReportTemplateSearch().getSelectedTemplate()); if (form.getLocalContext().getselectedTemplate()!=null) { form.getLocalContext().setcurrentAdviceLeaflet(domain.getAdviceLeafletByTemplate(form.getLocalContext().getselectedTemplate())); populateInstanceControls(form.getLocalContext().getcurrentAdviceLeaflet()); } } updateControlsState(); }
@Override protected void onGrdResultSelectionChanged() { form.getLocalContext().setselectedTemplate(form.grdResult().getValue()); form.getLocalContext().setselectedEvent(ReportTemplateSearchEvent.GRIDSELECTIONEVENT); form.fireCustomControlValueChanged(); }
@Override protected void onBtnSearchClick() throws ims.framework.exceptions.PresentationLogicException { form.getLocalContext().setselectedEvent(ReportTemplateSearchEvent.BTNSEARCHEVENT); form.getLocalContext().setselectedTemplate(null); form.fireCustomControlValueChanged(); doSearch(); }
public void refresh() { if (form.txtReportName().getValue() != null && form.txtTemplateName().getValue() != null) { doSearch(); } form.grdResult().setValue(form.getLocalContext().getselectedTemplate()); form.getLocalContext().setselectedEvent(ReportTemplateSearchEvent.GRIDSELECTIONEVENT); form.fireCustomControlValueChanged(); }
public ReportTemplateSearchEvent getSelectedEvent() { return form.getLocalContext().getselectedEvent(); }