<!--
 * Copyright (c) 2001, 2004, Oracle Corporation.  All rights reserved.  
 *
 *      NAME
 *       searchKernelParamChanges.uix
 *
 *      NOTES
 *       search Kernel Params
 *
 * MODIFIED (MM/DD/YY)  VERSION
 *  kchiasso    02/02/04 - rmv eng msgs
 *  awarkar     12/03/03 - Bug Fix For Issue#3280397 
 *  kchiasso    10/28/03 - bugfix 3211721 
 *  kchiasso    10/17/03 - bugfix 3164646 
 *  kchiasso    10/10/03 - bug#3129710
 *  kchiasso    10/08/03 - add login to title 
 *  shuberma    09/29/03 - Use mgmt$groups_flat_memberships 
 *  kchiasso    07/07/03 - 
 *  kchiasso    07/07/03 - bugfix 2900049
 *  kchiasso    05/16/03 - bugfix 2937651
 *  groyal      04/21/03 - Use dateFormat for time column
 *  kchiasso    04/02/03 - chng Operating System link
 *  kchiasso    03/25/03 - bugfix csv name
 *  kchiasso    03/17/03 - bugfix 2845086
 *  kchiasso    10/29/02 - bugfix 2635634
 *  kchiasso    10/14/02 - ui review cleanup
 *  kchiasso    10/02/02 - ADA compliant
 *  kchiasso    08/19/02 - 
 *  kchiasso    07/24/02 - fix 2464577
 *  kchiasso    07/17/02 - 
 *  kchiasso    07/11/02 - preserve sort context prev/next
 *  kchiasso    05/30/02 - root url
 *  kchiasso    05/28/02 - timestamp.
 *  kchiasso    05/14/02 - add link
 *  kchiasso    05/07/02 - SavetoFile
 *  kchiasso    05/01/02 - reorder droplist
 *  shuberma    04/30/02 - Changing dest to ^ as escape char..
 *  shuberma    04/12/02 - .
 *  kchiasso    04/11/02 - handle date format
 *  shuberma    04/11/02 - Value COmpare operators..
 *  kchiasso    04/03/02 - handle STRING lt compare
 *  kchiasso    04/03/02 - add sql search
 *  kchiasso    03/29/02 - sort Search
 *
 *
 *  @author  kChiasson
 *
