XML フォーマット (検索データ)

<< 目次を表示 >>

ページ位置:  API・アドイン・スクリプト > アドイン > アドインによる検索 >

XML フォーマット (検索データ)

下のXMLはRepository.RunModelSearchメソッドに渡すSearchDataパラメータの形式です。概要は「Repository」のページをご覧ください。

 

 

例:

<ReportViewData UID=\"MySearchID\">

<!--

      //The UID attribute enables XML type searches to persist column

information. That is, if you run the search, group by column or

adjust column widths, then close the window and run the search

again, the format/organization changes are retained.To avoid

persisting column arrangements, leave the attribute value blank or

remove it altogether.

      // Use this section to declare all possible fields - columns that

appear in Enterprise Architect's search window - that are used

below in <Rows/>.

      // The order of the columns of information to be appended here

must match the order that the search run in Enterprise Architect

would normally display.

      // Furthermore, if you append results onto a custom SQL Search,

then the order used in your Custom SQL must match the order used

below.

-->

 

      <Fields>

              <Field name=""/>

              <Field name=""/>

              <Field name=""/>

              <Field name=""/>

      </Fields>

 

      <Rows>

              <Row>

                      <Field name="" value=""/>

                      <Field name="" value=""/>

                      <Field name="" value=""/>

                      <Field name="" value=""/>

              </Row>

              <Row>

                      <Field name="" value=""/>

                      <Field name="" value=""/>

                      <Field name="" value=""/>

                      <Field name="" value=""/>

              </Row>

              <Row>

                      <Field name="" value=""/>

                      <Field name="" value=""/>

                      <Field name="" value=""/>

                      <Field name="" value=""/>

              </Row>

      </Rows>

</ReportViewData>