<?xml version = '1.0' encoding = 'UTF-8'?>
<page xmlns="http://bali.us.oracle.com/cabo/baja" 
      xmlns:baja="http://bali.us.oracle.com/cabo/baja" 
      xmlns:data="http://bali.us.oracle.com/cabo/marlin"
      xmlns:html="http://www.w3.org/TR/REC-html40">
  <baja:head xmlns="http://www.w3.org/TR/REC-html40"/>
  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">
  <body>
   <contents>
   <dataScope>
      <contents>
        <html:noScript>
     	 <text data:text="NO_JAVASCRIPT_MSG@bamBundle"/>
        </html:noScript>

        <html:title>
          <text data:text="businessTitle@bamData"/>
        </html:title>
      </contents>
   

   <provider>

    <data name="tableInline">
     <inline>
       <cols data:field="INDICATOR_NAME@bamBundle"/>
       <colFormats cellNoWrapFormat="true" width="50%" />
     </inline>
    </data>


  <data name="tableData">
    <method class="oracle.sysman.eml.bam.ui.BamBusinessEventData"
     method="getTableData"/>
    </data>
   
    <data name="bamBundle">
     <bundle class="oracle.sysman.resources.eml.bam.BamMsg" />
    </data>
    <data name="bamData">
     <method class="oracle.sysman.eml.bam.ui.BamBusinessEventData" 
      method="getEventData" />
    </data>
    <data name="targetData">
     <method class="oracle.sysman.eml.bam.ui.BamBusinessEventData" 
      method="getTargetData" />
    </data>


    <data name="commonBundle">
        <bundle class="oracle.sysman.resources.CommonResourceBundle"/>
    </data>    
    <data name="mntrBundle">
        <bundle class="oracle.sysman.resources.MntrResourceBundle"/>
    </data>    
   <data name="notifBundle">
        <bundle class="oracle.sysman.resources.NotifMsg"/>
    </data>    

   </provider>


   <contents>
   <form name="eventSetup" method="POST">
   <contents>

    <pageLayout>
      <mediumAdvertisement>
       <include baja:node="../oemBanner" />
      </mediumAdvertisement>

      <globalButtons>
       <include baja:node="../globalButtonBar" />
      </globalButtons>
      <tabs>
       <include baja:node="../globalTabs" />
      </tabs>

      <pageHeader>
        <include baja:node="../admin/rep/header"/>
      </pageHeader>


   	<contents>
                        <spacer height="10"/>
	<train selectedIndex="1" maxVisited="3">
	<contents>
	<link data:text="SESSION_SETUP@bamBundle"/>
	<link data:text="SELECT_BUSINESS@bamBundle" />
	<link data:text="SCHEDULE@mntrBundle"/>
	<link data:text="REVIEW@notifBundle"/>
	</contents>
	</train>

<separator>
<separator/>
</separator>
</contents>

      <copyright>
       <include baja:node="../copyright" />  
      </copyright>     

<contents>

<messageBox data:messageType="errorType@targetData"
                          data:rendered="errorOccurred@targetData"
                          rendered="false">
            <contents>
              <text data:text="message@targetData"/>
            </contents>
          </messageBox>

<messageBox messageType="error"
                          data:rendered="errorOccurred@bamData"
                          rendered="false">
            <contents>
              <text data:text="message@bamData"/>
            </contents>
          </messageBox>




<messageBox data:text="messageType@bamData" messageType="none"
                          data:rendered="testDone@bamData"
                          rendered="false">
            <contents>
              <text data:text="mesg@bamData"/>
            </contents>
          </messageBox>


<switcher data:childName="operation@bamData">
<case name="edit">
<header data:text="title@bamData"/>
</case>
<case name="addLike">
<header data:text="title@bamData"/>
</case>
<default>
     <header data:text="CREATE_ADD_INDICATOR@bamBundle"/>
     </default>
 
    </switcher>
     </contents>

<contents>
<stackLayout>
<contents>
      <rowLayout width="100%">
      <contents>
      <cellFormat hAlign="left" width="80%" />
                    <cellFormat hAlign="right" width="10%" vAlign="top">
                      <contents>
                        <rowLayout hAlign="right" width="100%">
                          <contents>
				<submitButton  
                                  data:text="CANCEL@commonBundle" 
                                  name="event" value="cancelDataSource" 
				  unvalidated="true"
				  data:shortDesc="CANCEL@commonBundle"/>

				  </contents>
				  <contents>

				 <switcher data:childName="operation@bamData">
				<case name="edit">
                                <submitButton
			          data:text="OK@commonBundle" 
                                  name="event" value="editDataSource" 
				  data:shortDesc="OK@commonBundle"/>
				  </case>
				  <default>
				  <submitButton
			          data:text="OK@commonBundle" 
                                  name="event" value="addDataSource"
				  data:shortDesc="OK@commonBundle"/>
				  </default>
				  </switcher>
				 
                          </contents>
                        </rowLayout>
                      </contents>
                    </cellFormat>
                  </contents>
                </rowLayout>
		</contents>