-->
<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:uix="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://bali.us.oracle.com/cabo/marlin"
              xmlns:uix="http://bali.us.oracle.com/cabo/marlin"
              xmlns:html="http://www.w3.org/TR/REC-html40">

  <dataScope>
   <contents>
         <head>
           <boundAttribute name="title">
             <concat>
                <dataObject select="loginTitle"
                            source="getLoginTitle"/>
                <fixed javaType="string">&nbsp;-&nbsp;</fixed>
                <dataObject select="TITLE_SEARCHKERNELPARAMCHANGES" source="ResourceBundle"/>
             </concat>
           </boundAttribute>
         </head> 
   </contents>
      <provider>
       <data name="getLoginTitle">
          <method class="oracle.sysman.eml.ecm.util.EcmSessionUtil" method="getLoginTitle"/>
        </data>
        <data name="ResourceBundle">
           <bundle class = "oracle.sysman.eml.ecm.search.util.SearchResourceBundle"/>
        </data>
      </provider>
  </dataScope>

 </baja:head>

    <!-- special handler to load help topic -->
   <handlers>
    <event name="null">
      <method class="oracle.sysman.eml.ecm.OnlineHelp"
              method="loadSearchHelpTopic"/>
    </event>
   </handlers>
 
 <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">
  <dataScope>
   <contents>
    <script>
     <contents>
      // clear out the previous selections
      function clearParams()
      {
       with(document.searchKernelParamChanges)
       {
        hostNameText.value = "";
        operatingSystemText.value = "";
        parameterNameText.value = "";
        valueText.value = "";
        beginDate.value = "";
        endDate.value = "";
        groupMembershipText.value = "";
/*
        amt = elements.length;
        i = 0;
        while (i != amt)
        {
            nm = elements[i].name;
            alert (nm);
            i++;
        }
*/
       }
      }
     </contents>
    </script>
    <form name="searchKernelParamChanges" >
     <contents>
      <formValue name="blockStart" uix:value="blockStart@patchList"/>
      <formValue name="anchor" uix:value="anchor@patchList"/>
      <pageLayout xmlns="http://bali.us.oracle.com/cabo/marlin"
           uix:title="TITLE_SEARCHKERNELPARAMCHANGES@ResourceBundle">
       <mediumAdvertisement>
        <include baja:node="../../oemBanner" />
       </mediumAdvertisement>
       <marlin:globalButtons>
        <include baja:node="../../globalButtonBar" />
       </marlin:globalButtons>
       <marlin:tabs>
        <include baja:node="../../globalTabs" />
       </marlin:tabs>
       <marlin:location>
        <include baja:node="../../breadCrumbs" />
       </marlin:location>
       <marlin:pageHeader>
        <include baja:node="../../globalHeader" />
       </marlin:pageHeader>
       <copyright>
        <include baja:node="../../copyright" />
       </copyright>

       <pageButtons>
        <pageButtonBar>
        <contents>
            <submitButton name="event"
                          value="doSQLSearch"
                          uix:text="BTN_SEARCHSQL@ResourceBundle"/>
        </contents>
        </pageButtonBar>
       </pageButtons>

       <contents>
        <messageBox automatic="true" />

         <!-- make sure valid patch data -->
         <switcher uix:childName="status@searchList" childName="success">
          <case name="failure">
           <messageBox automatic="false"
                       uix:text="errHdr@searchList"
                       uix:message="errMsg@searchList"
                       messageType="error" />
          </case>
          <case name="success">
           <stackLayout>
            <contents>
            <include baja:node="../../targetTime" />
 
            <header uix:text="HDR_SEARCHCRITERIA@ResourceBundle">
            <contents>
              <tableLayout width="70%" align="center">
              <contents>

                <rowLayout>
                <contents>
                    <rowLayout hAlign="right">
                    <contents>
                      <cellFormat wrappingDisabled="true">
                      <contents>
                          <spacer width="20"/>
                          <styledText labeledNodeId="operatingSystemID" styleClass="OraPromptText" uix:text="LBL_OPERATINGSYSTEM@ResourceBundle"/>
                      </contents>
                      </cellFormat>
                    </contents>
                    </rowLayout>
 
                    <rowLayout hAlign="right">
                    <contents>
                             <spacer width="20"/>
                            <choice name="operatingSystemQuery"
                             id="operatingSystemID"
                             uix:selectedValue="operatingSystemQuery@searchData">
                            <contents>
                             <option uix:text="OPT_CONTAINS@ResourceBundle"
                                value="OPT_CONTAINS"/>
                             <option uix:text="OPT_EXACT@ResourceBundle"
                                value="OPT_EXACT"/>
                             <option uix:text="OPT_NOTEXACT@ResourceBundle"
                                value="OPT_NOTEXACT"/>
                             <option uix:text="OPT_NOTCONTAINS@ResourceBundle"
                                value="OPT_NOTCONTAINS"/>
                            </contents>
                            </choice>
                    </contents>
                    </rowLayout>

                    <rowLayout hAlign="left">
                    <contents>
                           <spacer width="20"/>
                          <textInput required="no"
                               name="operatingSystemText"
                               id="operatingSystemID"
                               uix:text="operatingSystemText@searchData"
                               columns="20"/>
                    </contents>
                    </rowLayout>
                </contents>
                </rowLayout>

                <rowLayout>
                <contents>
                    <rowLayout hAlign="right">
                    <contents>
                      <cellFormat wrappingDisabled="true">
                       <contents>
                          <spacer width="20"/>
                        <styledText labeledNodeId="hostNameID" styleClass="OraPromptText" uix:text="LBL_HOSTNAME@ResourceBundle"/>
                      </contents>
                      </cellFormat>
                    </contents>
                    </rowLayout>

                    <rowLayout hAlign="right">
                    <contents>
                         <spacer width="20"/>
                        <choice name="hostNameQuery"
                             id ="hostNameID"                
                             uix:selectedValue="hostNameQuery@searchData">
                        <contents >
                            <option uix:text="OPT_CONTAINS@ResourceBundle"
                                value="OPT_CONTAINS"/>
                            <option uix:text="OPT_EXACT@ResourceBundle"
                                value="OPT_EXACT"/>
                            <option uix:text="OPT_NOTEXACT@ResourceBundle"
                                value="OPT_NOTEXACT"/>
                            <option uix:text="OPT_NOTCONTAINS@ResourceBundle"
                                value="OPT_NOTCONTAINS"/>
                        </contents>
                        </choice>
                    </contents>
                    </rowLayout>
                    
                    <rowLayout hAlign="left">
                    <contents>
                        <spacer width="20"/>
                        <textInput required="no"
                               name="hostNameText"
                               id="hostNameID"                
                               uix:text="hostNameText@searchData"
                               columns="20"/>
                    </contents>
                   </rowLayout>
                </contents>
                </rowLayout>

                <rowLayout vAlign="top">
                <contents>
                  <rowLayout hAlign="right">
                  <contents>
                    <cellFormat wrappingDisabled="true">
                    <contents>
                      <spacer width="20"/>
                      <styledText labeledNodeId="groupMembershipID" styleClass="OraPromptText" uix:text="LBL_GROUPNAME@ResourceBundle"/>
                    </contents>
                    </cellFormat>
                  </contents>
                  </rowLayout>
                  <rowLayout hAlign="right">
                  <contents>
                      <spacer width="20"/>
                      <choice name="groupMembershipQuery"
                             id="groupMembershipID"
                             uix:selectedValue="groupMembershipQuery@searchData">
                      <contents>
                        <option uix:text="OPT_CONTAINS@ResourceBundle"
                                value="OPT_CONTAINS"/>
                        <option uix:text="OPT_EXACT@ResourceBundle"
                                value="OPT_EXACT"/>
                        <option uix:text="OPT_NOTEXACT@ResourceBundle"
                                value="OPT_NOTEXACT"/>
                        <option uix:text="OPT_NOTCONTAINS@ResourceBundle"
                                value="OPT_NOTCONTAINS"/>
                      </contents>
                      </choice>
                   </contents>
                  </rowLayout>
                  <rowLayout hAlign="left">
                  <contents>
                        <spacer width="18"/>
                        <messageTextInput required="no"
                               uix:tip="LBL_HOSTGROUPHINT@ResourceBundle"
                               name="groupMembershipText"
                               id="groupMembershipID"
                               uix:text="groupMembershipText@searchData"
                               columns="20"/>
                  </contents>
                  </rowLayout>
                </contents>
                </rowLayout>

                <rowLayout>
                <contents>
                    <rowLayout hAlign="right">
                    <contents>
                      <cellFormat wrappingDisabled="true">
                      <contents>
                        <spacer width="20"/>
                        <styledText labeledNodeId="sourceNameID" styleClass="OraPromptText" uix:text="LBL_SOURCE@ResourceBundle"/>
                      </contents>
                      </cellFormat>
                    </contents>
                    </rowLayout>

                    <rowLayout hAlign="right">
                    <contents>
                         <spacer width="20"/>
                         <choice name="sourceNameQuery"
                             id ="sourceNameID"                
                             uix:selectedValue="sourceNameQuery@searchData">
                          <contents >
                            <option uix:text="OPT_CONTAINS@ResourceBundle"
                                value="OPT_CONTAINS"/>
                            <option uix:text="OPT_EXACT@ResourceBundle"
                                value="OPT_EXACT"/>
                            <option uix:text="OPT_NOTEXACT@ResourceBundle"
                                value="OPT_NOTEXACT"/>
                            <option uix:text="OPT_NOTCONTAINS@ResourceBundle"
                                value="OPT_NOTCONTAINS"/>
                        </contents>
                        </choice>
                    </contents>
                    </rowLayout>
                  
                    <rowLayout hAlign="left">
                    <contents>
                        <spacer width="20"/>
                        <textInput required="no"
                               name="sourceNameText"
                               id="sourceNameID"                
                               uix:text="sourceNameText@searchData"
                               columns="20"/>
                    </contents>
                    </rowLayout>
                </contents>
                </rowLayout>
                
                <rowLayout>
                <contents>
                    <rowLayout hAlign="right">
                    <contents>
                     <cellFormat wrappingDisabled="true">
                     <contents>
                        <spacer width="20"/>
                        <styledText labeledNodeId="parameterNameID" styleClass="OraPromptText" uix:text="LBL_PARAMETERNAME@ResourceBundle"/>
                     </contents>
                     </cellFormat>
                    </contents>
                    </rowLayout>

                    <rowLayout hAlign="right">
                    <contents>
                         <choice name="parameterNameQuery"
                             id="parameterNameID"
                             uix:selectedValue="parameterNameQuery@searchData">
                         <contents>
                            <option uix:text="OPT_CONTAINS@ResourceBundle"
                                value="OPT_CONTAINS"/>
                            <option uix:text="OPT_EXACT@ResourceBundle"
                                value="OPT_EXACT"/>
                            <option uix:text="OPT_NOTEXACT@ResourceBundle"
                                value="OPT_NOTEXACT"/>
                            <option uix:text="OPT_NOTCONTAINS@ResourceBundle"
                                value="OPT_NOTCONTAINS"/>
                         </contents>
                         </choice>
                    </contents>
                    </rowLayout>

                    <rowLayout hAlign="left">
                    <contents>
                          <spacer width="20"/>
                          <textInput required="no"
                               name="parameterNameText"
                               id="parameterNameID"
                               uix:text="parameterNameText@searchData"
                               columns="20"/>
                    </contents>
                    </rowLayout>
                </contents>
                </rowLayout>

                <rowLayout>
                <contents>
                    <rowLayout hAlign="right">
                    <contents>
                      <cellFormat wrappingDisabled="true">
                      <contents>
                          <spacer width="20"/>
                          <styledText labeledNodeId="valueID" styleClass="OraPromptText" uix:text="LBL_NEWVALUE@ResourceBundle"/>
                          <spacer width="4"/>
                      </contents>
                      </cellFormat>
                    </contents>
                    </rowLayout>

                    <rowLayout hAlign="right">
                    <contents>
                          <choice name="valueQuery"
                                  id="valueID"
                                  uix:selectedValue="valueQuery@searchData">
                           <contents>
                            <option value="OPT_CONTAINS" 
                                    uix:text="OPT_CONTAINS@ResourceBundle"/>
                            <option value="OPT_EXACT" 
                                    uix:text="OPT_EXACT@ResourceBundle"/>
                            <option value="OPT_NOTEXACT" 
                                    uix:text="OPT_NOTEXACT@ResourceBundle"/>
                            <option value="OPT_NOTCONTAINS" 
                                    uix:text="OPT_NOTCONTAINS@ResourceBundle"/>
                            <option value="OPT_LT_TEXT_NUM" 
                                    uix:text="OPT_LT_TEXT_NUM@ResourceBundle"/>
                            <option value="OPT_LTE_TEXT_NUM" 
                                    uix:text="OPT_LTE_TEXT_NUM@ResourceBundle"/>
                            <option value="OPT_GT_TEXT_NUM" 
                                    uix:text="OPT_GT_TEXT_NUM@ResourceBundle"/>
                            <option value="OPT_GTE_TEXT_NUM" 
                                    uix:text="OPT_GTE_TEXT_NUM@ResourceBundle"/>
                           </contents>
                           </choice>
                    </contents>
                    </rowLayout>

                    <rowLayout hAlign="left">
                    <contents>
                            <spacer width="20"/>
                            <textInput required="no"
                               name="valueText"
                               id="valueID"
                               uix:text="valueText@searchData"
                               columns="20"/>
                    </contents>
                    </rowLayout>
                </contents>
                </rowLayout>

                <rowLayout>
                <contents>
                    <rowLayout hAlign="right">
                    <contents>
                      <cellFormat wrappingDisabled="true">
                      <contents>
                            <styledText labeledNodeId="beginDateID" styleClass="OraPromptText" 
                                        uix:text="XLBL_BEGINDATE@ResourceBundle"/>
                      </contents>
                      </cellFormat>
                    </contents>
                    </rowLayout>

                    <rowLayout hAlign="right">
                    <contents>
                          <messageDateField name="beginDate"
                                        id="beginDateID"
                                        uix:value="beginDate@searchData"
                                        columns="11">
                            <onSubmitValidater>
                                    <date dateStyle="short" />
                            </onSubmitValidater>
                          </messageDateField>
                    </contents>
                    </rowLayout>
                </contents>
                </rowLayout>

                <rowLayout>
                <contents>
                    <rowLayout  hAlign="right">
                    <contents>
                      <cellFormat wrappingDisabled="true">
                      <contents>
                            <styledText labeledNodeId="endDateID" styleClass="OraPromptText" 
                                        uix:text="XLBL_ENDDATE@ResourceBundle"/>
                      </contents>
                      </cellFormat>
                    </contents>
                    </rowLayout>

                    <rowLayout  hAlign="right">
                    <contents>
                             <messageDateField name="endDate"
                                        id="endDateID"
                                        uix:value="endDate@searchData"
                                        uix:tip="tipDate@searchData"
                                        columns="11">
                                <onSubmitValidater>
                                    <date dateStyle="short" />
                                </onSubmitValidater>
                              </messageDateField>
                    </contents>
                    </rowLayout>
                 </contents>
                </rowLayout>

             </contents>
             </tableLayout>
           </contents>
           </header>

             <tableLayout width="45%" >
              <contents>
               <spacer height="5"/>
               <rowLayout hAlign="right">
                <contents>
                 <cellFormat wrappingDisabled="true">
                  <contents>
                   <submitButton name="event"
                                 value="doSearch"
                                 uix:text="BTN_SEARCH@ResourceBundle"/>
                   <spacer width="8"/>
                   <button uix:text="BTN_CLEAR@ResourceBundle"
                           onClick="clearParams();" />
                   <spacer width="8"/>
                  </contents>
                 </cellFormat>
                </contents>
               </rowLayout>
              </contents>
             </tableLayout>

             <header uix:text="HDR_RESULTS@ResourceBundle">
              <contents>

                <rowLayout hAlign="right">
                    <contents>
                     <button uix:text="BTN_SAVETOFILE@ResourceBundle"
                        destination="export/exportSearch$searchType=OperatingSystemPropertyChangesonHosts"/>
                    </contents>
                  </rowLayout>
                  <html:br></html:br>
                  <spacer height="5"/>
              
               <table name="resultsTable"
                      width="100%"
                      formSubmitted="true"
                      minValue="1"
                      uix:value="value@searchList"
                      uix:maxValue="maxValue@searchList"
                      uix:blockSize="blockSize@searchList"
                      uix:alternateText="MSG_PRESSSEARCH@ResourceBundle"
                      uix:tableData="tabledata@searchList"
                      uix:summary="TBLSUM_RESULTSTABLE@PatchResourceBundle">
                <tableFormat tableBanding="rowBanding"/>
                
                <columnHeaderStamp>
                 <sortableHeader data:text="text"
                                uix:value="value"
                                uix:sortable="sort">
                   <boundAttribute name="sortable">
                    <defaulting>
                        <dataObject data:source="(value)@sortColumnHeader"/>
                        <dataObject select="sort"/>
                    </defaulting>
                   </boundAttribute>
                 </sortableHeader>
                </columnHeaderStamp>

               <columnHeaderData>
                 <col id="hdrtime"    uix:text="LBL_TIME@ResourceBundle"            uix:sort="SORT_TIME@searchList"             value="LBL_TIME"/>
                 <col id="hdroperation" uix:text="LBL_OPERATION@ResourceBundle"       uix:sort="SORT_OPERATION@searchList"        value="LBL_OPERATION"/>
                 <col id="hdrhostname" uix:text="LBL_HOSTNAME@ResourceBundle"        uix:sort="SORT_HOSTNAME@searchList"         value="LBL_HOSTNAME"/>
                 <col id="hdrsource"  uix:text="LBL_SOURCE@ResourceBundle"       uix:sort="SORT_SOURCE@searchList"           value="LBL_SOURCE"/>
                 <col id="hdrparam"   uix:text="LBL_PARAMETERNAME@ResourceBundle"   uix:sort="SORT_PARAMETERNAME@searchList"    value="LBL_PARAMETERNAME"/>
                 <col id="hdroldval"  uix:text="LBL_OLDVALUE@ResourceBundle"        uix:sort="SORT_OLDVALUE@searchList"         value="LBL_OLDVALUE"/>
                 <col id="hdrnewval"  uix:text="LBL_NEWVALUE@ResourceBundle"        uix:sort="SORT_NEWVALUE@searchList"         value="LBL_NEWVALUE"/>
                 <col id="hdros"      uix:text="LBL_OPERATINGSYSTEM@ResourceBundle" uix:sort="SORT_OPERATINGSYSTEM@searchList"  value="LBL_OPERATINGSYSTEM"/>
                </columnHeaderData>

