Load photo from 2 different data sets

I have 2 different data sets in an accordian widget, one set
of data in each collapsible panel. Panel 1 has 2007 data and panel
2 has 2006 data. I have one photo displayed on the page. The photo
changes for each data row clicked on.
Code for the record link is:
<tr spry:when="{ds_RowID} == {ds_CurrentRowID}"
class="even" spry:setrow="email2007" spry:hover="rowHover"
spry:select="rowSelected" spry:selected="selected">
The code for loading the photo is:
<p spry:detailregion="email2007" id="emailshot"><img
src="{emailimage}" alt="Email Screen Shot" />
The photo will
not change when it accesses "email2006" data because the
spry:detailregion is hard coded. How can I overcome this? Set a
variable for the detailregion?

So this is what I was trying to describe in my intial
response:
<!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>
<script src="../SpryAssets/xpath.js"
type="text/javascript"></script>
<script src="../SpryAssets/SpryData.js"
type="text/javascript"></script>
<script src="../SpryAssets/SpryAccordion.js"
type="text/javascript"></script>
<script type="text/javascript">
<!--
var dsChina = new
Spry.Data.XMLDataSet("../labs/Spry_P1_4_12-14/demos/gallery/galleries/china/photos.xml",
"gallery/photos/photo");
var dsEgypt = new
Spry.Data.XMLDataSet("../labs/Spry_P1_4_12-14/demos/gallery/galleries/egypt/photos.xml",
"gallery/photos/photo");
var imgMode = 0;
//-->
</script>
<link href="../SpryAssets/SpryAccordion.css"
rel="stylesheet" type="text/css" />
</head>
<body>
<div id="Accordion1" class="Accordion" tabindex="0">
<div class="AccordionPanel">
<div class="AccordionPanelTab">China</div>
<div class="AccordionPanelContent"
spry:region="dsChina">
<img spry:repeat="dsChina"
src="../labs/Spry_P1_4_12-14/demos/gallery/galleries/china/thumbnails/{@thumbpath}"
width="32" height="32" onclick="imgMode = 0;" spry:setrow="dsChina"
/>
</div>
</div>
<div class="AccordionPanel">
<div class="AccordionPanelTab">Egypt</div>
<div class="AccordionPanelContent"
spry:region="dsEgypt">
<img spry:repeat="dsEgypt"
src="../labs/Spry_P1_4_12-14/demos/gallery/galleries/egypt/thumbnails/{@thumbpath}"
width="32" height="32" onclick="imgMode = 1;"
spry:setrow="dsEgypt"/>
</div>
</div>
</div>
<div spry:detailregion="dsEgypt dsChina">
<img spry:if="imgMode == 0"
src="../labs/Spry_P1_4_12-14/demos/gallery/galleries/china/images/{dsChina::@path}"
/>
<img spry:if="imgMode == 1"
src="../labs/Spry_P1_4_12-14/demos/gallery/galleries/egypt/images/{dsEgypt::@path}"
/>
</div>
<script type="text/javascript">
<!--
var Accordion1 = new Spry.Widget.Accordion("Accordion1");
//-->
</script>
</body>
</html>
--== Kin ==--

