use of org.adempiere.webui.apps.form.WArchiveViewer in project adempiere by adempiere.
the class WArchive method onEvent.
// getZoomTargets
/**
* Listner
* @param e event
*/
public void onEvent(Event e) throws Exception {
if (e.getTarget() instanceof Menuitem) {
// ArchiveViewer
int AD_Form_ID = 118;
ADForm form = ADForm.openForm(AD_Form_ID);
WArchiveViewer av = (WArchiveViewer) form.getICustomForm();
if (e.getTarget() == m_documents)
av.query(false, m_AD_Table_ID, m_Record_ID);
else if (e.getTarget() == m_reports)
av.query(true, m_AD_Table_ID, m_Record_ID);
else
// all Reports
av.query(true, m_AD_Table_ID, 0);
form.setAttribute(Window.MODE_KEY, Window.MODE_EMBEDDED);
SessionManager.getAppDesktop().showWindow(form);
}
}
Aggregations