Displaying random item on Data Set

Is there a way to display a random item (row) from a data
set? If not, is it in works for future Spry releases?
I was trying to put a random picture from my gallery on the
front page, but I imagine it would be a feature with which many
other things could be achieved...
Thanks,
Tomas

Hello,
Seems that a small mistake slept in the code above. The
random_row should be casted to an integer value first because the
array of data doesn't have float keys:
function getRandomRecord(){
var data = ds1.getData(true);
var random_row=floor(Math.random()*data.length);
return data[random_row]['image_field'];
where ds1 is the dataset containing the files.
Regards,
Cristian

Similar Messages

  • IE doesn't display part of spry data set!?!?

    Hi there,
    I hope somebody can help me out with a problem I got with the spry dataset I use on my website. -> http://media-powerplant.de/media-powerplant-referenzen.html
    The thing is that the IE doesn't display text in the "master" region. There are no problems with the Details region, and pictures are also diplayed in the master, but strangely enough no text! :-(
    When i visit the site with firefox or any other browser the text gets displayed. I have no idea what the problem is, but this is really bothering me.
    I hope that somebody is kind enough to help me out here. Big thanks in advance! :-)
    Here is the HTML-code of the site: (the red highlighted lines are those which doesn't get diplayed)
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd
    ">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry
    ">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="description" content="Ihr Partner für Musik- und 
    Videoproduktionen, Webdesign, Internet, Flash, Podcasts und 
    Grafikdesign" />
    <meta name="keywords" content="gemafreie musik,lizenzfrei,lizenzfreie 
    musik, royalty free, filmmusik,hintergrundmusik, werbespot,trailer, 
    jingles, loops, Werbemusik, Mastering, Scoremusik, 
    Filmproduktion
    ,Videoproduktion,Computeranimation,Postproduktion,Filmagentur,3D 
    Visualisierung,3D Animation,Filme,Video,Film Produktion,Grafik 
    Design,Imagefilm,Werbefilm,Werbefilme,Werbefilmproduktion, Webdesign, 
    Webspace ,Webhosting, Web-Design , Web, Domainregistrierung, 
    Internetdesign, Internet, Provider, HTML, Web-Space, Design, Webdesign 
    München, Grafikdesign, kreative, innovative, Homepage, 
    Suchmaschinenoptimierung, Michael Peh, Michi Peh, Matthias Damoser, 
    media powerplant, media-powerplant, München"/>
    <title>media powerplant *** Musikproduktion / Videoproduktion / 
    Webdesign ***</title>
    <meta name="author" content="[email protected]">
    <meta name="copyright" content="Webdesign: Matthias Damoser / media 
    powerplant">
    <meta name="Content-Language" content="de">
    <meta name="robots" content="INDEX,FOLLOW">
    <meta name="revisit-after" content="7 days">
    <link rel="SHORTCUT ICON" href="http://www.media-powerplant.de/favicon.ico
    ">
    <link href="mppLayout.css" rel="stylesheet" type="text/css" />
    <!--[if IE]>
         <style type="text/css">@import url(ie.css);</style>
       <![endif]-->
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var dsreferenzen = new Spry.Data.XMLDataSet("referenzen.xml", 
    "referenz/beispiel");
    dsreferenzen.setColumnType("name", "html");
    dsreferenzen.setColumnType("MP3", "html");
    dsreferenzen.setColumnType("theURL", "html");
    dsreferenzen.setColumnType("theURL2", "html");
    function MM_preloadImages() { //v3.0
       var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
         var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; 
    i<a.length; i++)
         if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j+
    +].src=a[i];}}
    function MM_goToURL() { //v3.0
       var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
       for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i
    +1]+"'");
    var dslinks = new Spry.Data.XMLDataSet("referenzenlinks.xml", 
    "referenz/link");
    dslinks.setColumnType("a", "html");
    //-->
    </script>
    <link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" 
    type="text/css">
    </head>
    <body>
    <div id="hauptfenster">
    <div id="content">
       <div id="mitte">
         <div id="header">
           <h1>media powerplant</h1>
         </div>
         <div id="mainnavi">
           <div class="menuHome" onclick=MM_goToURL('parent','media-
    powerplant-home.html');return document.MM_returnValue 
    document.MM_returnValue></div>
           <div class="menuMusik" onclick=MM_goToURL('parent','media-
    powerplant-musikproduktion.html');return document.MM_returnValue></div>
           <div class="menuVideo" onclick="MM_goToURL('parent','media-
    powerplant-videoproduktion.html');return document.MM_returnValue"></div>
           <div class="menuWeb" onclick=MM_goToURL('parent','media-
    powerplant-webdesign.html') document.MM_returnValue></div>
           <div class="menuReferenzen" onclick="MM_goToURL('parent','media-
    powerplant-referenzen.html');return document.MM_returnValue"></div>
           <div class="menuAbout" onclick=MM_goToURL('parent','media-
    powerplant-about.html') document.MM_returnValue></div>
           <div class="menuKontakt" onclick="MM_goToURL('parent','media-
    powerplant-kontakt.html');return document.MM_returnValue"></div>
           <div class="menuImpressum" onclick="MM_goToURL('parent','media-
    powerplant-impressum.html');return document.MM_returnValue"></div>
         </div>
         <div id="inhalt">
         <h2><span class="mpp">media powerplant</span> <span 
    class="bereich">Referenzen</span></h2>
           <h2 class="unterüberschrift">Hier finden Sie einen Überblick 
    und einige interessante Details über unsere letzten Projekte</h2>
           <p> </p>
           <div id="musikproduktion">
             <div id="musikprojekte">
               <div id="projektescroll">
                 <div spry:region="dsreferenzen">
                   <table id="referenzTable">
                     <tr spry:repeat="dsreferenzen" 
    spry:hover="rowHoverRef" spry:select="rowSelectRef" 
    spry:setrow="dsreferenzen">
                       <td><img src="{screenshot}" alt="{name}" 
    width="140" height="93" class="screenshot"></td>
                       <td><span class="kategorie">{kategorie}</span><br>
                         <span class="name">{name}</span></td>
                     </tr>
                   </table>
                 </div>
               </div>
             </div>
             <div spry:detailregion="dsreferenzen">
               <div id="musikmainRef">
                 <h2> </h2>
    <p> </p>
                 <div id="projektbeschreibung">
                   <p class="beschreibung">{beschreibung}</p>
                   <p class="aufgabenfeld">{dsreferenzen::aufgabenfeld}</p>
                   <p class="aufgabenbilder">
                   <img src="{bild1}" width="90" height="77" 
    class="bild"><img src="{bild2}" width="90" height="77" 
    class="bild"><img src="{bild3}" width="90" height="77" 
    class="bild"><img src="{bild4}" width="90" height="77" class="bild"> </
    p>
                    <p class="linkMP3">{MP3}</p>
                    <p class="reflink">{theURL}</p>
                    <p class="reflink">{theURL2}</p>
                  </div>
               </div>
            </div>
           </div>
             <div class="copyrightref">Copyright © 2009 media powerplant | 
    Alle Rechte vorbehalten | <a href="media-powerplant-
    impressum.html">Impressum</a> |  <a href="media-powerplant-
    kontakt.html">Kontakt</a> | </div>
         </div>
       </div>
       </div>
    </div>
    </body>
    </html>
    the XML looks like this: (again highlighting the problematic regions)
    <?xml version="1.0" encoding="UTF-8"?>
    <referenz>
         <beispiel>
         <screenshot>Bilder/Projektbilder/impulstv.jpg</screenshot>
         <name>Sounddesign ImpulsTV</name>
         <kategorie>Musikproduktion</kategorie>
         <beschreibung>Produktion des Musikstückes "Today" für Imagefilm 
    der Firma ImpulsTV</beschreibung>
         <aufgabenfeld>Aufgabenbereich: * Musikkomposition * 
    Musikproduktion</aufgabenfeld>
         <bild1>Bilder/Projektbilder/mics.jpg</bild1>
         <bild2>Bilder/Projektbilder/misch2.jpg</bild2>
         <bild3>Bilder/Projektbilder/keyboard.jpg</bild3>
         <bild4>Bilder/Projektbilder/headphones.jpg</bild4>
        <MP3>
            <![CDATA[
            <embed src="Songs/Referenzen/Today.mp3" autostart="false" 
    loop="false" width="300" height="18" controller="true" id="rock.mp3" 
    name="bg song" pluginspage=            "http://www.apple.com/quicktime/
    download/"> </embed>
          ]]>
        </MP3>
       </beispiel>
        <beispiel>
         <screenshot>Bilder/Projektbilder/gm.jpg</screenshot>
         <name>Webdesign gin-mum.com</name>
        <kategorie>Webdesign</kategorie>
         <beschreibung>Design, Programmierung und Webspace-Hosting der 
    Internetpräsenz für die Münchner Band gin mum.</beschreibung>
         <aufgabenfeld>Aufgabenbereich: * Webdesign * Hosting und Domain * 
    Programmierung</aufgabenfeld>
         <bild1>Bilder/Projektbilder/gm_1.jpg</bild1>
         <bild2>Bilder/Projektbilder/gm_2.jpg</bild2>
         <bild3>Bilder/Projektbilder/gm_3.jpg</bild3>
         <bild4>Bilder/Projektbilder/gm_4.jpg</bild4>
            <theURL>
    <![CDATA[
    <p>
    <a target="_blank" href="http://www.gin-mum.com">www.gin-mum.com</a>
    </p>
    ]]>
    </theURL>
       </beispiel>
       <beispiel>
         <screenshot>Bilder/Projektbilder/hz.jpg</screenshot>
         <name>Imagefilm für Johanna Schäfer</name>
         <kategorie>Videoprodution</kategorie>
         <beschreibung>Videoediting für Johanna Schäfer</beschreibung>
         <aufgabenfeld>Aufgabenbereich: * Videoediting</aufgabenfeld>
         <bild1>Bilder/Projektbilder/hz_1.jpg</bild1>
         <bild2>Bilder/Projektbilder/hz_2.jpg</bild2>
         <bild3>Bilder/Projektbilder/hz_3.jpg</bild3>
         <bild4>Bilder/Projektbilder/hz_4.jpg</bild4>
        </beispiel>
       <beispiel>
         <screenshot>Bilder/Projektbilder/SRB.jpg</screenshot>
         <name>Sounddesign Radio SRB</name>
         <kategorie>Musikproduktion</kategorie>
         <beschreibung>Media powerplant produzierte das gesamte 
    Sounddesign für den regionalen Radiosender SRB. Dabei wurden 
    hauptsächlich Musikbetten und Radiojingles produziert.</beschreibung>
         <aufgabenfeld>Aufgabenbereich: * Sounddesign * Musikkomposition * 
    Musikproduktion</aufgabenfeld>
         <bild1>Bilder/Projektbilder/waves.jpg</bild1>
         <bild2>Bilder/Projektbilder/peakmeter.jpg</bild2>
         <bild3>Bilder/Projektbilder/mixpult.jpg</bild3>
         <bild4>Bilder/Projektbilder/mics.jpg</bild4>
        <MP3>
            <![CDATA[
            <embed src="Songs/Electro/Hintergrund_3.mp3" autostart="false" 
    loop="false" width="300" height="18" controller="true" id="rock.mp3" 
    name="bg song" pluginspage=            "http://www.apple.com/quicktime/
    download/"> </embed>
          ]]>
        </MP3>
       </beispiel>
       <beispiel>
         <screenshot>Bilder/Projektbilder/Logo_earthTV.jpg</screenshot>
         <name>EarthTV Musik</name>
         <kategorie>Musikproduktion</kategorie>
         <beschreibung>Komposition und Produktion des Stückes "Steil" im 
    Auftrag von EarthTV für deren Sendeformat bei Sevenload.</beschreibung>
         <aufgabenfeld>Aufgabenbereich:* Musikkompostion * 
    Musikproduktion</aufgabenfeld>
         <bild1>Bilder/Projektbilder/peakmeter.jpg</bild1>
         <bild2>Bilder/Projektbilder/headphones.jpg</bild2>
         <bild3>Bilder/Projektbilder/keyboard.jpg</bild3>
         <bild4>Bilder/Projektbilder/mic.jpg</bild4>
         <theURL>
    <![CDATA[
    <p>
    <a target="_blank" href="http://de.sevenload.com/sendungen/
    earthTV">EarthTV bei www.Sevenload.de</a>
    </p>
    ]]>
    </theURL>
    <MP3>
            <![CDATA[
            <embed src="Songs/Electro/Steil.mp3" autostart="false" loop="false" 
    width="300" height="18" controller="true" id="rock.mp3" name="bg song" 
    pluginspage=            "http://www.apple.com/quicktime/download/"> </embed>
          ]]>
        </MP3>
       </beispiel>
    </referenz>
    Are you still with me? :-)
    Attached you'll find what it looks like with Firefox and with InternetExplorer.

    Hmm, stil not working. But thanks for your support!
    Here is the modified XML-code: (the not shown elements are highlighted)
    <?xml version="1.0" encoding="UTF-8"?>
    <referenz>
        <beispiel>
        <screenshot>Bilder/Projektbilder/impulstv.jpg</screenshot>
        <name><![CDATA[Sounddesign ImpulsTV]]></name>
        <kategorie><![CDATA[Musikproduktion]]></kategorie>
    <beschreibung><![CDATA[Produktion des Musikstückes "Today" für Imagefilm der Firma ImpulsTV]]></beschreibung>
        <aufgabenfeld>Aufgabenbereich: * Musikkomposition * Musikproduktion</aufgabenfeld>
        <bild1>Bilder/Projektbilder/mics.jpg</bild1>
        <bild2>Bilder/Projektbilder/misch2.jpg</bild2>
        <bild3>Bilder/Projektbilder/keyboard.jpg</bild3>
        <bild4>Bilder/Projektbilder/headphones.jpg</bild4>
    <MP3>
      <![CDATA[
    <embed src="Songs/Referenzen/Today.mp3" autostart="false" loop="false" width="300" height="18" controller="true" id="rock.mp3" name="bg song" pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
      ]]>
    </MP3>
      </beispiel>
       <beispiel>
        <screenshot>Bilder/Projektbilder/gm.jpg</screenshot>
       <name><![CDATA[Webdesign gin-mum.com]]></name>
        <kategorie><![CDATA[Webdesign]]></kategorie>
        <beschreibung><![CDATA[Design, Programmierung und Webspace-Hosting der Internetpräsenz für die Münchner Band gin mum.]]></beschreibung>
        <aufgabenfeld>Aufgabenbereich: * Webdesign * Hosting und Domain * Programmierung</aufgabenfeld>
        <bild1>Bilder/Projektbilder/gm_1.jpg</bild1>
        <bild2>Bilder/Projektbilder/gm_2.jpg</bild2>
        <bild3>Bilder/Projektbilder/gm_3.jpg</bild3>
        <bild4>Bilder/Projektbilder/gm_4.jpg</bild4>
        <theURL>
    <![CDATA[
    <p>
    <a target="_blank" href="http://www.gin-mum.com">www.gin-mum.com</a>
    </p>
    ]]>
    </theURL>
      </beispiel>
      <beispiel>
        <screenshot>Bilder/Projektbilder/hz.jpg</screenshot>
       <name><![CDATA[Imagefilm für Johanna Schäfer]]></name>
        <kategorie><![CDATA[Videoprodution]]></kategorie>
        <beschreibung><![CDATA[Videoediting für Mediengestalterin und Fotografin Johanna Schäfer.]]></beschreibung>
        <aufgabenfeld>Aufgabenbereich: * Videoediting</aufgabenfeld>
        <bild1>Bilder/Projektbilder/hz_1.jpg</bild1>
        <bild2>Bilder/Projektbilder/hz_2.jpg</bild2>
        <bild3>Bilder/Projektbilder/hz_3.jpg</bild3>
        <bild4>Bilder/Projektbilder/hz_4.jpg</bild4>
    <theURL>
    <![CDATA[
    <p>
    <a target="_blank" href="http://hanna-schaefer.de/">Website von Johanna Schäfer</a>
    </p>
    ]]>
    </theURL>
    </beispiel>
      <beispiel>
        <screenshot>Bilder/Projektbilder/SRB.jpg</screenshot>
       <name><![CDATA[Sounddesign Radio SRB]]></name>
        <kategorie><![CDATA[Musikproduktion]]></kategorie>
        <beschreibung><![CDATA[Media powerplant produzierte das gesamte Sounddesign für den regionalen Radiosender SRB. Dabei wurden hauptsächlich Musikbetten und Radiojingles produziert.]]></beschreibung>
        <aufgabenfeld>Aufgabenbereich: * Sounddesign * Musikkomposition * Musikproduktion</aufgabenfeld>
        <bild1>Bilder/Projektbilder/waves.jpg</bild1>
        <bild2>Bilder/Projektbilder/peakmeter.jpg</bild2>
        <bild3>Bilder/Projektbilder/mixpult.jpg</bild3>
        <bild4>Bilder/Projektbilder/mics.jpg</bild4>
    <MP3>
      <![CDATA[
    <embed src="Songs/Electro/Hintergrund_3.mp3" autostart="false" loop="false" width="300" height="18" controller="true" id="rock.mp3" name="bg song" pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
      ]]>
    </MP3>
      </beispiel>
      <beispiel>
        <screenshot>Bilder/Projektbilder/Logo_earthTV.jpg</screenshot>
       <name><![CDATA[EarthTV Musik]]></name>
        <kategorie><![CDATA[Musikproduktion]]></kategorie>
        <beschreibung><![CDATA[Komposition und Produktion des Stückes "Steil" im Auftrag von EarthTV für deren Sendeformat bei Sevenload.]]></beschreibung>
        <aufgabenfeld>Aufgabenbereich:* Musikkompostion * Musikproduktion</aufgabenfeld>
        <bild1>Bilder/Projektbilder/peakmeter.jpg</bild1>
        <bild2>Bilder/Projektbilder/headphones.jpg</bild2>
        <bild3>Bilder/Projektbilder/keyboard.jpg</bild3>
        <bild4>Bilder/Projektbilder/mic.jpg</bild4>
        <theURL>
    <![CDATA[
    <p>
    <a target="_blank" href="http://de.sevenload.com/sendungen/earthTV">EarthTV bei www.Sevenload.de</a>
    </p>
    ]]>
    </theURL>
    <MP3>
      <![CDATA[
    <embed src="Songs/Electro/Steil.mp3" autostart="false" loop="false" width="300" height="18" controller="true" id="rock.mp3" name="bg song" pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
      ]]>
    </MP3>
      </beispiel>
      <beispiel>
        <screenshot>Bilder/Projektbilder/Ortner_video.jpg</screenshot>
       <name><![CDATA[Webdesign christian-ortner.de]]></name>
        <kategorie><![CDATA[Webdesign]]></kategorie>
        <beschreibung><![CDATA[Design, Programmierung und Webspace-Hosting der Internetpräsenz für den Berufsmusiker Christian Ortner.]]></beschreibung>
        <aufgabenfeld>Aufgabenbereich: * Webdesign * Hosting und Domain * Programmierung</aufgabenfeld>
        <bild1>Bilder/Projektbilder/Ortner_projekte.jpg</bild1>
        <bild2>Bilder/Projektbilder/Ortner_video.jpg</bild2>
        <bild3>Bilder/Projektbilder/Ortner_MP3.jpg</bild3>
        <bild4>Bilder/Projektbilder/Ortner_kontakt.jpg</bild4>
        <theURL>
    <![CDATA[
    <p>
    <a target="_blank" href="http://www.christian-ortner.de">www.christian-ornter.de</a>
    </p>
    ]]>
    </theURL>
      </beispiel>
      <beispiel>
        <screenshot>Bilder/Projektbilder/henriette_1.jpg</screenshot>
        <name><![CDATA[Sounddesign für Filmprojekt]]></name>
        <kategorie><![CDATA[Musikproduktion]]></kategorie>
        <beschreibung><![CDATA[Sounddesign und Titeltrack des Abschlussfilms der beiden  Filmhochschule Ilmenau - Absolventen Suzanna Gorolova und Laura Süßenguth.]]></beschreibung>
        <aufgabenfeld>Aufgabenbereich: * Sounddesign * Musikkomposition</aufgabenfeld>
        <bild1>Bilder/Projektbilder/henriette_1.jpg</bild1>
        <bild2>Bilder/Projektbilder/henriette_2.jpg</bild2>
        <bild3>Bilder/Projektbilder/henriette_3.jpg</bild3>
        <bild4>Bilder/Projektbilder/henriette_4.jpg</bild4>
    <MP3>
      <![CDATA[
    <embed src="Songs/Referenzen/Henriette.mp3" autostart="false" loop="false" width="300" height="18" controller="true" id="rock.mp3" name="bg song" pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
      ]]>
    </MP3>
        <theURL>
    <![CDATA[
    <p>
    Hier kann man das Video sehen:
    <a target="_blank" href="http://www.youtube.com/watch?v=LdBnFKNVhTY">Henriette auf Youtube</a>
    </p>
    ]]>
    </theURL>
      </beispiel>
      <beispiel>
        <screenshot>Bilder/Projektbilder/she_1.jpg</screenshot>
       <name><![CDATA[Musikvideo "She said" für die Band gin mum]]></name>
        <kategorie><![CDATA[Videoprodution]]></kategorie>
        <beschreibung><![CDATA[Musikvideo für das Lied "She said" der lokalen Rock-Pop Band gin mum.]]></beschreibung>
        <aufgabenfeld>Aufgabenbereich: * Videoediting</aufgabenfeld>
        <bild1>Bilder/Projektbilder/she_1.jpg</bild1>
        <bild2>Bilder/Projektbilder/she_2.jpg</bild2>
        <bild3>Bilder/Projektbilder/she_3.jpg</bild3>
        <bild4>Bilder/Projektbilder/she_4.jpg</bild4>
    <theURL>
    <![CDATA[
    <p>
    <a target="_blank" href="http://www.gin-mum.com">www.gin-mum.com</a>
    </p>
    ]]>
    </theURL>
      </beispiel>
      <beispiel>
        <screenshot>Bilder/Projektbilder/Sim_thumb.jpg</screenshot>
        <name><![CDATA[Imagefilm für die Firma "Sim-Events"]]></name>
        <kategorie><![CDATA[Videoproduktion]]></kategorie>
        <beschreibung><![CDATA[Produkttrailer und Imagefilm für die Simbacher Eventmanagement Firma Sim-events.]]></beschreibung>
        <aufgabenfeld>Aufgabenbereich: * 3D Grafik-Animation * Musikkomposition * Musikproduktion</aufgabenfeld>
        <bild1>Bilder/Projektbilder/Sim_1.jpg</bild1>
        <bild2>Bilder/Projektbilder/Sim_2.jpg</bild2>
        <bild3>Bilder/Projektbilder/Sim_3.jpg</bild3>
        <bild4>Bilder/Projektbilder/Sim_4.jpg</bild4>
    <MP3>
      <![CDATA[
    <embed src="Songs/Referenzen/Sim.mp3" autostart="false" loop="false" width="300" height="18" controller="true" id="rock.mp3" name="bg song" pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
      ]]>
    </MP3>
      </beispiel>
      <beispiel>
        <screenshot>Bilder/Projektbilder/Logo_earthTV.jpg</screenshot>
        <name><![CDATA[EarthTV Musik]]></name>
        <kategorie><![CDATA[Musikproduktion]]></kategorie>
        <beschreibung><![CDATA[Komposition und Produktion des Stückes "Horizon" im Auftrag von EarthTV für deren Webstreaming-Formate.]]></beschreibung>
        <aufgabenfeld>Aufgabenbereich: * Musikkompostion * Musikproduktion</aufgabenfeld>
        <bild1>Bilder/Projektbilder/mischklein.jpg</bild1>
        <bild2>Bilder/Projektbilder/headphones.jpg</bild2>
        <bild3>Bilder/Projektbilder/misch2.jpg</bild3>
        <bild4>Bilder/Projektbilder/mic.jpg</bild4>
    <theURL>
    <![CDATA[
    <p>
    <a target="_blank" href="http://www.wetter.com/webcams_galerien/earthtv/">EarthTV bei www.wetter.com</a>
    </p>
    ]]>
    </theURL>
    <theURL2>
    <![CDATA[
    <p>
    <a target="_blank" href="http://www.hamburg-tourism.de/sehenswertes/webcam-earthtv/">EarthTV auf www.Hamburg-tourism.de</a>
    </p>
    ]]>
    </theURL2>
    <MP3>
      <![CDATA[
    <embed src="Songs/Chill/Elf.mp3" autostart="false" loop="false" width="300" height="18" controller="true" id="rock.mp3" name="bg song" pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
      ]]>
    </MP3>
      </beispiel>
      <beispiel>
        <screenshot>Bilder/Projektbilder/like_2.jpg</screenshot>
       <name><![CDATA[Musikvideo "like a fool" für die Band gin mum]]></name>
        <kategorie><![CDATA[Videoproduktio]]>n</kategorie>
        <beschreibung><![CDATA[Editing des Musikvideos "Like a Fool" für die Münchner Band "gin mum".]]></beschreibung>
        <aufgabenfeld>Aufgabenbereich: * Videoediting</aufgabenfeld>
        <bild1>Bilder/Projektbilder/like_1.jpg</bild1>
        <bild2>Bilder/Projektbilder/like_2.jpg</bild2>
        <bild3>Bilder/Projektbilder/like_3.jpg</bild3>
        <bild4>Bilder/Projektbilder/like_4.jpg</bild4>
    <theURL>
    <![CDATA[
    <p>
    <a target="_blank" href="http://www.gin-mum.com">www.gin-mum.com</a>
    </p>
    ]]>
    </theURL>
      </beispiel>
      <beispiel>
        <screenshot>Bilder/Projektbilder/eromat.jpg</screenshot>
        <name><![CDATA[Eromat Musikproduktion]]></name>
        <kategorie><![CDATA[Musikproduktion]]></kategorie>
        <beschreibung><![CDATA[Titeltrack für Hörbuch des Eromat Verlages und Corporate Sounddesign in Form eines Jingles für den Verlag]]></beschreibung>
        <aufgabenfeld>Aufgabenbereich: * Musikkompostion * Musikproduktion</aufgabenfeld>
        <bild1>Bilder/Projektbilder/mischklein.jpg</bild1>
        <bild2>Bilder/Projektbilder/headphones.jpg</bild2>
        <bild3>Bilder/Projektbilder/misch2.jpg</bild3>
        <bild4>Bilder/Projektbilder/mic.jpg</bild4>
    <MP3>
      <![CDATA[
    <embed src="Songs/Referenzen/Eromat.mp3" autostart="false" loop="false" width="300" height="18" controller="true" id="rock.mp3" name="bg song" pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
      ]]>
    </MP3>
      </beispiel>
      <beispiel>
        <screenshot>Bilder/Projektbilder/Wildcats-Cover.jpg</screenshot>
        <name><![CDATA[Highlight Video Kirchdorf Wildcats]]></name>
        <kategorie><![CDATA[Videoproduktion]]></kategorie>
        <beschreibung><![CDATA[Jahresrückblicksvideo der Kirchdorf Wildcats, American Football Mannschaft der 2.Bundesliga.]]></beschreibung>
        <aufgabenfeld>Aufgabenbereich: * Videoediting * DVD-Authoring * Cover Design * Musikkompostion * Musikproduktion</aufgabenfeld>
        <bild1>Bilder/Projektbilder/Wildcats-Cover.jpg</bild1>
        <bild2>Bilder/Projektbilder/Wildcats_davor.jpg</bild2>
        <bild3>Bilder/Projektbilder/Wildcats_Spiel.jpg</bild3>
        <bild4>Bilder/Projektbilder/Wildcats_touchdown.jpg</bild4>
    <MP3>
      <![CDATA[
    <embed src="Songs/Referenzen/Wildcats.mp3" autostart="false" loop="false" width="300" height="18" controller="true" id="rock.mp3" name="bg song" pluginspage= "http://www.apple.com/quicktime/download/"> </embed>
      ]]>
    </MP3>
      </beispiel>
    </referenz>
    Anyhing wrong with that or is the syntax correct so far?
    Then you said that I have to change the columne type..... Right now I have those two columnes ("name" and "kategorie") set to "string" as you can see in the attached screenshot. Is that correct? If it is, the mistake must be something else I'm afraid.
    Again, thanks for your support! :-)
    And by the way, merry Christmas everybody! :-)

  • Smart from item level data display?

    Hi EXPERTS,
    i want to display the item level data by maintaining the parent and child relation. how it possible?

    Hi  ,
    According to your requirement 
    Suppose
    Your header & Item  data  it_vbak   it_vbap
    Put the loop node for it_vbak
    Inside the loop as per your requirement   u can design the table  for it_vbap & print  it ..
    Let me know if any concerns...

  • Mulitple Data Sets

    I've worked for over a month to study and resolve this but have not recognized the answer.
    The web site intent is,
    1. A single XML master data base contains all photographs for display.  My XML data set does not have quotes.
    2. Spry tabbed panels are used to select galleries (Spry regions) (e.g. roses, Big Sur Coast, etc) from the master data base.  There are a dozen galleries.
    3. Thumbnails of a gallery are displayed in the content panel.
    4. Selecting a thumbnail displays a large view of the selected photo in a separate div (Spry detail region).
    My studies of XML, Spry and Javascript has brought me to a stumbling block.
    Solution 1. I tried to use a single name for the gallery filtered data sets.  Each filter would be applied to a separate page of the tabbed panels.  However, I was not successful in getting the thumbnails to change.  (I was not able to get variables within XPath expressions to work.)
    Solution 2. I tried to use unique names for the gallery filtered data sets.  Again, each filter (data set) was applied to a separate page of the tabbed panels.  However, I have not been successful in displaying the large view of a selected thumbnail because the Spry detail region specifies a single data base.  I tried defining a common named data set from the filtered data set but this did not work (see dsrose of the second content panel).
    My two questions are,
    A. How can I get the thumbnails to change (i.e. update the data base and utilize it) for Solution 1.
    B. Can I have a Spry detail region with multiple data sources?
    My current source code follows.
    I thank you for your consideration.
    Scott
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    body {
    background-color: #FFF;
    text-align: center;
    margin: 0px;
    padding: 0px;
    #wrapper {
    width: 85%;
    margin-top: 10px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    border: 2px dashed #F0F;
    #leftColumn {
    float: left;
    height: 700px;
    width: 400px;
    #header {
    height: 90px;
    font-size: 24px;
    font-style: italic;
    vertical-align: middle;
    padding: 0px;
    text-align: center;
    float: right;
    width: 50%;
    border: 2px solid #F00;
    #selectedPhoto {
    height: 600px;
    font-size: 24px;
    font-style: italic;
    vertical-align: middle;
    padding: 0px;
    text-align: center;
    float: right;
    margin-top: 135px;
    width: 550px;
    border: 2px solid #0F0;
    -->
    </style>
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var name;
    var width;
    var height;
    var thumbname;
    var thumbwidth;
    var thumbheight;
    var subject;
    var description;
    var thumbnail;
    var dsphoto;
    var dsphotodata;
    //-->
    </script>
    <script type="text/javascript">
    var dsdatanew = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "/gallery");
    var dsnew = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "gallery/photos/photo [subject = 'new']");
    var dsdatarose = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "/gallery");
    var dsrose = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "gallery/photos/photo [subject = 'rose']");
    var dsdatacallalily = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "/gallery");
    var dscallalily = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "gallery/photos/photo [subject = 'callalily']");
    var dsdatablossom = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "/gallery");
    var dsblossom = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "gallery/photos/photo [subject = 'blossom']");
    var dsdatapgbeach = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "/gallery");
    var dspgbeach = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "gallery/photos/photo [subject = 'pgbeach']");
    var dsdataMonterey = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "/gallery");
    var dsMonterey = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "gallery/photos/photo [subject = 'Monterey']");
    var dsdatabigsurcoast = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "/gallery");
    var dsbigsurcoast = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "gallery/photos/photo [subject = 'bigsurcoast']");
    var dsdataSalinas = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "/gallery");
    var dsSalinas = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "gallery/photos/photo [subject = 'Salinas']");
    var dsdataanimal = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "/gallery");
    var dsanimal = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "gallery/photos/photo [subject = 'animal']");
    var dsdatanight = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "/gallery");
    var dsnight = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "gallery/photos/photo [subject = 'night']");
    var dsdatachurch = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "/gallery");
    var dschurch = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "gallery/photos/photo [subject = 'church']");
    var dsdataother = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "/gallery");
    var dsother = new Spry.Data.XMLDataSet("EM_photo_no_Quotes.xml", "gallery/photos/photo [subject = 'other']");
    function MM_callJS(jsStr) { //v2.0
      return eval(jsStr)
    </script>
    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper">
      <div id="leftColumn">
        <div id="TabbedPanels1" class="TabbedPanels">
          <ul class="TabbedPanelsTabGroup">
            <li class="TabbedPanelsTab" tabindex="0">Welcome</li>
            <li class="TabbedPanelsTab" tabindex="0">Mechanical Engineering</li>
            <li class="TabbedPanelsTab" tabindex="0">Photography</li>
          </ul>
          <div class="TabbedPanelsContentGroup">
            <div class="TabbedPanelsContent">Welcome - Content 1</div>
            <div class="TabbedPanelsContent">Mechanical Engineering - Content 2</div>
            <div class="TabbedPanelsContent"> <!-- Photography - Content 3 -->
              <div id="TabbedPanels2" class="TabbedPanels">
                <ul class="TabbedPanelsTabGroup">
                  <li class="TabbedPanelsTab" tabindex="0">New</li>
                  <li class="TabbedPanelsTab" tabindex="0">Roses</li>
                  <li class="TabbedPanelsTab" tabindex="0">Calla Lilies</li>
                  <li class="TabbedPanelsTab" tabindex="0">Other Blossoms and Leaves</li>
                  <li class="TabbedPanelsTab" tabindex="0">Pacific Grove Beach</li>
                  <li class="TabbedPanelsTab" tabindex="0">Monterey Harbor and Beach</li>
                  <li class="TabbedPanelsTab" tabindex="0">Big Sur Coast</li>
                  <li class="TabbedPanelsTab" tabindex="0">Salinas Valley</li>
                  <li class="TabbedPanelsTab" tabindex="0">Animals</li>
                  <li class="TabbedPanelsTab" tabindex="0">Night</li>
                  <li class="TabbedPanelsTab" tabindex="0">Church</li>
                  <li class="TabbedPanelsTab" tabindex="0">Other</li>
                </ul>
                <div class="TabbedPanelsContentGroup-2">
                  <div class="TabbedPanelsContent-2">
                    <div spry:region="dsnew dsdatanew"> <img src="{dsdatanew::thumbnail/@base}{thumbname}" width = {thumbwidth}px height = {thumbheight}px spry:repeat="dsnew" onclick="dsnew.setCurrentRow('{ds_RowID}');" /></div>
                  </div>
                  <div class="TabbedPanelsContent-2">
                    <div spry:region="dsrose dsdatarose"> <img src="{dsdatarose::thumbnail/@base}{thumbname}" width = {thumbwidth}px height = {thumbheight}px spry:repeat="dsrose" onclick="window.dsphoto=dsrose; window.dsphotodata=dsdatarose;window.dsphoto.setCurrentRow('{ds_RowID}');" /></div>
                  </div>
                  <div class="TabbedPanelsContent-2">
                    <div spry:region="dscallalily dsdatacallalily"> <img src="{dsdatacallalily::thumbnail/@base}{thumbname}" width = {thumbwidth}px height = {thumbheight}px spry:repeat="dscallalily" onclick="dscallalily.setCurrentRow('{ds_RowID}');" /></div>
                  </div>
                  <div class="TabbedPanelsContent-2">
                    <div spry:region="dsblossom dsdatablossom"> <img src="{dsdatablossom::thumbnail/@base}{thumbname}" width = {thumbwidth}px height = {thumbheight}px spry:repeat="dsblossom" onclick="dsblossom.setCurrentRow('{ds_RowID}');" /></div>
                  </div>
                  <div class="TabbedPanelsContent-2">
                    <div spry:region="dspgbeach dsdatapgbeach"> <img src="{dsdatapgbeach::thumbnail/@base}{thumbname}" width = {thumbwidth}px height = {thumbheight}px spry:repeat="dspgbeach" onclick="dspgbeach.setCurrentRow('{ds_RowID}');" /></div>
                  </div>
                  <div class="TabbedPanelsContent-2">
                    <div spry:region="dsMonterey dsdataMonterey"> <img src="{dsdataMonterey::thumbnail/@base}{thumbname}" width = {thumbwidth}px height = {thumbheight}px spry:repeat="dsMonterey" onclick="dsMonterey.setCurrentRow('{ds_RowID}');" /></div>
                  </div>
                  <div class="TabbedPanelsContent-2">
                    <div spry:region="dsbigsurcoast dsdatabigsurcoast"> <img src="{dsdatabigsurcoast::thumbnail/@base}{thumbname}" width = {thumbwidth}px height = {thumbheight}px spry:repeat="dsbigsurcoast" onclick="dsbigsurcoast.setCurrentRow('{ds_RowID}');" /></div>
                  </div>
                  <div class="TabbedPanelsContent-2">
                    <div spry:region="dsSalinas dsdataSalinas"> <img src="{dsdataSalinas::thumbnail/@base}{thumbname}" width = {thumbwidth}px height = {thumbheight}px spry:repeat="dsSalinas" onclick="dsSalinas.setCurrentRow('{ds_RowID}');" /></div>
                  </div>
                  <div class="TabbedPanelsContent-2">
                    <div spry:region="dsanimal dsdataanimal"> <img src="{dsdataanimal::thumbnail/@base}{thumbname}" width = {thumbwidth}px height = {thumbheight}px spry:repeat="dsanimal" onclick="dsanimal.setCurrentRow('{ds_RowID}');" /></div>
                  </div>
                  <div class="TabbedPanelsContent-2">
                    <div spry:region="dsnight dsdatanight"> <img src="{dsdatanight::thumbnail/@base}{thumbname}" width = {thumbwidth}px height = {thumbheight}px spry:repeat="dsnight" onclick="dsnight.setCurrentRow('{ds_RowID}');" /></div>
                  </div>
                  <div class="TabbedPanelsContent-2">
                    <div spry:region="dschurch dsdatachurch"> <img src="{dsdatachurch::thumbnail/@base}{thumbname}" width = {thumbwidth}px height = {thumbheight}px spry:repeat="dschurch" onclick="dschurch.setCurrentRow('{ds_RowID}');" /></div>
                  </div>
                  <div class="TabbedPanelsContent-2">
                    <div spry:region="dsother dsdataother"> <img src="{dsdataother::thumbnail/@base}{thumbname}" width = {thumbwidth}px height = {thumbheight}px spry:repeat="dsother" onclick="dsother.setCurrentRow('{ds_RowID}');" /></div>
                  </div>
                </div>
              </div>
            </div>
            <!-- End "Photography Content 3" Tabbed Panels Content. -->
          </div>
        </div>
      </div><!-- End div "leftColumn" -->
      <div id="header">
        <p>Envision Moore<br />
          Mechanical Engineering and Photography<br />
          Scott W. Moore </p>
      </div><!-- End div "header". -->
      <div id="selectedPhoto">
      <div id="Selection" spry:detailregion = "dsphoto dsphotodata"  >
    <!-- Selected photographs are 400px tall. -->
    <img src="Photo-Email/{name}" width = {width}px height = {height}px align="center" />
      <br />
    Description<br /><br />
    <p> {dsphotodata::email/base}{description} </p>
    </div>
    </div> <!-- End div "selectedPhoto". -->
    </div> <!-- End div "wrapper" -->
    <script type="text/javascript">
    <!--
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    var TabbedPanels2 = new Spry.Widget.TabbedPanels("TabbedPanels2");
    //-->
    </script>
    </body>
    </html>

    You do not need multiple data sets. Just the one dataset with all of your photos is sufficient. Then in each tab content you filter the data that you want shown using spry:test="'{subject'}=='roses'" or similar. You will have one spry:region and one spry:detailregion. All very simple
    For master/detail see http://livedocs.adobe.com/en_US/Spry/1.4/help.html?content=WS9F9E1959-1FDF-4fa3-A9AC-20E92 8E07ED1.html
    For spry:test see http://labs.adobe.com/technologies/spry/articles/data_api/apis/attributes.html
    I hope this helps.
    Ben

  • Why cannot I use hidden or display only item to store value for insert?

    hi, Gurus:
    I have a question:
    I implemented a form with report region in a page, the update works OK, but the add function has a problem:
    There is a column, offender_ID, which is a foreign key for another table, it should not be null during insert. However, even I pass the offender ID from master page when user click the create button, and it did shows in the form, it must be a text filed to insert successfully, why cannot I use hidden or display only item to store this value for insert? (If I use hidden or display only item, insert won't be successful, apex reports I tried to insert a null value to offender_ID column.)
    Many Thanks in advance.
    Sam

    Hi,
    There is a column, offender_ID, which is a foreign key for another table, it should not be null during insert. However, even I pass the offender ID from master page when user click the create button, and it did shows in the form, it must be a text filed to insert successfully, why cannot I use hidden or display only item to store this value for insert? (If I use hidden or display only item, insert won't be successful, apex reports I tried to insert a null value to offender_ID column.)I think both hidden and display items have attributes that can cause problems because of different ways these items function than non-hidden and non-display-only items function. Display Only items have a "Setting" of "Save Session State" Yes/No? That can be a problem.
    Would you do this? Make these items regular items instead and see if you can get those working. Then, we will try to change the fields back to hidden or display only.
    Howard
    Congratulations. Glad you found the solution.
    Edited by: Howard (... in Training) on Apr 11, 2013 10:26 AM

  • Displaying diff dates using PL/SQL expression for 'display only' item ?

    Hi ,
    I am having a display only item -- :P2_FROM_Date . If its Thu,Fri,Sat or Sun I want to set the date as the last Monday's date . If its Mon,Tue or Wed then it should be the present Monday's date .
    E.g: Today is Friday and the last Monday was on 18th .
    So for yesterday , today,tomorrow and Sunday , the date should be displayed as 18-JUN-2012.
    From the coming Monday to Wednesday , the date should of be the coming Monday i.e , 24-JUN-2012
    I tried it doing under 'Source ' of item using PL/SQL expression and PL/SQL function body. Not working
    Can someone help ?
    Thanks & Regards
    Umer

    Nice1 wrote:
    declare
    lv_date number;
    begin
    select to_char(sysdate,'D') into lv_date from dual;
    if lv_date=2 then
    :P2_FROM_DATE := to_char(sysdate-1);
    end if;
    end;I tried this under " PL/SQL function body " in "Source " tab of the item P2_FROM_DATE
    When I run this , nothing is displayed corresponding to the item P2_FROM_DATEExactly as expected. This code will only set a value for <tt>P2_FROM_DATE</tt> when run on Mondays in territories where the first day of the week is Sunday, and when run on Tuesdays where Monday is the first day of of the week:
    SQL> var P2_FROM_DATE varchar2(30)
    SQL> alter session set nls_date_format='Dy DD-MON-YYYY';
    Session altered.
    SQL> select sysdate from dual
    SYSDATE
    Mon 25-JUN-2012
    SQL> alter session set nls_territory='AMERICA';
    Session altered.
    SQL> declare
      2  lv_date number;
      3  begin
      4  select to_char(sysdate,'D') into lv_date from dual;
      5  if lv_date=2 then
      6  :P2_FROM_DATE := to_char(sysdate-1);
      7  end if;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> print p2_from_date
    P2_FROM_DATE
    Sun 24-JUN-2012
    SQL> alter session set nls_territory='UNITED KINGDOM';
    Session altered.
    SQL> exec :p2_from_date := null
    SQL> declare
      2  lv_date number;
      3  begin
      4  select to_char(sysdate,'D') into lv_date from dual;
      5  if lv_date=2 then
      6  :P2_FROM_DATE := to_char(sysdate-1);
      7  end if;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> print p2_from_date
    P2_FROM_DATE
    SQL>Hence the questions about language above.
    >
    I am having a display only item -- :P2_FROM_Date . If its Thu,Fri,Sat or Sun I want to set the date as the last Monday's date . If its Mon,Tue or Wed then it should be the present Monday's date .
    E.g: Today is Friday and the last Monday was on 18th .
    So for yesterday , today,tomorrow and Sunday , the date should be displayed as 18-JUN-2012.
    From the coming Monday to Wednesday , the date should of be the coming Monday i.e , 24-JUN-2012
    >
    The coming Monday is 25-JUN-2012.
    Aren't these rules equivalent to "Monday this week, where Monday is the first day of the week"? In which case the PL/SQL Expression you require is:
    trunc(sysdate, 'iw')For example:
    SQL> with t as (
      2    select date '2012-06-21' + level d from dual connect by level <= 17)
      3  select
      4            d
      5          , trunc(d, 'iw')  monday
      6  from
      7            t;
    D               MONDAY
    Fri 22-JUN-2012 Mon 18-JUN-2012
    Sat 23-JUN-2012 Mon 18-JUN-2012
    Sun 24-JUN-2012 Mon 18-JUN-2012
    Mon 25-JUN-2012 Mon 25-JUN-2012
    Tue 26-JUN-2012 Mon 25-JUN-2012
    Wed 27-JUN-2012 Mon 25-JUN-2012
    Thu 28-JUN-2012 Mon 25-JUN-2012
    Fri 29-JUN-2012 Mon 25-JUN-2012
    Sat 30-JUN-2012 Mon 25-JUN-2012
    Sun 01-JUL-2012 Mon 25-JUN-2012
    Mon 02-JUL-2012 Mon 02-JUL-2012
    Tue 03-JUL-2012 Mon 02-JUL-2012
    Wed 04-JUL-2012 Mon 02-JUL-2012
    Thu 05-JUL-2012 Mon 02-JUL-2012
    Fri 06-JUL-2012 Mon 02-JUL-2012
    Sat 07-JUL-2012 Mon 02-JUL-2012
    Sun 08-JUL-2012 Mon 02-JUL-2012
    17 rows selected.
    SQL> alter session set nls_territory='AMERICA';
    Session altered.
    SQL> alter session set nls_date_format='Dy DD-MON-YYYY';
    Session altered.
    SQL> with t as (
      2    select date '2012-06-21' + level d from dual connect by level &lt;= 17)
      3  select
      4            d
      5          , trunc(d, 'iw')  monday
      6  from
      7            t;
    D               MONDAY
    Fri 22-JUN-2012 Mon 18-JUN-2012
    Sat 23-JUN-2012 Mon 18-JUN-2012
    Sun 24-JUN-2012 Mon 18-JUN-2012
    Mon 25-JUN-2012 Mon 25-JUN-2012
    Tue 26-JUN-2012 Mon 25-JUN-2012
    Wed 27-JUN-2012 Mon 25-JUN-2012
    Thu 28-JUN-2012 Mon 25-JUN-2012
    Fri 29-JUN-2012 Mon 25-JUN-2012
    Sat 30-JUN-2012 Mon 25-JUN-2012
    Sun 01-JUL-2012 Mon 25-JUN-2012
    Mon 02-JUL-2012 Mon 02-JUL-2012
    Tue 03-JUL-2012 Mon 02-JUL-2012
    Wed 04-JUL-2012 Mon 02-JUL-2012
    Thu 05-JUL-2012 Mon 02-JUL-2012
    Fri 06-JUL-2012 Mon 02-JUL-2012
    Sat 07-JUL-2012 Mon 02-JUL-2012
    Sun 08-JUL-2012 Mon 02-JUL-2012
    17 rows selected.Also note that using the item source properties will only set the <tt>P2_FROM_DATE</tt> in the rendered page, not in session state.

  • Set Length in Inches in item master data in purchasing tab

    Dear Experts,
    I want to set the length,width and height in Inches in the item master data of purchasing data tab. By default it is coming in meter. Please help me
    Regards,
    Ravindra

    Hi Ravindra......
    Go to Administration --> System Initialization --> General Settings --> Display Tab --> Default Length UoM --> set in Inch.
    Hope this will solve your problem.......
    Regards,
    Rahul

  • SPRY image display problem with data sets!   "

    Dreamweaver CS4
    I really want to use a Spry Data set created with an HTML table (versus XML)
    I've done this step by step several times(after changing local sites and images) and every time I preview the results, each one of my images has a "> in front of it.
    I don't know how to get rid of this "> character!
    I've provided two HTML files used to create this:
    TABLE.html is the source
    SpryTable.html is the actual file pulling TABLE.html for data
    The images are images, I'm not going to provide them since anyone can add a random image just to see if the "> appears.
    I'm not going to include the java files since dreamweaver generates them on their own.
    Thanks!

    Jason, the best place for us to analyze your files is from a server. Have you uploaded them?
    The second best place is in a set of site files...including the HTML table, the display file that uses the HTML table, the CSS and javascript file.
    Without those, it is pretty nigh impossible to work this problem!
    I suspect the errant character appears somewhere in your data table, but based on what you have shown us, it's hard to say.
    When you defined the dataset, did you indicate that the column containing the images is type="HTML"? If you have left it as type="string", it is interpreting the > as text.
    Beth

  • Set value of a display only item using javascript

    I was trying to find an answer in the forum but my searches gave me no results. How do
    I set a value of a display only item using javascript (ajax)?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

    Vikas,
    Thanks for a fast responding. The type is Saves State. However, I tried to set the value
    of a display only item using:
    <script>
      function f_setDisplayOnly ()
        {$x('P80_X').parentNode.childNodes[4].nodeValue = 1;
    </script>without a result (or error). What am I doing wrong?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Spry data set not displaying in IE8

    Hi,
    I have inserted a spry data set based on an HTML table onto my page. The data displays in live view and in Safari, but when I try to preview in IE8 I get nothing. Here's the page:
    http://www.emiliocorsetti.com/publish/maps.html
    Any ideas? I didn't modify the CSS one iota.

    Ben,
    Not sure what happened there. I was changing and deleting the spry data set so many times that I must have put the file up after I had deleted it. In any case, I put the correct file up. And a funny thing happened. The page works online but it won't work in browser preview. Any ideas?
    Emilio

  • Displaying an HTML Data Set on button click

    I'm using the code from the
    HTML
    DATA Set Example
    I have the code in a function and I want to have it display
    in a div on the page when a user clicks a specific button.
    I get this error message: "spry:region or spry:detailregion
    attribute has no data set!"
    This is my javascript:
    function evalNames( )
    var myArrayOfData = [
    { lastname: "Davis", firstname: "Kirk" },
    { lastname: "Miller", firstname: "James" },
    { lastname: "Wilson", firstname: "Alex" },
    { lastname: "Moore", firstname: "Albert" },
    { lastname: "Taylor", firstname: "Eric" },
    { lastname: "Anderson", firstname: "Vincent" },
    { lastname: "Thomas", firstname: "Anthony" },
    { lastname: "Lee", firstname: "John" },
    { lastname: "Smith", firstname: "Edward" },
    { lastname: "Johnson", firstname: "Neil" },
    { lastname: "Williams", firstname: "Steve" },
    { lastname: "Jones", firstname: "John" },
    { lastname: "Brown", firstname: "Joe" }
    var hashTable = [];
    for (var i = 0; i < myArrayOfData.length; i++)
    myArrayOfData
    .ds_RowID = i;
    hashTable = myArrayOfData
    var dsPeople = new Spry.Data.DataSet();
    dsPeople.data = myArrayOfData;
    dsPeople.dataHash = hashTable;
    dsPeople.loadData();
    var Output2 = "<input type="button" value="Sort By Last
    Name" onclick="dsPeople.sort(['lastname', 'firstname'], 'toggle');"
    />";
    Output2 +="<input type="button" value="Sort By First Name"
    onclick="dsPeople.sort(['firstname', 'lastname'], 'toggle');"
    />";
    Output2 +="<div spry:region="dsPeople">";
    Output2 +="<table border="1">";
    Output2
    +="<tr><th>ds_RowID</th><th>Last
    Name</th><th>First Name</th></tr>";
    Output2 +="<tr
    spry:repeat="dsPeople"><td>{ds_RowID}</td><td>{lastname}</td><td>{firstname}</td></tr>";
    Output2 +="</table>";
    Output2 +="</div>";
    document.getElementById("nameResults").innerHTML = Output2;
    I have a button on my page with the function evalNames() and
    I have a div called "nameResults"
    Is there an easier way to accomplish the same thing with the
    Spry Framework? In theory should I be able to get this html data to
    display in a div on the user's click of a button? Any suggestions
    on making this work(it could just be a syntax error in the way my
    var Output2 is written)?

    Hello,
    Based on the code above I discovered a number of problems:
    1. The dsPeople DataSet has sense inside the function only so
    the regions will not be able to use it. Instead you should move the
    dsPeople DataSet declaration outside the function in global scope.
    2. The code you try to inject into the innerHTML is not
    valid. Inside double quotes all the double quotes should be escaped
    or single quotes should be used.
    3. The regions are instantiated only a single time on page
    load so if you need to inject a new region into the page you'll
    have to reinitialize the regions or the new region will not be
    considered.
    Based on your code above I change it a little bit to solve
    the issues:
    <script type="text/javascript">
    var dsPeople = new Spry.Data.DataSet();
    function evalNames( )
    var myArrayOfData = [
    { lastname: "Davis", firstname: "Kirk" },
    { lastname: "Miller", firstname: "James" },
    { lastname: "Wilson", firstname: "Alex" },
    { lastname: "Moore", firstname: "Albert" },
    { lastname: "Taylor", firstname: "Eric" },
    { lastname: "Anderson", firstname: "Vincent" },
    { lastname: "Thomas", firstname: "Anthony" },
    { lastname: "Lee", firstname: "John" },
    { lastname: "Smith", firstname: "Edward" },
    { lastname: "Johnson", firstname: "Neil" },
    { lastname: "Williams", firstname: "Steve" },
    { lastname: "Jones", firstname: "John" },
    { lastname: "Brown", firstname: "Joe" }
    var hashTable = [];
    for (var i = 0; i < myArrayOfData.length; i++)
    myArrayOfData.ds_RowID = i;
    hashTable = myArrayOfData;
    dsPeople.data = myArrayOfData;
    dsPeople.dataHash = hashTable;
    dsPeople.loadData();
    var Output2 = "<input type='button' value='Sort By Last
    Name' onclick='dsPeople.sort([\'lastname\', \'firstname\'],
    \'toggle\');' />";
    Output2 +="<input type='button' value='Sort By First
    Name' onclick='dsPeople.sort([\'firstname\', \'lastname\'],
    \'toggle\');' />";
    Output2 +="<div spry:region='dsPeople'>";
    Output2 +="<table border='1'>";
    Output2
    +="<tr><th>ds_RowID</th><th>Last
    Name</th><th>First Name</th></tr>";
    Output2 +="<tr
    spry:repeat='dsPeople'><td>{ds_RowID}</td><td>{lastname}</td><td>{firstname}</td></tr>";
    Output2 +="</table>";
    Output2 +="</div>";
    var el = document.getElementById("nameResults");
    el.innerHTML = Output2;
    Spry.Data.initRegions();
    </script>
    </head>
    <body>
    <div id="nameResults" style="border: 1px solid
    red"></div>
    <a href="#" onclick="evalNames(); return false;">Eval
    Names</a>
    </body>
    A more easy way to achieve your goal is that the region to
    already exists in page having either the visibility hidden or the
    display: none CSS attributes set and the button only to change the
    CSS property to display the region. The solution in this situation
    will work better from point of view of performance as the
    initRegions manual call will initialize again all the regions in
    page.
    Regards,
    Cristian MARIN

  • How to set the default value of an item type DATE PICKER to the day of yest

    Hi
    How to set the default value of an item type DATE PICKER to the day of yesterday ?
    Thank you very much !
    Christian.

    Hi Christian,
    Have a look at this thread Re: Default the Date Picker to Today
    It covers this issue in detail.
    Regards
    Paul

  • Spry Data Set not display in chrome

    I create a new spry Xml data set using adobe sample. I using Spry 1.6.1, Chrome 7.0.517.41 on windows 7. I test this in mozilla and firefox works fine, but chrome doesn't shows the data.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
         <title>Spry Example</title>
         <!--Link the Spry libraries-->
         <script type="text/javascript" src="includes/xpath.js"></script>
         <script type="text/javascript" src="includes/SpryData.js"></script>
         <!--Create a data set object-->
         <script type="text/javascript">
              var dsSpecials = new Spry.Data.XMLDataSet("_xml/adobe.xml", "specials/menu_item");
              dsSpecials.loadData();
         </script>
    </head>
    <body>
    <div spry:region="dsSpecials">
    <ul><li spry:repeat="dsSpecials">{item}</li></ul></div>
    </body>
    </html>

    I upload the site and check it, It works well...

  • Overall Average and Average of part of data-set displayed simultaneously

    I am trying to write a report on Discoverer 10.1.2 that will display the average for a sub-set of a data population alongside the overall average of the whole population, BUT NOT display the average for the remaining sub-sets.
    For example:
    If there are 5 regions, A, B, C, D & E, the requirement is to display the average for region A against the overall average (averaged across all regions) and not to display the averages for teams B, C, D & E.
    Can anyone suggest how this could be achieved in Discoverer Desktop/Plus/Admin?
    Thanks
    Duncan

    Hi James,
    It looks to me like your code is not giving you the results you desire because of an assignment syntax error.  You want to add all the Upr_Values together and then divide by the Upr_Count to get the overall average for the upper lobe.  Your code, though, just overwrites the previous Upr_Value with the current one and assigns the value +1 to Upr_Count each time:
    Upr_Value =+ Chd(iLoop, "Strg_Angle")
    Upr_Count =+ 1
    Here's what you need instead to calculate the overall average:
    Upr_Value = Upr_Value + Chd(iLoop, "Strg_Angle")
    Upr_Count = Upr_Count + 1
    If you want to get the average values for each X value below the blue line, then I recommend using the Calculate() command to create two new sets of X and Y channels, one set for the upper lobe and another set for the lower lobe.  The Calculate() command can also set all unwanted data to 0 or Null so that you can then calculate the per-X value average in each lobe with the linear approximation function.
    If you want help with this, post or email me a sample data set,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments
    [email protected]

  • How do you display data from two different data-sets on one list

    I have a data-set that is displaying properly; I would like to add another data-set to the other portion of the form. 
     The first part of the data set has Product information (Product-Name, Product_number, etc),
     The second portion of the data-set has information like (Product-campaign, Product-Sales, etc)
    The two data-sets  are mutually exclusive

    Hi xitum,
    As
    Patrick  Hurst mentioned, if the several tables didn't have any relationship with each other and you want to put all the information together to display in one report, you need to add several tablix/list in the same report and each tablix/list to display
    the data from each table.
    If the several table have a same relationship field you can use the
    lookup function to get the other maped fields display in the same tablix/list.(this function supportted on the SSRS 2008 r2 and later version).
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

Maybe you are looking for