How to use multiple Spry Data Sets in one page

I'm using two spry data sets in one page. When I add the first spry data set to my page everything runs OK, When I add the second spry data set to the page the first data set stops working. Does anyone know what the problem is?
This is how I have my data sets listed.
var ds1 = new Spry.Data.HTMLDataSet("/accounts/tower/list.php", "list");
var ds2 = new Spry.Data.HTMLDataSet("/accounts/tower/numvisits.php", "chart");
Thanks, let me know if you need more information.

Good News!
There is nothing wrong with what you have shown.
Bad news!
The problem could be in that part that you have not shown.
Gramps

Similar Messages

  • How to do something - Spry Data Set?

    Hopefully David Powers is online this afternoon.
    I would like to design a web page so that one record, and one record only, can be pulled from a XML file.  Everything is in place but I am totally confused on how to do what I want to do using Spry.
    The page in question can be viewed here.  By clicking on the "Image Info" button in the navigation bar it opens a sub-window in the browser window displaying another HTML file.  You can view the other HTML file here.  This sub-file uses a Spry Tabbed Panel for ease of display for the end-user.  Each tab is populated with data strings from a XML file.  This XML file contains metadata for a collection of TIF images.
    At present I am copying and pasting the data strings from the XML file into the second (overflow) file.  As the records grow this will become extremely cumbersome and fraught with possible miscues.  I would like the second file to call for a particular record from the XML file and display it.  If the file 001-ovrflw.html is being opened then populate the placeholders with the appropriate record's information (001.tif) from the XML file.
    Can someone show me just how to accomplish this using a Spry data set?  And I am totally confused with Spry so please, be gentle. <grin>  All I need is one sample using my set of data and then I am off and running.  I have to do this for, at present, some 4,000 images.  Each XML file will only contain about 800 records but there will be a XML file for each year.

    If a database is what I need then so be it.  My hosting service allows me 25 databases and I have XAMPP and MySql already installed on my computer.
    So then just how in tarnation do I go about setting up a database and hosting it to my service for use?  And then how do I set up my files to access this database and extract that one record each file needs?  I'm also assuming that I will have to somehow convert my XML file to a database.
    The real shame is that the XML file has a header portion that is the same for each and every record.  This information would have to be copied into each record in the database really ballooning the size — size equates to slower database access.  And then it would take several days to convert the XML file by hand.
    As I hope you can see; I am a total neophyte when it comes to databases.  At least I have read about Spry data sets and was hoping that would serve my needs.  And yeah, I don't want to purchase another book.  I have enough of those laying around without the time to read them all.  Of course such a book would dictate that I read the whole thing to learn how to change a light bulb.  Kind of like a degree in mechanical engineering to flush a toilet.

  • Spry Data Set, include external page and javascript

    I have a problem with Spry Data Set... I have necessity to
    include a html page with javascript functions (static html page) in
    another but doesn't work.
    This is an example with "Elevator Panel Magic" extension
    (projectseven.com):
    Home page with dataset (home.html)
    <!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/SpryData.js"
    type="text/javascript"></script>
    <script src="../SpryAssets/SpryHTMLDataSet.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.HTMLDataSet("include_header.html",
    "header_menu_test");
    ds1.setColumnType("column0", "html");
    //-->
    </script>
    <link href="p7epm/epm1/p7EPM01.css" rel="stylesheet"
    type="text/css" media="all" />
    <script type="text/javascript"
    src="p7epm/p7EPMscripts.js"></script>
    </head>
    <body>
    <span spry:detailregion="ds1">{column0}</span>
    </body>
    </html>
    External page with elevator panel magic
    ("include_header.html")
    <!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>
    </head>
    <body>
    <div id="header_menu_test">
    <div id="p7EPM_1" class="p7EPM01">
    <div id="p7EPMt_1" class="p7epm_trigs">
    <ul>
    <li class="t1"><a href="#p7EPMc1_1"
    id="p7EPMtrg1_1">New Heading Text 1</a></li>
    <li class="t2"><a href="#p7EPMc1_2"
    id="p7EPMtrg1_2">New Heading Text 2</a></li>
    </ul>
    <div class="p7epm_ie5clear"> </div>
    </div>
    <div id="p7EPMdw_1">
    <div id="p7EPMw1_1" class="p7epm_cwrapper">
    <div id="p7EPMc1_1" class="p7epm_content pan1">
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing
    elit. Quisque congue tristique eros. Nulla facilisi. Quisque sem
    mauris, ullamcorper ac, gravida id, mattis id, sapien. Nullam
    adipiscing enim dapibus felis. Fusce a nisi in odio pulvinar
    fringilla. Nunc blandit interdum metus. Duis leo nunc, sollicitudin
    ut, fermentum congue, pharetra eu, massa. Suspendisse potenti.
    Morbi commodo mauris. Ut at pede. Ut id nisi. Donec scelerisque
    urna quis ligula. Praesent est. Vestibulum scelerisque. Curabitur
    quam. Fusce rhoncus pellentesque ipsum. Aenean venenatis metus ac
    quam. Maecenas lacus lacus, sagittis vitae, congue at, euismod eu,
    urna. Maecenas vitae purus. Praesent eros lectus, porta et, semper
    nec, molestie eget, tortor.</p>
    </div>
    </div>
    <div id="p7EPMw1_2" class="p7epm_cwrapper">
    <div id="p7EPMc1_2" class="p7epm_content pan2">
    <p>Lorem ipsum dolor sit amed sed diam nonummy nibh
    euismod tincidunt ut. Duis autem vel eum iriure dolor in hendrerit
    in vulputate velit esse molestie consequat, eu feugiat nulla at
    vero eros et accumsan et odio qui blandit praesent luptatum augue
    duis dolore te feugait nulla facilisi.</p>
    <p>Lorem ipsum dolor sit amed sed diam nonummy nibh
    euismod tincidunt ut. Duis autem vel eum iriure dolor in hendrerit
    in vulputate velit esse molestie consequat, eu feugiat nulla at
    vero eros et accumsan et odio qui blandit praesent luptatum augue
    duis dolore te feugait nulla facilisi.</p>
    </div>
    </div>
    </div>
    <!--[if IE 5]><style>.p7epm_trigs a {height:
    1%;}.p7epm_ie5clear {clear: both;}</style><![endif]-->
    <!--[if IE 6]><style>.p7epm_trigs, .p7epm_trigs
    a {height: 1%;}</style><![endif]-->
    <script type="text/javascript">
    <!--
    P7_opEPM('p7EPM_1',1,1,1,0,0,1000,0);
    //-->
    </script>
    </div>
    </div>
    </body>
    </html>
    **********************

    I think it is a bit too late you're 'finally experimenting' with Spry.
    Spry has been deprecated from Adobe and is now been made Open Source on GIT - meaning Adobe will no longer officially support Spry tools. The next major release of DW will most probably get rid of Spry, for good.
    Read here: http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l
    jQuery is the way ahead. You may want to switch to jQuery - since anyway you've mentioned you're just 'experimenting' at the moment. That way, you're not spending time on something that is no longer being supported/ developed by their developers.
    -ST

  • SPRY DATA SET VS. RECORDSET

    Hi,
    Quick question.
    Building a site using CS5.5. Aready had a database created for use on the site.
    However, although I have successfully connected to the database, I am now trying to create a recordset to retrieve data and there is no option in the "Bindings" tab to do this.
    (My website will pull values from the database based on selections on the web page)
    All the options I see in Bindings are:
    Spry data set
    Get more data sources
    But I expect to see
    Recordset(Query)
    Command
    Request Variable
    Session Varaible
    Application Variable
    Is it that these are not available anymore in 5.5 and if not, how will a spry data set allow me to search on the html file created with all the data? {There are 3 tables in the my database at present}
    Write soon....

    Okay great! Thanks - for the screen shot as well.
    But also, I am aware that a spry data set would also allow me to select data based on a value.
    First question, can the spry data set allow me to select based on multiple criteria?
    Secondly, since for the Spry Data Set, the content will be stored on an HTML page, does this offer the same functionality as a recordset - where you can select a subset of data from the html content?
    Reason I ask is because I also like the idea that the spry data set can allow users (that I allow) to modify the content and I'm thinking of using this for the website instead.
    <<The website was originally going to pull database enties (which in this case would be html content entries?) based on drop down selection criteria which is also from a database table (other html file in this case?)>> In other words, how would this work using the spry data set.
    Thanks.

  • Need a little help with Slimbox (Lightbox clone) and Spry data sets

    Hello guys!
    First of all let me say that I'm not a programmer in any way,
    shape or form, and somehow I managed to build me a dynamic
    thumbnail gallery that reads data from an XML file and displays it
    on my webpage using a Spry data set and a slider widget (yay!)
    This is of course only thanks to the many great examples
    provided by the Adobe Spry team, and me being stubborn enough to
    keep at it, even though I don't really understand what I'm doing :D
    But I got to this point where I have basically everything
    working, except that I can't get the Slimbox (Lightbox clone)
    script to work with the Spry-generated thumbnail gallery.
    From what I could understand from other threads on this
    forum, is that I need to add an observer somewhere, only that I'm
    not sure where and how (those threads are pretty old and the
    examples aren't available anymore).
    I'm sure you guys know what I'm talking about, anyway, here's
    what I got so far:
    http://www.riotdesign.com.ar/misc/gallery/test1.html
    I have the thumbnail gallery populated from the external XML
    file, a basic page navigation using the Sliding Panels widget, and
    the Slimbox script which works only on the static test image.
    Okay I guess that's it for now, sorry for the long post and
    of course any help with this will be GREATLY appreciated :)
    Thanks & bye!

    Kev,
    Where exactly does the .evalScripts = true; text need to go?
    Does it go in the href call?
    <a href="ManageNotes.asp" title="Manage Notes" onClick="this.blur();
    Modalbox.show(this.href, {title: 'Manage Notes', width: 575}); return false;">View your notes.</a>
    Thanks for any assistance.
    J Bishop

  • Working with spry data sets

    Hi,
    I have page that uses a spry data set called 'dsSupport',
    however i do not want to use a table to select the item in the list
    i am instead using a spry select box:
    <div spry:region="dsSupport">
    <h1>Step1: Select your product:</h1>
    <form id="form1" name="form1" method="post" action="">
    <p><strong>Choose from a
    list:</strong><br />
    <span id="spryselect1">
    <label>
    <select name="prodlist" id="prodlist">
    <option spry:repeat="dsSupport" spry:setrow="dsSupport"
    value="{model}">{name}</option>
    </select>
    </label>
    <span class="selectRequiredMsg">Please select an
    item.</span>
    </span>
    </p>
    </form>
    </div>
    This is connected to a spry detail region so i can pull up
    more details from the data set, but when i change the option in the
    select box nothing happens. Is this possible? If so can anyone
    help!
    If i drop a spry table in to the div tag as well i can select
    the items in there and the detail region does change so i know its
    linked ok and all the table items are showing in the select box, i
    just cannot get it to change when i select something different in
    the select box!

    fixed it using:
    <select spry:repeatchildren="dsSupport"
    spry:choose="choose" name="prodlist"
    onChange="dsSupport.setCurrentRow(this.selectedIndex);">
    <option spry:when="{ds_RowNumber} ==
    {ds_CurrentRowNumber}" selected="selected">{name}</option>
    <option spry:default="default">{name}</option>
    </select>

  • Spry Data Set error in IE8

    I'm creating a page that uses a Spry Data Set for a book I'm working on. I have no problem with the data set when viewing the page in IE9 beta and Safari. Two separate testers who are using IE8 get the same error: "type="MM_SPRY_DATA_REFERENCE" .... translatorClass="MM_SPRY">Truth
    Here is the page code from my version of the page, which does work for me. Another tester did not have this problem, also working in IE8. Any help would be appreciated! Thanks.
    <!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>Flower Meanings</title>
    <style type="text/css">
    body {
        background-image: url(images/baskets_bkg.jpg);
    </style>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    var flower_meanings = new Spry.Data.HTMLDataSet("flower_data.html", "Table1");
    var Meanings = new Spry.Data.HTMLDataSet("flower_data.html", "Table1");
    </script>
    </head>
    <body>
    <h1>Common Flowers and their Meanings
    </h1>
    <p> 
    <div class="MasterDetail">
      <div spry:region="Meanings" class="MasterContainer">
        <div class="MasterColumn" spry:repeat="Meanings" spry:setrow="Meanings" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{Name}</div>
      </div>
      <div spry:detailregion="Meanings" class="DetailContainer">
        <div class="DetailColumn">{Image}</div>
        <div class="DetailColumn">{Meaning}</div>
      </div>
      <br style="clear:both" />
    </div>
    <p>
    </body>
    </html>

    To get the best support from this forum, it is always a good idea to give us a link to your website.
    The code that you have shown us is OK although the two datasets puzzel me.
    Now I am going on the guessing tour.
    are you using Spry version 1.6.1
    have you tried to link your files (JS) to a working outside source
    have you tried IE6 and IE7
    is the error in the form of a popup or is it the yellow triangle
    A link to your site is still the best option.
    Gramps

  • My spry data set isn't working

    So i followed like 5 to 6 tutorials on how to create a spry data set in dreamweaver, and I can't seem to get it to work.
    Here is the script, apparently line 11 has an error to it.
    <!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/SpryData.js" type="text/javascript"></script>
    <script src="../SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    var try = new Spry.Data.HTMLDataSet("data01.html", "data01", {sortOnLoad: "Name", sortOrderOnLoad: "ascending"});
    try.setColumnType("Date", "date");
    //-->
    </script>
    </head>
    <body>
    <div class="MasterDetail">
      <div spry:region="try" class="MasterContainer">
        <div class="MasterColumn" spry:repeat="try" spry:setrow="try" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{Name}</div>
      </div>
      <div spry:detailregion="try" class="DetailContainer">
        <div class="DetailColumn">{Date}</div>
        <div class="DetailColumn">{Sex}</div>
        <div class="DetailColumn">{Description}</div>
      </div>
      <br style="clear:both" />
    </div>
    </body>
    </html>

    Without seeing the actual error message and the contents of data01.html, it's impossible to offer any help.
    However, are you aware that Adobe stopped developing Spry nearly two years ago? See this announcement.

  • Spry Data Set visible in Live View, but not on Site.

    Hi,
    I've used the spry data set widget to create a dynamic table. Everything looks fine in the live view. On the site itself, however, I see only a brief flash of the unpopulated spry table, and then nothing. All necessary files, including those in the SpryAssets folder, have been uploaded.
    This is particularly frustating since my first crack at a spry data set worked with ease.
    I have the feeling that I missing something simple.  Any ideas?
    Here is the table:
    http://www.ldcsb.on.ca/ntip/teachphotos/profiletable.html
    Here is the spry data set:
    http://www.ldcsb.on.ca/ntip/teachphotos/profiles.html
    Thanks for looking,
    Jim

    Jim, Your page comes up fine in Firefox, but as you said it flashes and disappears in IE8.
    I notice some differences in the ids and Spry:sort values. You might sort those out (make them the same) and see what happens.
    This is in the profiletable:
    <td id="Image">Image</td>
    <td id="First">First </td>
    <td wid="Last">Last </td>                                        lose the w
    <td id="Sschool">School</td>                                   lose the extra s
    <td id="Grade">Grade </td>
    <td id="Subject1">Subject1</td>
    <td id="Subject2">Subject2</td>
    <td w id="Description">Description</td>                    lose the w and the extra space
    And this in the Spry region:
    <th spry:sort="Image">Image</th>
    <th spry:sort="First">First</th>
    <th spry:sort="Last">Last</th>
    <th spry:sort="School">School</th>
    <th spry:sort="Grade">Grade</th>
    <th spry:sort="Subject1">Subject1</th>
    <th spry:sort="Subject2">Subject2</th>
    <th spry:sort="Description">Description</th>
    It's possible that IE is pickier than Firefox that the names be the same.
    Other than that, look for things to clean up, like tightening up the table...I notice several places in the data where there are blank lines between the </tr> of one line and the <tr> of the next.  Make sure every entry in the table has a cell for every column.
    You're right; it is an easy Widget to work with...unless some tiny thing goes wrong and it doesn't work! I have had a data set that had some of those tiny anomalies, fixed them, and now I know to look for them.
    Beth

  • Using Spry Data Set Variable in Recordset

    I have a page that contains a spry data set and a recordset. The recordset uses one of the variables from the spry data set to filter its results. how do I apply the spry data set variable to the recordset?

    I believe passing this the variable through the URL requires you to update the page, right?
    Yes
    Is there anyway to grab the spry data set variable direct and apply it to your recordset filter?
    The SpryDataSet variable can only be used on the clientside (JavaScript) so you will have to get your recordset using JS.
    A page refresh can be set in motion if you add {useCache: false, loadInterval: 500} to your dataset to then set an observer to your dataset to invoke the page refreash function.
    Gramps

  • Using alternate rows with Spry Data Set

    Can anyone provide more information on how to implement alternate row colors with a Spry Data Set?  What I have done is:
    Create spry data set using HTML page as the data set
    The html page that displays the data set is:  <div spry:region="equipment">
    In the default.css page that is linked, I added the info in note #1 below
    When the page displays, no colors appear. Tried changing the colors and still no luck.  Is there another step to do?
    Note #1:
    within the default.css, the following are declared:
    #equipment odd {
    background-color: #CCC;
    #equipment even {
    background-color: “#F2F2F2;
    Note #2:
    Here is a link to see the actual pages referenced above.
    Any ideas? Getting frustrated!!  Thanks in advance for any advice.

    You are going to kick yourself, but, you haven't assigned any page element the ID #equipment. The region is called that but the table or the DIV does not have an idea and your selector matches nothing...

  • Spry data set and html table with multiple images

    I use "Spry Data Set" in my Dreamweaver CS4 site. I need to make one html file (a product page) and all the product data comes from a separate html table.
    So, I have a html table that contains the product data and the images. Each row is one product.
    Column 1 contains a product name
    Column 2 contains product information
    Column 3 contains products thumbnail image 1
    Column 4 contains products thumbnail image 2
    Column 5 contains products large image 1
    Column 6 contains products large image 2
    This a simple example of the idea. In reality, there is lot more content.
    So the actual question is that:
    How can I show in the product page all the thumbnail images, but only one large picture at a time?
    And when the thumbnail is clicked the large picture changes accordingly.

    It depend entirely on what you want.
    One way would be to show a shadow box as per http://www.adobe.com/cfusion/exchange/index.cfm?searchfield=shadowbox&search_exchange=&num =25&startnum=1&event=search&sort=0&interim_dummy_tmpfield=&Submit= or http://www.adobe.com/cfusion/exchange/index.cfm?searchfield=lightbox&search_exchange=&sear ch_license=&search_rating=&search_pubdate=&Submit=Search&num=10&startnum=1&event=search&so rt=0&dummy_tmpfield=
    Another way is to have a master/detail area where the large image appears after clicking in the master area like this http://labs.adobe.com/technologies/spry/demos/products/index.html
    You could also use tooltips as in http://labs.adobe.com/technologies/spry/samples/data_region/TooltipwithData.html.
    There are many more ways, but you need to make the desicion based on the layout of your page.
    Gramps

  • How to use multiple selection parameters in the data model

    Hi, after have looked all the previous threads about how to use multiple selection parameters , I still have a problem;
    I'm using Oracle BI Publisher 10.1.3.3.2 and I'm tried to define more than one multiple selection parameters inside the data template;
    Inside a simple SQL queries they work perfectly....but inside the data template I have errors.
    My data template is the following (it's very simple...I am just testing how the parameters work):
    <dataTemplate name="Test" defaultPackage="bip_departments_2_parameters">
    <parameters>
    <parameter name="p_dep_2_param" include_in_output="false" datatype="character"/>
    <parameter name="p_loc_1_param" include_in_output="false" datatype="character"/>
    </parameters>
    <dataTrigger name="beforeReport" source="bip_departments_2_parameters.beforeReportTrigger"/>
    <dataQuery>
    <sqlStatement name="Q2">
    <![CDATA[
    select deptno, dname,loc
    from dept
    &p_where_clause
    ]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="G_DEPT" source="Q2">
    <element name="deptno" value="deptno"/>
    <element name="dname" value="dname"/>
    <element name="loc" value="loc"/>
    </group>
    </dataStructure>
    </dataTemplate>
    The 2 parameters are based on these LOV:
    1) select distinct dname from dept (p_dep_2_param)
    2) select distinct loc from dept (p_loc_1_param)
    and both of them have checked the "Multiple selection" and "Can select all" boxes
    The package I created, in order to use the lexical refence is:
    CREATE OR REPLACE package SCOTT.bip_departments_2_parameters
    as
    p_dep_2_param varchar2(14);
    p_loc_1_param varchar2(20);
    p_where_clause varchar2(100);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    CREATE OR REPLACE package body SCOTT.bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    if (p_dep_2_param is not null) --and (p_loc_1_param is not null)
    then
    p_where_clause := 'where (dname in (' || replace (p_dep_1_param, '''') || ') and loc in (' || replace (p_loc_1_param, '''') || '))';
    else
    p_where_clause := 'where 1=1';
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    As you see, I tried to have only one p_where_clause (with more than one parameter inside)....but it doesn't work...
    Using only the first parameter (based on deptno (which is number), the p_where_clause is: p_where_clause := 'where (deptno in (' || replace (p_dep_2_param, '''') || '))';
    it works perfectly....
    Now I don't know if the problem is the datatype, but I noticed that with a single parameter (deptno is number), the lexical refence (inside the data template) works.....with a varchar parameter it doesn't work....
    So my questions are these:
    1) how can I define the p_where_clause (inside the package) with a single varchar parameter (for example, the department location name)
    2) how can I define the p_where_clause using more than one parameter (for example, the department location name and the department name) not number.
    Thanks in advance for any suggestion
    Alex

    Alex,
    the missing thing in your example is the fact, that if only one value is selected, the parameter has exact this value like BOSTON. If you choose more than one value, the parameter includes the *'*, so that it looks like *'BOSTON','NEW YORK'*. So you need to check in the package, if there's a *,* in the parameter or not. If yes there's more than one value, if not it's only one value or it's null.
    So change your package to (you need to expand your variables)
    create or replace package bip_departments_2_parameters
    as
    p_dep_2_param varchar2(1000);
    p_loc_1_param varchar2(1000);
    p_where_clause varchar2(1000);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    create or replace package body bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    p_where_clause := ' ';
    if p_dep_2_param is not null then
    if instr(p_dep_2_param,',')>0 then
    p_where_clause := 'WHERE DNAME in ('||p_dep_2_param||')';
    else
    p_where_clause := 'WHERE DNAME = '''||p_dep_2_param||'''';
    end if;
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || ' AND LOC IN ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || ' AND LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    else
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || 'WHERE LOC in ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || 'WHERE LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    I've written a similar example at http://www.oracle.com/global/de/community/bip/tipps/Dynamische_Queries/index.html ... but it's in german.
    Regards
    Rainer

  • 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 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

Maybe you are looking for

  • I changed my Apple ID email and now I can't sign in with a different id on my phone to update apps

    Won't let me sign in wit my new Apple ID email when I try and update apps. How do I change the email on my phone

  • Help! Intermittent Keyboard and Trackpad freeze/unresponsive

    Hi everyone I'm pretty new to macs, and got my first one a few weeks ago - 2.4GHz White MB latest model. It has worked well in the first week, but I've experienced some problems with the keyboard and trackpad. At home I usually use a bluetooth keyboa

  • Error while connecting 10g developer to 11 g database (windows7 64 bit)

    pls help me.I have 11g database in my laptop and I installed oracle developer suit 10g ..everything seems normal but when I try to connect to database , I am getting tns error ora12154:TNS couldnt resolve the connect identifier.. I know this thing ab

  • ORDER BY IN HIERARCHIAL QUERY

    Cosider the following record set from the emp table. empno ename mgr 7839 KING      7566 SCOTT 7839 7566 BLAKE 7839 7782 CLARK 7839 If I use the following hierarchial query to populate a tree in Oracle forms I will get the result as shown below. Quer

  • XSLT using XSU

    I am trying to use the current Oracle XDK, in particular the XSU java libraries to retrieve XML from a sql query. In order to generate the final XML file I need to apply an XSLT. When using the OracleXMLQuery object to set the XSLT I get the followin