Duplicated
Last Updated: 21 Feb 2024 07:37 by ADMIN
Steve
Created on: 18 Oct 2023 12:32
Type: Feature Request
4
CSV render output control

The CSV renderer ignores the visible state of elements in a report definition (sections, headers, footers, text boxes etc.) with the Visible property to false - either explicity or by binding.

This results in much redundant content in the CSV file, that is often not even the actual output/result data - which should be the primary focus of a format like CSV.

Being able to control the output brings much flexibility to the CSV feature. Though Reporting primarily has a focus on a more rich, visual display of data, having access to the same "raw" result set that a report would evaluate can be very useful, without having to try replicate through other means.

Binding the Visible property of elements to: = RenderingFormat.Name <> "CSV" would allow the choice of including what makes sense in the ouput, even allowing a different "view" of the data, which could contain just detail row fields or additionally, summary fields from group and report headers & footers.


Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
5 comments
ADMIN
Todor
Posted on: 21 Feb 2024 07:37

Hello,

Thank you Steve for sharing your scenario with our team and community. The developers will take this into account when planning the feature.

Meanwhile, you may use the RenderingFormat Global Object to control the content/value of report items. For example, you may set it to Null or empty string for CSV extension as the styles are not respected when rendering in this format.

Regards,
Todor
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Shruthi
Posted on: 14 Feb 2024 11:53
I agree. Would be great if there is a way to exclude some fields in csv export. 
Steve
Posted on: 14 Feb 2024 11:27

Hi everyone,

So, more recently I have found that it is very useful to have invisible fields that are not shown in visual format renderings but are rendered in CSV.

This is mainly due to the nature of the CSV rendering, as (potentially) so many columns are generated from the hierarchy with repeated data, that it would be difficult for an automated system to process the CSV accurately.

Unless the report is already rendering fields that clearly identify groups and detail rows, I found that an invisible textbox in the group header section with the Key/ID (typically the grouping value) for the group provides means to help identify distinct group fields.
Along with this, prefixing the names of textboxes for field values in group sections and those in the detail section consistently (e.g. "Group-{name}_*" and "Detail_*" (where "{name}" is the current grouping name)) makes it easy to identify distinct group and detail row values.

I am just now wondering if it would be a good idea if there was an optional(?) built-in feature to do this automatically in the CSV renderer - data keys and group names etc inserted in the export and fields prefixed. Otherwise in the meantime at least, something like a textbox/item naming tool that can batch rename/prefix by group and/or section.

While content with Visible=false being rendered in CSV would be good to keep in place, some other means of excluding content from CSV rendering (and any other data output format that is typically processed by computer systems) will still be beneficial. Without it, potentially many useless columns are rendered and file sizes can become uneccesarily large.

Shruthi
Posted on: 14 Feb 2024 10:01
Hi Todor, I am facing the issue where textboxes with Visbile = false are displayed in csv exports. i believe its the same issue raised here. Do we have an update on this issue.
ADMIN
Todor
Posted on: 25 Oct 2023 11:31

Hello Steve,

Thank you for the detailed description of the requirement and the potential benefits from it. We already have such a request that is linked above as Duplicate. Your thoughts shared here will be considered when we decide to implement the functionality.

Regards,
Todor
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.