Spry:selected highlights last row and not default

I've seen people post this error, but I'm not finding any simple fixes for this. I'm in Dreamweaver CS4 and I have inserted a spry dataset: Here is my 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=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 thur = new Spry.Data.HTMLDataSet("thursday.html", "sprydata");
var fri = new Spry.Data.HTMLDataSet("friday.html", "sprydata");
var sat = new Spry.Data.HTMLDataSet("saturday.html", "sprydata");
//-->
</script>
</head>
<body>
<div class="MasterDetail">
  <div spry:region="thur" class="MasterContainer">
    <div class="MasterColumn" spry:repeat="thur" spry:setrow="thur" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected" spry:selected="MasterColumnSelected" spry:selectgroup="l"  spry:selectedgroup="1">{Activity}</div>
  </div>
  <div spry:detailregion="thur" class="DetailContainer">
    <div class="DetailColumn">{Time}</div>
    <div class="DetailColumn">{Activity}</div>
    <div class="DetailColumn">{Leaders}</div>
    <div class="DetailColumn">{Location}</div>
    <div class="DetailColumn">{Fee}</div>
    <div class="DetailColumn">{Description}</div>
    <div class="DetailColumn">{Flag}</div>
  </div>
  <br style="clear:both" />
</div>
<div class="MasterDetail">
  <div spry:region="fri" class="MasterContainer">
    <div class="MasterColumn" spry:repeat="fri" spry:setrow="fri" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected" spry:selected="MasterColumnSelected" spry:selectgroup="2"  spry:selectedgroup="2">{Activity}</div>
  </div>
  <div spry:detailregion="fri" class="DetailContainer">
    <div class="DetailColumn">{Time}</div>
    <div class="DetailColumn">{Activity}</div>
    <div class="DetailColumn">{Leaders}</div>
    <div class="DetailColumn">{Location}</div>
    <div class="DetailColumn">{Fee}</div>
    <div class="DetailColumn">{Description}</div>
    <div class="DetailColumn">{Flag}</div>
  </div>
  <br style="clear:both" />
</div>
<div class="MasterDetail">
  <div spry:region="sat" class="MasterContainer">
    <div class="MasterColumn" spry:repeat="sat" spry:setrow="sat" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected" spry:selected="MasterColumnSelected" spry:selectgroup="3"  spry:selectedgroup="3">{Activity}</div>
  </div>
  <div spry:detailregion="sat" class="DetailContainer">
    <div class="DetailColumn">{Time}</div>
    <div class="DetailColumn">{Activity}</div>
    <div class="DetailColumn">{Leaders}</div>
    <div class="DetailColumn">{Location}</div>
    <div class="DetailColumn">{Fee}</div>
    <div class="DetailColumn">{Description}</div>
    <div class="DetailColumn">{Flag}</div>
  </div>
  <br style="clear:both" />
</div>
</body>
</html>
When I added the spry:selected function it highlighted the last row in the master column, versus the first row, for which it's displaying details in the details region. Am I missing a small bit of simple code?

