Oracle Apex:如何将字段值传递给报表布局xml?

时间:2017-08-22 12:55:46

标签: oracle oracle-apex oracle-apex-5 oracle-apex-5.1

我创建了一个交互式报表,其中包含使用共享组件(报表布局)自定义的报表布局进行打印。

我如何设置字段值,例如:P16_AGE进入打印页面/报表布局?

这是我在通用代码中所拥有的,它与& P16_AGE不兼容。甚至不使用:APP_USER

<fo:static-content flow-name="region-header">
               <fo:block xsl:use-attribute-sets="text text_2 text_0 start">
                  <fo:inline xsl:use-attribute-sets="page-header">#PAGE_HEADER#
:APP_USER </fo:inline>
<fo:block font-size="10pt">

Age of person: &P16_AGE.

</fo:block>
               </fo:block>

1 个答案:

答案 0 :(得分:1)

我认为这是不可能的。报告布局的在线帮助说:

The report layout is the XSL-FO based definition of the page formatting. All
attributes defining page size, orientation, fonts, styles, etc., are defined
in this section.
The following are valid substitution strings:
#PAGE_HEADER#
#PAGE_HEADERFONT_COLOR#
#PAGE_HEADER_FONT_FAMILY#
#PAGE_HEADER_FONT_SIZE#
#PAGE_HEADER_FONT_WEIGHT#
#PAGE_FOOTER#
#PAGE_FOOTER_FONT_COLOR#
#PAGE_FOOTER_FONT_FAMILY#
#PAGE_FOOTER_FONT_SIZE#
#PAGE_FOOTER_FONT_WEIGHT#
#PAGE_WIDTH#
#PAGE_HEIGHT#
#HEADER_BG_COLOR#
#HEADER_FONT_COLOR#
#HEADER_FONT_FAMILY#
#HEADER_FONT_SIZE#
#HEADER_FONT_WEIGHT#
#BODY_BG_COLOR#
#BODY_FONT_COLOR#
#BODY_FONT_FAMILY#
#BODY_FONT_SIZE#
#BODY_FONT_WEIGHT#
#BORDER_WIDTH#
In order to make the report layout generic, there are additional sub
templates defined that specify the layout for each individual column, column
heading and column width. At runtime, those sub templates are dynamically
assembled and included in the main report layout automatically by
substituting the following strings:
#PRN_TABLE_CELLS#
#PRN_TEMPLATE_BODY_ROW#
#PRN_TEMPLATE_HEADER_ROW#

它没有提及引用项目。