zoukankan      html  css  js  c++  java
  • 报表导出CSV,XML时,Textbox显示Name,而不隐藏。

    Textbox.DataElementOutput

    SQL Server 2008 R2

    The Textbox.DataElementOutput element specifies whether a Textbox should appear in a data (XML, CSV) rendering. This element is optional. If this element is present, its value MUST be a String[XMLSCHEMA2-3.2.1]. If this element is not present, its value is interpreted as “Auto”. The value of this element MUST be one of the following:

    Auto: Specifies the default setting for how the text box will appear in a data rendering, which MUST be the same as "NoOutput" if Visibility.Hidden for the text box is set to true and Visibility.ToggleItem is not set. Otherwise, this value is interpreted as "Output".

    Output: Specifies that the text box appears in a data rendering output.

    NoOutput: Specifies that the text box does not appear in a data rendering output.

    Following is the parent element of the Textbox.DataElementOutput element.

    Parent elements

    Textbox

    The following is the XML Schema definition of the Textbox.DataElementOutput element.

    <xsd:element name="DataElementOutput" minOccurs="0" ">
      <xsd:simpleType>
        <xsd:restriction base="xsd:string">
          <xsd:enumeration value="Output" />
          <xsd:enumeration value="NoOutput" />
          <xsd:enumeration value="ContentsOnly" />
          <xsd:enumeration value="Auto" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:element>

    Matrix.DataElementOutput

    SQL Server 2008 R2

    Applies to RDL schemas 2003/10[MSFT-RDL200310]and 2005/01[MSFT-RDL200501]only

    The Matrix.DataElementOutput element specifies whether a Matrix is included in a data rendering. This element is optional. If the Matrix.DataElementOutput element is present, its value MUST be aString[XMLSCHEMA2-3.2.1]. The value of this element MUST be one of the following:

    Auto (default): Specifies the default setting for how a matrix will be included in a data rendering.

    Output: Specifies that the matrix is included in a data rendering.

    NoOutput: Specifies that the matrix is not included in a data rendering.

    ContentsOnly: Specifies that the matrix is included in a data rendering.

    The value of the Matrix.DataElementOutput is interpreted as "NoOutput" if all the following conditions are true:

    • Matrix.Visibility is specified for the matrix.

    • Visibility.Hidden is specified for the Matrix.Visibility element.

    • Visibility.ToggleItem for the Matrix.Visibility element is not specified.

    • The value of Visibility.Hidden for the Matrix.Visibility element is the String literal value "true".

    Alternatively, the value of the Matrix.DataElementOutput is interpreted as "NoOutput" if all the following conditions are true:

    • The matrix is contained within a table column.

    • TableColumn.Visibility is specified for the TableColumn.

    • Visibility.Hidden is specified for the TableColumn.Visibility element.

    • Visibility.ToggleItem for the TableColumn.Visibility element is not specified.

    • The value of Visibility.Hidden for the TableColumn.Visibility element is the String literal value "true".

    Otherwise, the value of the Matrix.DataElementOutput element is interpreted as "Output".

    If the Matrix.DataElementOutput element is not specified, its value is interpreted as "Auto".

    Following is the parent element of the Matrix.DataElementOutput element.

    Parent elements

    Matrix

    The following is the XML Schema definition of the Matrix.DataElementOutput element.

    <xsd:element name="DataElementOutput" minOccurs="0">
      <xsd:simpleType>
        <xsd:restriction base="xsd:string">
          <xsd:enumeration value="Output" />
          <xsd:enumeration value="NoOutput" />
          <xsd:enumeration value="ContentsOnly" />
          <xsd:enumeration value="Auto" />
        </xsd:restriction>
      </xsd:simpleType>
    </xsd:element>


    ataElementOutput Element (RDL)

    SQL Server 2005

    Indicates whether the item appears in output rendered by the XML rendering extension or the CSV rendering extension.

    Syntax

    <Textbox> <!-- or <Line>, <Rectangle>, <Image>, <Subreport>, <List>, <Matrix>, <Table>, <Chart>, <CustomReportItem>, <Grouping>, <Subtotal>, <DataPoint>  -->
        ...
        <DataElementOutput>...</DataElementOutput>
        ...
    </Textbox> <!-- or /Line, /Rectangle, /Image, /Subreport, /List, /Matrix, /Table, /Chart, /CustomReportItem, /Grouping, /Subtotal, /DataPoint -->
    
    Element Characteristics

    CharacteristicDescription

    Data type and length

    String

    Default value (when used as a child of Grouping or DataPoint)

    Output

    Default value (when used as a child of Subtotal)

    NoOutput

    Default value (when used as a child of a report item)

    Auto

    Cardinality

    0-1: Optional element that can occur once or not at all.

    Element Relationships

    RelationshipElement

    Parent element

    ChartCustomReportItem , DataPointGroupingImageLineListMatrixRectangleSubreportSubtotalTableTextbox

    Child element

    None

    Remarks

    DataElementOutput controls which report item data appears when a report is rendered by a data-only renderer (CSV or XML).

    The DataElementOutput element contains one of the values listed in the following table.

    ValueDescription

    Output

    Indicates the item appears in the output.

    NoOutput

    Indicates the item should not appear in the output.

    ContentsOnly

    Applies to XML only. Indicates the item does not appear in the XML, but the contents of the item are rendered as part of the containing report item. ContentsOnly can only be used with lists.

    Auto

    If the item is a text box with a constant value, such as a label, the item does not appear (NoOutput). If the item is a rectangle, the output is the same as it is for ContentsOnly. For all other report items, the item appears in the output (Output).

    When used as a child of Grouping or DataPoint, the DataElementOutput element can only contain Output or NoOutput.

  • 相关阅读:
    Spring MVC 体系结构和处理请求控制器
    Spring配置补充
    MyBatis与Spring的整合
    Ioc和AOP使用扩展
    JS 节流
    JS写返回上一级
    iframe父页面获取子页面的高度
    博客编写计划
    正则表达式
    实用 SQL 命令
  • 原文地址:https://www.cnblogs.com/anorthwolf/p/1850227.html
Copyright © 2011-2022 走看看