<contents>
<rowLayout width="100%">
<contents>
			    <cellFormat width="2%"/>
                            <cellFormat wrappingDisabled="true" width="95%" hAlign="right">
                              <contents>
			     
			      <header data:text="DATA_SOURCE@bamBundle" size="1">
            </header>
      </contents>
      </cellFormat>
      </contents>
      </rowLayout>
      </contents>

<contents>
          <rowLayout>
	  <contents>
			    <cellFormat width="2%"/>
                            <cellFormat wrappingDisabled="true" width="95%" hAlign="right">
			    <contents>
               <styledText styleClass="OraInstructionText" data:text="INDICATOR_DATA_SOURCE_DESC@bamBundle" />
	       </contents>
	       </cellFormat>
	       </contents>
	       </rowLayout>
      </contents>

		
                              <contents>
			       <spacer height="5" />
                               <rowLayout width="95%" hAlign="right">
                                 <contents>
                                   <cellFormat width="80%" hAlign="left">
                                     <contents>
				    <!-- <switcher data:childName="operation@bamData">
				      <case name="edit">
                             
			              <messageStyledText styleClass="OraDataText" name="dataSource" data:prompt="NAME@commonBundle" data:text="dataSource@bamData"/>
				      </case>
				      <default> -->
    
                                       <messageTextInput required="yes" data:prompt="NAME@commonBundle" 
                                           name="dataSource" data:text="dataSource@bamData"
                                           data:shortDesc="NAME@commonBundle">
                                         <end>
                                         </end>
                                       </messageTextInput>
				       <!-- </default>
				       </switcher> -->
				       
                                     </contents>
                                   </cellFormat>
                                 </contents>
                               </rowLayout>
			       <spacer height="10" />
                             </contents>
                         
<contents>
	<spacer height="20" />
	<rowLayout width="90%" hAlign="right">
	<contents>
	<cellFormat width="80%" hAlign="left">
	<contents>
	<checkBox name="namespaceCheck" value="true" data:text="NS_ENABLED@bamBundle" onClick="submitForm('eventSetup',0,{event:'namespaceEnable'}, false); return false;" data:checked="checked@bamData"/>
</contents>
</cellFormat>
	</contents>
	</rowLayout>
    	<spacer height="20" />
	<rowLayout width="90%" hAlign="right">
	<contents>
	<cellFormat width="80%" hAlign="left">
	<contents>
        <messageTextInput data:prompt="NAME@commonBundle" 
                                           name="namespace" data:text="namespace@bamData" data:disabled="disable@bamData"
				
                                           data:shortDesc="NAME@commonBundle"/>
</contents>
</cellFormat>
    </contents>
     
	</rowLayout>
    </contents>


<contents>
			       <spacer height="30" />
<rowLayout width="100%">
                                 <contents>
			    <cellFormat width="2%"/>
                            <cellFormat wrappingDisabled="true" width="95%" hAlign="right">

                              <contents>
			     
			      <header data:text="BUSINESS_INDICATOR@bamBundle" size="1">
      
			 </header>
			 </contents>
			 </cellFormat>
			 </contents>
			 </rowLayout>
			 </contents>



	 <contents>
          <rowLayout>
	  <contents>
			    <cellFormat width="2%"/>
                            <cellFormat wrappingDisabled="true" width="95%" hAlign="right">
			    <contents>
               <styledText styleClass="OraInstructionText" data:text="INDICATOR_DESC@bamBundle" />
	       </contents>
	       </cellFormat>
	       </contents>
	       </rowLayout>
      </contents>



                              <contents>
			       <spacer height="10" />

<partialRoot>
<contents>
		<tableLayout width="65%" cellSpacing="10">
	        <contents>
        	 <rowLayout width="100%">
          	<contents>
			    <cellFormat width="2%"/>
                            <cellFormat wrappingDisabled="true" width="95%" hAlign="left">
			    <contents>
	           <stackLayout>
        	    <contents>
        
				
		<table name="kpiTable"
		data:columnHeaderData="cols@tableInline"
		data:columnFormats="colFormats@tableInline"
		data:summary="BUSINESS_INDICATOR@bamBundle"
		data:tableData="@tableData"
		data:alternateText="NO_INDICATOR@bamBundle"
		formSubmitted="true">

	       <columnHeaderStamp>
               <data:boundText select="field" />
              </columnHeaderStamp>

