Pridanie nových reportov na JasperServer: Rozdiel medzi revíziami

Z SPIN2-wiki
Prejsť na: navigácia, hľadanie
(Import Jasper zostav)
(Import Jasper zostav)
Riadok 17: Riadok 17:
 
4. Otvorte tento súbor "js.jdbc.properties" a nakopirujte tam tento kód: <br />
 
4. Otvorte tento súbor "js.jdbc.properties" a nakopirujte tam tento kód: <br />
 
<nowiki>
 
<nowiki>
#
+
''#''
# Copyright © 2005 - 2018 TIBCO Software Inc.
+
''# Copyright © 2005 - 2018 TIBCO Software Inc.''
 
# http://www.jaspersoft.com.
 
# http://www.jaspersoft.com.
 
#
 
#

Verzia zo dňa a času 12:28, 5. október 2020

Add Your Content Here

Príprava softvéru

Na používanie Jasper reportov potrebujete JasperServer, napojený na vašu databázu (https://wiki.helios.eu/sk/spin2/index.php/In%C5%A1tal%C3%A1cia_JasperReports_Server_v7.1) .
Aby pridať Jasper reporty na vaš JasperServer, potrebujete nastroj "Buildomatic", ktorý je súčasťou JasperServera.

Ďalšie kroky predpokladajú, že už mate nainštalovaný JasperServer a je správne nakonfigurovaný.

Import Jasper zostav

1. Otvorte adresár, v ktorom sa nachádza vás Buildomatic (napr. "C://JasperServer/Buildomatic_70").
2. Otvorte adresár build_conf (napr. "C://JasperServer/Buildomatic_70/build_conf").
3. Vytvorte súbor "js.jdbc.properties".
4. Otvorte tento súbor "js.jdbc.properties" a nakopirujte tam tento kód:
''#'' ''# Copyright © 2005 - 2018 TIBCO Software Inc.'' # http://www.jaspersoft.com. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. # # Property that determines the Hibernate dialect metadata.hibernate.dialect=org.hibernate.dialect.Oracle8iDialect # jasperserver repo db settings metadata.jdbc.driverClassName=oracle.jdbc.OracleDriver metadata.jdbc.url=jdbc:oracle:thin:@//dharma.asol.local:1521/spintest.asol.local metadata.jdbc.username=jasperserveruser metadata.jdbc.password=kjop__548FER metadata.jdbc.password.escapeXML=kjop__548FER metadata.jndi=jdbc/jasperserver metadata.database.generate=true # used to add parms to tomcat datasource: context.xml # todo: still used? datasource.extra.params= # Tomcat JNDI Resource factory attribute tomcat.basic.datasource.factory=${tomcatBasicDatasourceFactory} # jasperserver repo DB for Integration Testing #it.metadata.jdbc.driverClassName= #it.metadata.jdbc.url= #it.metadata.jdbc.username= #it.metadata.jdbc.password= #it.metadata.jdbc.password.


2. Vytvorte súbor "Import-ZAKLAD-MZD-zip.bat".
3. Otvorte tento .bat súbor a nakopírujte tam tento kod:


/* text medzi takými to znakmi nekopírujte */


SET JAVA_HOME=c:\Program Files\Java\jre1.8.0_202 /* tuto definujte cestu do JRK */
SET ADDITIONAL_CONFIG_DIR=build_conf\nazov_adresara_s_configuracnym_suborom
CALL js-import.bat --input-zip Exports\asseco_ba_testAM\asseco_ba_testAM-ZAKLAD-MZD.zip --update --skip-user-update
pause