BF[1897842] JasperReport - no procedure defined

This commit is contained in:
tspc 2008-03-14 13:31:53 +00:00
parent 125e7fbbcc
commit b4b1dc934f
1 changed files with 725 additions and 732 deletions

View File

@ -413,24 +413,13 @@ public class ProcessCtl implements Runnable
}
}
// If not a report, we need a prodedure name
if (!IsReport && ProcedureName.length() == 0)
{
m_pi.setSummary (Msg.getMsg(Env.getCtx(), "ProcessNoProcedure"), true);
unlock();
return;
}
/**********************************************************************
* Report submission
*/
if (IsReport)
{
m_pi.setReportingProcess(true);
// Optional Pre-Report Process
if (ProcedureName.length() > 0)
{
m_pi.setReportingProcess(true);
if (!startDBProcess(ProcedureName))
{
unlock();
@ -440,12 +429,16 @@ public class ProcessCtl implements Runnable
if (isJasper)
{
m_pi.setReportingProcess(true);
m_pi.setClassName(ProcessUtil.JASPER_STARTER_CLASS);
startProcess();
unlock();
return;
}
if (IsReport)
{
m_pi.setReportingProcess(true);
// Start Report -----------------------------------------------
boolean ok = ReportCtl.start(m_parent, windowno, m_pi, IsDirectPrint);
m_pi.setSummary("Report", !ok);