Alright, I got it working...
This is for multi spry datasets (3 on one page: thur, fri and sat), highlighting the default (first) selected row/record on the left master list (which is the Dreamweaver CS4 default for master/detail, but it doesn't automatically highlight it as "selected") of EACH dataset (using spry:selectgroup and spry:selectedgroup).
The only variables that you would change are the following:
- all the thur, fri, and sat (as in spry:region="thur")
- all the group numbers (as in spry:selectgroup="1")
- all the items in {} (as in {Activity})
- of course all the file names (as in "thursday.html")
All the class names (as in "MasterColumnHover") are all the Dreamweaver CS4 defaults.
<!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 thur = new Spry.Data.HTMLDataSet("thursday.html", "sprydata");
var fri = new Spry.Data.HTMLDataSet("friday.html", "sprydata");
var sat = new Spry.Data.HTMLDataSet("saturday.html", "sprydata");
//-->
</script>
</head>
<body>
<div class="MasterDetail">
<div spry:region="thur" class="MasterContainer">
        <div spry:repeat="thur" spry:choose="choose">
          <div spry:when="{ds_RowID} == {ds_CurrentRowID}" class="MasterColumn" spry:setrow="thur" spry:hover="MasterColumnHover" spry:selected="selected" spry:selectedgroup="1" spry:select="MasterColumnSelected" spry:selectgroup="1">{Activity}</div>
            <div spry:default="default" class="MasterColumn"  spry:setrow="thur" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected" spry:selectgroup="1">{Activity}</div>          
</div></div>
   <div spry:detailregion="thur" class="DetailContainer">
    <div class="DetailColumn">{Time}</div>
    <div class="DetailColumn">{Activity}</div>
    <div class="DetailColumn">{Leaders}</div>
    <div class="DetailColumn">{Location}</div>
    <div class="DetailColumn">{Fee}</div>
    <div class="DetailColumn">{Description}</div>
    <div class="DetailColumn">{Flag}</div>
  </div>
  <br style="clear:both" />
</div>
<div class="MasterDetail">
<div spry:region="fri" class="MasterContainer">
        <div spry:repeat="fri" spry:choose="choose">
          <div spry:when="{ds_RowID} == {ds_CurrentRowID}" class="MasterColumn" spry:setrow="fri" spry:hover="MasterColumnHover" spry:selected="selected" spry:selectedgroup="2" spry:select="MasterColumnSelected" spry:selectgroup="2">{Activity}</div>
            <div spry:default="default" class="MasterColumn"  spry:setrow="fri" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected" spry:selectgroup="2">{Activity}</div>          
</div></div>
  <div spry:detailregion="fri" class="DetailContainer">
    <div class="DetailColumn">{Time}</div>
    <div class="DetailColumn">{Activity}</div>
    <div class="DetailColumn">{Leaders}</div>
    <div class="DetailColumn">{Location}</div>
    <div class="DetailColumn">{Fee}</div>
    <div class="DetailColumn">{Description}</div>
    <div class="DetailColumn">{Flag}</div>
  </div>
  <br style="clear:both" />
</div>
<div class="MasterDetail">
<div spry:region="sat" class="MasterContainer">
        <div spry:repeat="sat" spry:choose="choose">
          <div spry:when="{ds_RowID} == {ds_CurrentRowID}" class="MasterColumn" spry:setrow="sat" spry:hover="MasterColumnHover" spry:selected="selected" spry:selectedgroup="3" spry:select="MasterColumnSelected" spry:selectgroup="3">{Activity}</div>
            <div spry:default="default" class="MasterColumn"  spry:setrow="sat" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected" spry:selectgroup="3">{Activity}</div>          
</div></div>
  <div spry:detailregion="sat" class="DetailContainer">
    <div class="DetailColumn">{Time}</div>
    <div class="DetailColumn">{Activity}</div>
    <div class="DetailColumn">{Leaders}</div>
    <div class="DetailColumn">{Location}</div>
    <div class="DetailColumn">{Fee}</div>
    <div class="DetailColumn">{Description}</div>
    <div class="DetailColumn">{Flag}</div>
  </div>
  <br style="clear:both" />
</div>
</body>
</html>

Similar Messages

  • How to restrict the last record and not moving to next reocrd

    1) how to restrict the last record and not moving to next reocrd.
    2) Also for the F6 key(for new record).

    When you are on the last record, next-record will create a new one, so that my question is do you want to forbid new record creation.
    Francois

  • I've bought the season 1 of "The Wire" (7episodes), when I synchronize with my PC, it only charge the first and last episodes and not the 5 episodes in between ??

    I've bought the season 1 of "The Wire" (7episodes), when I synchronize with my PC, it only charge the first and last episodes and not the 5 episodes in between ??

    Hello spinozette,
    I am sure you are eager to download and watch Season 1 of The Wire.  I found a couple of resources that might help with downloading this purchase.
    First, I recommend checking to see if the download was interrupted.  You can use the steps in this article:
    iTunes: How to resume interrupted iTunes Store downloads
    http://support.apple.com/kb/HT1725
    If the episodes do not download after following the steps in that article, I recommend trying to download the episodes from the list of past purchases. You can find the steps to do this in the section titled "Apps, Books, Music, Movies, or TV shows on a computer" in the following article:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    If you are still not able to download the rest of the season, I recommend reporting this issue to the iTunes Store:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBooks Store purchase
    http://support.apple.com/kb/HT1933
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • HT3412 impossible to download my book ! I-photo 11 worked last month and not anymore.Download stops in the middle.

    I-photo 11 worked last month and not anymore.Download stops in the middle.I have to shut MAc down and restart to debug.
    What's wrong ?

    Here's a fix that worked for some users:
    Make sure this checkbox is checked in the System/Sharing preference pane:
    If it is, uncheck it and then recheck and try ordering again.

  • How do you select n rows and not the whole table

    Hi
    I would like to only select the first 50 rows from a table and not the entire table. how do i accomplish this
    Thanks

    Sayeed's example will work great if you don't care which 50 rows you get back. If you do, you can use an inline view to sort them first and get back a ranked result set:
    select *
      from (select whatever
            from table
           order by key desc
    where rownum <= 50

  • Selecting first 15 rows and displaying next 15

    I wish to select the first 15 rows from my database and then have an option select a next page, whereby the next 15 rows are displayed. I'm not sure how to go about it, could someone enlighten me. For reference, it would be something like how the forums is done, whereby they display x amount of threads, and you would have to go to the next page.

    This can be done by retrieving the first 15 using something like rownum <= 15 in the where clause.
    Then, by remembering the ID of the last thread that was displayed you select threads id > lastID and rownum <= 15... that is the first 15 rows that match your query starting immediately after the last thread searched.
    It's not unusual to retrieve and store a list of the Thread IDs completely as this allows a more stable feedback at the expense of heavier session information being stored.
    Hope that helps
    Talden

  • BI-IP - Bex Analyser - select excel single row and aplly planning function

    Hi experts,
    In BI-IP (BW 7) with Bex Analyser, is it possible to select a single excel row (or a range of rows) and then apply a planning function? I know that in WAD it's possible with the binding option to select a single web item.
    The purpose is to apply a revaluation factor to selected (by the user) cost elements rows in the workbook.
    Thanks and regards,
    MA

    Hi
    It is possibel in WAD to select one or many rows while executing Functions such as--Reposting; Revaluation etc.
    However, you should be in a position to select the rows based on....unique identifier such as Require ID; Request #; Serial #; ....this is more so in case of multiple entries for the same cost element for different combinations.
    Regards
    Srinivas

  • Mail: how to download ONLY last emails and not the whole hotmail.

    Hi!
    Quick question: like what Mail does in iPhones/iPads, how can I configure Mail in my iMac or Macbook Pro so that it only downloads the last, say 50 emails and not the 4000 aprox. emails I have inside the hotmail (now outlook) server?
    I have been wanting to use mail for a long time but I can't seem to find that option. I only want to see the LAST EMAILS like what happens in the app on my iPhone.
    Thanks.

    unless there is a special setting in yahoo webmail interface that allows this (gmail pop has it for example), there is no way to do it. POP will download all available messages on the first download. that's how POP works. from there on it will only download new ones.

  • Is anyone else having battery lasting issues and not receiving iMessenger texts since the new update?

    Since updating my iPhone my battery doesent last a day and I'm not recieving alot of texts sent by people on iMessenger.
    Never had this problem before and not using my phone anymore than normal.

    I'm having no problem.

  • How to get last row and sum of all columns in one query

    Hi ,
    is there a way to get last record for a column and sum of all record for another column in the same query.
    Best Regards ,

    You should define your requirements properly for volunteers to help here..
    Your data is not good enough to provide you accurate solution. Reason being you dont have a proper column which differentiates between first and last entry.
    The solution becomes easy based on your desgin.
    I have introduced a grouping column called "id" and a time column called "time_of_insert" (only this way you can confidently say that you can differentiate between first and last (also a fool proof solution) --- you may optionally use sequence(instead of date though if you say you may end up inserting two rows at the same time, then probably sequence would be a better choice to differentiate rather than a timestamp field) etc...)
    With your sample data something like this can be done to achieve your desired result.
    WITH dataset AS
            (SELECT 1 id,10 used, 8 remain,systimestamp+1/24 time_of_insert FROM DUAL
             UNION ALL
             SELECT 1 id, 1, 7,systimestamp+2/24 FROM DUAL
             UNION ALL
             SELECT 1 id,2, 5,systimestamp+3/24 FROM DUAL
             UNION ALL
             SELECT 1 id,1, 0,systimestamp+4/24 FROM DUAL
             UNION ALL
             SELECT 1 id,0, 0,systimestamp+5/24 FROM DUAL
             UNION ALL
             SELECT 1 id,1, 4,systimestamp+6/24 FROM DUAL)
    SELECT *
      FROM (SELECT SUM (used) OVER () sum_all,
                   FIRST_VALUE (remain)
                      OVER (PARTITION BY id ORDER BY time_of_insert DESC)
                      last_row
              FROM dataset)
    WHERE ROWNUM = 1;
    Output:
    SUM_ALL       LAST_ROW
    15                  4
    Cheers,
    Manik.

  • Spry:repeat works in Mozilla and not IE 6

    I made this little test in Spry.
    It happens to work in Mozilla but not in Internet Explorer 6
    which is quite weird since I almost copy/pasted from one of the
    included examples (the example worked fine everywhere).
    Can anyone point me in the right direction please?
    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>
    <title>Club voleibol bargas</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <script language="JavaScript" type="text/javascript"
    src="scripts/spry/xpath.js"></script>
    <script language="JavaScript" type="text/javascript"
    src="scripts/spry/SpryData.js"></script>
    <script language="JavaScript" type="text/javascript">
    var dsNews = new
    Spry.Data.XMLDataSet("scripts/xml_noticias.php", "/allnews/news");
    </script>
    </head>
    <body>
    <div spry:region="dsNews">
    <div spry:repeat="dsNews">{header}</div>
    </div>
    </body>
    </html>
    The XML needed for this looks like this:
    <allnews>
    <news>
    <id>26</id>
    <header>Morbi mauris.</header>
    </news>
    <news>
    <id>23</id>
    <header>Lorem ipsum dolor sit amet</header>
    </news>
    <news>
    <id>8</id>
    <header>Proin convallis. Duis sed est ut ligula
    ullamcorper bibendum.</header>
    </news>
    </allnews>

    I spent days trying to figure it out and the minute I post it
    here the solution comes to me!
    The problem was that the XML file was being generated by a
    PHP script which was not outputting the appropriate headers.
    You can use:
    header('Content-Type: text/xml');
    Or use this other one if your charset is NOT US-ASCII:
    header('Content-Type: application/xml');

  • Purple Highlights - Really strong and not good

    What the heck is this and how do I make it go away? IR?? Sensor Flaw?  There is no pink or purple glitter or rocks or anything like that in the water.   Looked perfectly normal to the human eye with no purple highlights in the water. Fujinon 19-90 Cabrio - ND filter inside camera and ND.6 in front of lens - no pola or enhancer or IR filterF5 shooting XAVC  - 180 Fps   - Timebase 29.97 Thank you for any help.

    Hi, Mike, When I see purple [highlights or fringing], I think chromatic aberration. With all that ND in, you must have had a fairly wide aperture.  Wide apertures tend to exacerbate the combination of spatial and chromatic aberrations.  It's a torture test for lenses. Here is a link to a white paper by Canon about 4K optics and aberrations.http://www.usa.canon.com/CUSA/assets/app/images/cameras/cine_lenses/4k_optics/White-Paper-What-Constitutes-a-High-Performance-4K-Lens.pdf Is your Cabrio an early production model, or the newer release?  The early production examples were not claimed to be 4K lenses.  The newer release versions I have been assured are 4K quality. In one of the threads about the purple grid artefacts there is a good discussion about the conversion to 2K images from a 4K sensor.  Depending on the algorithm, flaws in the image can be exaggerated or diminished. Try Dennis' suggestion to remove the ND, and see if that mitigates the purple highlights problem. Best regards,
    WillPS. Fascinating, the link doesn't appear to be all there, but it works.

  • PDF opens in browser and not default application

    When i click on a pdf file in a document library, it opens in the same web page instead of Adobe reader. I've set the feature of open documents in default application but in vain.
    Any thoughts?
    Thanks a lot in advance

    Hi,
    From your description, I know you want to open SharePoint 2013 PDF files with default application.
    You could re-install your Adobe Reader, and then test this issue. Also, you can have test in another computer with Adobe Reader.
    If this issue is still exist, please refer to this article:
    https://social.technet.microsoft.com/Forums/lync/en-US/b6df4273-4769-4179-a831-ae5504b28f35/opening-pdfs-in-acrobat-9-pro-from-sharepoint-2013.
    Best Regards
    Vincent Han
    TechNet Community Support

  • SELECTing from multiple rows and different tables

    Basically, I have a table with a primary key and some other columns of data. The second table has a foreign key that points to the first table then has a columns with related data. I want to write construct a SQL query where one of the columns is the primary key from the first table and the second column is a concatenation of all the rows in the second table that have the same foreign key.
    I need this in the form of one SQL statement so that I can use it to create a report in Application Express

    Just in case my first post was a bit unclear.
    My first table has a primary key, INTERACTION_ID, and several other columns of data.
    My second table has a foreign key, INTERACTION_ID, and one extra column, USER_NAME.
    There are several rows in the second table that share the same INTERACTION_ID as each interaction can have many user names. I want to construct a SQL query where I pull the interaction id in one column and concatenate all the relevant rows of USER_NAME as the second column.

  • All mail from gmail and not default mail Help!

    Hello all, new boy here. Just upgraded to 3Gs
    transfered everythimg fine.
    My problem is: all the mail I send appears to be from
    my gmail account.
    When really I want it to go from my default
    account (telefonica ) I have two seperate telefonica
    accounts, a hotmail, a yahoo and a gmail
    account. The main telefonica account is
    ticked as the default but this seems to makeno difference
    any help or advice would be gratefully
    received! Mike T

    Do you have all of those accounts on your iPhone? In order to send mail from an account, it must be set up on the iPhone. When you create a new message from within the Mail app, the sending account will be whichever account you're currently accessing, unless you tap the field with the from/cc label, then tap the from field, then choose another account from the list.
    The 'default' setting only applies to email messages that are started from outside the Mail app (e.g. tapping on a clickable email address in Safari). That's stated right in the Settings.

Maybe you are looking for

  • I've downloaded an app. Will not open or show up anywhere.

    I've downloaded the Kreyos app. It does not show up. In the App store it show that I can "open" the app which does nothing. I've tried to sync with my map itunes. I know there are issues with the app at this time, but where is the app icon? 

  • Height of a Tile (or orther container) not changed after inserting nodes

    Hi, I am a javafx beginner and I'm struggeling with the size of the containers. Here is what I try to do: I am making a photo gallery in which an Album can contain subalbums and photos through which a user can scroll. The Album objects are stored in

  • Sync Podcasts in ipod 40gb

    Hi everyone... I have a 40gb ipod and able to transfer my music and photo to my ipod with no problem. BUT sync podcasts do not work. i have tried different options in ITUNES 7.2 such as: All, all new ...., tried manually transfer, Also right click on

  • Quarterly Return - Text file generation

    Hi While generating the text file in the Quarterly return for TDS, I see that there are lot of ^s and 0s in addition to the data items.  Is it the standard set or there should be only figures and data ? (I mean to ask there should not be any ^s and 0

  • RFC_ERROR_SYSTEM_FAILURE -Exception condition 'INCONSISTENCY' rasied .

    Hi I created a report with 'Calculated KeyFigure' and 'Restricted KeyFigure' . And i transported to BI-Quality System. Then i opened the query in BI-Quality Query Designer and try to see the 'Calculated KeyFigure' and 'Restricted KeyFigure' . And im