<!-- $Header: mlrTagEdit.uix 115.33 2004/01/13 15:03:30 grengara noship $ -->


<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</title>
  </baja:head>

  <!-- THIS Event Handling section should go away as this page is only for
       including in other pages. The wrapper page should contain these event
       handlers
  -->
  <handlers>
	<event name="addRows">
		<method class="oracle.apps.fnd.wf.oam.handlers.mlrConf.WfMailerTagHandler" method="doAddTags"/>
	</event>
        <event name="removeRows">
		<method class="oracle.apps.fnd.wf.oam.handlers.mlrConf.WfMailerTagHandler" method="doRemoveTags"/>
	</event>
        <event name="submitTags">
		<method class="oracle.apps.fnd.wf.oam.handlers.mlrConf.WfMailerTagHandler" method="doSubmitTags"/>
	</event>
  </handlers>	
  	
  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">

    <dataScope>
      <provider>
	<data name="tableData">
		<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.wf.oam.handlers.mlrConf.WfMailerTagHandler" method="getDataTable"/>
	</data>
        <!--<data name="Header">
		<method class="oracle.apps.fnd.wf.oam.handlers.mlrConf.WfMailerTagHandler" method="getPageHeader"/>
	</data>-->
	
	<data name="AllErrData">
		<method class="oracle.apps.fnd.wf.oam.handlers.mlrConf.WfMailerTagHandler" method="getErrorData"/>
	</data>
	<data name="ErrData">
		<bean><dataObject source="AllErrData" select="VAL_ERR_DATA_KEY"/></bean>
	</data>
	

	<!-- Data for the columns -->
	<data name="columnData">
	  <inline>
	  <!-- Column elements defining a DataSet named "column" -->
          <column sort="no" data:value="WF_TG_PATTERN@RB"/>
	  <column sort="no" data:value="WF_TG_ACTION@RB"/>
  	  </inline>
	</data>

	 <data name="RB">
          <bundle class="oracle.apps.fnd.wf.oam.resources.WfResourceBundle"/>
        </data>

	
	 <data name="pageDest">^M
          <method class="oracle.apps.fnd.oam.sdk.common.OAMHandler"  
            method="getPageURLWithPageProp"/>^M
        </data>


	
      </provider>

      <contents>
		<switcher data:childName="node@allData">
			<case name="errNode">
				<messageBox data:message="errMsg@allData" messageType="error" longDescURL="unimpl" data:text="MSG_ERROR_OCCURRED@OAM_SRB">
				</messageBox>
			</case>
			
			<case name="okNode">          
     
		<flowLayout><contents>
		<switcher data:childName="node@AllErrData">
			<case name="errNode">
				<messageBox data:message="VAL_ERR_KEY@AllErrData" messageType="error" longDescURL="unimpl">
				</messageBox>
			</case>
		</switcher>

	     
	     <messageBox data:message="noTagSelMsg@allData" messageType="info" longDescURL="unimpl" data:rendered="renderNoTagSelMsg@allData"/>
	     <!--<form name="tgform" method="post" usesUpload="false" data:destination="url@pageDest">
             <contents>-->
               <stackLayout>
                 <contents>
		    <!--<include baja:node="/oam/common/lastUpdatedTime"/>-->
		    <!--<styledText data:text="updateTime@allData" styleClass="OraTipText"/>-->
		    <styledText data:text="WF_TIP_TAGS@RB" styleClass="OraInstructionText"/>
                    <table 
                           name="TBL" width="80%"
                           minValue="1"
			   formSubmitted="true"
                           data:maxValue="max@tableData"
                           data:blockSize="size@tableData"
			   data:value="start@tableData"
			   data:tableData="rows@tableData"
			   data:columnHeaderData="column@columnData"
         data:summary="WF_MCW_TAGS@RB">
		  <tableSelection>
		   <multipleSelection data:text="WF_TG_SELECT_TAGS_AND@RB" data:disabled="editdisabled" data:shortDesc="select">
		   <contents>
			
			<submitButton formName="wrapperForm" data:text="WF_TG_REMOVE@RB" baja:event="removeRows"/>

		   </contents>
		   </multipleSelection>
		  </tableSelection>
 
                      <!-- Formatting for the table.  Note the format for
                           inline data objects and data object lists -->
                      <tableFormat tableBanding="rowBanding"/>
		
		      

                      <!-- The row header and column header stamps -->
                      <columnHeaderStamp>
                        <sortableHeader data:text="value"
                                        sortable="no"
                                        data:sortable="sort"/>
                      </columnHeaderStamp>
		      		
                      
		      <columnFooter>
  			<addTableRow data:text="WF_TG_ADD_NEW@RB"/>
 		      </columnFooter>
	
                      <!-- A couple nice, simple columns -->
                      <contents>
                        <messageTextInput name="pattern" data:text="pattern" data:disabled="editdisabled" columns="100" data:shortDesc="WF_TG_PATTERN@RB">
				<boundMessage source="ErrData" data:select="patternerrcode"/>
			</messageTextInput>
			<switcher data:childName="ddswitcher">
			<case name="dd">
			<messageChoice name="action" data:selectedValue="action" data:shortDesc="WF_TG_ACTION@RB">
				<contents>
					<option data:text="WF_TG_ACT_ERROR@RB" value="ERROR"/>
					<option data:text="WF_TG_ACT_IGNORE@RB" value="IGNORE"/>
					<option data:text="WF_TG_ACT_UNAVAIL@RB" value="UNAVAIL"/>					
				</contents>
			</messageChoice>
			</case>
			<case name="text">
				<styledText data:text="actiondisplay" styleClass="OraInstructionText"/>
			</case>
			</switcher>
			<formValue name="key" data:value="key"/>
                      </contents>
                    </table>
		    <!--<submitButton formName="tgform" text="Submit" baja:event="submitTags"/>-->
                  </contents>
                </stackLayout>
		
		<!-- Add a Hiddent Form Value here with name=event and
		     value=submitTags here, so that when form is submitted
		     by the wrapper page the event can be fired -->
	
		<!--<formValue baja:event="submitTags"/>-->
		<formValue name="tbl_id" value="TBL"/>
	
              <!--</contents>
           </form>-->
		     		
	     
	    </contents>
	    </flowLayout>
	</case>
	</switcher>			
      </contents>

    </dataScope>

  </baja:content>



</page>










