I have created a dynamic list report and when i have choosed ‘add all’ on ‘configure list’. The columns does not show on the right side and i can’t able to add ‘subtotals’ since there is no column for me to select. But when i preview, i can see the records.
the way to configure a “subtotals” report is the following:
choose the columns (via “select columns”) that are to be part of the report
select aggregations for attributes
click the “subtotals” button and select the columns that should be used as grouping characteristica. Here you should see those columns that were selected in step 1 but are not to be aggregated (step 2)
I hope this helps. If you still encounter problems, could you maybe send us one or two screenshots illustrating the issue?
Thanks Thorsten. The step 1 is how i added my columns to display, but step 2 shows nothing added into the list. However when i do step 3 (preview), it shows the records.
Back to the steps on howto add subtotal. I have tried to applied a SUM on the qty, but there is not subtotal that i can select nor show on the last page.
casts should usually not be necessary. Could you send us the definition of the underlying table and the base statement that you used to define the dynamic list?
CREATE TABLE[DO] (
[plant] NVARCHAR(5),
[do_no] NVARCHAR(15),
[qty] NUMERIC,
[truck_name] NVARCHAR(10)
)
--------------this statement does not shows the selected columns ----------------------------------------
select distinct cast(do_no as varchar(20)) as do_no,
cast(plant as varchar(20)) as plant, qty
from do
where plant = ${plant}
and truck_name = ${truck}
--------------this statement shows the selected columns ----------------------------------------
select do_no, plant, qty
from do
where plant = ${plant}
and truck_name = ${truck}
for the sake of completeness: The issue concerned all the “new” JDBC4 datatypes; ROWID, NCHAR, NVARCHAR, LONGNVARCHAR, NCLOB, SQLXML.
It’s resolved in the development build and we will push a new build (RS2.2.0_pre2) to sourceforge by the end of the day.
Because of the upcoming 2.2 release we will probably not port this back to the RS 2.1 (stable) branch, unless you specifically require it.