<!-- $Header: compLov.uix 115.34 2003/10/17 07:27:44 jolsson ship $ -->


<page xmlns="http://bali.us.oracle.com/cabo/baja" 
      xmlns:baja="http://bali.us.oracle.com/cabo/baja"
      xmlns:marlin="http://bali.us.oracle.com/cabo/marlin" 
      xmlns:html="http://www.w3.org/TR/REC-html40"
      xmlns:data="http://bali.us.oracle.com/cabo/marlin"
	>

  <baja:head xmlns="http://www.w3.org/TR/REC-html40">
    <title>Oracle Applications Manager - Requests</title>
  </baja:head>

  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin" 
	xmlns:marlin="http://bali.us.oracle.com/cabo/marlin" 
	xmlns:html="http://www.w3.org/TR/REC-html40">

  <dataScope>
    <contents>
	    <form name = "lovForm" ><contents>
        <stackLayout><contents>
<!-- *********** You need to databind text in head************** -->
<!-- It should looks like: Search and Select: TOPIC NAME  --> 
          <header id="searchead"  data:text = "header@allData"><contents>
            <include baja:node="/oam/common/oamLovField"/>
            <include baja:node="/oam/common/oamLov"/>
            <header id="searchead2" data:text = "SEARCH_RESULTS@OAM_RB">
              <contents>
                <switcher data:childName="node@allData">
                  <case name="errNode">
                    <messageBox data:message="errMsg@allData"
                      messageType="error"
                      longDescURL="unimpl"
                      data:text="MSG_ERROR_OCCURRED@OAM_RB">
                    </messageBox>
                  </case>

                  <case name="okNode">
                  <stackLayout><contents>
                  
                    <table name="TBL" width="100%"
                      data:columnHeaderData="column@columnHeaderData"
                      data:tableData="rows@lovTableData"
                      data:destination = "destination@lovTableData"
                      formSubmitted="false"
                      proxied="true"
                      data:blockSize="size@lovTableData"
                      minValue="1"
                      data:value="start@lovTableData"
                      data:maxValue="max@lovTableData">
                      <tableFormat tableBanding="rowBanding"/>
                      <columnHeaderStamp>
                        <sortableHeader data:text="value" sortable="no"
                          data:sortable="sort"/>
                      </columnHeaderStamp>

                      <tableSelection>
                        <singleSelection data:text="SELECT_AN_ITEM_AND@OAM_RB"
                          selectedIndex = "0" data:shortDesc="select">
                          <contents>
                            <button data:text="ACCEPT@OAM_RB"
                              destination="javascript:selectLov('TBL')"/>
                          </contents>
                        </singleSelection>
                      </tableSelection>

                      <contents> <!-- Table Contents -->
                        <styledText styleClass="OraInstructionText"
                          data:text="compShortName"/>
                        <styledText styleClass="OraInstructionText"
                          data:text="compDisName"/>

                        <formValue name = "hiddenName" data:value="compId" />
                        <!-- formValue name = "hiddenName" data:value="compId" / -->
                          <!-- FND_APP_COMPONENTS.COMPONENT_ID -->
                        <!-- formValue name = "hiddenName1" data:value="compShortName" / -->
                          <!-- FND_APP_COMPONENTS.COMPONENT_NAME -->
                        <formValue name = "hiddenName1" data:value="compDisName" />
                          <!-- FND_APP_COMPONENTS.DISPLAY_NAME -->
                      </contents>
                    </table>
                  </contents></stackLayout>
                </case>
              </switcher>
            </contents>
          </header>
        </contents>
       </header>
	   </contents></stackLayout>
	  </contents></form>

	  <contentFooter><contents>
	    <pageButtonBar><contents>
		    <button data:text="CANCEL@OAM_RB"  destination="javascript:doCancel()"/>
	    </contents></pageButtonBar>
	  </contents></contentFooter>
    </contents>


    <provider>
      <data name="columnHeaderData">
        <inline>
		      <column sort="no" data:value="SHORT_NAME@OAM_RB"/>
		      <column sort="no" data:value="COMPONENT@OAM_RB"/>
        </inline>
      </data>

      <data name="lovTableData">
        <bean><dataObject select="currentTable" source="allData"/></bean>
      </data>

      <data name="colSortOrder">
        <bean><dataObject select="sortState" source="allData"/></bean>
      </data>

      <data name="allData">
        <method class="oracle.apps.fnd.oam.sdk.util.lov.handlers.CompLovHandler"
          method="getDataTable"/>
      </data>

    	<data name="OAM_RB">
		    <bundle class="oracle.apps.fnd.oam.resources.OAMResourceBundle"/>
	    </data>
    </provider>
  </dataScope>

 </baja:content>


 <handlers>
   <event name="sort">
     <method class="oracle.apps.fnd.oam.sdk.common.OAMHandler"
             method="doSort"/>
   </event>
   
    <event name="goto">
      <method class="oracle.apps.fnd.oam.sdk.common.OAMHandler"
              method="doNext"/>
    </event>
    <event name="getLovList">
      <method class="oracle.apps.fnd.oam.sdk.util.lov.handlers.LovHandler"
        method="doSearch"/>
   </event>
 </handlers>

</page>



