BF[1897842] JasperReport - no procedure defined
This commit is contained in:
parent
125e7fbbcc
commit
b4b1dc934f
|
@ -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
|
* Report submission
|
||||||
*/
|
*/
|
||||||
if (IsReport)
|
|
||||||
{
|
|
||||||
m_pi.setReportingProcess(true);
|
|
||||||
|
|
||||||
// Optional Pre-Report Process
|
// Optional Pre-Report Process
|
||||||
if (ProcedureName.length() > 0)
|
if (ProcedureName.length() > 0)
|
||||||
{
|
{
|
||||||
|
m_pi.setReportingProcess(true);
|
||||||
if (!startDBProcess(ProcedureName))
|
if (!startDBProcess(ProcedureName))
|
||||||
{
|
{
|
||||||
unlock();
|
unlock();
|
||||||
|
@ -440,12 +429,16 @@ public class ProcessCtl implements Runnable
|
||||||
|
|
||||||
if (isJasper)
|
if (isJasper)
|
||||||
{
|
{
|
||||||
|
m_pi.setReportingProcess(true);
|
||||||
m_pi.setClassName(ProcessUtil.JASPER_STARTER_CLASS);
|
m_pi.setClassName(ProcessUtil.JASPER_STARTER_CLASS);
|
||||||
startProcess();
|
startProcess();
|
||||||
unlock();
|
unlock();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (IsReport)
|
||||||
|
{
|
||||||
|
m_pi.setReportingProcess(true);
|
||||||
// Start Report -----------------------------------------------
|
// Start Report -----------------------------------------------
|
||||||
boolean ok = ReportCtl.start(m_parent, windowno, m_pi, IsDirectPrint);
|
boolean ok = ReportCtl.start(m_parent, windowno, m_pi, IsDirectPrint);
|
||||||
m_pi.setSummary("Report", !ok);
|
m_pi.setSummary("Report", !ok);
|
||||||
|
|
Loading…
Reference in New Issue