<tableSelection>
		<multipleSelection data:selected="selected" data:shortDesc="SELECT@commonBundle">
 
                <contents>
		<submitButton data:text="DELETE@commonBundle" 
                               name="event"
			       value="deleteIndicator"
			       unvalidated="true"
			       data:shortDesc="DELETE@commonBundle"/>
                </contents>
               </multipleSelection>
              </tableSelection>

               
		<contents>
	         <textInput name="kpi" data:text="kpiValue" data:shortDesc="BUSINESS_INDICATOR@bamBundle"/>
					    
<!--		<link text="action@viewData" shortDesc="action@viewData" onClick="submitForm('eventSetup',1,{event:'addIndicator'}, false); return false;" /> -->
		<!-- <image data:text="kpiValue" source="/em/images/deleteicon_enabled.gif" data:shortDesc="DELETE@commonBundle" data:destination="deleteURL"/> -->
		 <formValue name="kpi" data:value="kpiValue" />
      </contents>


<footer>
	<tableFooter>
		<contents>
		<submitButton
			          data:text="ADD_INDICATOR@bamBundle" 
                                  name="event" value="addIndicator" 
				  data:shortDesc="ADD_INDICATOR@bamBundle"
				  unvalidated="true"/>
				 
					</contents>
						</tableFooter>
						</footer>


		</table>

				<spacer height="10" />

				<tip>
				<contents>
				<styledText data:text="TIP_INDICATOR1@bamBundle" />			
				</contents>
				</tip>

				<spacer height="10" />
				<tip>
				<contents>
				<styledText data:text="TIP_INDICATOR2@bamBundle" />			
				</contents>
				</tip>




		
</contents>
           </stackLayout>
	   </contents>
	   </cellFormat>
          </contents>
         </rowLayout>
   
        </contents>
       </tableLayout>
       </contents>
       </partialRoot>

     
		<spacer height="10"/>
		</contents>
			 
		      <contents>

<rowLayout width="100%">
<contents>
			    <cellFormat width="2%"/>
                            <cellFormat wrappingDisabled="true" width="95%" hAlign="right">
                              <contents>
			     
			      <header data:text="JMS_CONFIG@bamBundle" size="1">
                              <contents>
			       <spacer height="10" />
         <labeledFieldLayout fieldWidth="100%" labelWidth="30%">
           <contents>
				      <messageTextInput
                                                   name="topicFactory"
                                           	   data:prompt="TOPIC_FACTORY@bamBundle" 
						   required="yes"
                                                   columns="30"
						   data:shortDesc="TOPIC_FACTORY@bamBundle"
						   data:text="topicFactory@bamData">
                                            </messageTextInput>


             <spacer height="5" />
				<messageTextInput
                                           name="topicName"
                                           data:prompt="TOPIC_NAME@bamBundle"
					   required="yes"
					   columns="20"
					   data:shortDesc="TOPIC_NAME@bamBundle"
					   data:text="topicName@bamData">
                                        </messageTextInput>


            <spacer height="5" />
			 <messageTextInput
                                                   name="subscriber"
						   data:prompt="SUBSCRIBER@bamBundle"
					   	   required="yes"
						   columns="20"
						   data:shortDesc="SUBSCRIBER@bamBundle"
						   data:text="subscriber@bamData">
                                            </messageTextInput>

		<spacer height="5" />
			 <messageTextInput
                                                   name="userName"
						   data:prompt="USERNAME@bamBundle"
						   columns="20"
                                                   noAutoComplete="true"
						   data:shortDesc="USERNAME@bamBundle"
						   data:text="userName@bamData">
                                            </messageTextInput>

		<spacer height="5" />
			 <messageTextInput
                                                   name="password"
						   data:prompt="PASSWORD@commonBundle"
						   columns="20"
                                                   noAutoComplete="true"
						   secret="true"
						   data:shortDesc="PASSWORD@commonBundle"
						   data:text="password@bamData">
                                            </messageTextInput>

				<spacer width="35" />
				<submitButton  
                                  data:text="TEST_CONNECTION@bamBundle" 
                                  name="event" value="testJNDI" 
				  data:shortDesc="TEST_CONNECTION@bamBundle"/>



           </contents>
         </labeledFieldLayout>

			       <spacer height="10" />
				<tip>
				<contents>
				<styledText data:text="TIP_UNAME_PWD@bamBundle" />		
				</contents>
				</tip>

			       <spacer height="10" />


				<tip>
				<contents>
				<styledText data:text="TIP_BUSINESS@bamBundle" />			</contents>
				</tip>

	 
	 </contents>
	 </header>
	 </contents>
		 </cellFormat>
		 </contents>
		 </rowLayout>


			</contents>

