Multiple queries on one page

I am fairly new to JSP and need just a quick guideline and how to do so. So, I've put two very simple queries below. If anybody could just give some simple quidelines to follow, I would be very grateful.
<%@ include file="dbconnection.jsp" %>
<% int TitleID = 0;
String TitleName = "";
String LastIssue = "";
ResultSet rset = null;
String sql =
"SELECT " +
"t.TitleID, t.TitleName, t.LastIssue " +
"FROM " +
"IPs i, Titles t " +
"WHERE " +
"i.IPNumber = t.IPNumber " +
"AND " +
"t.TitleName LIKE " +
"'" + request.getParameter("TitleName") + "%'" +
"ORDER BY t.TitleName ";
try {
rset = stmt.executeQuery (sql);
catch (SQLException e) {
out.println (e);
return;
while (rset.next ())
TitleID = rset.getInt ("TitleID");
IPNumber = rset.getInt ("IPNumber");
TitleName = rset.getString ("TitleName");
LastIssue = rset.getString ("LastIssue");
%>
=====================================================
<% int IPNumber = 0;
String FirstName = "";
ResultSet rset = null;
String sql =
"SELECT " +
"t.IPNumber, t.FirstName " +
"FROM " +
"IPs i, Titles t " +
"WHERE " +
"i.IPNumber = t.IPNumber " +
"AND " +
"t.TitleName LIKE " +
"'" + request.getParameter("FirstName") + "%'" +
"ORDER BY t.FirstName ";
try {
rset = stmt.executeQuery (sql);
catch (SQLException e) {
out.println (e);
return;
while (rset.next ())
IPNumber = rset.getInt ("IPNumber");
TitleName = rset.getString ("FirstName");
%>

better yet, can you straighten me out, because i'm missing something:
     <%-- Run SQL Query --%>
<% String IPName;
int IPNumber;
int NumberOfPubs;
String CountryName;
String sql;
String sql2;
ResultSet rset = null;
IPName = "";
sql = "";
sql =
"SELECT distinct left(IPName,1) AS IPTitle FROM IPs ";
try {
rset = stmt.executeQuery (sql);
catch (SQLException e) {
out.println (e);
     return;
while (rset.next ())
IPName = rset.getString ("IPTitle");
%>
<%
try {
stmt.close();
conn.close();
} catch (Exception ex) {}
%>
     <a href="results_ip.jsp?IPName=<%= IPName %>"><%= IPName %></a>
|
     <%
     %>
     </td>
</tr>
</table>
<form method="POST" action="details.jsp">
<TABLE BORDER="1" CELLSPACING="0" CELLPADDING="3" width="727">
<TR bgcolor="#FFFFCC">
<TD width="220"><B>Information Provider</B></TD>
<TD width="131"><B>Country</B></TD>
<TD width="131"><b># of Publications</b></TD>
</TR>
<%-- Run SQL Query --%>
<%
IPName = "";
IPNumber = 0;
NumberOfPubs = 0;
CountryName = "";
sql2 = "";
     sql2 =     
"SELECT IPs.IPNumber, IPs.IPName, IPs.CountryName, count(Titles.IPNumber) AS NumberOfPubs " +
"FROM IPs, Titles " +
     "WHERE IPs.IPNumber = Titles.IPNumber " +
     "AND IPs.IPName LIKE " +
     "'" + request.getParameter("IPName") + "%'" +
     "GROUP BY IPs.IPNumber, IPs.IPName, IPs.CountryName ";
try {
rset = stmt.executeQuery (sql);
catch (SQLException e) {
out.println (e);
     return;
while (rset.next ())
NumberOfPubs = rset.getInt ("NumberOfPubs");
     IPNumber = rset.getInt ("IPNumber");
     CountryName = rset.getString ("CountryName");
     IPName = rset.getString ("IPName");
%>
<tr>
<td width="220"><a href="ip_edit.jsp?IPNumber=<%= IPNumber %>"><%= IPName %>
</a> </TD>
<td width="219"><%= CountryName %> </TD>
<td width="262"><%= NumberOfPubs %></TD>
</tr>
<%
     %>

Similar Messages

  • How to execute multiple queries in one stored procedure.

    Hi,
    I am Kumar,
    How to execute multiple queries in one stored procedure.
    here is the my requirements,
    1. get the max value from one table and sum of the that value.
    2. insert the values and also sum of the max value.
    using stored procedure
    I am using SQL server 2000 database.
    Please help me.
    Advance thanks
    by,
    Kumar

    This is not a java question and it is not even a problem: your only problem is
    1) lack of knowledge
    2) lack of interest to find a manual
    But you are going to have to change both by actually reading a book or a manual that explains the stored procedure language of SQL Server. It is the same as Sybase I think, so you could also look for a manual for that DBMS.

  • Can we use multiple queries on one template

    Can we use multiple queries on one template

    Hi,
    if you're using data templates for your data set, you
    can put multiple queries in the XML data template.
    The queries may then be linked (or not) by the "link
    name" tag ...
    Grtz.Following you answer here...do you know eventually how/if possible to preview a report (with XMLP Desktop) that is using data templates for the data set?
    Thanks,
    Liviu

  • Moving multiple queries from one category to another in QM

    Hi All,
    Is there is any way of moving multiple queries from one category to another in the query manager?
    Or is the only way of doing it by saving each one individually into a different category.
    Any ideas ?
    Regards,
    Rakesh N

    Hi Rakesh,
    The query manager has limited function compare with normal file management applications. Under current design, you have to do this one by one. You just need to make sure move the smaller amount of queries to large category. Category name can be changed easily.
    Thanks,
    Gordon

  • Add to Multiple Tables from One Page

    Hello,
    I am building an application that handles hardware inventory (APEX 4.0). I have an input page that adds data to two or more tables all at once. The page has two forms on it that point to two separate tables. However when I try to run the page, it fails and returns an error:
    ORA-06550: line 1, column 437: PL/SQL: ORA-00904: "ORH_LAST_UPDATE_DATE": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table IDD_ID_DATA.
    So far as i can see within the App, that column is not at issue (I am not even doing anything to it and it is nullable). I have looked into the App itself as well as doing some online research but have found nothing helpful...
    So my question is this: Is it possible to add to multiple tables from one page? If so how do I do it?
    I am new to APEX so any help would be greatly appreciated!

    UPDATE:
    I received an email from the APEX Support Team:
    "The simple answer is that you will need to manually code the DML (and query) processes if you wish to maintain multiple tables from one page (There is a limit of one table when using the built-in processes).
    In order to do this I suggest you delete the processes generated by the wizards and create PL/SQL processes with insert, update, delete statements as necessary. Such coding is not difficult but is more time consuming than when you can use built-in processes."
    I have been playing around with PL/SQL code and the end result is this:
    begin
         INSERT INTO table1
         VALUES(
              :P2_Item_Field1,
              :P2_Item_Field2);
         INSERT INTO table2
         VALUES(
              :P2_Item_Field1,
              :P2_Item_Field2);
    end;
    I used this code in a custom PL/SQL Process in the Processing>Processes section of Page Processing and it seems to work fine now. The only downside to this method is if the name of a Page Item is changed the code will also have to be changed. Other than that i have had no problems.

  • I need an idea how to place multiple videos on one page

    Multiple videos on one page in Muse neded for a video portfolio..
    Anyone got a great idea how this can be done please. (or direct me to a tutorial link - doing one is all I can find)
    I am happy with either embedded or Menu linked on objects to videos.
    Youtube is hosting the videos
    I just cant find any way to put hyperlinks or urls in objects and I can not find a way to make small video players in Muse.
    If I scale the container ..things go very weird. eg the video goes tiny and into a corner.
    I feel like I am working with half a tool box!!!
    I cant even find a template where this has been done.
    Any help is appreciated. Thanx.

    That works perfectly thank you.
    Now I am wondering if I can have a single "viewer" that will play any selected video from a button , a menu or other trigger?
    Info for others if required. :  The You tube ID required in the widget setting is not the URL.  Its an alpha/numeric obtained from part of the YT embedding code.
    example - the bold underlined section
    <iframe width="720" height="405" src="//www.youtube.com/embed/w6ZcCOCihuY" frameborder="0" allowfullscreen></iframe>

  • Printing multiple photos onto one page

    Sorry, fairly new to PSE9!
    Have a group of photos I need to print to actual size (3cm x 4cm) to go into a photo frame.  They are all cropped and ready to go but there doesn't seem to be an option to print multiple images onto one page at a custom size?  A contact sheet only gives me the option for the number of columns and picture package doesn't give any such option either as far as I can see!  I'm sure I must be missing something here!
    Any help much appreciated!  Don't want to waste photo paper printing each small photo individually!

    http://www.elementsvillage.com/forums/showthread.php?p=206785#post206785
    Post #6 in this thread provides standard directions.

  • Update multiple records on one page php/mysql

    Hi folks,
    I am trying to adapt a page to offer the option to update multiple records on one page.
    The intention is to edit FAQ categories which are contained in a table with just two fields - the category and an id.
    The page lists each categories in a form with a submit button which is then repeated for each record in the recordset.
    Unfortunately my plan didn't work and only the first record updates as intended.
    Can anyone suggest how I can make it work?
    Here's the code I have so far.
    ************** The Update Code *****************
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if (!isset($mm_abort_edit) || !$mm_abort_edit) {
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE faq_categories SET category=%s WHERE id=%s",
                           GetSQLValueString($_POST['category'], "text"),
                           GetSQLValueString($_POST['id'], "int"));
      mysql_select_db($database_con_mysite, $con_mysite);
      $Result1 = mysql_query($updateSQL, $con_mysite) or die(mysql_error());
      $updateGoTo = "faq-category-edit.php
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    ************** Update Code Ends *****************
    ************** The Form *****************
    <form name="frm_editcategory" id="frm_editcategory" method="POST" action="<?php echo $editFormAction; ?>">
      <?php do { ?>
    <fieldset>
              <input name="id" type="hidden" value="<?php echo $row_rs_faqcategory['id']; ?>" />
              <input name="category" type="text" class="formrightcolumn"  value="<?php echo $row_rs_faqcategory['category']; ?>" />
              <input name="save" type="submit" class="submitbutton" id="save" value="save" />
    </fieldset>
              <input type="hidden" name="MM_update" value="form1" />
       <?php } while ($row_rs_faqcategory = mysql_fetch_assoc($rs_faqcategory)); ?>
    </form>
    ************** The Form Ends *****************
    Cheers
    Dave

    What does debugging tell you? What's the value of each of the variables? Did you try using regular echo statements to monitor what's going on? That's what I always do whenever I am stuck in my PHP coding.

  • Results of multiple queries in one report

    Hi
    I would like to create one report with multiple rows and each row should display result of a different query.
    I guess I can use multiple report on one region or multiple regions in one place.
    (1)However is there a more elegant way of creating a single report look and feel...eg like it would happen in excel.
    (2)Is it better to have one page with multiple regions or multiple reports in one region.
    Thanks
    Faizi

    I'm not sure if it suite your needs,
    but maybe you can use UNION in your queries to get them together in one report ??
    Second option:
    Denes did great work and he created some how-to about putting mulitple reports in one region:
    http://deneskubicek.blogspot.com/2007/06/multiple-reports-in-one-region.html
    Hope this helps.
    Tomasz K.

  • I am trying to print a snapshot taken from a PDF multiple times on one page.

    Reader Will not print multiple copies of a snapshot on one page. I read the help files for Acrobat itself and all it said was take the snapshot and print it. Does anyone know if Acrobat can print multiple copies of the snapshot on one page?
    From some reading in another forum page it looks like Acrobat can do it by saving the snapshot repeatedly with different names and the printing all of them at once. I really hate that workaround as I need to do this often.
    Message was edited by: duckles10

    I tried to do it using Reader. I have a one page PDF document with a UPS shipping label on one side and a special box label with a barcode on the other. This is designed to print on a standard 8.5 x 11 sheet of paper. There are many times when I need to be able to print the box labels more than once. At home, I do it by taking a snapshot of the box label and printing it to a Label printer as many times as I need it. The distributor who also ships items for me only has a full page printer but he can print 4 on a page labels on UPS provided stock. Reader won’t print a snapshot multiple times, the option is grayed out. What I wanted to know is if Acrobat itself can print that snapshot multiple times. I don’t think it can without being able to cut and save that PDF multiple times as separate files. That would be a slow and cumbersome operation. If it would take a snapshot or a single cut and save and print that PDF 4 times on a page it would be a reason to spend the money to buy the program because we need to perform this operation OVER and OVER on a regular basis. On some shipments we might need to print 12 or more extra box labels. We tape smaller boxes together for one UPS label and need to make sure EACH box gets a separate label. Otherwise they sometimes get lost on the other end.
    Doing the save 4 separate PDFs process we might actually need TWO copies of Acrobat unless reader can print 4 on a page if it has 4 PDF’s to work from. I have not yet found a good way to save those snapshots from reader. I have tried since I found that it was possible to cut and save them in other formats but not PDF’s as reader can’t save them. The quality of the saved items in other formats is not acceptable. I recently discovered that Microsoft publisher which I have can save a document as a PDF. I’m going to see if I can import to that program next.

  • Print multiple photos on one page to printer

    I am new to macs, and I can't figure out (using iphoto 11) how to just print multiple photos on one piece of 8 1/2 X 11 paper in my own printer at home. I want to choose the size of each picture (like one 4X6 and two wallets on one page. How do I do this? it seems I can only print one pic per page when I use the print function in iphoto. Please help! If i can't do this basic thing I feel like I just wasted a couple thousand dollars on a really expensive piece of junk.

    This is a detailed set of instructions I made for my mother to use. Hope it helps.
    To print single or multiple photos in iPhoto
    Open iPhoto
    If photo(s) are not already in iPhoto then dragand drop into iPhoto
    Locate photo(s)
    Select (highlight) photo(s)
    Click File
    Click Print
    New window pops up
    Select border type on left side (standard, etc.)
    Select Print Size at bottom right (2x3, 3x5,etc.)
    Click Customize
    New window opens
    On bottom right are new icons
    IGNORE Print settings -are the options you chose in steps 7a, b & c
    IGNORE Themes - is thesame as step 7a
    IGNORE Background –ignore in most cases
    IGNORE Borders –default is 1 (use default in most cases)
    Layout (select 1 or 3 in most cases)
    1is horizontal photo
    IGNORE 2 is horizontal photo with text below
    3is vertical photo
    IGNORE 4 is vertical photo with text below
    SettingsClickon Photos per page
    If you want only 1 copy of each photo you selectedon each page then choose Single photo per page
    If you want 2, 3 or 4 different photos on eachpage then choose Multiple photos per page
    If you want many copies of the same photo oneach page then choose Multiple of the same photo per page
    ClickPrint on the bottom right
    Newwindow pops up
    If the arrow (triangle) to the right is pointingdown click it so it points up and displays additional options
    Choose number of copies (pages to print)
    ClickPrint

  • How to print multiple copies on one page ?

    How to print multiple copies of one document on one page ?
    in coreldraw I used to make the document -for example a business card 5x9 - and when sending to print it automatically placed the number of cards that would fit in my A4 sheet.
    how do I make the same operation in Indesign.
    thanks

    Hi, Peter S.
    >I can see that as a shortcut to printing a page of different cards for multiple people, but to do a simple n-up of a single card it seems overly complex to me. What am I missing?
    * It's just an alternative to copy/paste and step/repeat.
    * For a one-time only use, perhaps it's a little more complex than necessary. But for any future needs, only the content of the data file needs to be changed, either by editing, or by pointing to a new data file. If different cards for multiple people becomes necessary, it's ready to go.
    Regards,
    Peter Gold
    KnowHow ProServices

  • Can you have multiple clickboxes on one page

    Sorry... a few complicated things are coming up. I am doing a
    large project with LOTS of interactivity, which involves simulating
    a customer filling in a form and then clicking a button to move on.
    So one one page I have both a Text Entry box, and sometimes also a
    click box.
    I made the Text Entry box action "none," and put the "go to
    next" on the click box action.
    Now my boss wants two more links added to each and every
    page... a TABLE OF CONTENTS button, and also a NEXT PAGE button.
    When I added these two additonal buttons, it seems to be confusing
    Captivate.
    This is understandable, as Captivate is probably thinking
    "what the heck do you want me to do first."
    What I need to know is (a) is it possible to have multiple
    Interaction buttons or clickboxes on the same page, each doing a
    different thing; and (b) if so... how???
    (Secretly I hope the answer is NO because it will simplify my
    life tremendously).
    Thank you, QuizQueen

    Hi again QuizQueen
    Of course you may have multiple Buttons or Click Boxes on a
    single slide and have each do something different when the user
    clicks. It's all in how you configure the Buttons or Click Boxes.
    Personally I think it's easier if you use Click Boxes as I
    believe them to be more flexible.
    Often what is missed is a specific setting. When you look at
    the Options tab of the Click Box properties, you should see a
    button with a down arrow. This button is located to the immediate
    right of where you would type a URL. Click that button and you
    should see an option to open the destination in a new window. But
    click again and you see another option that is easily missed. This
    would be the option to "Continue playing project". That one is
    easily missed because it was in a disabled state (grayed out)
    initially. So if you DE-select this option, the Click Box or Button
    will carry out its assigned action without releasing the pause on
    the slide.
    Hopefully that helps you better understand it.
    Cheers... Rick

  • Can you display multiple photos on one page with slide tool to transition between them?

    Hi Folks,
    I have a series of photos taken from the exact same location but on different days. I would like to display them on one page but use a slide tool/bar to move or transition between the photos. If the slide bar can display the date of the photo then that would be great.
    Can this be done in adobe?
    Any help would be great.
    Thanks.

    A Steve mentioned you can use a button to display an image. If you use JavaScript, you wouldn't have to show/hide multiple buttons but could instead dynamically set the button icon programmatically. The setup for something like this is a bit involved, but it's not overly complicated. Post again if you'd like more details.
    The slide bar is the thing that would have to faked as there is no such built-in control, but something functionally equivalent could be done, it just may not behave as smoothly as you want.

  • Multiple Slideshows On One Page

    Hi, I'm wanting to have a dynamic region which consists of 4
    images with fixed sizes. I then want each of these images to run
    through a dataset of image paths fading between each image at a set
    interval (Much like the Spry Photo Gallery Slideshow does).
    I've edited the photogallery down to just the fixed size
    image fading between the dataset (e.g. I removed the thumbnails and
    controls etc so that it is automatic and continuous).
    Unfortunatelly my JavaScript skills are limited and I was
    wondering what would be involved to edit the script further to
    allow me to have 4 of these slideshows on one page instead of just
    the one 'mainImage'.
    Thanks for any help.

    I'm not entirely sure how you mean to achieve this via css?
    here's my current code. With this I can generate multiple
    slideshows (currently using the same dataset) however only the
    first one seems to acknowledge the defined fixed image sizes, the
    rest display the original image dimensions within the container
    sized to the defined dimensions. How come the images don't resize
    for both? I'm calling the same function. Any help much appreciated
    thanks.
    // My Xml
    <features>
    <set id="1">
    <cover id="0" path="pics/to/image1.jpg" alt="image
    description" />
    <cover id="2" path="pics/to/image2.jpg" alt="image
    description" />
    </set>
    <set id="2">
    <cover id="0" path="pics/to/image3.jpg" alt="image
    description" />
    <cover id="2" path="pics/to/image4.jpg" alt="image
    description" />
    </set>
    </features>
    // My Index.php
    <!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>Gallery</title>
    <link href="../css/screen.css" rel="stylesheet"
    type="text/css" />
    <script type="text/javascript"
    src="../../includes/xpath.js"></script>
    <script type="text/javascript"
    src="../../includes/SpryData.js"></script>
    <script type="text/javascript"
    src="../../includes/SpryEffects.js"></script>
    <script type="text/javascript">
    var dsFeatures = new
    Spry.Data.XMLDataSet("../../../../../xml/xml_Features.php",
    "features/set/cover");
    </script>
    <script src="gallery.js"
    type="text/javascript"></script>
    </head>
    <body id="gallery">
    <div id="wrap">
    <div id="previews" style="display: none;">
    <div id="thumbnails" spry:region="dsFeatures">
    <div spry:repeat="dsFeatures"> <img id="{id}"
    alt="{@alt}" src="../../../../../{@path}" width="24" height="24"
    style="left: 0px; right: 0px;" /> </div>
    <p class="ClearAll"></p>
    </div>
    </div>
    <div id="picture">
    <div id="mainImageOutline" style="width: 0px; height:
    0px;">
    <img id="mainImage" alt="Click to view product details"
    onmouseover="if (gSlideShowOn) StopSlideShow();" onmouseout="if
    (!gSlideShowOn) StartSlideShow();" />
    </div>
    <div id="mainImageOutline" style="width: 0px; height:
    0px;">
    <img id="mainImage2" alt="Click to view product details"
    onmouseover="if (gSlideShowOn) StopSlideShow();" onmouseout="if
    (!gSlideShowOn) StartSlideShow();" />
    </div>
    </div>
    <p class="clear"></p>
    </div>
    </body>
    </html>
    // gallery.js
    // Global variables:
    var gThumbWidth;
    if (gThumbWidth == undefined)
    gThumbWidth = 24;
    var gThumbHeight;
    if (gThumbHeight == undefined)
    gThumbHeight = 24;
    var gSlideShowInterval;
    if (gSlideShowInterval == undefined)
    gSlideShowInterval = 3000; // msecs between images.
    var gAutoStartSlideShow;
    if (gAutoStartSlideShow == undefined)
    gAutoStartSlideShow = true;
    var gBehaviorsArray = [];
    var gSlideShowOn = false;
    var gSlideShowTimer = null;
    var gImageLoader = null;
    // Register a callback on the dsFeatures data set so we can
    turn
    // off the slide show before it attempts to load new data.
    dsFeatures.addObserver(function(nType, notifier, data) {
    if (nType == "onPreLoad")
    StopSlideShow();
    // Register a callback on the thumbnails region so we can
    show the first
    // image in the data set after all the thumbnails have
    loaded.
    Spry.Data.Region.addObserver("thumbnails", function(nType,
    notifier, data) {
    if (nType == "onPostUpdate")
    ShowCurrentImage();
    if (gAutoStartSlideShow)
    StartSlideShow(true);
    // Trigger the transition animation from the current image
    // being displayed to the image at imgPath.
    function SetCover(imgPath, width, height, div)
    var img = document.getElementById(div);
    if (!img)
    return;
    CancelBehavior(div);
    gBehaviorsArray[div] = new Spry.Effect.Opacity(img,
    Spry.Effect.getOpacity(img), 0, { duration: 400,
    finish: function()
    gBehaviorsArray[div] = new Spry.Effect.Size(img.parentNode,
    Spry.Effect.getDimensions(img.parentNode), { width: width, height:
    height, units:"px"}, {duration: 400,
    finish: function()
    // Use an image loader to make sure we only fade in the new
    image after
    // it is completely loaded.
    gImageLoader = new Image();
    gImageLoader.onload = function()
    img.src = gImageLoader.src;
    gImageLoader = null;
    gBehaviorsArray[div] = new Spry.Effect.Opacity(img, 0, 1, {
    duration: 400,
    finish: function()
    gBehaviorsArray[div] = null;
    // Our new image is fully visible now. If the slide show
    // is on, fire off the timer for the next image.
    if (gSlideShowOn)
    SetSlideShowTimer();
    gBehaviorsArray[div].start();
    gImageLoader.src = imgPath;
    gBehaviorsArray[div].start();
    gBehaviorsArray[div].start();
    // Cancel the animation behavior of the object with the given
    id.
    function CancelBehavior(id)
    if (gBehaviorsArray[id])
    gBehaviorsArray[id].cancel();
    gBehaviorsArray[id] = null;
    // Show the image of the current selected row inside the
    dsPhotos data set.
    function ShowCurrentImage()
    var curRow = dsFeatures.getCurrentRow();
    SetCover("../../../../../" +
    dsFeatures.getCurrentRow()["@path"], 150, 180, "mainImage");
    SetCover("../../../../../" +
    dsFeatures.getCurrentRow()["@path"], 200, 300, "mainImage2");
    //SetCover("../../../../../" +
    dsFeatures.getCurrentRow()["@path"], 120, 150, "mainImage3");
    //SetCover("../../../../../" +
    dsFeatures.getCurrentRow()["@path"], 120, 150, "mainImage3");
    // Utility function to advance (forwards or backwards) the
    current selected row
    // in dsFeatures. This has the side effect of "selecting" the
    thumbnail and image
    // of the new current row.
    function AdvanceToNextImage(moveBackwards)
    var rows = dsFeatures.getData();
    var curRow = dsFeatures.getCurrentRow();
    if (rows.length < 1)
    return;
    for (var i = 0; i < rows.length; i++)
    if (rows
    == curRow)
    if (moveBackwards)
    --i;
    else
    ++i;
    break;
    if (!moveBackwards && i >= rows.length)
    i = 0;
    else if (moveBackwards && i < 0)
    i = rows.length - 1;
    curRow = rows;
    dsFeatures.setCurrentRow(curRow["ds_RowID"]);
    ShowCurrentImage();
    function SetSlideShowTimer()
    KillSlideShowTimer();
    gSlideShowTimer = setTimeout(function(){ gSlideShowTimer =
    null; AdvanceToNextImage(false); }, gSlideShowInterval);
    function KillSlideShowTimer()
    if (gSlideShowTimer)
    clearTimeout(gSlideShowTimer);
    gSlideShowTimer = null;
    // Start the slide show that runs forwards through all
    // the rows in dsPhotos.
    function StartSlideShow(skipTimer)
    gSlideShowOn = true;
    if (!skipTimer)
    SetSlideShowTimer();
    // Kill any slide show that is currently running.
    function StopSlideShow()
    gSlideShowOn = false;
    KillSlideShowTimer();
    Also if someone could explain how i could set the dataset for
    each image(coverImage) to be for each <set id=""> that would
    be great.
    Thanks for any help you can provide.

Maybe you are looking for

  • Daylight saving and alarm

    Daylight savings time stared today and the alarm on my Z3v was correctly set to 0730. The alarm didn't go off though until 0830. I did set the alarm with google now, but around 8 o'clock i also checked the Alarm and Clock app and verified the correct

  • Add playlist in inside of the osmf player

    Hi All, How to add Playlist in inside of the osmf player?.I want to see that playlist in Normal and Fullscreen mode.please guide me. Thanks in advance.

  • Shared Members in Report

    Hi All, I selected level 0 members of a dimension in the report in the row. But that dimension having the shared hierarchy. My requirement is to supress the shared hierarchy because report is showing the same member twice. How can I supress the share

  • Driver for NM2200 chipset on Solaris 8, IA

    Hi, Does anyone know about a driver for NM2200 (Neomagic AGP video+soundcard) on solaris 8. I'm trying to install Solaris 8 7/2001 on a Toshiba Tecra 8000. Any help will be greatly appreciated. thanks, Dwai.

  • How do I paste a url into an RSS reader?

    A blog I like said, "To subscribe to this blog, right-click the orange RSS button and paste the url into your RSS reader." I see the RSS button, but don't know what an RSS reader is."