Similar Messages

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

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

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

  • Can't load thumbnail photo from file 'BBThumbs.dat'

    Hi everybody,
    I'm developing an application on BB to take and view photo. My problem is can't load the thumbnail photos from file 'BBThumbs.dat'. I'm using code as below:
    public byte[] getThumb(String fileName) {
    String DB = fileName.substring(0, fileName.lastIndexOf('/'))
    + "/BBThumbs.dat";
    fileName = fileName.substring(fileName.lastIndexOf('/') + 1, fileName
    .length());
    if (thumbsMap == null) {
    thumbsMap = new Hashtable();
    byte b[] = null;
    FileConnection fc = null;
    InputStream in = null;
    try {
    fc = (FileConnection) Connector.open(DB, Connector.READ);
    if (!fc.exists()) {
    return null;
    byte[] temp=new byte[(int)fc.fileSize()];
    in = fc.openInputStream();
    DataInputStream is=new DataInputStream(in);
    // b = getThumbNail(first, thumbsMap, fileName, in);
    is.readFully(temp);
    b=readThumbs(temp, fileName);
    } catch (Exception e) {
    } finally {
    if (fc != null) {
    try {
    fc.close();
    } catch (Exception e) {
    if (in != null) {
    try {
    in.close();
    } catch (Exception e) {
    return b;
    please give my any idea or suggestions. Thanks 

    Try:
    !Section=Dimensions
    'Name;DimensionClass;DimensionAlias;CustomDimensionID
    SKU;Generic;;
    !Members=SKU
    'Name;DataType
    Brand1;Unspecified
    Brand2;Unspecified
    !Hierarchies=SKU
    'Parent;Child;DataStorage
    #root;Brand1;StoreData
    #root;Brand2;StoreData
    Tho I would add MemberValidForPlan#;Plan#Aggregation, where # is a number of your application which this member is valid for or even has a specific aggregation, as well
    example:
    !Hierarchies=SKU
    'Parent;Child;DataStorage;MemberValidForPlan1;MemberValidForPlan2;MemberValidForPlan3;Plan1Aggregation;Plan2Aggregation;Plan3Aggregation;UDA
    #root;Brand1;StoreData;Y;Y;Y;+;+;+;
    #root;Brand2;StoreData;Y;Y;Y;+;+;+;
    Even more as an idea use pipes, maybe.
    But you will need to say something about Aliases as well if this is a planning application.

  • How to find a selection of photos taken at different dates but imported together. I want them in the same album but they're no longer in the "last import" album.

    I imported a bunch of photos taken at different dates that i wanted to group together in the same album but they are not in the "last import" album and are all just mixed in with "all photos" according to the dates they were taken and it's impossible to sift through them all to select the ones i wanted.

    Sorry I'm terrible at explaining and even using my macbook haha. Let me try again. I imported some photos that I wanted to group together into an album. I forgot to create the album before importing a new set of photos which then took the place of the previous ones in the "last import" album. Is there anywhere or any way I can easily find the selection of photos I forgot to put into an album together without having to select them one by one from the "all photos" section? These would be the only pictures in my Photos application that haven't been organized into an album yet if that helps; however, these photos were not taken on the same date.

  • How to Create a new column from two different result sets

    How to Create a new column from two different result sets, both the result set uses the different date dimensions.

    i got solutions for this is apply filters in column formula it self, based on the requirement.

  • I am trying to load photos from my computer on to my ipad but keep getting the message "the device is no longer connected to the computer. It keeps popping up and I am stuck. This happened after I upgraded to the latest itunes

    I am trying to load photos from my computer on to my ipad but keep getting the message "the device is no longer connected to the computer". It keeps popping up and I am stuck. This happened after I upgraded to the latest itunes software.

    Greetings cdewinkel,
    It seems your iPad is not staying connected to your computer during syncing. The following article provides a number of troubleshooting steps which may help. This article is intended for devices which are not being detected, but the troubleshooting steps are relevant to your issue:
    If you don't see your connected device in iTunes for Mac - Apple Support
    Make sure that your device is on
    Also make sure that you can get to the Home screen.
    Get help if you have one of these issues:
    Your iOS device won't respond or turn on.
    Your iPod won't turn on.
    You forgot your passcode or your device is disabled.
    Make sure that your Mac supports your device
    See the system requirements for iPhone, iPad, or iPod.Check your USB connections
    Unplug other USB devices from your Mac and try again.
    Try a different USB port.
    Try a different USB cable. 
    Learn more about using USB cables with your Mac.Make sure that your device trusts the computer
    You might get an alert if you haven't connected your iOS device to this computer before. Unlock your device and tap Trust. 
    Learn more about the Trust This Computer alert.Restart your device
    Restart your iOS device or reset your iPod.Restart your Mac
    Turn your Mac off and back on.Update your software
    Check for software updates on your Mac.
    Check for an iTunes update.
    Check your security software
    If you have security software installed, learn how to resolve issues between iTunes and your security software. 
    Get more help
    If you still don't see your device in iTunes, contact Apple Support.
    Thank you for contributing to Apple Support Communities.
    Best,
    Bobby_D

  • Down loading photos from PC to playbook

    Hi everyone I have just got myself a Playbook 16G. I am having big problems down loading photos from my Imac PC unto the Playbook. I down loaded the software and the screen I get up which shows the photos I have stored on the PC come up in a numerical order with a tick box beside them, I really can see whats on the photo and my selection wont work unless I select all and even when I tick the boxes the system wants to download the lot. Anyway I stopped the downloading and now when I try again to pick individual photos it wont let me and I get a message up saying it cant find the place to store the photos??I have taken the desktop software out and reloaded it and still get the same unfriendly screen and the same message that it cant find the storeage in Playbook. Anybody out there able to help me with this problem? I have tried the usb to on etc but to no avail also noticed that the desktop software freezes my PC up sometimes and I have to shut it down at the PC power switch??? Best regards Gerry 
    Solved!
    Go to Solution.

    In your PC go to  window explorer, your main hard drive, mine is  C . Then below you will see in your usb port a Z and number beside it.
    click the z port and all the data in there will show up.
    Just drag the pictures you want in to the picture file.  The same is for music, just drag the list of songs you want into the music file.

  • IPhoto doesn´t work after trying to load photos from iphone with newer version. Help!!!!!

    First, I do not have a recent back-up of my iPhoto Library. (But, I learned my lesson for next time). When I tried to load photos from my super duper up to date software I-phone to my outdated iPhoto on the computer (only version 8.1.2), a message came that I cannot open your Mediateck with this version of iPhoto,. You have changed your mediathek with a newer version of iPhoto.
    (in German, because I am writing from Germany "Sie konnen ihre aktuelle Mediathek nicht mit dieser Version von iPhoto öffnen. Sie haben Ihre Mediathek mit einer neueren version von iPhoto geändert").
    How can I save all the baby pictures of my 3 kids??Help

    Did you update iPhoto?
    If not:
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new iPhoto 08 library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.

  • IMovie '09 Won't Load Photos from iPhoto

    I recently upgraded to iLife '09 at work and at home. My iMac at wok does fine with the up grade but iMovie on my intel based MacBook Pro won't load photos from iPhoto. Anyone else have this problem or can suggest what my problem may be? My software is up to date and other programs are working OK.

    Hello, i have also had the same issue. Basically when i click on the photo icon in imovie 09 the library doesn't show,it's just blank but also my itunes library isn't showing up either. The only way i can get photos and music into imovie is by dragging them into imovie but thats not the way the program is meant to work and would also like to fix this issue. Any help would be greatly appreciated.

  • Why has my iPad1 stopped loading photos from my camera?  I have 40G of free space.

    Why has my iPad1 stopped loading photos from my camera?  I have >40G of free space.  It worked fine the first 3 times and then stopped.  I also tried the SD card adapter and it doesn't recognize it either.

    Are you using iCloud photo library beta.
    Are any of your photos actually video.

  • How do I calculate days from two different dates?

    Hi all,
    How do I calculate days from two different dates?
    my requirement is to pass the number of days to target field from two dates.
    Current date :  14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out  udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

  • How do I calculate days from two different dates in XI/PI?

    Hi all,
    How do I calculate days from two different dates in XI/PI?
    my requirement is to pass the number of days to target field from two dates.
    Current date : 14/04/2010
    Standard date: 01/01/1957 is the standard = day 0
    Is it possible in graphical mapping with out udf?
    Plz help me on this I have donu2019t have much knowledge on JAVA.
    Thanks

    Hi Yadav,
    Probably this is not the correct forum for XI / PI .
    You can post the same to...
    Process Integration (PI) & SOA Middleware
    Hope this helps.
    Regards
    Raj

  • How to calculate AGE from two different date fields

    hi
    I need to calculate AGE from two different date fields.
    Can some help me how to do, when i try to do substraction formula it is showing error.
    Thank You
    Manu

    Manu wrote:
    Hi
    Both fields are in date format only, i need to calculate no . of days between two different dates
    Thanks
    ManuThe reason for the question about the format of the column is because the simplest solution only works on DATE columns. Others have mentioned this here, but if you want the difference between two date fields, you can use this formula:
    TIMESTAMPDIFF(SQL_TSI_DAY, date_column1, date_column2)
    The above being said, you still didn't tell me what you did, or what error message you received. So again, if the above formula didn't work, what did you do? Where did you put the formula? What was the exact syntax you used? What was the error message you got?
    Please don't make us work more than we need to. Answer all the questions in your next post. Thanks.

  • Aperture 2.1.2: Can't import the loaded photos from card reader...

    All of a sudden when loading photos from a card reader into a folder in Aperture 2.1, I fail to "OPEN" neither a NUMBER of them, nor ALL of them...Any suggestions please....Mamster37+

    Hi Tony, thanks again for your readiness to help. Have tried out the suggestion in the second paragraph of your thread, same result as you. That means when first taking the photos from the card reader to the desktop and then IMPORTING them from there into Aperture, there is NO problem. But when from inside Aperture, using Aperture's load/import feature from the card reader, it will NOT work! However, I have found out that the problem seems to be related to RAW-files only (in my case Nikons "NEF-files"), jPEGS open/import fine that way. My possible conclusion: in the light of the rather many recent adjustments/upgrades of various RAW-converters - lately also within Photoshop CS4 - I put myself the question as to whether the latter "Camera Raw-converter" might have overruled the converter of Apples Operating system, or that of Aperture. There seem to be a "collision" somewhere...What do you or other readers of this thread mean about my findings? Oeksen37+

  • I am unable to load photos from a digital camera

    With  a new version of iPhoto (9.2.3) just downloaded onto a MacBook Pro runnning 10.6.8, i cannot load photos from a digital camera - - its says loading but nothing happens even after an hour or so when the camera battery dies - It worked fine from an iphone but only after various repairs as suggested on other posts. I have carried out disk repairs and deleted plists. Can anyone help?

    Terence
    Thanks for your input
    I was able to drag all the folders over and tried importing from desktop. This showed that the very first photo file was empty and iPhoto wouldn't recognise it. The rest transfered over again and I was able to clear content of the SD card
    (BTW, surely iPhoto should say the file can't be imported rather than hanging up indefinitely, as an older version would have done. Whilst I am a Mac fan, it's taken me around 8 hours to get iphoto loading images, around 3 to get them off an iPhone 3G - with the old version this was never a problem)

Maybe you are looking for