Hello,
does anyone know how to overwrite the FO rule for breaking the line so that the string of text fits a specified item width in ZEN report?
For example, it seems that Zen report would not start the next line with a period or a comma even though we would insert a space in the middle of the sentence. Space would always work (up to now), except for cases, when the next line starts with period or comma (maybe other punctuation signs).
We tried "breakonline" set to true, and couldn't make it to work either, however, it would be great to set it up for all our reports, not for each individual case.
thank you,
Elena
I don’t understand your request. Can you give some examples?
For you, what is an acceptable solution for breaking the line so that the string of text fits a specified item width in the ZEN Report?
I don’t understand what you mean by not starting the next line with a period or comma. Please give an example.
What do you mean by you couldn’t get “breakonline” to work?
What do you mean by setting up “it” for all your reports, not each individual case?
Thanks,
Jonathan
--
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To post to this group, send email to
InterSys...@googlegroups.com
To unsubscribe from this group, send email to
InterSystems-Z...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/InterSystems-ZEN?hl=en
Zen Community Terms and Conditions:
http://groups.google.com/group/InterSystems-ZEN/web/community-terms-and-conditions
---
You received this message because you are subscribed to the Google Groups "InterSystems: Zen Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
intersystems-z...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Instead of space insert a $C(10) – use for instance $tr to convert spaces to $C(10) in your ReportDefinition and set the attribute breakOnLineFeed=”true”.
In your report definition you might have something like:
<element name=”Perscription” field=”prescription” expression=’$tr(%val,” “,$C(10))’/>
You can use XSLT recursive techniques if you only want to change your ReportDisplay and not your ReportDefinition.
ZEN Reports allows you to use XSLT programming.
The above doc shows you how to use XSLT recursive programming though it is not a tutorial and you might want to see a standard XSLT reference such as the XSLT Cookbook for more hand-holding.
In your XSLT (if that is the route you choose to go) you would change spaces to “\n”. You would also use breakOnLineFeed=”true” (as you would in both approaches to a solution).
Regards,
Jonathan Levinson
Senior Software Developer
InterSystems