hpardess
(Hameedullah Pardess)
April 11, 2017, 7:12am
1
I have recorded more than one vital encounter in a visit. I want to print all the vitals encoutner in a tabluar format in a report.
Therefore, I created an SQL Data Set which returns more than one row. Then i have set it as source for XReport but i get an error says “Subquery returns more than 1 row”
java.sql.SQLException: Subquery returns more than 1 row
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1086)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237)
...
dkayiwa
(Daniel Kayiwa)
April 11, 2017, 7:28am
2
The problem is with your sql query. Your subquery which is used in a place that expects one row ended up returning more than one. Here is an example: “select * from patient where patient_id = (select subquery that should not return more than one)”
hpardess
(Hameedullah Pardess)
April 11, 2017, 8:59am
3
Thanks, It was my query problem and I fixed it.
When i run the query from SQL Dataset Definition, it returns two rows. but when i run the XReport, it shows only one row.
dkayiwa
(Daniel Kayiwa)
April 11, 2017, 9:58am
4
hpardess
(Hameedullah Pardess)
April 11, 2017, 10:30am
5
I can not login to modules-refapp.openmrs.org with following username & password,
Username: Admin
Password: Admin123
hpardess
(Hameedullah Pardess)
April 19, 2017, 4:37pm
6
how to wrap the text in XReports. I have a value in XReports which is very long but how can I auto wrap when it is longer than page boundaries?
dkayiwa
(Daniel Kayiwa)
April 21, 2017, 2:00pm
7
Can i look at a screenshot of the word that wraps?
hpardess
(Hameedullah Pardess)
April 21, 2017, 5:39pm
8
I tested again and I observed that if we have a sentence then it wraps properly like this,
but if i have a single long word then it can not wrap the word if it goes beyond the border like this
hpardess
(Hameedullah Pardess)
April 21, 2017, 5:53pm
9
Here is the result of my sql dataset is two records (more than one)
and in XReport I see only one record
same filter and conditions are applied to both reports.
dkayiwa
(Daniel Kayiwa)
April 22, 2017, 8:42pm
10
Can you reproduce these here http://modules-refapp.openmrs.org/ such that i see them live in action?
hpardess
(Hameedullah Pardess)
April 23, 2017, 5:16am
11
dkayiwa
(Daniel Kayiwa)
April 24, 2017, 4:39pm
12
@hpardess i just tried that link but it gives the default html preview of the reporting module.
hpardess
(Hameedullah Pardess)
April 26, 2017, 9:37pm
13
In XReports v9, the default was Web preview but in XReports v10 it is changed . instead it is printed in html preview which is part of legacy UI.
Is the multiple rows printing fixed for Web preview/pdf?
dkayiwa
(Daniel Kayiwa)
April 26, 2017, 9:49pm
14
You need to add the different renderers if you want to see them listed.
hpardess
(Hameedullah Pardess)
April 27, 2017, 12:12am
15
I want to display the multi row data in report templates that I shared with you in my previous posts.
dkayiwa
(Daniel Kayiwa)
April 27, 2017, 6:28am
16
OK. Set it up at modules-refapp.openmrs.org and i will show you how to.
hpardess
(Hameedullah Pardess)
April 27, 2017, 10:32am
17
I can not design the report on server. I get following error,
dkayiwa
(Daniel Kayiwa)
April 27, 2017, 8:56pm
18
@hpardess that was a bug in the legacyui module which i have fixed with https://issues.openmrs.org/browse/LUI-124
Can you try again?
hpardess
(Hameedullah Pardess)
May 7, 2017, 9:34pm
19
following issue is not yet fixed. Therefore, I can not set the how the report should be rendered because by default the report is rendered in legacy UI.
REPORT-800 PIPE character used in URL which cause 400 (Bad Request) response in latest versions of Tomcat
Type: Bug
Priority: Should
dkayiwa
(Daniel Kayiwa)
May 7, 2017, 10:25pm
20
Did you set any renderers? In particular the XReports (PDF) renderer?