Spry:sort with thead

Hi All:
I have been trying to get spry:sort to work in a complex
table, but no matter what I try, the columns will not sort. As all
examples appear to show simple tables, I suspect this is the
problem. Has anyone got the sort function working on a complex
table? Sample code below.
Thanks for your advise.
Skip Keats
=================
Code sample:
<table cellspacing="1" summary="SDLC alphabetical listing
for A">
<caption>Alpha Listing: A</caption>
<col id="TemplateDocNameA" />
<col id="TemplateDocOwnerA" class="sdlcDocOwner" />
<col id="TemplateDocPhaseA" />
<col id="TemplateDocDescA" />
<thead>
<tr>
<th id="DocNameA"
spry:sort="SDLC_Template_Document_Name">Template Document
Name</th>
<th id="DocOwnerA" class="alignCenter">Document
Owner</th>
<th id="DocPhaseA">Phase</th>
<th id="DocDescA">Description</th>
<th id="DocLastModA" class="alignCenter"
spry:sort="SDLC_LastModified">Date Last Modified</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="5"><!-- #BeginLibraryItem
"/Library/SDLCTableFooterAlpha.lbi" -->Footer message.<!--
#EndLibraryItem --></td>
</tr>
</tfoot>
<tbody>
<tr spry:repeat="dsSDLC"
spry:test="'{SDLC_Template_Document_Name}'.charAt(0) == 'A'">
<th id="RA{ds_RowID}" headers="DocNameA"><a
href="{SDLC_Document_URL}" title="{SDLC_Template_Document_Name}:
{SDLC_Description}">{SDLC_Template_Document_Name}</a></th>
<td headers="RA{ds_RowID} DocNameA
DocOwnerA">{SDLC_Document_Owner}</td>
<td headers="RA{ds_RowID} DocNameA
DocPhaseA">{SDLC_Phase}</td>
<td headers="RA{ds_RowID} DocNameA
DocDescA">{SDLC_Description}</td>
<td headers="RA{ds_RowID} DocNameA
DocLastModA">{SDLC_LastModified}</td>
</tr>
</tbody>
</table>

Unfortunately an public url is not possible as this is for an
intranet site. However, I finally got it to work. For some reason,
a delay occurs within Firefox and IE when you click to sort.

