Bug 378560 - Reports show digits and not the fields when sub-tables are used
Summary: Reports show digits and not the fields when sub-tables are used
Status: CLOSED WORKSFORME
Alias: None
Product: KEXI
Classification: Applications
Component: Reports and Printouts (show other bugs)
Version: 3.0.1
Platform: Arch Linux Linux
: HI major
Target Milestone: ---
Assignee: Adam Pigg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-08 14:09 UTC by Albrecht Will
Modified: 2018-12-15 23:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
report with notes (137.15 KB, image/png)
2017-04-08 14:09 UTC, Albrecht Will
Details
Visible column / field (10.24 KB, image/png)
2017-06-16 10:52 UTC, Jarosław Staniek
Details
Bild2 (124.01 KB, image/png)
2017-08-22 15:49 UTC, Albrecht Will
Details
Bild1 (28.92 KB, image/png)
2017-08-22 15:49 UTC, Albrecht Will
Details
example showing problem (40.00 KB, application/x-kexiproject-sqlite2)
2018-09-13 09:46 UTC, Adam Pigg
Details
my problem to open test1.kexi (26.39 KB, image/png)
2018-09-13 18:30 UTC, Albrecht Will
Details
my problem to open test1.kexi (repetition) (34.77 KB, image/png)
2018-09-13 18:33 UTC, Albrecht Will
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Albrecht Will 2017-04-08 14:09:28 UTC
Created attachment 104922 [details]
report with notes

fields of sub-tables are choosen in form, but the are represented in the report with digits

One note in the attachment gives an additional advice, that selected frame is not stored. See next bug
Comment 1 Jarosław Staniek 2017-04-24 21:39:38 UTC
Thanks Albrecht.
Comment 2 Jarosław Staniek 2017-05-05 16:27:42 UTC
Confirmed. 'Visible' field of the related table isn't used.
Comment 3 Adam Pigg 2017-06-15 20:53:13 UTC
Is this using a field with a  bound column?  Might be difficult to fix in KReport quickly as it has no concept of bound values ... can you not join the fields in a query for the report, and display the field containing the text as required?
Comment 4 Albrecht Will 2017-06-15 21:09:05 UTC
Am Donnerstag, 15. Juni 2017, 22:53:13 CEST schrieben Sie:
> https://bugs.kde.org/show_bug.cgi?id=378560
> 
> --- Comment #3 from Adam Pigg <adam@piggz.co.uk> ---
> Is this using a field with a  bound column?  Might be difficult to fix in
> KReport quickly as it has no concept of bound values ... can you not join
> the fields in a query for the report, and display the field containing the
> text as required?

@Adam, for your first question have a look, on my file under
https://www.magentacloud.de/share/ulf2n.9mdj
(not compressed, it works not for me)
I'm not familiar what you mean. Can you make out of my db a template, that I 
can understand hwo to make it?
Thanks!
Albrecht
Comment 5 Adam Pigg 2017-06-15 22:03:22 UTC
Take a look at this modification
https://www.dropbox.com/s/u2c6w1vyzcxk49c/Meilensteine_2017-04-08_test.kexi?dl=0

I have added a table and query.  The query joins your original table and the new table and changed the report source to the query, then changed on field in the report to a field in the query, Erscheinung.

I hoped to not add the table, but because in your main table, the field type is Text, and not Integer for the erscheinung field, it was not possible to join your main table and z_erscheinung, so the new table is the same, but the id field is type Text .... this is not optimal, it would be better if in your main table, the type was int for the foreign key fields.

But it works, and shows how it can be done.
Comment 6 Jarosław Staniek 2017-06-15 22:56:31 UTC
Just a reminder. Ideal fix in reports would be to use the visible field for the display. KDb and thus Kexi includes both bound and visible fields when needed, this way in case of editable content bound+visible fields can be used for combo boxes.
Comment 7 Jarosław Staniek 2017-06-16 10:52:04 UTC
Created attachment 106123 [details]
Visible column / field

