Mike Mackinnon
Well Known Member
I am not an XML programmer so I am not sure of the syntax or even if this can be done but I am trying to resize a BI Publisher property dynamically according to a condition of another field. This is somewhat related to my other issue I had with trying to fit an attachment into a single page report.
My situation:
- I have a report that MUST fit onto one page
- I have an attachment (media object) that is printing on the report. I do not know the length of this attachment.
My thoughts:
1.) I can find out the number of lines on the attachment from JDE E1 using a couple business functions.
2.) I can then change the font size using XML code in RTF document (BI Publisher Properties) based upon the number of lines in attachment.
3.) so I can say if > 10 lines set font size to "7"; if > 15 set font size to "6"; if > 20 set font size to "5"; etc.
My problem is I cannot anywhere an example of how to 'programmatically' do this...maybe there is no way?
See attachment for screen shot of what I am talking about.
Thanks,
Mike
My situation:
- I have a report that MUST fit onto one page
- I have an attachment (media object) that is printing on the report. I do not know the length of this attachment.
My thoughts:
1.) I can find out the number of lines on the attachment from JDE E1 using a couple business functions.
2.) I can then change the font size using XML code in RTF document (BI Publisher Properties) based upon the number of lines in attachment.
3.) so I can say if > 10 lines set font size to "7"; if > 15 set font size to "6"; if > 20 set font size to "5"; etc.
My problem is I cannot anywhere an example of how to 'programmatically' do this...maybe there is no way?
See attachment for screen shot of what I am talking about.
Thanks,
Mike