<dataScope xmlns="http://bali.us.oracle.com/cabo/marlin"
           xmlns:data="http://bali.us.oracle.com/cabo/marlin">
  <contents>
    <switcher data:childName="batchPriv@privileges">
      <case name="hasData">
        <contentContainer background="light" width="80%"
                          data:text="PRIV_BATCH@ResourceBundle">
          <contents>
            <stackLayout width="100%">
              <contents>
                <rowLayout width="100%">
                <contents>
                  <cellFormat  width="35%">
                  <contents>
                    <styledText styleClass="OraInstructionText"
                                data:text="PRIV_BATCH_INSTRUCTION_2@ResourceBundle"/>
                  </contents>
                  </cellFormat>
                  </contents>
                  <contents>                 
                    <cellFormat>
                      <contents>
                        <choice id="privChoice" name="privChoice"
                                data:selectedValue="selectedPriv@selectedPrivilege"
                                data:shortDesc="SELECT@commonBundle">
                          <contents>
                            <option data:text="NONE@ResourceBundle" value="None"/>
                            <option data:text="VIEW_TARGET@ResourceBundle"
                                    value="View"/>
                            <option data:text="OPERATOR_TARGET@ResourceBundle"
                                    value="Operator"/>
                            <option data:text="FULL_TARGET@ResourceBundle"
                                    value="Full"/>
                          </contents>
                        </choice>
                      </contents>
                    </cellFormat>
                  </contents>
                  <contents>
                    <cellFormat width="10%" hAlign="left">
                      <contents>
                        <submitButton name="event" event="batchAssign"
                                      value="batchAssign"
                                      data:text="PRIV_BATCH_BUTTON_1@ResourceBundle"/>
                      </contents>
                    </cellFormat>
                  </contents>
                </rowLayout>
              </contents>
            </stackLayout>
          </contents>
        </contentContainer>
      </case>
    </switcher>
    <spacer width="2%"/>
    
    <tableLayout hAlign="left" width="100%">
      <contents>
        <table name="roleAdminTargetPrivsTable" width="100%"
               formSubmitted="true"
               data:summary="TARGET_PRIVILEGES@ResourceBundle"
               data:tableData="row@privileges"
               data:value="privTableValue@privileges"
               data:minValue="privTableMinValue@privileges"
               data:blockSize="privTableBlockSize@privileges"
               data:maxValue="privTableMaxValue@privileges"
               data:columnHeaderData="column@privileges"
               data:columnHeaderFormats="columnFormats@privileges"
               data:alternateText="NO_TARGET_PRIVILEGES@ResourceBundle"
               data:columnFormats="columnFormat@columnData">          
          <tableFormat tableBanding="rowBanding"/>
          <contents>
            <column>
              <columnHeader>
                <sortableHeader data:text="text" data:sortable="sortable"/>
              </columnHeader>
              <columnFormat width="50%"/>
              <contents>
                <styledText data:text="value"
                            data:shortDesc="TARGET_NAME@ResourceBundle"/>
              </contents>
            </column>
            <column>
              <columnHeader>
                <sortableHeader data:text="text" data:sortable="sortable"/>
              </columnHeader>
              <columnFormat width="42%"/>
              <contents>
                <styledText data:text="TYPE"
                            data:shortDesc="TARGET_TYPE@ResourceBundle"/>
              </contents>
            </column>
            <column>
              <columnHeader>
                <sortableHeader data:text="text" data:sortable="sortable"/>
              </columnHeader>
              <columnFormat width="8%"/>
              <contents>
                <switcher data:childName="tarPridisabled">
                  <case name="true">
                    <choice name="privilegeChoice"
                            data:selectedValue="SelVal"
                            data:shortDesc="SELECT@commonBundle">
                      <contents>
                        <option data:text="NONE@ResourceBundle" value="None"/>
                        <option data:text="VIEW_TARGET@ResourceBundle"
                                value="View"/>
                        <option data:text="OPERATOR_TARGET@ResourceBundle"
                                value="Operator"/>
                        <option data:text="FULL_TARGET@ResourceBundle"
                                value="Full"/>
                      </contents>
                    </choice>
                  </case>
                  <case name="false">
                    <styledText data:text="SelVal"/>
                  </case>
                </switcher>
              </contents>
            </column>
          </contents>
       </table>       
      </contents>
    </tableLayout>
  </contents>
  <provider>
    <data name="columnData">
      <inline>
        <columnFormat columnDataFormat="textFormat" cellNoWrapFormat="false"/>
        <columnFormat columnDataFormat="textFormat" cellNoWrapFormat="false"/>
        <columnFormat columnDataFormat="textFormat" cellNoWrapFormat="false"/>
      </inline>
    </data>
    <data name="columns">
      <inline>
      </inline>
    </data>
    <data name="ResourceBundle">
      <bundle class="oracle.sysman.eml.admin.rep.AdminResourceBundle"/>
    </data>
  </provider>
</dataScope>
