Home > Forum > General > Report based on solr

Report based on solr
1

MVP
In reply to: Radosław Begej

I agree, my question is not precise enough.
I need to add a column to a report from a list of items. I am looking for a solution to this issue.

Showing data from an item list column on a solr report may be problematic, at least I can't answer whether using some query for a calculated column can achieve this.
But you can approach the topic differently, if it meets your requirements. You can create a multi-line field and update this field with data from the list of items, properly formatted into an HTML table.
Then display this field as a column in the solr report. example below.

Regards.

MVP
In reply to: Radosław Begej

Maybe someone knows how to return in the calculated SOLR column, concatenated all rows of one column and display in single row of the report.

Hi Radoslaw,

Although it's not the best solution from a performance point of view, you can add grouped data from an item list with the calculated column on a regular report. I didn't try it yet on a SOLR report but I suspect it should work the same.

Here is the SQL for the calculated column:

(
SELECT COUNT(*) FROM WFElementDetails
WHERE DET_WFDID = WFElems.WFD_ID
AND DET_Att3 = 1
)

Attached also an image.

Hope it helps.