2 Data Sets - 1 Detail Region - HOW???

I need to feed two separate XML data sets to one detail
region. I tried a method (from a previous post) of adding both data
sets to one detail region, separated by a space. It will only
access the first data set listed and ignores the one that trails.
E.G. -
<div id="sidebar" spry:detailregion="emailData07
emailData06">
Thanks in advance for
any help!!!
Source follows:
<div id="content">
<div id="Acc1" class="Accordion" tabindex="0">
<div class="AccordionPanel">
<div
class="AccordionPanelTab">  2007 Email
Archive</div>
<div class="AccordionPanelContent">
<div id="dataHolder" spry:region="emailData07">
<table id="products">
<tr>
<th width="16%" spry:sort="bDate">Date</th>
<th width="20%">Source Code</th>
<th width="64%">Offer Description</th>
</tr>
<tr spry:repeat="emailData07" class="even"
spry:setrow="emailData07" spry:hover="rowHover"
spry:select="rowSelected" onclick="MM_effectAppearFade('boxshot',
1000, 0, 100, true)">
<td>{bDate}</td>
<td>{sourceCode}</td>
<td>{campaign}</td>
</tr>
</table>
</div>
</div>
</div>
<div class="AccordionPanel">
<div
class="AccordionPanelTab">  2006 Email
Archive</div>
<div class="AccordionPanelContent">
<div id="dataHolder" spry:region="emailData06">
<table id="products">
<tr>
<th width="16%" spry:sort="bDate">Date</th>
<th width="20%">Source Code</th>
<th width="64%">Offer Description</th>
</tr>
<tr spry:repeat="emailData06" class="even"
spry:setrow="emailData06" spry:hover="rowHover"
spry:select="rowSelected" onclick="MM_effectAppearFade('boxshot',
1000, 0, 100, true)">
<td>{bDate}</td>
<td>{sourceCode}</td>
<td>{campaign}</td>
</tr>
</table>
</div>
</div>
<div class="AccordionPanelFooter"></div>
</div>
</div>
<p>Questions? Revisions? <a
href="mailto:[email protected]?subject=Email Archive Query"
class="SelectedListBoxItem">Send Email</a></p>
</div>
<!-- Detail Region Starts Here -->
<div id="sidebar" spry:detailregion="emailData07
emailData06">
<p id="boxshot" ><img src="{emailimage}"
alt="{bDate} Email Screen Shot" /></p>
<p align="center"><a href="{emailLink}"
target="_blank" class="SelectedListBoxItem"><b>View
Email</b></a></p>
</div>

Hey BSK,
There are 2 ways to write data references, one more formal
than the other.
Short: {nodename}
Formal: {dsname::nodename}
The formal version will always work.
The short version works when there is only one data set on
the region or, WHEN IT IS LISTED FIRST.
If you have a region with multiple datasets, data references
that come from the data set that is NOT first must use the formal
notation. This assures that we can distinguish between the data
sets, in case of duplicate node names.
So, for those data refs that come from emailData06, make them
{emailData06::nodename}
Make sense?
Thanks,
Don