Similar Messages

  • Spry Sort Not Working

    Spry Detail Repeat Region on my page and I have an XML
    database. In the database are webinars, complete with a "Date" tag.
    While the data does sort, it doesn't seem to recognize them
    as dates. For instance, the date 01/01/2007 would come before
    01/02/2008, while it should be sorting it with the most recent
    first.
    As a workaround, I've input the dates in the XML table as
    they should be ordered, but it's not optimal.
    The dates are entered in as:
    MM/DD/YYYY
    I've copied the relevant parts of the code below and would
    appreciate some help!
    Thank you,
    Dan
    <script src="../../../SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="../../../SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script src="../../../SpryAssets/SpryURLUtils.js"
    type="text/javascript"></script>
    <script src="../../../SpryAssets/SpryPagedView.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    //Define the Data Set
    var ds1 = new Spry.Data.XMLDataSet("webinars.xml",
    "news/article/Date",{sortOnLoad:"Date",sortOrderOnLoad:"ascending",distinctOnLoad:true});
    ds1.setColumnType("Date", "date");
    var pageOffset = 0;
    var pageSize = 29;
    var pageStop = pageOffset + pageSize;
    </script>
    <script type="text/javascript">
    //Get the URL parameter for the row number
    var ds1 = new Spry.Data.XMLDataSet("webinars.xml",
    "news/article", { filterFunc: MyPagingFunc });
    // webinarimage is not a valid date so you should not be
    // setting the column type for it.
    // ds1.setColumnType("webinarimage", "date");
    var params = Spry.Utils.getLocationParamsAsObject();
    if (params.row)
    ds1.addObserver({ onPostLoad: function(ds, type) {
    ds1.setCurrentRow(params.row); }
    function MyPagingFunc(ds, row, rowNumber)
    if (rowNumber < pageOffset || rowNumber >= pageStop)
    return null;
    return row;
    function UpdatePage(offset)
    var numRows = ds1.getUnfilteredData().length;
    if (offset > (numRows - pageSize))
    offset = numRows - pageSize;
    if (offset < 0)
    offset = 0;
    pageOffset = offset;
    pageStop = offset + pageSize;
    // Re-apply our non-destructive filter on dsStates1:
    ds1.filter(MyPagingFunc);
    // Tell our 2nd region to update because we've adjusted
    // some of the variables it uses in its spry:if expressions.
    Spry.Data.updateRegion("list2");
    // Change the XPath for the 3rd data set so that the 3rd
    // region updates. Remember, position() starts at one and
    not
    // zero, so we have to add one to our pageOffset and
    pageStop.
    dsStates3.setXPath("/states/state[position() >=" +
    (pageOffset+1) + " and position() < " + (pageStop+1) + "]");
    </script>
    <div id="Specials_Detail_DIV" spry:detailregion="ds1"
    class="SpryHiddenRegion">
    <table id="Specials_Detail_Table">
    <tr>
    <td width="200" valign="top"><a
    href="Webinars_detail.asp?row={ds_RowID}">{webinarimage}</a></td>
    <td width="238" valign="top" class="standardtext">
    <p><span
    class="subheading">{Title}</span><br>
    <br>
    {Speaker}<br></p>
    <a
    href="Webinars_detail.asp?row={ds_RowID}">{access}</a>
    <br>
    </td>
    </tr>
    </table>
    </div>
    <div id="Specials_DIV" width="500" spry:region="ds1"
    class="SpryHiddenRegion" style="overflow:auto; height:300px;
    width:500px" >
    <table id="Specials_Table">
    <tr>
    <th width="92" height="19" class="standardtext"
    scope="col" spry:sort="Title" ><a href="javascript:
    void(0)">Title</a></th>
    <th scope="col" spry:sort="topic" width="112"
    class="standardtext" ><a href="javascript:
    void(0)">Topic</a></th>
    <th scope="col" spry:sort="Date" width="92"
    class="standardtext" ><a href="javascript: void(0)">Air
    Date</a></th>
    </tr>
    <!--User clicks to reset the current row in the data
    set-->
    <tr spry:repeat="ds1" spry:setrow="ds1" spry:odd="eg-bar"
    spry:even="eg-bar2">
    <td valign="top" class="standardtext" ><a
    href="javascript: void(0)">{Title}</a></td>
    <td valign="top" class="standardtext"
    >{topic}</td>
    <td valign="top" class="standardtext"
    >{Date}</td>
    </tr>
    </table>
    </div>
    [code]
    <article id="23ASD38675">
    <Title><![CDATA[Title]]></Title>
    <Speaker><![CDATA[Speakers: ]]></Speaker>
    <Genesys><![CDATA[<a href="../link"><img
    src="../../../images/icn_webinar_39.gif" width="39" height="40"
    border="0"><br>View Replay</a>]]></Genesys>
    <Date>02/27/2008</Date>
    <MDate>February 27, 2008</MDate>
    <Series>Family Continuity and Governance
    Series</Series>
    <webinarimage><![CDATA[<img
    src="../../../private/members/resource_center/images/022708-preview-imageB.gif"
    width="200" height="150" border="0">]]></webinarimage>
    </article>
    [/code]

    Date sorting with the format you use works just fine. I just
    tested it out. So I took a closer look at your code, and I see
    this:
    var ds1 = new Spry.Data.XMLDataSet("webinars.xml",
    "news/article/Date",{sortOnLoad:"Date",sortOrderOnLoad:"ascending",distinctOnLoad:true});
    ds1.setColumnType("Date", "date");
    var ds1 = new Spry.Data.XMLDataSet("webinars.xml",
    "news/article", { filterFunc: MyPagingFunc });
    You are basically creating a ds1, setting the column type,
    and then blowing away the original ds1 with a new one you create.
    Which means your column type for Date is reset back to "string".
    Delete ds1 creation code you don't want, and then place the
    setColumnType() call after it.
    It will then work as it should.
    --== Kin ==--

  • Styling spry:sort

    Is it possible to apply some css styling to a <th> with
    a spry:sort to give some indication of which column in a table is
    currently the one that the table is being sorted by?

    Phil:
    Thanks so much for your reply. Yes, the fact of my using Spry 1.5 was definitely the source of part of my trouble. I got the updater and now the error message has disappeared.
    My remaining problem is correctly fulfilling the implementation so that I'm triggering the addition of the ".ascending" and ".descending" classes upon user clicking the column headings. I see clearly from your example that they are being assigned dynamically and I think I have faithfully implemented the styles. But in Firebug, upon click of a column heading, while I am getting the correct Spry sorting behavior, I am unable to see the assignment of the .ascending and .descending classes.
    If I had a better grasp of the JavaScript involved I could probably troublshoot it, but in this instance, I'm just trying to implement "cookbook" style, so I'm unable even to see the dumb mistakes I may have made. My implementation seems to differ from yours only in that class and dataset names are different, data is (of course) different and I'm using an html table as a dataset whereas you are using an XML file as yours. Spry 1.6.1 is now in place.
    This is my markup (the relevant bits):
    <head>
    <script src="../SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="../SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds2 = new Spry.Data.HTMLDataSet(null, "awards_cd", {sortOnLoad: "The_Award", sortOrderOnLoad: "ascending"});
    ds2.setColumnType("C-Deadline", "date");
    //-->
    </script>
    <script type="text/javascript">
    <!--
    function mysort(rgn,phil)
            var so = phil("{ds_SortOrder}");
            var sc = phil("{ds_SortColumn}");
            if (so.length == 0) {so="ascending"; sc="The_Award"}
            Spry.Utils.addClassName(sc,so);
            return '';
    //-->
    </script>
    </head>
    <body>
              <div spry:region="ds2">
                        <table class="spry">
                            <tr>
                                <th class="sortable" spry:sort="The_Award">The Award</th>
                                <th class="sortable" spry:sort="C-Deadline">C-Deadline</th>
                                <th class="sortable" spry:sort="Country">Country</th>
                                <th class="sortable" spry:sort="Disciplines">Disciplines</th>
                                <th>Purpose</th>
                                <th>Eligibility</th>
                            </tr>
                            <tr spry:repeat="ds2" spry:odd="odd" spry:even="even" spry:hover="hover" spry:select="hover">
                                <td>{The_Award}</td>
                                <td>{C-Deadline}</td>
                                <td>{Country}</td>
                                <td>{Disciplines}</td>
                                <td>{Purpose}</td>
                                <td>{Eligibility}</td>
                            </tr>
                        </table>
                    </div>
                    <div spry:region="ds2">{function::mysort}</div>
                    <table id="awards_cd">
                        <tr>
                            <th>The Award</th>
                            <th>C-Deadline</th>
                            <th>Country</th>
                            <th>Disciplines</th>
                            <th>Purpose</th>
                            <th>Eligibility</th>
                        </tr>
                        <tr>
                            <td><a href="marshall.html">Marshall Scholarship</a></td>
                            <td>9/1/2009</td>
                            <td>UK</td>
                            <td>All Fields</td>
                            <td>2-3 years at any British University leading to a degree</td>
                            <td>US citizen, BA by start of grant period, 3.7 undergraduate gpa</td>
                        </tr>
                        <tr>
                            <td><a href="mitchell.html">Mitchell Scholarship</a></td>
                            <td>9/1/2009</td>
                            <td>Ireland</td>
                            <td>All Fields</td>
                            <td>1 year at an Irish University leading to a degree</td>
                            <td>US citizen, BA by start of grant period, 18 &gt; 30 yrs</td>
                        </tr>
                        <tr>
                            <td><a href="rhodes.html">Rhodes Scholarship</a></td>
                            <td>9/1/2009</td>
                            <td>UK</td>
                            <td>All Fields</td>
                            <td>2-3 years at Oxford leading to a degree</td>
                            <td>US citizen, BA by start of grant period, 18 &lt; 24 yrs at time of application</td>
                        </tr>
                        <tr>
                            <td><a href="fulbright.html">Fulbright Scholarship </a></td>
                            <td>9/24/2009</td>
                            <td>Worldwide</td>
                            <td>All Fields</td>
                            <td>One academic year of study/research</td>
                            <td>US citizen, BA by start of grant period, no PhD at time of application</td>
                        </tr>
                        <tr>
                            <td><a href="ful_hays.html">Fulbright-Hays </a><a href="ful_hays.html">Doctoral Dissertation Award</a></td>
                            <td>10/15/2009</td>
                            <td>Worldwide</td>
                            <td>Non-Western Area Studies</td>
                            <td>1 year of dissertation research</span></td>
                            <td>US citizen, PhD candidate</td>
                        </tr>
                        <tr>
                            <td><a href="daad_grad.html">DAAD Graduate Award</a></td>
                            <td>11/1/2009</td>
                            <td>Germany</td>
                            <td>All Fields</td>
                            <td>1 year of study/research</td>
                            <td>US citizen, graduating senior or graduate student</td>
                        </tr>
                        <tr>
                            <td><a href="churchill.html">Churchill Scholarship</a></td>
                            <td>11/12/2009</td>
                            <td>UK</td>
                            <td>Math, Science, Engineering</td>
                            <td>1 year of graduate study at Cambridge</td>
                            <td>US citizen, BA by start of grant period</td>
                        </tr>
                        <tr>
                            <td><a href="luce.html">Luce Scholars Program</a></td>
                            <td>11/20/2009</td>
                            <td>Asia</td>
                            <td>All Fields</td>
                            <td>1 year internship</td>
                            <td>US citizen, BA by start of grant period, &lt; 30 years, no prior experience in Asia</td>
                        </tr>
                        <tr>
                            <td><a href="whitaker_fellows.html">Whitaker Program for Biomedical Engineers</a></td>
                            <td>2/1/2009</td>
                            <td>UK</td>
                            <td>Biomedical Sciences</td>
                            <td>1 year of graduate study/ research</td>
                            <td>US citizen, BA by start of grant period</td>
                        </tr>
                        <tr>
                            <td><a href="berlin.html">Free University of Berlin Graduate Exchange</a></td>
                            <td>4/15/2009</td>
                            <td>Germany</td>
                            <td>All Fields</td>
                            <td>1 year of dissertation research</td>
                            <td>PhD candidate</td>
                        </tr>
                    </table>
    </body>
    RELANT CSS:
    .even { background-color: #ede8dd; }
    .odd { background-color: #faf6eb; }
    .hover { background-color: #bcd4ec; }
    table.spry { margin: 1em 0; }
    table.spry th {
        background-color: #c2b7a1;
        text-align: left;
        padding: .5em;
    table.spry td { padding: .5em; }
    .descending { background: url(../SpryAssets/SpryMenuBarDownHover.gif) 95% 50% no-repeat; }
    .ascending { background: url(../SpryAssets/SpryMenuBarUpHover.gif) 95% 50% no-repeat; }
    table.spry th.sortable:hover { cursor: pointer; }
    TEST PAGE: http://icenter.stanford.edu/orc/grad_comparisonMGH2.html
    I have the correct graphics now.
    If you have time and can spot where I've gone awry, many thanks. And thanks again for your solution and the time you spent originally looking at my page. All in all, your functionality seems like something Adobe should have put into the widget in the first place as it is virtually universal functionality in any other sortable table solutions that I've come across.
    Best Regards,
    Mike

  • Spry:sort

    Hi thank you for reading,
    I have tried everything to make this table sort, but the only
    thing that works is by calling a sort method as you see me doing in
    the last step here.
    <div spry:region="dsItems1" spry:sort="@name">
    <table width="100%" height="100%" spry:sort="@name">
    <trspry:sort="@name" ><td spry:sort="@name">
    <h3 >Programs</h3></td></tr>
    <tr spry:repeat="dsItems1" spry:setrow="dsItems1"
    spry:sort="@name" >
    <td spry:sort="@name" style="padding-left:15px;
    "><a class="links" href="#">{@name}</a></td>
    </tr>
    </table>
    </div>
    <p>
    <input type="button" value="Sort A-Z" onclick="DoSort();"
    />
    </p>
    thanks in advance for any hints!
    ./b

    I believe your problem has to do with the fact that you have
    a spry:sort on a <td> *AND* you have a spry:sort on its
    parent <tr> which means that whenever you click on the
    <td>, the data set will be sorted by @name twice, giving the
    appearance that nothing happens?
    Make sure that you only put the sort attribute on the
    <td> or <th> elements.
    --== Kin ==--

  • Spry select with xml data

    Can this be done with Spry and if so, how please?
    I would like to have a dropdown select on my page that is
    populated by the lastname field in my database. Once selected I
    would like to display a table of the data I selected from the
    dropdown. I am to connect to an XML datasource and able to connect
    the dropdown to that last name field. I just don't know how to get
    the selected last name from the drop down to display. Any help is
    greatly appreciated.
    <%@ Page Language="VB" ContentType="text/html"
    ResponseEncoding="utf-8" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    <script src="../../../SpryAssets/xpath.js"
    type="text/javascript"></script>
    <script src="../../../SpryAssets/SpryData.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.XMLDataSet("so.xml",
    "RESULTS/ROW",{distinctOnLoad:true});
    -->
    </script>
    </head>
    <body>
    <p></p>
    <div spry:region="ds1">
    <select name="selectLastName"
    spry:repeatchildren="ds1">
    <option
    value="{GlobalSubjectLastName}";>{GlobalSubjectLastName}</option>
    </select>
    </div>
    <p></p>
    <p></p>
    <p> </p>
    <p></p>
    <p></p>
    <div spry:region="ds1">
    <table>
    <tr>
    <th spry:sort="GlobalSubjectFirstName">First
    Name</th>
    <th>Middle Name</th>
    <th spry:sort="GlobalSubjectLastName">Last
    Name</th>
    <th> Address</th>
    <th> City</th>
    <th> State</th>
    <th> Age</th>
    <th>Charge Description</th>
    </tr>
    <tr spry:repeat="ds1" spry:setrow="ds1">
    <td>{GlobalSubjectFirstName}</td>
    <td>{GlobalSubjectMiddleName}</td>
    <td>{GlobalSubjectLastName}</td>
    <td>{GlobalSubjectAddress}</td>
    <td>{GlobalSubjectAddressCity}</td>
    <td>{GlobalSubjectAddressState}</td>
    <td>{GlobalSubjectAge}</td>
    <td>{ChargeStatuteDescription}</td>
    </tr>
    </table>
    </div>
    </body>
    </html>

    <span spry:region="dsCities dsStates dsStates" id="citySelector">
         <select spry:repeatchildren="dsCities" id="citySelect" name="citySelect" tabindex="5" >
          <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}" value="{name}" selected="selected" tabindex="5" >{name}</option>
          <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}" value="{name}" tabindex="5" >{name}</option>
        </select>
    that should be a spry:detailregion, and you have a double dsStates
    And when you are using multiple datasets inside a region, it might wise to prefix you template tags with the correct dataset
    {ds_RowNumber} => {dsStates::ds_RowNumber}

  • Spry:sort how to sort nested ds

    I use XMLDataSet to get Values from XML.
    First thing, i used nested XMLDataSets, to get nested datas.
    It works, but i have Problem with sort.
    When i use spry:sort and than the nested Set it adjust only the nested values like here:
    http://labs.adobe.com/technologies/spry/samples/data_region/NestedDataSample.html
    My project is a car database. So i have cars...and in the xml file are the colors and kilometers in nested roots. So i ca get them only with the nested procedure. My Target is, that when the user sort by nested value, the whole table is  sort by the nested sort.
    Like....
    If i have my table with all the cars....than i will sort the hwole table over modell....price..and and...but also over color.
    How can i make this? because now i can only change the basic datastring or the nested datastring them self... so i never can sort the whole table by color...
    Thanks for help!
    TELLO

    Any help for me?
    Here the code....so i guess it helps more to understand what i mean...:
    var ds_autosuche = new Spry.Data.XMLDataSet("............xml", "results/result[brand != 0]");
    ds_autosuche.setColumnType("price", "number");
    var ds_autosuche_modell = new Spry.Data.NestedXMLDataSet(ds_autosuche, "modell/name");
    var ds_autosuche_ez = new Spry.Data.NestedXMLDataSet(ds_autosuche, "infos/info[@type = 'ez']" );
    var ds_autosuche_fuel = new Spry.Data.NestedXMLDataSet(ds_autosuche, "infos/info[@type = 'fuel']" );
    var ds_autosuche_farbe = new Spry.Data.NestedXMLDataSet(ds_autosuche, "color/name");
    var ds_autosuche_km = new Spry.Data.NestedXMLDataSet(ds_autosuche, "infos/info[@type = 'km']" );
    i output than a table, where on every column is one value for one car. So than i can sort by brand, price....
    but not the whole table by name, km, ez, fuel... because they all nested datasources... how can i sort the whole table over nested typs....????
    TELLO

  • Spry Sorting

    Hello!
    Is use this code in my spry xml dataset and spry table:
    <div class="MainContent">
    <div spry:region="dsCatalog">
    <table border="0" cellspacing="0" cellpadding="3">
    <tr bgcolor="#CCCC99">
    <th spry:sort="@id"><div align="left"
    class="style2"><a
    href="#">Nr</a></div></th>
    <th spry:sort="date"><div align="left"
    class="style2"><a
    href="#">Dato</a></div></th>
    <th spry:sort="Fullname"><div align="left"
    class="style2"><a
    href="#">Merkenavn</a></div></th>
    <th spry:sort="district"><div align="left"
    class="style2"><a
    href="#">Distrikt</a></div></th>
    <th spry:sort="score"><div align="right"
    class="style2"><a
    href="#">Karakter</a></div></th>
    </tr>
    <tr spry:repeat="dsCatalog" spry:setrow="dsCatalog"
    spry:odd="odd" spry:even="even" spry:hover="hover"
    spry:select="selected">
    <td><div
    align="left">{@id}</div></td>
    <td><div
    align="left">{date}</div></td>
    <td><div
    align="left">{Fullname}</div></td>
    <td><div
    align="left">{district}</div></td>
    <td><div
    align="right">{score}</div></td>
    </tr>
    </table>
    </div>
    </div>
    The problem I have is that the highest amount of digits I use
    in the score field is 10,0 (3 digits) and all other values is 2
    digits (9,5 and 8,0) and the three digit value will not sort in the
    right order. I use sorting in all columns as you can see. The value
    of 10,0 will always stays in bottom (ascending) or top
    (descending). Do I have to use XSL to give a solution to this (and
    if so, how to implement it?). Or maybe there is another solution to
    this?
    Thanks in advance!
    E.B
    Text

    Hi E.B.,
    The trouble stems from using commas instead of decimal
    points.
    First, by default, Spry assumes the column is text and sorts
    it as such.
    If you set the column to a number:
    datasetname.setColumnType("columnname","number");
    Spry will return [NaN} (not a number) because it can't deal
    with the commas.
    If you use decimals points, it will work correctly.
    If you can't use decimals, the solution will have to be XSL
    or otherwise.
    Hope this helps.
    Donald Booth
    Adobe Spry Team

  • SPRY - sorting UK dates

    I have created a SPRY sortable table in Dreamweaver CS4.  Two  columns are formatted as UK dates dd/mm/yyyy. They are identified as  dates in the SPRY table.
    When sorting these date columns SPRY is  reading them as US date format which means the sorting is, while not  quite random, pretty meaningless.  I have checked this by reformatting  and displaying the date as US date format mm/dd/yyyy and then SPRY sorts  them as expected. 
    Would appreciate some help with how I retain  the UK date appearance and achieve a sort on that basis.  Is there a  localisation file somewhere in the SPRY framework that allows date  formats to be identified?
    If not, can anyone advise how to resolve this?
    Thanks in advance for any help.

    The root of the issue is that using JavaScript to a string into a date easily lead to inconsistent, unexpected results.
    The way I solved this in the past is to have two columns inside my Spry datasets. One stores the date in yyyy-mm-dd format (ISO 8901, the format typically used by databases), another one stores a nicely formatted date (whatever format the language dictated).
    Then I always display the nicely formatted column, but I sort it only the yyyy-mm-dd one.
    As a bonus, yyyy-mm-dd sorts okay just as a string, so I have no need to assign a different datatype to it.

  • Spry Accordian with dynamic panels from XML

    Hi. I've searched, but haven't seen anybody answer this yet.
    I'm trying to build a page that uses a spry accordian to display
    data by category. So category 1 is on panel 1 in a spry table with
    a link to a spry detail section on the page. Category 2 is on panel
    2 in a spry table with a link to the same spry detail section, etc.
    I have 2 issues: 1) I haven't figured out how to filter a
    single XML data set onto different accordian panels or
    2) how to get the same detail region to take links from
    different XML data sets on the different panels.
    Any help that anybody could give would be VERY much
    appreciated.
    THANKS!

    I did get it working. Please check out..
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=602&threadid=1334877
    The key is the Data Set Shell. I use multiple data sets for
    each category, in your case department. Then I list the items in
    that category to update a detail region. If the above link doesn't
    help you please re-post and I can give you some more help.

  • Spry Slideshow with Filmstrip not working in IE Browsers

    I'm working on a brand new website design and am trying to incorporate the Spry Slideshow with Filmstrip on a lot of the pages. It works and loads great on every browser except IE versions. On IE it will show it correctly for a second and then changes it to show one picture above the other. Can someone please help me figure out what to do to make it work for IE?
    Here's a link to one of the test pages.
    http://4034.sandbox.i3dthemes.net/oceankayakbanzai.html
    Thanks for your help in advance!

    I have a similar problem. I've added a note to reference your problem. I've not got an answer to date.
    Cliff

  • A simple question about wrong sorting with multiple sort columns in Excel 2010

    Hi, everyone! I have encountered a problem that I don't know how to explain.
    So I post it here because I don't know if there is another more relevant forum...
    I have a data sheet with the students' scores for the course. 
    All the data were generated with the randbetween function,
    and pasted with the values.
    To rank the students by their performance,
    I did the sort with the column "total score" as the first sort-column
    and "final term" as the second.
    The weird thing to me is that the order of the data seems problematic.
    That is, all the rows are sorted correctly with the first sort-column.
    But for the rows with the same values of the first sort-column,
    there are some rows whose values of the second sort-column are out of order.
    (please look at the data file at
    www_dot_kuaipan_dot_cn/file/id_67204268108546068_dot_htm
    Please change the "_dot_" to the real literal dot.
    Especially the rows with 56.7 as the first sort-column value
    and some other values near the tail of the list.)
    I tried to manually input and sort the same values of both columns
    in a near-by region. The result was correct.
    When some friend copied all the data to paste in Notepad,
    and reload them in excel. The problem disappears.
    Some friend also tried to wrap a round function at the values of the 1st sort-column,
    the sorting order became correct!
    But they could not explain why either.
    How confusing! I even tried to swap the first and secod sort-column;
    the output was right.
    All the data were generated by randbetween function and pasted with values.
    Where could all the special characters, if any, come?
    Can anyone give me an explanation? I would be very grateful.
    Thanks in advance!

    Re:  Sort is not in proper order
    Sounds as if the data includes spaces or hidden characters that are affecting the sort.
    That is indicated by the fact that manually entering the data resolves the problem.
    Note:  You can use a public file storage website to hold your file and add the link to it in your post.
    Jim Cone
    Portland, Oregon USA
    Special Sort excel add-in (30+ ways to sort) - 3 week no obligation trial
    https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2

  • Sorting with nulls last on the fact column

    anybody tell me how to do the sorting with nulls last in the template? i can't change anything in data model or anywhere other than template.
    i did try to put the descending order,but null values are coming in between positive and negative values.
    <?sort:FACT_Column_Name;'decending';data-type='number'?>
    could anyone please tell me how can i do that in template?
    Thanks in advance.
    Edited by: user12255470 on Apr 12, 2012 5:29 PM

    Hi to all,
    i've solved, is very simple using decode inside the select:
    SELECT
    ID,
    FK_HTMLDB_ITEM, DECODE(FK_HTMLDB_ITEM,1,HTMLDB_ITEM.DATE_POPUP(3,rownum,VAL,'dd-mon-yyyy'),2,HTMLDB_ITEM.TEXT(3,VAL)) VALORE
    FROM TESTID
    my table is:
    CREATE TABLE "DEV"."TESTID"
    (     "ID" NUMBER NOT NULL ENABLE,
         "FK_HTMLDB_ITEM" NUMBER,
         "VAL" VARCHAR2(4000 BYTE))
    Bye Bye

  • Currency Format in Spry Sort Table

    Any ideas on how to format all numbers in a spry sort table
    into US currency? Currently on my site, Spry is not displaying the
    ".00" that is included in my XML file.
    My
    Spry Sort Table Example

    Hi,
    yes, I`ve had the same behavior. As a workaround, you have to change the format of the cells.
    Go into the properties of the cells:
    -> Right mouse click
    -> format cells
    -> category
    -> number
    -> change something, e.g. the number of decimal places to show
    Then you will have to map the component again to the same cells under "Display Data".
    And now, the currency information will be shown correctly.
    Regards
    Victor

  • Spry deal with many xml files

    Hi guys!
    I have a problem about "Spry.Data.XMLDataSet",
    I have two xml files, "em1.xml" and "em2.xml". they have the
    same structure;
    The code of "em1.xml" :
    <employees>
    <employee id="123456">
    <lastname>Smith</lastname>
    <firstname>Edward</firstname>
    <phone>(415) 333-0235 </phone>
    <username>esmith</username>
    </employee>
    <employee id="127937">
    <lastname>Johnson</lastname>
    <firstname>Neil</firstname>
    <phone>(415) 333-9475 </phone>
    <username>njohnson</username>
    </employee>
    </employees>
    and the "em2.xml" code:
    <employees">
    <employee id="123543">
    <lastname>Davis</lastname>
    <firstname>Kirk</firstname>
    <phone>(415) 333-4334 </phone>
    <username>kdavis</username>
    </employee>
    <employee id="127944">
    <lastname>Miller</lastname>
    <firstname>James</firstname>
    <phone>(415) 333-7566 </phone>
    <username>jmiller</username>
    </employee>
    </employees>
    Now! I want to display these datas on a dynamic table.here is
    my code
    var ds1 = new Spry.Data.XMLDataSet("em1.xml",
    "employees/employee");
    var ds2 = new Spry.Data.XMLDataSet("em2.xml",
    "employees/employee");
    var ds3 = new Spry.Data.XMLDataSet();
    ds3.data = ds1 + ds2;
    <div spry:region="ds3">
    <ul spry:repeatchildren="ds3">
    <li spry:sort="lastname">{lastname}</li>
    </ul>
    </div>
    finally! But It does not work! How can I combine "ds1" and
    "ds2"!
    ------

    on my God! Spry have not support the method!
    but I've solved it;
    my code:
    var ds1 = new Spry.Data.XMLDataSet("em1.xml",
    "employees/employee");
    var ds2 = new Spry.Data.XMLDataSet("em2.xml",
    "employees/employee");
    ds1.loadData();
    ds2.loadData();
    //ds2 addObserver
    var myObj = new Object;
    myObj .onPostLoad = function(dataSet,data){
    dataSet.data = dataSet.data.concat(ds1.data);//concat two
    array
    for(var i=0; i<dataSet.data.length; i++){
    dataSet.data
    .ds_RowID = i;//reset ds_RowID
    ds2.addObserver(myObj );

  • Spry accordion with nested accordions

    I'm building an FAQ list with topics and sub topics, using a
    containing Spry accordion with multiple children, though just the
    one extra level deep. The nested accordions won't expand the full
    list. Instead, the div height remains fixed, and I get a scroll
    bar. Any ideas what part of the javascript to tweak to open up this
    functionality?
    Here's the page:
    http://www.pixmission.net/dev/tex/faqs.htm
    thanks

    alancymru escribió:
    > I'm building an FAQ list with topics and sub topics,
    using a containing Spry
    > accordion with multiple children, though just the one
    extra level deep. The
    > nested accordions won't expand the full list. Instead,
    the div height remains
    > fixed, and I get a scroll bar. Any ideas what part of
    the javascript to tweak
    > to open up this functionality?
    >
    > Here's the page:
    >
    http://www.pixmission.net/dev/tex/faqs.htm
    >
    > thanks
    >
    Sure! It has to be done in two parts. First part from your
    SpryAccordion.css file and the second it is adding a new
    property to the
    Accordion object when it’s initialized.
    First part:
    Select .AccordionPanelContent class
    Delete Height property
    Change the value of overflow from auto to hidden;
    Second part:
    In the constructor function at the bottom of your faqs.htm
    file, amend
    this code:
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    var Accordion9 = new Spry.Widget.Accordion("Accordion9");
    to this:
    var Accordion1 = new Spry.Widget.Accordion("Accordion1",
    {useFixedPanelHeights:false});
    var Accordion9 = new Spry.Widget.Accordion("Accordion9",
    {useFixedPanelHeights:false});
    Hope this helps.

Maybe you are looking for

  • External drive conntected to Time Capsule keeps losing connection

    I've been having this problem since I bought my TC over one year ago. Other than this everything works fine (aside from the occasional need for a restart). I have an external 500GB drive attached to my 500GB TC via usb. I use the TC strictly for back

  • Airport problems with PC after update?  Try this

    My TC worked fine for a year with PCs networked to it. Then I upgraded Airport Utility to 7.4.1 and kaboom networked dropped, PCs locked up... I downgraded back to 7.3.2 and everything works fine. Found this helpful blog posting called "Publc Safety

  • GI - GR relationship tables.........?

    Dear all,    I want to track the status of STO ( from STO -GI-GR ) status in one report. From EKBE , I get the PO history, So I am fetching data upto GR from there. It gives the relationship between STO and GI , STO and GR etc. But I want to relate G

  • HELP!!!!! Is Download for 8i Enterprise Edition Still Available?

    I need 8i Enterpise Edition for the OCP DBA training I'm about to take. However, I don't see links for any 8i databases anymore. Is this site still supporting 8i technology? P.S. Forgive me if this seems like a dumb question as I'm a newbie on this f

  • Raw files from sony 77-2

    How can I open raw file in elements 11 with new sony camera.