<contents>
			       <spacer height="15" />
<rowLayout width="100%">
<contents>
			    <cellFormat width="2%"/>
                            <cellFormat wrappingDisabled="true" width="95%" hAlign="right">
                              <contents>
			     
			      <header data:text="ASSOCIATED_TARGET@bamBundle" size="1" partialRenderMode="self">


<contents>

         <rowLayout width="99%" hAlign="right">
	  <contents>
               <styledText styleClass="OraInstructionText" data:text="TARGET_DESC2@bamBundle" />
	       </contents>
	       </rowLayout>
      </contents>

		
                              <contents>
		<spacer height="20" />


	<labeledFieldLayout fieldWidth="100%" labelWidth="15%">
           <contents>
	   
	   <messageChoice data:prompt="TYPE@commonBundle" name="serviceType" data:selectedValue="chosenType@targetData" data:shortDesc="TARGET_TYPE@notifBundle" onChange="submitForm('eventSetup',0,{event:'getTargetName'}, false); return false;" data:tip="TIP_SERVICE@bamBundle">
					<contents data:childData="typeList@targetData">
					<option data:text="type" data:value="typeID"/>
					</contents>
					</messageChoice>

		<spacer height="10" />
<messageChoice name="serviceName" data:selectedValue="chosenName@targetData" data:shortDesc="TARGET_NAME@notifBundle" data:prompt="NAME@commonBundle">
					<contents data:childData="targetList@targetData">
					<option data:text="service"/>
					</contents>
					</messageChoice>


					    </contents>
					    </labeledFieldLayout>


                             </contents>
 
            </header>
      </contents>
      </cellFormat>
      </contents>
      </rowLayout>
      </contents>




<spacer height="10"/>
<contents>
      <rowLayout width="100%">
      <contents>
      <cellFormat hAlign="left" width="80%" />
                    <cellFormat hAlign="right" width="10%" vAlign="top">
                      <contents>
                        <rowLayout hAlign="right" width="100%">
                          <contents>
			<submitButton  
                                  data:text="CANCEL@commonBundle" 
                                  name="event" value="cancelDataSource" 
				  unvalidated="true"
				  data:shortDesc="CANCEL@commonBundle"/>
				
				  </contents>
				  <contents>

				 <switcher data:childName="operation@bamData">
				<case name="edit">
                                <submitButton
			          data:text="OK@commonBundle" 
                                  name="event" value="editDataSource" 
				  data:shortDesc="OK@commonBundle"/>
				  </case>
				  <default>
				  <submitButton
			          data:text="OK@commonBundle" 
                                  name="event" value="addDataSource"
				  data:shortDesc="OK@commonBundle"/>
				  </default>
				  </switcher>
				 
                          </contents>
                        </rowLayout>
                      </contents>
                    </cellFormat>
                  </contents>
                </rowLayout>
		</contents>
		</stackLayout>
		</contents>
 
     </pageLayout>
    </contents>
    </form>
   </contents> 

   </dataScope>
  </contents>
  </body>
  </baja:content>
  <baja:handlers>

   <event name="addDataSource">
    <method class="oracle.sysman.eml.bam.ui.BamBusinessEventData"
     method="addDataSource" />
   </event>

<event name="editDataSource">
    <method class="oracle.sysman.eml.bam.ui.BamBusinessEventData"
     method="addDataSource" />
   </event>
   <event name="deleteIndicator">
    <method class="oracle.sysman.eml.bam.ui.BamBusinessEventData"
     method="addKPI" />
   </event>
 
   <event name="addIndicator">
    <method class="oracle.sysman.eml.bam.ui.BamBusinessEventData"
     method="addKPI" />
   </event>
  <event name="testJNDI">
    <method class="oracle.sysman.eml.bam.ui.BamBusinessEventData"
     method="testJNDI" />
   </event>
  <event name="cancelDataSource">
    <method class="oracle.sysman.eml.bam.ui.BamBusinessEventData"
     method="cancelDataSource" />
   </event>
 <event name="getTargetName">
      <method class="oracle.sysman.eml.bam.ui.BamBusinessEventData" method="getTargetName"/>
    </event>
<event name="namespaceEnable">
      <method class="oracle.sysman.eml.bam.ui.BamBusinessEventData" method="enableNamespace"/>
    </event>






  </baja:handlers> 

</page>
