Hi Isomorphic,
I am using a ListGridField with a custom cell formatter and escapeHTML set to false. The cell formatter escapes the value using StringUtil.asHTML. The value displays correctly in the list grid; however, it is exported as an empty string by exportClientData.
According to the javadoc, this seems like it should work.
I'm using SmartClient Version: v12.1p_2023-10-21/Pro Deployment (built 2023-10-21).
Note: if I temporarily set escapeHTML to true before calling exportClientData then it works as expected.
Thanks
I am using a ListGridField with a custom cell formatter and escapeHTML set to false. The cell formatter escapes the value using StringUtil.asHTML. The value displays correctly in the list grid; however, it is exported as an empty string by exportClientData.
According to the javadoc, this seems like it should work.
Note that during export, the ListGridField.escapeHTML setting on a field determines how escaped and unescaped HTML values are handled. In particular, if escapeHTML is not set for a field, a value like "<FOO>" will be exported as the empty string, and you'd need the escaped value "<FOO>" to end up exporting "<FOO>".
Note: if I temporarily set escapeHTML to true before calling exportClientData then it works as expected.
Thanks
Comment