I am trying to export data from an editable grid in an interface to a PDF file. The only problem is that the data that I have managed to get exported does not appear displayed with each field being displayed in different rows as it was supposed to. It is displaying as showed below:
I have tried using "char(10)" in between lines but it has not worked. Below, an example of the code that I have implemented in order to do so:
Could you please help me understanding how to get something like this:
N;
(...)
instead of something like this: N; N; N; (...)???
Thank you for your attention.
Discussion posts and replies are publicly visible
joinArray( a!forEach( items: pv!something, expression: fv!item.fieldOfSomething ), char(10) )
Also note: this will probably only display the way you were expecting (showing line breaks correctly) when you view the "raw" output in the expression editor. In a process model you probably won't be able to see the expected formatting in any of the default ways, but it's still there. To see it you can pass it into an interface and display it i.e. in a paragraph field, or rich text display field.
First of all, thank you for your help Mike!!I want to pass the data to a PDF File, and not into an interface. I am passing data from an interface, to an exported PDF file through a Process Model
Assuming the PDF respects the "char(10)" character, that should work. I forget if I've tried this (and it might depend on the specific method you're using to generate the PDF, too).
That must be the problem, from what I've tried, I believe that the PDF actually does not respect the "char(10)" character, making it impossible to display information as I wanted to do so. Thank you for your help Mike Schmitt!