IObjTemplateDAO templateDAO;
List<Subreport> subreports;
Subreport subreport;
BIObject subreportBObject;
ObjTemplate subreportTemplate;
String prefixName;
String tempName;
String flgTemplateStandard;
Integer id;
try {
subreportDAO = DAOFactory.getSubreportDAO();
bobjectDAO = DAOFactory.getBIObjectDAO();
templateDAO = DAOFactory.getObjTemplateDAO();
subreports = subreportDAO.loadSubreportsByMasterRptId( reportBObject.getId() );
for (int i = 0; i < subreports.size(); i++) {
subreport = subreports.get(i);
subreportBObject = bobjectDAO.loadBIObjectForDetail(subreport.getSub_rpt_id());
subreportTemplate = templateDAO.getBIObjectActiveTemplate(subreportBObject.getId());
prefixName = subreportBObject.getId() + "_" + subreportTemplate.getBinId();
pars.put("sr." + (i + 1) + ".ids", prefixName);
logger.debug("ids: " + prefixName);
/*
tempName = subreportTemplate.getName().substring(0,subreportTemplate.getName().indexOf("."));