Is it possible to somehow remove base64 image strings column structureimage from the flat form? We just don't want to show long strings there and showing a structure image may not fit flat form (if we make it working row heights are too small and images get cut out it seems, so we see empty images).
Here is the related code that we have in customizeCell:
if (!(data.hierarchy && data.hierarchy.uniqueName == "structureimage") || data.measure)
return;
if (data && data.type == "header" && data.label != "") {
cell.addClass("fm-custom-cell");
cell.text = me.getStructureImgHtml(data.label);
}

Hello, Nikita,
Thank you for reaching out to us.
The simplest approach would be to exclude the "structureimage" field from the slice while switching to the flat view, so that this column is not rendered.
Alternatively, you can define the "structureimage" field type as a property within the mapping. However, the property field behaves differently from the current setup with a separate image field: it is never rendered on the grid and cannot be selected from the Field List. This implies that you would need to rework the logic that adds image cells.
Please let us know if our answer was helpful.
Best regards,
Maksym
We could try removing them first from flat form. Do you know how can we catch this event of switching to the flat form and modify the slice, then return it back in non flat form?
Hello, Nikita,
Thank you for your reply.
To track the moment when the user switches to flat view, we recommend using a combination of the reportchange event and the getOptions method. The reportchange is fired on every change in the report, including changing the view type. In order to know exactly when the grid type was changed, you can use getOptions to track the state of grid.type option, comparing previous and current value to detect change. We have prepared an example, illustrating this approach: https://jsfiddle.net/flexmonster/tjcr14xf/
You can use this approach to modify the slice when the user switches to flat, and add a second condition for tracking when the user switches back from flat.
Please let us know if this approach works for you.
Best regards,
Maksym