<!--
          	    <columnFormats>
                    <columnFormat columnDataFormat="textFormat"/>
                    <columnFormat columnDataFormat="textFormat"/>
                    <columnFormat columnDataFormat="textFormat"/>
                    <columnFormat columnDataFormat="textFormat"/>
                    <columnFormat columnDataFormat="textFormat"/>
                    <columnFormat columnDataFormat="numberFormat"/>
                    <columnFormat columnDataFormat="numberFormat"/>
                </columnFormats>
-->
                <contents>
                 <styledText headers="hdrtime"      uix:text="LBL_TIME"/>
                 <styledText headers="hdroperation" uix:text="LBL_OPERATION"/>
                 <link       headers="hdrhostname"  uix:text="LBL_HOSTNAME"
                       uix:destination="LBL_HOSTNAME^"/>
                 <styledText headers="hdrsource"    uix:text="LBL_SOURCE" />
                 <styledText headers="hdrparam"     uix:text="LBL_PARAMETERNAME" />
                 <styledText headers="hdroldval"    uix:text="LBL_OLDVALUE" />
                 <styledText headers="hdrnewval"    uix:text="LBL_NEWVALUE" />
                 <styledText headers="hdros"        uix:text="LBL_OPERATINGSYSTEM"
                        uix:destination="LBL_OPERATINGSYSTEM^LBL_HOSTNAME"/>

                </contents>
               </table>

              </contents>
             </header>

          </contents>
         </stackLayout>

        </case>
       </switcher>
      </contents>
     </pageLayout>
    </contents>
   </form>
  </contents>
  <provider>
   <data name="searchCallbackText">
   <!-- NOTE: the "datatype" column is required to implement numeric comparison of
              a column that isn't necessarily numeric, as in the case of kernel params.
              so, when using OPT_LT_TEXT_NUM (as opposed to OPT_LT which is truely numeric)
              a column called "datatype" is required.  If we need to handle multiples of these 
              in a single page, in the future, we will need to add a new property to the 
              column below, mapping each alpha-num to its datatype column. -->

    <inline innerQuery="select k.delta_time as LBL_TIME, k.operation as LBL_OPERATION, k.host_name as LBL_HOSTNAME, k.param_source LBL_SOURCE, k.param_name as LBL_PARAMETERNAME, k.old_value as LBL_OLDVALUE, k.new_value as LBL_NEWVALUE, o.name || ' ' || o.base_version as LBL_OPERATINGSYSTEM, k.datatype as datatype from mgmt$delta_os_kernel_params k, mgmt$os_summary o where o.host = k.host_name"/>
   </data>

    <data name="columnListInfo">
     <inline>
      <column displayName="LBL_TIME"
              filterOp="OPT_BETWEEN"
              filterVal="beginDate,endDate"
              valFormat="dateFormat"/>
      <column displayName="LBL_OPERATION"
              filterOp="operationQuery"
              filterVal="operationText"/>
      <column displayName="LBL_HOSTNAME"
              filterOp="hostNameQuery"
              filterVal="hostNameText"
              destLink="monitoring/hostOverview$target=LBL_HOSTNAME$ctxType=All Targets$type=host?event=doLoad"/>
      <column displayName="LBL_SOURCE"
              filterOp="sourceNameQuery"
              filterVal="sourceNameText"/>
      <column displayName="LBL_PARAMETERNAME"
              filterOp="parameterNameQuery"
              filterVal="parameterNameText"/>
      <column displayName="LBL_OLDVALUE"/>
      <column displayName="LBL_NEWVALUE"
              filterOp="valueQuery"
              filterVal="valueText"/>
      <column displayName="LBL_OPERATINGSYSTEM"
              destLink="ecm/track/hc/view/osGeneral$target=LBL_HOSTNAME$type=host?event=doLoad"
              filterOp="operatingSystemQuery"
              filterVal="operatingSystemText"/>
      <column displayName="LBL_GROUPNAME"
              selectColumn="false"
              filterOp="groupMembershipQuery"
              filterVal="groupMembershipText"
              OPT_CONTAINS="membershipContainsOperator"
              OPT_NOTCONTAINS="membershipNotContainsOperator"
              OPT_EXACT="membershipExactOperator"
              OPT_NOTEXACT="membershipNotExactOperator"/>
      </inline>
    </data>
    <data name="predicateOperatorOverrides">
      <inline>
        <condition name="membershipContainsOperator"
                   predicate="exists (select * from mgmt$group_flat_memberships where disjunction and member_target_name = LBL_HOSTNAME and member_target_type = 'host')"
                   disjunction="NLS_UPPER( composite_target_name ) like NLS_UPPER( '%filterVal%' ) {escape '#'} " />
        <condition name="membershipNotContainsOperator"
                   predicate="not exists (select * from mgmt$group_flat_memberships where disjunction and member_target_name = LBL_HOSTNAME and member_target_type = 'host' )"
                   disjunction="NLS_UPPER( composite_target_name ) like NLS_UPPER( '%filterVal%' ) {escape '#'} " />
        <condition name="membershipExactOperator"
                   predicate="exists (select * from mgmt$group_flat_memberships where disjunction and member_target_name = LBL_HOSTNAME and member_target_type = 'host')"
                   disjunction="composite_target_name = 'filterVal'" />
        <condition name="membershipNotExactOperator"
                   predicate="not exists (select * from mgmt$group_flat_memberships where disjunction and member_target_name = LBL_HOSTNAME and member_target_type = 'host')"
                   disjunction="composite_target_name = 'filterVal'" />
      </inline>
    </data>
    <data name="ResourceBundle">
     <bundle class = "oracle.sysman.eml.ecm.search.util.SearchResourceBundle"/>
    </data>
    <data name="PatchResourceBundle">
       <bundle class = "oracle.sysman.eml.ecm.patch.util.PatchResourceBundle"/>
    </data>

    <data name="searchData">
     <method class="oracle.sysman.eml.ecm.search.SearchData"
             method="populateSearchData"/>
    </data>
    <data xmlns="http://bali.us.oracle.com/cabo/marlin" name="searchList">
     <method class="oracle.sysman.eml.ecm.search.SearchData"
             method="populateResultsTable"/>
    </data>

   <data name="sortColumnHeader">
     <method class="oracle.sysman.eml.ecm.search.SearchData"
             method="getSortColumnHeader"/>
    </data>


   </provider>
  </dataScope>
 </baja:content>

 <handlers>
 
  <event name="sort">
   <method class="oracle.sysman.eml.ecm.search.SearchHandler"
           method="doSort"/>
  </event>
  <event name="doSearch">
   <method class="oracle.sysman.eml.ecm.search.SearchHandler"
           method="doSearch"/>
  </event>
  <event name="doSQLSearch">
   <method class="oracle.sysman.eml.ecm.search.SearchHandler"
           method="doSQLSearch"/>
  </event>

  <!-- This handles the next/prev buttons in the results table -->
  <event name="goto">
   <method class="oracle.sysman.eml.ecm.search.SearchHandler"
           method ="tableGoto"/>
  </event>
 </handlers>
</page>