Visible field: I mean this in the table designer
Comment 8 Albrecht Will 2017-08-22 09:49:47 UTC
I could not find what you showed in the picture
Comment 9 Jarosław Staniek 2017-08-22 10:21:08 UTC
@Albrecht could you please show screenshot of your table designer's property pane?

You can't find the lookup column tab or?
Comment 10 Albrecht Will 2017-08-22 15:49:45 UTC
Created attachment 107444 [details]
Bild2

Am Dienstag, 22. August 2017, 12:21:08 CEST schrieben Sie:
> https://bugs.kde.org/show_bug.cgi?id=378560
> 
> --- Comment #9 from Jarosław Staniek <staniek@kde.org> ---
> @Albrecht could you please show screenshot of your table designer's property
> pane?
> 
> You can't find the lookup column tab or?

Here is the basic table



and a subtable
Comment 11 Albrecht Will 2017-08-22 15:49:46 UTC
Created attachment 107445 [details]
Bild1
Comment 12 Jarosław Staniek 2017-08-22 16:01:00 UTC
Thanks but I mean not data but design window. Right side of your window.

https://bugsfiles.kde.org/attachment.cgi?id=106123
Comment 13 Adam Pigg 2018-09-13 09:46:59 UTC
Created attachment 114930 [details]
example showing problem
Comment 14 Adam Pigg 2018-09-13 09:52:33 UTC
See the attached example, showing that queries exhibit the same behaviour as reports.

masted contains fields linked to child
query1 shows problem
query2 shows how I would normally structure my report queries to get child data into a report.

If you are sure this is a missing feature I can look further into it, but maybe the query plugin also need fixed?
Comment 15 Albrecht Will 2018-09-13 16:00:00 UTC
Comment on attachment 114930 [details]
example showing problem

sorry, I cannot open the file.
In the error-report are no details.
I only can use kexi 3.1.0

And sorry, I cannot translate/understand
"masted" contains fields linked to child
Comment 16 Adam Pigg 2018-09-13 16:43:39 UTC
odd, it opens in 3.1 here
Comment 17 Albrecht Will 2018-09-13 18:30:25 UTC
Created attachment 114938 [details]
my problem to open test1.kexi
Comment 18 Albrecht Will 2018-09-13 18:33:43 UTC
Created attachment 114939 [details]
my problem to open test1.kexi (repetition)
Comment 19 Jarosław Staniek 2018-09-13 18:47:48 UTC
@Albrecht the file is called test1.kexi not test.kexi and has md5sum = a6618b7cf218fbe47713ef5fb75d691c.
Comment 20 Jarosław Staniek 2018-09-13 18:51:32 UTC
@Adam I confirm the issue in quwry1 in KEXI 3.1.1-pre and 3.2 (master).
Comment 21 Albrecht Will 2018-09-13 18:58:07 UTC
my md5sum:

kexi]$ md5sum test1.kexi
e5a0c3d608c5c4b5f594c26d2ffd673f  test1.kexi


your summ
a6618b7cf218fbe47713ef5fb75d691c
??
Comment 22 Jarosław Staniek 2018-09-13 19:26:47 UTC
e5a0c3d608c5c4b5f594c26d2ffd673f, right (after opening it in KEXI it changes)

Since the file is correct maybe you have problems with desktop integration so clicking on the file won't work? Could you please run KEXI, and open the file in it?
Comment 23 Albrecht Will 2018-09-13 19:44:36 UTC
I did both after I erased the earlier test1.kexi, first opening in kexi.
The message is the same as before.
Comment 24 Jarosław Staniek 2018-09-13 20:02:07 UTC
@Albrecht without closing KEXI, are you able to 1. create an empty KEXI project file 2. close it, 3. open it?
Comment 25 Albrecht Will 2018-09-13 20:49:08 UTC
cannot open it, the same message.

I thought I wrote it some weeks ago. But lastly i could, so may be i didn't report it. WHY it worked ? I don't know. Somehow ...
Comment 26 Jarosław Staniek 2018-09-13 21:54:34 UTC
So your system has some installation issue of KEXI, right?

Do you have any paths set, probably globally?

If so this is off topic in this bug. I propose to continue on KEXI forum, please start a new thread so we can help.