Examples of exportResults()


Examples of org.olat.ims.qti.export.QTIExportManager.exportResults()

      QTIObjectTreeBuilder qotb = new QTIObjectTreeBuilder(repositoryRef);
      List qtiItemObjectList = qotb.getQTIItemObjectList();
      QTIExportFormatter formatter = new QTIExportFormatterCSVType1(ureq.getLocale(), "\t", "\"", "\\", "\r\n", false);
      Map qtiItemConfigs = getQTIItemConfigs(qtiItemObjectList);
      formatter.setMapWithExportItemConfigs(qtiItemConfigs);
      resultExportFile = qem.exportResults(formatter, results, qtiItemObjectList, courseNode.getShortTitle(), exportDir, charset, ".xls");
      String[] args1 = new String[] { Integer.toString(learners.size()) };
      vcStep2.contextPut("information", translator.translate("replace.wizard.information.paragraph1", args1));
      String[] args2 = new String[] { exportDir.getName(), resultExportFile };
      vcStep2.contextPut("information_par2", translator.translate("replace.wizard.information.paragraph2", args2));
      vcStep2.contextPut("nodetitle", nodeTitle);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.