Similar Messages

  • Please Help, Data Set Master/Detail with mySQL DB

    Hi...
    I installed the Data Set Master/Detail Sample (states and
    citys autopopulate) getting values from a XML file...
    when a user adds a listing in my site, it works great.. i use
    the XML file values for the states/citys and then everything is
    stored in a DB... BUT i need to do this..
    when he comes back to edit his listing, i want the Data Set
    Master/Detail to show hes values (from de DB) with the option to
    edit them, not the first XML file values.
    Thanks

    Thank you kinblas!!!!!
    I saw another post with the solution!!!
    Here it is
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=602&threadid =1308016&highlight_key=y&keyword1=SetDefaultState
    Thanks again!

  • HT4839 I cant find the cellular data setting on my iphone how i can fix it

    i cant find the cellular data setting on my iphone
    how i can fix it
    because I can't use the internet with my iphone right now

    If you go into Settings>General>Network, you should still be able to access VPN settings. My listings show Cellular Data, Data Roaming, Set Up Personal Hotspot, VPN and Wi-Fi. I do not use Personal Hotspot (tethering) so mine says Setup. However, VPN settings are different than cellular data settings. Not sure which you are asking about now.

  • Paged Data Set w/ Details

    I'm having a bit of an issue -- I can successfully create a
    PagedView dataset from an XMLDataSet:
    var ds1_dars = new Spry.Data.XMLDataSet("build_xml/xxx.php",
    "dars/dar");
    var pg1_dars = new Spry.Data.PagedView(ds1_dars, { pageSize:
    15 });
    But the web page will not display the details of the selected
    row of the master table. The following code does show the first row
    of the master table, just not the details of the currently selected
    row. (I should mention that I could get the master / detail
    function to work without the introduction of the PagedView code.)
    <div spry:region="pg1_dars">
    <table width="100%" border="0" cellpadding="0"
    cellspacing="0">
    <tr>
    <th>Original_date</th>
    <th>Product</th>
    <th>Release</th>
    <th>Title</th>
    </tr>
    <tr spry:repeat="pg1_dars" spry:setrow="pg1_dars"
    spry:even="even_row" spry:hover="hover_row">
    <td>{original_date}</td>
    <td>{product}</td>
    <td>{release}</td>
    <td>{title}</td>
    </tr>
    </table>
    </div>
    <h2>Details</h2>
    <div spry:detailregion="pg1_dars">
    <p>{product} {release}</p>
    </div>
    Can someone tell me why the detail information is not
    updating with the selected row, or tell me where I'm going wrong?

    Hi Patrick,
    Setting the current row on the paged view data set actually
    sets the current row on the master data set. Try changing this:
    <div spry:detailregion="pg1_dars">
    <p>{product} {release}</p>
    </div>
    to this:
    <div spry:detailregion="ds1_dars">
    <p>{product} {release}</p>
    </div>
    I'm trying to rework the paged view data set so that it is a
    bit more independent of the master data set.
    --== Kin ==--

  • Dynamic Data Sets

    I'm trying to populate a second dropdown based on the
    selected item in the first dropdown. I've been testing out Data Set
    Master-Detail Sample but it specifies a field in the first select
    "url" which contains the actual name of the url file.
    1. I'm using the dynamic xml plugin from Adobe on a CF query.
    Thus, I'd like to only pass the variable needed to the dataset
    needed. I know it should look something like the example, but the
    example is hardcoded, not dynamic ("/photos.php?galleryid=2000").
    How do I make this dynamic based on the ID I have in the first
    select drop down?
    2. Also, I'm getting the error
    that..."document.forms[0].select2" is Null or not an object.
    3. here's my code:
    <script type="text/javascript">
    <!--
    var dsclientlist = new
    Spry.Data.XMLDataSet("/ajax/getclients.cfm",
    "export/row",{sortOnLoad:"ClientName",sortOrderOnLoad:"ascending",useCache:false});
    dsclientlist.setColumnType("ClientID", "number");
    var dsproblemlist = new
    Spry.Data.XMLDataSet("/ajax/getproblems.cfm", "export/row", {
    method: "POST", postData: "clientrecid=184", headers: {
    "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
    </script>
    </head>
    <body>
    <form name="selectForm" action="">
    <div spry:region="dsclientlist">
    <select name="select" spry:repeatchildren="dsclientlist"
    onchange="document.forms[0].select2.disabled = true;
    dsclientlist.setCurrentRowNumber(this.selectedIndex);" >
    <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
    value="{ClientID}"
    selected="selected">{ClientName}</option>
    <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
    value="{ClientID}">{ClientName}</option>
    </select>
    </div>
    <br />
    <div spry:region="dsclientlist dsproblemlist">
    <select name="select2"
    spry:repeatchildren="dsproblemlist">
    <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
    value="{dsproblemlist::ProblemID}"
    selected="selected">{dsproblemlist::ProblemTitle}</option>
    <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
    value="{dsproblemlist::ProblemID}">{dsproblemlist::ProblemTitle}</option>
    </select>
    </div>
    </form>
    Thanks,
    Michael
    Here's the code I'm using

    Kin,
    Yes, I'm using ClientID from the first select box to try and
    pass it to a query to get the values for the second select box. I
    tried your code but I think I'm still missing something. With the
    "post" method, wouldn't I need to actually do a form submit? Or
    would it work just by changing the value in the first drop down?
    I'm trying to base my method off of the following example,
    but make it dynamic:
    http://labs.adobe.com/technologies/spry/samples/data_region/DataSetMasterDetailSample.html
    The query to get my second select list values looks like
    this:
    SELECT ProblemID,ProblemTitle,fgnClientRecID
    FROM dbo.tbl_Problems
    where fgnClientRecID = #url.ClientID#
    My code looks like this:
    <script src="/SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="/SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    var dsclientlist = new
    Spry.Data.XMLDataSet("/ajax/getclients.cfm",
    "export/row",{sortOnLoad:"ClientName",sortOrderOnLoad:"ascending",useCache:false});
    dsclientlist.setColumnType("ClientID", "number");
    var dsproblemlist = new
    Spry.Data.XMLDataSet("/ajax/getproblems.cfm", "export/row", {
    method: "POST", postData: "clientrecid={dsclientlist::ClientID}",
    headers: { "Content-Type": "application/x-www-form-urlencoded;
    charset=UTF-8" } });
    </script>
    </head>
    <body>
    <form name="selectForm" action="">
    <div spry:region="dsclientlist">
    <select name="select" spry:repeatchildren="dsclientlist"
    onchange="document.forms[0].select2.disabled = true;
    dsclientlist.setCurrentRowNumber(this.selectedIndex);">
    <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
    value="{ClientID}"
    selected="selected">{ClientName}</option>
    <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
    value="{ClientID}">{ClientName}</option>
    </select>
    </div>
    <br />
    <div spry:region="dsproblemlist">
    <select name="select2"
    spry:repeatchildren="dsproblemlist">
    <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
    value="{dsproblemlist::ProblemID}"
    selected="selected">{dsproblemlist::ProblemTitle}</option>
    <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
    value="{dsproblemlist::ProblemID}">{dsproblemlist::ProblemTitle}</option>
    </select>
    </div>
    </form>
    Thanks,
    Mike

  • Defining a spry data set from a url variable

    I am developing a family web site that, among other things, uses a single 'recipe' page to display recipes from different xml files as called by a url variable (e.g. ?xmlFile="{url}"&recipeName="{name}") from a summary page.  I can get the recipe name to reproduce using a $_GET php function, but I cannot establish the data set that way.  How can I define the data set from the incoming URL variable?  The necessary files are:
    The starting point from which I send the selected URL variable (use the scampi recipe)  http://ebogott.com/recipeBox.php.
    The file that is generated is http://ebogott.com/recipe.php?XMLfile=GrilledScampiOnAngelHair.xml&recipeName=Grilled%20Sh rimp%20Scampi%20on%20Angel%20Hair%20Pasta
    This methodology will allow me a number of cascading selections.  I know this is not unique.  I just haven't figured it out.
    don Carlos de la Playa

    don Carlos,
    The following shows the strength of the Spry framework. All very easy and simple.
    <!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" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    var dsRecipes = new Spry.Data.XMLDataSet("recipes/recipes.xml", "recipes/recipe");
    var dsIngredients = new Spry.Data.XMLDataSet("recipes/{dsRecipes::url}", "recipe/ingredients/ingredient");
    var dsProcess = new Spry.Data.XMLDataSet("recipes/poultrySoup.xml", "recipe/process/element");
    //-->
    </script>
    </head>
    <body>
    <div class="MasterDetail">
      <div spry:region="dsRecipes" class="MasterContainer">
        <div class="MasterColumn" spry:repeat="dsRecipes" spry:setrow="dsRecipes" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{name}</div>
      </div>
      <div spry:detailregion="dsRecipes dsIngredients dsProcess" class="DetailContainer">
        <div class="DetailColumn">{@genre}</div>
        <div class="DetailColumn">{@serves}</div>
        <div class="DetailColumn">{@time}</div>
        <div spry:repeat="dsIngredients">
          <div class="DetailColumn">{dsIngredients::qty}</div>
          <div class="DetailColumn">{dsIngredients::measure}</div>
          <div class="DetailColumn">{dsIngredients::item}</div>
        </div>
        <div spry:repeat="dsProcess">
          <div class="DetailColumn">{dsProcess::element}</div>
        </div>
      </div>
      <br style="clear:both" />
    </div>
    </body>
    </html>
    You will have to give a bit of style to the detail region.
    I hope this helps.
    Ben

  • Detail Region as TOC for captivate (.swf) files

    Hi All,
    Not sure how to explain this, but i will do my best. I didnt like the TOC/Aggregator for CP 5. Thinking maybe to use Spry data using the Detail Region sample. I thought it would be simple to just combine the Detail Region code with the publsihed .swf and .htm code. But not sure what im doing wrong or if this is even possible to do. I was experimenting just using the exact same code and xml for Detail Region sample and modifying it a bit. See below...
    Appreciate the Help! Thank you.
    XML:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <products>
         <product>
              <name>Adobe Photoshop CS2</name>
              <category>Digital Imaging</category>
              <boximage>images/photoshop.gif</boximage>
              <bkgimage>M_1.swf</bkgimage>
              <descheader>The professional standard in desktop digital imaging</descheader>
              <desc>Adobe&#174; Photoshop&#174; CS2 software, the professional image-editing standard and leader of the Photoshop digital imaging line, delivers more of what you crave. Groundbreaking creative tools help you achieve extraordinary results. Unprecedented adaptability lets you custom-fit Photoshop to the way you work. And with more efficient editing, processing, and file handling, there's no slowing you down.</desc>
              <features></features>
         </product>
         <product>
              <name>Adobe Illustrator CS2</name>
              <category>Print Publishing</category>
              <boximage>images/illustrator.gif</boximage>
              <bkgimage>M_2.swf</bkgimage>
              <descheader>Vector graphics reinvented</descheader>
              <desc>Adobe&#174; Illustrator&#174; CS2 software gives you new creative freedom that lets you realize your ideas quickly and powerfully. Instantly convert bitmaps to vector artwork and paint more intuitively. Save time with intelligent palettes and optimized workspaces. Plus, tight integration with other software allows you to produce extraordinary graphics for print, video, the web, and mobile devices.</desc>
              <features></features>
         </product>
         <product>
              <name>Adobe InDesign CS2</name>
              <category>Print Publishing</category>
              <boximage>images/indesign.gif</boximage>
              <bkgimage>M_3.swf</bkgimage>
              <descheader>A new standard in professional layout and design</descheader>
              <desc>Join the growing ranks of creative professionals discovering new levels of creative freedom and productivity using Adobe&#174; InDesign&#174; CS2 software. Tightly integrated with the Adobe applications you use most, InDesign CS2 delivers faster production workflows and a more fluid creative environment for designing professional layouts with sophisticated graphics and typography.</desc>
              <features></features>
         </product>
         <product>
              <name>Adobe GoLive CS2</name>
              <category>Web Publishing</category>
              <boximage>images/golive.gif</boximage>
              <bkgimage>M_4_1.swf</bkgimage>
              <descheader>Professional, standards-based Web and mobile authoring</descheader>
              <desc>Adobe&#174; GoLive&#174; CS2 software lets you unlock the power of CSS with intuitive visual tools such as prebuilt CSS objects that you can drag and drop to build sophisticated sites. Jump-start your designs by easily converting Adobe InDesign&#174; layouts into Web pages. Or, design Web and mobile content in an advanced, standards-based coding environment.</desc>
              <features></features>
         </product>
         <product>
              <name>Adobe Dreamweaver 8</name>
              <category>Web Publishing</category>
              <boximage>images/dreamweaver.gif</boximage>
              <bkgimage>M_5_1.swf</bkgimage>
              <descheader>Dreamweaver 8 is the industry-leading web development tool, enabling users to efficiently design, develop and maintain standards-based websites and applications.</descheader>
              <desc>With Dreamweaver 8, web developers go from start to finish, creating and maintaining basic websites to advanced applications that support best practices and the latest technologies.</desc>
              <features></features>
         </product>
         <product>
              <name>Adobe Flash 8 Professional</name>
              <category>Web Publishing</category>
              <boximage>images/flash_pro.gif</boximage>
              <bkgimage>M_6_1.swf</bkgimage>
              <descheader>Introducing Macromedia's biggest Flash release to date.</descheader>
              <desc>Flash&#174; Professional 8 is the industry's most advanced authoring environment for creating interactive websites, digital experiences and mobile content. With Flash Professional 8, creative professionals design and author interactive content rich with video, graphics, and animation for truly unique, engaging websites, presentations or mobile content.</desc>
              <features></features>
         </product>
    </products>
    HTML Code:
    <!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" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Detail Region and Effects Sample</title>
    <link href="files/samples.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    .product {
         cursor: pointer;
    .hover {
         background-color: #FFFFCC;
    .selected {
         background-color: #CCCCCC;
    #description {
         opacity: 0;
         filter: alpha(opacity=0);
         background-color: white;
    </style>
    <script src="files/xpath.js" type="text/javascript"></script>
    <script src="files/SpryData.js" type="text/javascript"></script>
    <script src="files/SpryEffects.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.XMLDataSet("files/products.xml", "products/product");
    var gEffectInProgress = null;
    var gPendingSetRowIDRequest = -1;
    function fadeInContent(notificationType, notifier, data)
         if (notificationType != "onPostUpdate")
              return;
         var effect = new Spry.Effect.Fade('description', { to: 100, from: 0, duration: 500, finish: function() {
              // The region is now showing. Process any pending row change request.
              gEffectInProgress = null;
              if (gPendingSetRowIDRequest >= 0)
                   var id = gPendingSetRowIDRequest;
                   gPendingSetRowIDRequest = -1;
                   fadeOutContentThenSetRow(id);
         effect.start();
    Spry.Data.Region.addObserver('description', fadeInContent);
    function fadeOutContentThenSetRow(rowID)
         if (gEffectInProgress)
              gPendingSetRowIDRequest = rowID;
              return;
         if (rowID == ds1.getCurrentRowID())
              return;
         gEffectInProgress = new Spry.Effect.Fade('description', { to: 0, from: 100, duration: 500, finish: function() {
              ds1.setCurrentRow(rowID);
         gEffectInProgress.start();
    //-->
    </script>
    <script src="files/standard.js" type="text/javascript"></script>
    </head>
    <body>
    <h3>Detail Region and Effects Sample</h3>
    <hr />
    <table width="100%" border="0">
         <tr>
              <td width="21%">
    <ul spry:region="ds1" spry:repeatchildren="ds1">
                        <li class="product" onclick="fadeOutContentThenSetRow('{ds_RowID}');" spry:select="selected" spry:hover="hover">{name}</li>
                </ul>
              </td>
           <td width="79%">
       <div id="description" spry:detailregion=" ds1">
      <div id="CaptivateContent">
       </div>
       <script type="text/javascript">
          var so = new SWFObject("{bkgimage}", "Captivate", "100%", "100%", "8", "#CCCCCC");
             so.addParam("quality", "high");
             so.addParam("name", "Captivate");
             so.addParam("id", "Captivate");
             so.addParam("wmode", "opaque");
             so.addParam("bgcolor","#F1F4F5");
             so.addParam("menu", "false");
             so.addParam("allowScriptAccess", "always");
             so.addVariable("variable1", "value1");
             so.setAttribute("redirectUrl", "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash");
             so.write("CaptivateContent");
       </script>
            <script type="text/javascript">
          document.getElementById('Captivate').focus();
          document.Captivate.focus();
       </script>    
          </div>
          </td>
      </tr>
    </table>
    </body>
    </html>
    Message was edited by: drodax

    Hi,
    I think you will need a third party convertor - a quick
    google sent me to this one
    http://www.winavi.com/swf-to-avi.htm
    which is free.

  • Failed to get a data set context!

    What does this mean?
    "processTokens: Failed to get a data set context!"
    Ive setup a Paged Data Set using
    var dsResults = new
    Spry.Data.XMLDataSet("/general/xml/xml_Results.php'",
    "/search_results/product");
    var pvResults = new Spry.Data.PagedView(dsResults, {
    pageSize: 7 });
    The paged data works and everything is displayed correctly
    however I receive that error message still? How do I resolve this?
    Thanks

    It typically means that you have a data reference that is
    refering to a data set that the region is not bound to, for
    example:
    <div spry:region="ds1">
    {dsFoo::bar}
    </div>
    --== Kin ==--

  • How do I link a Spry data set with a detail region to a html web site?

    I have created a spry data set with a detail region. It works well. However, I would like to have a link from the detail region to another html web site. Can anyone help with the code? Below is the spry data set.
    <?xml version="1.0" encoding="utf-8"?>
    <books>
    <book>
    <title>The Advnentures of Crunchy and Munchy Squirrel: Field Nuts</title>
    <author>Levester Williams</author>
    <image>images/portfolio/tn_adventuresOfCrunchyAndMunchySquirrel.jpg</image>
    <description>This delightful book for young readers teaches the importance of obedience and always doing what you know is right.</description> I
    <weblink >www.crunchyandmunchy.com</weblink>
    </book>
    <book>
    <title>More Dirty Little Secrets</title>
    <author> Dr. Claud Anderson and Brant Anderson</author>
    <image>images/portfolio/tn_moreDirtyLittleSecrets.jpg</image>
    <description>In More Dirty Little Secrets, Dr. Claud Anderson and his son Brant Anderson, piece together little known facts about Black people, thier achievements, influence, involvement, tribulations and present them with wit and humor.</description>
    <weblink>http://powernomics.com/</weblink>
    </book>
    </books>

    Hi,
    In your html page, use the following notation:
    <a href="http://{weblink}" title="{weblink}" target="_blank">{weblink}</a>
    I hope this helps.
    Ben

  • How can I set a graphic to link to a specific detail region?

    I have a master/detail region set. Works fine. I'd like to place a graphic below the menu(master region) that would link to a certain detail region. I'm using HTML data set. Any thoughts?

    Basically, the menu and description is created via Master/Detail regions. "Partnership Opportunity" links to its designated data description. BUT what I also want to do is link the graphic below the menu to the "Partnership Opportunity" designated data description. So, whether you click on "Partnership Opportunity" in the menu or click on the graphic it will open the same data description. It's all within a local testing environment. See attached.  

  • Help with Spry Detail Regions, XML Data Sets, for IMG gallery

    Hello,
    I'm working on a site for a friend of mine, a photo gallery. You can see the gallery here, it's a temporary one I'm working on
    http://www.emiliajozefa.com/a_index.html
    Here are some important parts of my code:
    //initially load these data sets. the function will be called by the links to update components later<script type="text/javascript">
         var intNumPhoto = 0;
         dsGallery = new Spry.Data.XMLDataSet("photofile.xml", "galleries/ride/photo");
         dsNav = new Spry.Data.XMLDataSet("photofile.xml", "galleries/ride");
         function updateSpryComponents(galleryDir){
              alert("updating spry components for " + galleryDir);
              intNumPhoto = 0;
              dsGallery = Spry.Data.XMLDataSet("photofile.xml", "galleries/" + galleryDir + "/photo");
              dsNav = Spry.Data.XMLDataSet("photofile.xml", "galleries/" + galleryDir);
              dsGallery.setCurrentRow(intNumPhoto);
              //document.getElementById('nav').innerHTML='<H1>'+enlarge.inp.value+'</H1>';
              document.getElementById('nav').innerHTML=
              "<span spry:detailregion = 'dsGallery'>
             <a href = 'javascript:' onclick = 'if(intNumPhoto > 0){intNumPhoto -= 1}; dsGallery.setCurrentRow(intNumPhoto);'>&lt;</a> {@id} / </span>
             <span spry:detailregion = 'dsNav'>{@numPhotos}
             <a href = 'javascript:' onclick = 'if(intNumPhoto < ({@numPhotos} - 1)){intNumPhoto += 1; }; dsGallery.setCurrentRow(intNumPhoto);'>&gt;</a>
             </span>";
    </script> <--- later ----><!-- SIDEBAR NAV. When link i clicked, set DataSet to the location of the new gallery -->
         <div id = "sideBarNav">
             <a href = "javascript:" onclick ='updateSpryComponents('ride');">Tannersville</a>
                <br />
              <a href = "javascript:" onclick = "updateSpryComponents('dive');">Dive</a>
            <br />
              <a href = "javascript:" onclick = "updateSpryComponents('poland');">Poland</a>
            <br />
              <a href = "javascript:" onclick = "updateSpryComponents('alaska');">Alaska</a>
        </div>
    </div>
    <div id = "content2">
         <!-- PHOTO CONTAINER I think I somehow need to refresh this section of the code to reload new data-->
         <div id = "fotoContainer" spry:detailregion="dsGallery"><img src = "photos/{@path}" width = "{@width}" height = "{@height}"/></div>
         <!-- IMAGE NAVIGATION -->
         <div id = "nav">       
             <span spry:detailregion = "dsGallery" id = "galSpan">
             <a href = "javascript:" onclick = "if(intNumPhoto > 0){intNumPhoto -= 1}; dsGallery.setCurrentRow(intNumPhoto);">&lt;</a> {@id} / </span>
             <span spry:detailregion = "dsNav" id = "navSpan">{@numPhotos}
             <a href = "javascript:" onclick = "if(intNumPhoto < ({@numPhotos} - 1)){intNumPhoto += 1; }; dsGallery.setCurrentRow(intNumPhoto);">&gt;</a>
             </span>
         </div>
    You could view source there to get the code. Here is what I believe is my problem
    I'm trying to automate the site so that when you click on one of the links on the left, without refreshing the page, the paths to the galleries xml file changes, and the spry Detail Regions (1 for the images, 1 for the navigation - left and right arrows). I think the problem is that once the link changes the set and calls my updateSpryComponenets() function, the detail regions need to be refreshed. I'm currently trying to solve this by dynamically rewriting the HTML thru .innterHTML, everytime I call updateSpryComponents().There may also be a problem in the Javascript function updateSpryControllers because if I put the alert after the spry calls, I never get the alert
    Thanks in advance for any help!

    Update:
    Ok, the first query on the Recent tab doesnt work for me because it wont show unless its already voted, and since these are supposed to be new blurts, that kind of breaks the whole site:
    "SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date, ratings.rating_id, Avg(ratings.rating_value) as average_r FROM ratings Left Join Blurt On ratings.rating_id = Blurt.Id_blurt Group By Id_blurt ORDER BY Blurt.`Date` DESC";
    So I replaced it with what I originally had.
    "SELECT Blurt.Id_blurt, Blurt.Name, Blurt.Location, Blurt.Blurt,Blurt.`Date`,DATE_FORMAT(Blurt.`Date`, '%l:%i %p on %M %D, %Y') as Date FROM Blurt ORDER BY Blurt.`Date` DESC";
    But this doesn't provide me with the initial average rating:(

  • How Do I: Bind a YUI Calendar Widget to a Spry Master Detail Region?

    Hello All,
    Does anyone know how to bind a YUI Calendar widget to a Spry
    master detail region? I have the dataset, yui calendar inserted but
    no clue how to bind the two so my dataset populates the calendar
    (Highlights dates that have a event) and when a date in the
    calendar is clicked it shows in the details section.
    I have found a tidbit or two via google but they don't deal
    with the new yui cs4
    widget. I have seen some video on adove tv that touches on
    inserting the yui calendar into a spry dataset but not how to bind
    the two together...
    Any thoughts on this would be greatly appreciated.

    You have to write some code that sets up a select callback on
    the YUI side of things, and then set the current row of the data
    set that matches that date.
    Something like this:
    var cal1 = new YAHOO.widget.Calendar("cal1","YUICal1");
    cal1.render();
    cal1.selectEvent.subscribe(function(type, args, obj)
    // Get the selected date string from cal1.
    var selectedDate = cal1.getSelectedDates()[0].getDate();
    // Find the first row in the data set that has the
    // selected date in it's "date" column.
    var row = ds1.findRowsWithColumnValues({"date":
    selectedDate}, true);
    // If we have a matching row, make it the current row for
    the data set.
    if (row)
    ds1.setCurrentRow(row.ds_RowID);
    }, cal, true);
    --== Kin ==--

  • How to link within a spry data set?

    Hi everybody,
    I am working with DW CS4 and want to know how to insert a link to another html site within the Spry data set. All I am archieving at the moment is to write the hyperlink-addy as plain text on my website.
    I have this kind of structure in my data set:
      <example>
        <screenshot>Pics/examples/SRB.jpg</screenshot>
        <name>Sounddesign Radio SRB</name>
        <sort>Music production</sort>
        <link> ??? </link>
      </example>
    Thanks a lot for your help!
    Cheers,
    El Teaso

    Hi,
    thanks for taking the time to haul through the Code I produced!
    Although the website isn't launched yet, you can have a look at the site on this online "test-site": http://www.media-powerplant.de/media-powerplant-referenzen.html (on the left side you'll find the Spry-master region and on the left-hand side there is the Detail-region which should include the hyperlink)
    Here is the HTML-Code for the site: (the green text is the part with the embedded Spry data set that works and the red line is the part which is not working)
    <!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("a", "html");
    dsreferenzen.setColumnType("a/@href", "html");
    dsreferenzen.setColumnType("a/@target", "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="reflink">{dsreferenzen::a/@href}</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>
    Okay, and here is the XML code: (the red line shows the the code, that should be shown as a link, but isn't working)
    <?xml version="1.0" encoding="UTF-8"?>
    <referenz>
      <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>
              <a target="_blank" href="http://www.google.de">www.weblink.de</a>
      </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>
        <a target="_blank" href="http://www.gmx.de">www.weblink2.de</a>
      </beispiel>
    </referenz>
    (this shows only the first two entries)
    Then, I also attached some screenshots of the Spry-Wizard. You can see, that it splits the line with the link in three seperate items.

  • How to use open data set in SAP

    Hi SAP Gurus,
            Could anyone help, how to use open data set in SAP.
          I need to upload a file from Application server (ZSAPUSAGEDATA) to internal table (IT_FINAL).
    Thanks & Regards,
    Krishnau2026

    Hi Krishna.
    These are the steps you need to follow.
    tables: specify the table.
    data: begin of fs_...
            end of fs_    " Structure Field string.
    data: t_table like
            standard table
                      of fs_...
    data:
    w_file TYPE string.
    data:
      fname(10) VALUE '.\xyz.TXT'.
    select-options: if any.
    PARAMETERS:
      p_file LIKE rlgrap-filename.
    w_file = p_file.
    select .... statement
    OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    LOOP AT t_... INTO fs_....
    write:/ .....
    TRANSFER fs_... TO fname.
    or
    TRANSFER t_... TO fname
    ENDLOOP.
    CLOSE DATASET fname.
    Reward points wisely and if you are benefitted or ask for more detailed explanation if problem not solved.
    Regards Harsh.

  • How do I select one record when working with image data sets?

    David Powers had an example with creating spry data sets and using the filename in the database linked to images in the local files as data sources.  The pages shows the images with the specified information requested, however all of the images display with their content.  I want to pull an individual record with the image and content. HELP!
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $maxRows_rs_getPhoto = 10;
    $pageNum_rs_getPhoto = 0;
    if (isset($_GET['pageNum_rs_getPhoto'])) {
      $pageNum_rs_getPhoto = $_GET['pageNum_rs_getPhoto'];
    $startRow_rs_getPhoto = $pageNum_rs_getPhoto * $maxRows_rs_getPhoto;
    mysql_select_db($database_gepps1_db, $gepps1_db);
    $query_rs_getPhoto = "SELECT last_name, first_name, personal_bio, file_name, width, height FROM mem_profile";
    $query_limit_rs_getPhoto = sprintf("%s LIMIT %d, %d", $query_rs_getPhoto, $startRow_rs_getPhoto, $maxRows_rs_getPhoto);
    $rs_getPhoto = mysql_query($query_limit_rs_getPhoto, $gepps1_db) or die(mysql_error());
    $row_rs_getPhoto = mysql_fetch_assoc($rs_getPhoto);
    if (isset($_GET['totalRows_rs_getPhoto'])) {
      $totalRows_rs_getPhoto = $_GET['totalRows_rs_getPhoto'];
    } else {
      $all_rs_getPhoto = mysql_query($query_rs_getPhoto);
      $totalRows_rs_getPhoto = mysql_num_rows($all_rs_getPhoto);
    $totalPages_rs_getPhoto = ceil($totalRows_rs_getPhoto/$maxRows_rs_getPhoto)-1;
    ?>
    <table width="800" border=" ">
      <tr>
        <td>Image</td>
        <td>thumbnail</td>
        <td>firstname</td>
        <td>lastname</td>
        <td>personal bio</td>
      </tr>
      <?php do { ?>
        <tr>
          <td><img src="<?php echo $row_rs_getPhoto['file_name']; ?>" alt="" width="<?php echo $row_rs_getPhoto['width']; ?>" height="<?php echo $row_rs_getPhoto['height']; ?>"></td>
          <td><img src="<?php echo $row_rs_getPhoto['file_name']; ?>" alt="" width="50" height="35"></td>
          <td><?php echo $row_rs_getPhoto['first_name']; ?></td>
          <td><?php echo $row_rs_getPhoto['last_name']; ?></td>
          <td><?php echo $row_rs_getPhoto['personal_bio']; ?></td>
        </tr>
        <?php } while ($row_rs_getPhoto = mysql_fetch_assoc($rs_getPhoto)); ?>
    </table>
    <?php
    mysql_free_result($rs_getPhoto);
    ?>

    I tried pulling the record by using entered value, but then I would need to create several recordsets.
    It's actually no problem doing that.  Can you explain more what you want the final result of this page to display? You are pulling a recordset of the entire group of photos.  Do you still want that comprehensive recordset on this page?  How many other images do you want?  Are you trying to make a master/detail pair where this page displays only the details for a single image?  See what I mean?

Maybe you are looking for

  • Cross component communication

    Hi, I have two components in my application. One contains a repeater and a button. When the button is pressed it calls a function in an actionscript file that throws an alert and fills the repeater. The second component just has a tree control. When

  • Album cover view for Radio does not match current song playing

    I'm currently listening to the Pop Genre radio station. The play list for this station has clearly been updated recently. I listen to this often and there are many new songs currently on. Something strange has happened with this most recent update. T

  • What does the URL mean -- p?n=#ID#

    Hi, I was going through the File Upload tutorial in the Developer Guide, we give a url to download the file which is as follows p?n=#ID# Can someone explain why we give the URL as above, what does 'p' in the URL mean. Is there some kind of APEX built

  • Capturing pixels from a selected part of an image

    Im writing a tool to allow a user to drag a rectangle over any area of an image (contained on a ScrollingImagePanel) in order to perform an operation such as blur on the region. When I have the co-ordinates of the rectangular area for the operation,

  • Compiling Issue on SUNstudio11

    Server : Sunfire x4100 O/S : Solaris10 Error: While compiling im getting the following error. $ compile Cleaning *.o, *.c, recon *.o: No such file or directory recon: No such file or directory Compiling init.pc to init.c Pro*C/C++: Release 10.2.0.2.0