SHARE
TWEET

Untitled

a guest Oct 3rd, 2012 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   <module name="HTML" layoutPanel="panel_row1_col1" group=" ">
  2.     <param name="group"> </param>
  3.     <param name="html"><![CDATA[Choose the versions you want to see.]]></param>
  4.  
  5.     <module name="Pulldown" autoRun="True">
  6.       <param name="staticOptions">
  7.         <list>
  8.           <param name="value">1</param>
  9.           <param name="label">last version</param>
  10.           <!-- OTHER FIELDS-->
  11.         </list>
  12.       </param>
  13.       <param name="name">cbSelectVersion</param>
  14.  
  15.       <module name="Switcher">
  16.         <param name="selectedGroup">$cbSelectVersion$</param>
  17.  
  18.         <module name="HTML" group="1">
  19.           <param name="html"><![CDATA[<br>]]></param>
  20.           <param name="group">1</param>
  21.  
  22.           <module name="SavedSearch" autoRun="True">
  23.             <param name="name"><!-- Name of the saved search--></param>
  24.  
  25.             <module name="PostProcess">
  26.               <param name="search">
  27.                 <!-- Some postProcess is done to fill the $version$ variable-->
  28.                 <![CDATA[
  29.                  | top $cbSelectVersion$ v
  30.                  | stats values(v) as version
  31.                  | eval version="( v=\"" + mvjoin(version,"\" OR v=\"") + "\" )"
  32.                  | fields version]]>
  33.               </param>
  34.               <module name="ResultsValueSetter">
  35.                 <param name="fields">version</param>
  36.                 <module name="Search">
  37.                   <param name="latest">now</param>
  38.                   <param name="search">
  39.                     <!--  This search is valid because when done in the core search app I have some results-->
  40.                     <!-- It returns a single row, but I have tried with a search that returns several rows and it doesn't change anything-->
  41.                     <![CDATA[
  42.                    XXXXX $version$
  43.                    | transaction YYYYY maxpause=30m keeporphans=false keepevicted=false
  44.                    | search eventcount>1
  45.                    | eval v=if(isnull(v), 0, v)
  46.                    | stats avg(duration) as dur by v
  47.                    | eval sessionLength=round(dur/60, 1)
  48.                    | fields + v sessionLength
  49.                    ]]>
  50.                   </param>
  51.                   <!-- This is where the problems occurs, nothing results are displayed in the JSChart, just the axis and the value of the axis-->
  52.                   <module name="HiddenChartFormatter" layoutPanel="panel_row2_col1">
  53.                     <param name="chart.nullValueMode">connect</param>
  54.                     <module name="JSChart" />
  55.                   </module>
  56.                   <module name="HTML" layoutPanel="panel_row2_col1">
  57.                     <param name="html">
  58.                        <!-- The search and the version variable are both valid when displayed in this HTML module-->
  59.                       <![CDATA[
  60.                      The entire search is: <b>$search$</b><br>
  61.                      The versions are <b>$version$</b>]]>
  62.                     </param>
  63.                   </module>
  64.                   <module name="SimpleResultsTable" layoutPanel="panel_row3_col2" />
  65.                   <module name="CustomResultsTable" layoutPanel="panel_row3_col1">
  66.                     <module name="JSChart" />
  67.                   </module>
  68.                 </module>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top