<rowDef>要素
ネームスペース: http://xmlns.oracle.com/uix/bc4j
派生元: <bc4j:baseNamedDef>要素
グループ: UIX BC4J

<rowDef>要素は、含まれる行の定義です。

構文
<rowDef
    [ autoCreate="boolean" ]
    [ usesCurrency="boolean" ]
>
     <!-- The following child can be anything derived from the given element -->
   <binding></binding>
</rowDef>

注意:
  • この要素は派生元要素のすべての属性と子要素を持つことができます。
  • この要素は<baseRowSetIteratorDef>要素内で使用されます。

  • 説明

    <rowDef>要素は、BC4J行オブジェクトを定義します。 一度定義すると、<rowScope>および<findRow>要素を介して行にアクセスできます。


    次の例では、keyというページ・プロパティをキーとして使用して、CurrentDeptEmpsVOというビュー・オブジェクト内の行を取得します。 この行にはCurrentEmpという名前を指定します。 <rowScope name="CurrentEmp">または<findRow name="CurrentEmp"&>を使用して、この行にアクセスできるようになります。

                        <bc4j:registryDef>
                          <bc4j:rootAppModuleDef name="EmpAppModule"
                                                    definition="bc4j.EmpAppModule"
                                                    releaseMode="stateful" >
                            <bc4j:viewObjectDef name="CurrentDeptEmpsVO"
                                                   defFullName="oracle.cabo.data.jbo.demo.employee.EmpView" >
                               <bc4j:rowDef name="CurrentEmp" >
                                <bc4j:propertyKey name="key" />
                              </bc4j:rowDef>
                            </bc4j:viewObjectDef>
                          </bc4j:rootAppModuleDef>
                        </bc4j:registryDef>

    前述の行には、次のコードでアクセスできます。

    <viewObjectScope name="CurrentDeptEmpsVO">
     <contents>
      <rowScope name="CurrentEmp">
       <contents>
        <input attrName="EName"/>
       </contents>
      </rowScope>
     </contents>
    </viewObjectScope>

    CurrentEmp行でusesCurrency="true"と定義した場合、この行がビュー・オブジェクトのスコープ内にあるデフォルトの行になります。

    <viewObjectScope name="CurrentDeptEmpsVO">
     <contents>
    <!-- the following pulls the employee name out of the current Row: -->
      <input attrName="EName"/>
     </contents>
    </viewObjectScope>

    属性

    説明
    autoCreate この行が見つからない場合は、自動的に作成されることを示します。
    boolean
    usesCurrency trueの場合、この行を現在の行として設定します。つまり、現在スコープ内にある行セット・イテレータ、行セットまたはビュー・オブジェクトの現在の行となります。 親ビュー・オブジェクトの直接の子である要素は、この行のスコープ内にある場合と同様にレンダリングを行います。
    boolean

    子要素

    説明 必須 組込み可能な数
    <binding>
    この行のキーを解決するバインディング。
    いいえ 1