Dreamweaver rewriting spry:if statements

I keep having a problem with Dreamweaver rewriting manually
created Spry select list code.
Example of the code as it should be:
<select name="orgSelect" id="orgSelect"
onchange="document.forms['frmSupportReq'].groupSelect.disabled =
true;dsOrg.setCurrentRowNumber(this.selectedIndex);"
spry:repeatchildren="dsOrg">
<option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}"
value="{name}" selected="selected">{name}</option>
<option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
value="{name}">{name}</option>
</select>
Dreamweaver rewrites it, breaking it (below is a sample of
the most recent break):
<select name="orgSelect" id="orgSelect"
onchange="document.forms['frmSupportReq'].groupSelect.disabled =
true;dsOrg.setCurrentRowNumber(this.selectedIndex);"
spry:repeatchildren="dsOrg">
<option spry:if="{dsOrg::ds_RowNumber} ==
{dsOrg::ds_CurrentRowNumber}" value="{dsOrg::name}"
selected="selected">{dsOrg::name}</option>
<option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}"
value="{name}">{name}</option>
</select>
Dreamweaver has rewritten the code in several different ways
over the last two days for this particular item (which is the first
part of a master/detail double select set).
This is getting very irritating.
Has anyone else had a similar problem? If so, has anyone
found a way to STOP Dreamweaver from breaking the Spry code?
I would appreciate suggestions on how to break Dreamweaver of
this annoying habit.
Thanks.
Skip Keats

Donald:
I am not certain if I can 'reproduce' it, per se, as the
occurrences do not follow any particular pattern, except what
Dorfadobe notes -- switching between code/split and design views.
All pages have at least one Spry-generated select list (used
as a jump menu). Many have more. The code noted above is part of an
actual form (rather than a jump menu system).
What I have noticed is that Dreamweaver does not seem to
change any code created by itself from design view. It only seems
to change code that is manually created in code view. (On a
separate note, it keeps trying to delete conditional validation
that I am creating for the same form -- you know, 'if yes, then
this field is available (and must validate)' type thing.
My question: Could it be that Dreamweaver is somehow
internally programmed to force conformance to its design view
'widgets' in some way? If so, this is a serious problem as the
widgets are rather limited in comparison to what can be done via
hand-coding.
Skip Keats

Similar Messages

  • Dreamweaver rewriting spry:region

    When I save a template that contains a Spry dataset and
    region, Dreamweaver changes the region to "datasetname function".
    When the template loads the code is:
    spry:region="dsAirsale"
    when I save the file, it becomes:
    spry:region="dsAirsale function"
    Why?

    I've never seen/heard of this problem. Do you have a sample
    file we can look at to reproduce the problem? Are you talking about
    saving the .dwt file? Or an HTML file that is an instance of the
    template? Is the spry:region inside an editable region?
    --== Kin ==--

  • Using javascript variable in spry if statement

    is it possible to put a javascript variable in to the spry if
    statement to test?
    like <div spry:if="javascriptvar == {ds_RowNumber}"....
    thanks.

    Hi rogerfreak,
    When the region processes a spry:if, it simply takes the
    value of the spry:if attribute, replaces all of the data references
    in it with real values from the data set and then evals the result
    (executes the string).
    So you can do something like:
    <script>
    var ds1 = new Spry.Data.XMLDataSet("foo.xml", "/foo/bar");
    var gMode = 5;
    function GetMode()
    return gMode;
    </script>
    <div spry:region="ds1">
    <ul spry:if="gMode == 5">
    <li spry:repeat="ds1">{name}</li>
    </ul>
    <div spry:if="gMode == 12" spry:repeatchildren="ds1">
    {name}
    </div>
    </div>
    In the example above the list markup will be written out if
    gMode is 5, but if it is 12, it will write out the div markup.
    You can also call functions:
    <div spry:region="ds1">
    <ul spry:if="GetMode() == 5">
    <li spry:repeat="ds1">{name}</li>
    </ul>
    <div spry:if="GetMode()== 12"
    spry:repeatchildren="ds1">
    {name}
    </div>
    </div>
    --== Kin ==--

  • In Dreamweaver CS5 - Spry elements visable in LiveView Only

    Web page: www.muohio.edu/youth
    In Dreamweaver the Spry Tabbed Panels and Collapsible panels work fine as published, and in LiveView. However in Design View the tabbed panels only show the top content, the styling is not applied.  The collapsible panels are functional, but the styling is not applied.
    Hope someone has an idea of what needs to be changed in the code, it is very difficult to update the page as it is.

    Yes, on some complicated pages, DW can have a hard time rendering the Design View.
    What you can do (that is the solution I use) is:
    for the styling, create you rules in Design view, and edit them in Live view. You sometimes have to refresh the view to have the changes apply, but it is still a time-saver.
    for the content, just switch to Code View and copy the content that needs updating. Open another HTML page, select all, and paste over your copied content. DW renders HTML bits pretty well even if there is no <html>, <body>, etc, tags. Then edit in Design View, switch back to Code View, copy all, and paste over your old content in the original document.
    Hopes this helps.
    Xav

  • Dreamweaver CS5 Spry Menu problem;

    Hi, I'm doing a web-site project for my Web Design class, and I ran into a problem. In Dreamweaver my spry menu only shows one part of the menu, but when I go to preview it, its perfectly normal. When I turned it into my teacher he sees the spry menu just like the one in Pic 2. I can't really upload it to a public domain/website because I can't at school. The way we see websites is by transfering folders into the teachers folders and click the index.html. Is there any way to fix this?
    Code if needed:
    <!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>Kelsey's Page</title>
    <style type="text/css">
    body {
    background-color: #EBF2FE;
    </style>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td align="center"> </td>
      </tr>
      <tr>
        <td align="center"><img src="asdasdawe.jpg" width="907" height="331" /></td>
      </tr>
      <tr>
        <td width="100" align="center"><ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="index.htm">Home</a>        </li>
          <li><a href="#" class="MenuBarItemSubmenu">Portfolio</a>
            <ul>
              <li><a href="enterport1.html">Personal</a>            </li>
              <li><a href="enterport2.html">New PRHS</a>            </li>
              <li><a href="enterport3.html">Performance</a>            </li>
              <li><a href="enterport4.html">Teacher</a>            </li>
            </ul>
          </li>
          <li><a class="MenuBarItemSubmenu" href="#">Schedule</a>
            <ul>
              <li><a href="enterweb.html">Web Design</a>            </li>
              <li><a href="enterani.html">Animation</a></li>
              <li><a href="enterlatin.html">Latin 4</a></li>
              <li><a href="enterapush.html">APUSH</a></li>
            </ul>
          </li>
          <li><a href="derp.htm">Derp</a></li>
        </ul></td>
      </tr>
      <tr>
        <td align="center"> </td>
      </tr>
      <tr>
        <td> </td>
      </tr>
      <tr>
        <td><img src="bigpic2.jpg" width="910" height="510" /></td>
      </tr>
    </table>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>

    We can't view or "fix" your teacher's folder.
    Why not be a rebel, find yourself some free hosting,
    upload all your files and post a link for us.

  • Help with Dreamweaver CS5 spry menus. Menu is not dropping down in IE7.

    Hello.
    We recently upgraded from GoLive CS3 to Dreamweaver CS5. Wow! This has been a big change for us. We are having trouble with a website that we are building, specifically the Spry Menu drop downs not appearing correctly in IE7 and older. While the dropdown menu appears in other browsers, it is not dropping down at all in IE7 and earlier versions. After researching this topic on many websites, including this forum, we are still unable to resolve our particular issue. We have tried many of the suggestions that are common to our problem, but have not found a solution as yet. Could someone please check out this page for us, and possibly give us some advise. We are working on Mac OSX. Thank you in advance for any suggestions you may offer.
    http://www.advertools.net/pgtdemo/index.html

    When I added the following to the document
    <style>
    #main_image {position:static;}
    </style>
    the menu items appeared albeit in the wrong position.
    The reason for the hidden menu items is because #main_image had a position of relative, effectively creating a flow of its own rather than following the natural flow of the document.
    Now for the postion of the submenu. If I add the following style rules to the document the submenu items are in the correct position
    ul.MenuBarHorizontal li {text-align: left;}
    ul.MenuBarHorizontal a {text-align: center;}
    In the first line I have reset the rule that you had changed to center align and in the second line (which is not in the original CSS) I have aligned the text in the anchor tag to align center.
    The reason is that IE<8 behaves differently to other browsers when it comes to list items causing the nested list items (submenu) to align themselves to the center of the text of the parent list item.
    I hope the above helps.
    Gramps

  • Dreamweaver CS4 SPRY Menu Problems in IE

    I am trying to have a drop-down menu on my site using the SPRY option in Dreamweaver CS4. In all browsers it looks exactly like it should. Unofrtunately in IE it pops out to the side instead of down. Anyone know a fix around this. The site is http://mtltechnologies.com/
    Here is the SPRY CSS.
    @charset "UTF-8";
    /* SpryMenuBarHorizontal.css - version 0.6 - Spry Pre-Release 1.6.1 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    LAYOUT INFORMATION: describes box model, positioning, z-order
    /* The outermost container of the Menu Bar, an auto width box with no margin or padding */
    ul.MenuBarHorizontal
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 12px;
        cursor: default;
        width: auto;
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */
    ul.MenuBarActive
        z-index: 1000;
    /* Menu item containers, position children relative to this container and are a fixed width */
    ul.MenuBarHorizontal li
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        position: relative;
        text-align: left;
        cursor: pointer;
        width: 154px;
        float: left;
        height: 25px;
    /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */
    ul.MenuBarHorizontal ul
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 100%;
        z-index: 1020;
        cursor: default;
        position: absolute;
        left: -1000em;
    /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible
        left: auto;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
        width: 154px;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarHorizontal a
        display: block;
        cursor: pointer;
        padding: 5px;
        color: #FFF;
        text-decoration: none;
        background-image: url(../images/button_bg.jpg);
        text-align: center;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus
        color: #FFF;
        background-image: url(../images/button_bg_down.jpg);
    SUBMENU INDICATION: styles if there is a submenu under a given menu item
    /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenu
        background-image: url(../images/button_bg.jpg);
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal a.MenuBarItemSubmenuHover
        background-image: url(../images/button_bg_down.jpg);
        background-position: 95% 50%;
    /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */
    ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover
        background-image: url(../images/button_bg_down.jpg);
        background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form controls, we underlay each submenu with an iframe */
    ul.MenuBarHorizontal iframe
        position: absolute;
        z-index: 1010;
        filter:alpha(opacity:0.1);
    /* HACK FOR IE: to stabilize appearance of menu items; the slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
        ul.MenuBarHorizontal li.MenuBarItemIE
            display: inline;
            f\loat: left;
            background: #FFF;
    Anyone know a fix?
    Thanks,

    The code is too long. Let's do it this way, did you change anything on the default css of the SPRY menu?
    just my thought, why don't you remove it from the table? That might be the cause. Try to think of an alternative way like using divs and css.

  • Dreamweaver Vertical Spry Menu Problem in IE7

    I just finished setting up a vertical, 3-level spry menu in
    Dreamweaver CS3, and when I preview it in IE7, several pixels have
    been added in between the buttons, which spreads the menu out and
    looks terrible. The problem disappears after I clear the ActiveX
    warning, and it doesn't occur in FF. Could someone please tell me
    how to fix this??
    Here's my SpryMenuBarVertical.css file:
    @charset "UTF-8";
    /* SpryMenuBarVertical.css - Revision: Spry Preview Release
    1.4 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights
    reserved. */
    LAYOUT INFORMATION: describes box model, positioning,
    z-order
    /* The outermost container of the Menu Bar, a fixed width box
    with no margin or padding */
    ul.MenuBarVertical
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 0.8em;
    cursor: default;
    width: 150px;
    /* Set the active Menu Bar with this class, currently setting
    z-index to accomodate IE rendering bug:
    http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html
    ul.MenuBarActive
    z-index: 1000;
    /* Menu item containers, position children relative to this
    container and are same fixed width as parent */
    ul.MenuBarVertical li
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: relative;
    text-align: left;
    cursor: pointer;
    width: 150px;
    /* Submenus should appear slightly overlapping to the right
    (95%) and up (-5%) with a higher z-index, but they are initially
    off the left side of the screen (-1000em) */
    ul.MenuBarVertical ul
    margin: -5% 0 0 95%;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: absolute;
    z-index: 1020;
    cursor: default;
    left: -1000em;
    top: 0;
    /* Submenu that is showing with class designation
    MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen
    ul.MenuBarVertical ul.MenuBarSubmenuVisible
    left: 0;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarVertical ul li
    background-image:url(../images/topnav-up-165.gif);
    background:#FFFFFF;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Menu items are a light gray block with padding and no text
    decoration */
    ul.MenuBarVertical a
    display: block;
    cursor: pointer;
    background-color: #FFFFFF;
    background-image:url(../images/topnav-up.gif);
    padding: 0.3em 0.3em;
    color: #333;
    text-decoration: none;
    /* Menu items that have mouse over or focus have a blue
    background and white text */
    ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
    background-color: #FFFFFF;
    color: #333;
    /* Menu items that are open with submenus are set to
    MenuBarItemHover with a blue background and white text */
    ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical
    a.MenuBarItemSubmenuHover, ul.MenuBarVertical
    a.MenuBarSubmenuVisible
    background-color: #FFFFFF;
    color: #333;
    SUBMENU INDICATION: styles if there is a submenu under a
    given menu item
    /* Menu items that have a submenu have the class designation
    MenuBarItemSubmenu and are set to use a background image positioned
    on the far left (95%) and centered vertically (50%)*/
    ul.MenuBarVertical a.MenuBarItemSubmenu
    background-image: url(../images/topnav-up.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    background-color: #038203;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: #666666;
    border-top-width: 2px;
    border-top-color: #FFFFFF;
    border-right-width: 2px;
    border-left-width: 2px;
    border-top-style: solid;
    border-right-style: solid;
    border-left-style: solid;
    border-right-color: #666666;
    border-left-color: #FFFFFF;
    /* Menu items that are open with submenus have the class
    designation MenuBarItemSubmenuHover and are set to use a "hover"
    background image positioned on the far left (95%) and centered
    vertically (50%) */
    ul.MenuBarVertical a.MenuBarItemSubmenuHover
    background-image: url(../images/topnav-dn.gif);
    background-repeat: no-repeat;
    background-position: 0% 50%;
    BROWSER HACKS: the hacks below should not be changed unless
    you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form
    controls, we underlay each submenu with an iframe */
    ul.MenuBarVertical iframe
    position: absolute;
    z-index: 1010;
    /* HACK FOR IE: to stabilize appearance of menu items; the
    slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarVertical li.MenuBarItemIE
    display: inline;
    f\loat: left;
    background: #FFF;

    I just finished setting up a vertical, 3-level spry menu in
    Dreamweaver CS3, and when I preview it in IE7, several pixels have
    been added in between the buttons, which spreads the menu out and
    looks terrible. The problem disappears after I clear the ActiveX
    warning, and it doesn't occur in FF. Could someone please tell me
    how to fix this??
    Here's my SpryMenuBarVertical.css file:
    @charset "UTF-8";
    /* SpryMenuBarVertical.css - Revision: Spry Preview Release
    1.4 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights
    reserved. */
    LAYOUT INFORMATION: describes box model, positioning,
    z-order
    /* The outermost container of the Menu Bar, a fixed width box
    with no margin or padding */
    ul.MenuBarVertical
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 0.8em;
    cursor: default;
    width: 150px;
    /* Set the active Menu Bar with this class, currently setting
    z-index to accomodate IE rendering bug:
    http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html
    ul.MenuBarActive
    z-index: 1000;
    /* Menu item containers, position children relative to this
    container and are same fixed width as parent */
    ul.MenuBarVertical li
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: relative;
    text-align: left;
    cursor: pointer;
    width: 150px;
    /* Submenus should appear slightly overlapping to the right
    (95%) and up (-5%) with a higher z-index, but they are initially
    off the left side of the screen (-1000em) */
    ul.MenuBarVertical ul
    margin: -5% 0 0 95%;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: absolute;
    z-index: 1020;
    cursor: default;
    left: -1000em;
    top: 0;
    /* Submenu that is showing with class designation
    MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen
    ul.MenuBarVertical ul.MenuBarSubmenuVisible
    left: 0;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarVertical ul li
    background-image:url(../images/topnav-up-165.gif);
    background:#FFFFFF;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Menu items are a light gray block with padding and no text
    decoration */
    ul.MenuBarVertical a
    display: block;
    cursor: pointer;
    background-color: #FFFFFF;
    background-image:url(../images/topnav-up.gif);
    padding: 0.3em 0.3em;
    color: #333;
    text-decoration: none;
    /* Menu items that have mouse over or focus have a blue
    background and white text */
    ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
    background-color: #FFFFFF;
    color: #333;
    /* Menu items that are open with submenus are set to
    MenuBarItemHover with a blue background and white text */
    ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical
    a.MenuBarItemSubmenuHover, ul.MenuBarVertical
    a.MenuBarSubmenuVisible
    background-color: #FFFFFF;
    color: #333;
    SUBMENU INDICATION: styles if there is a submenu under a
    given menu item
    /* Menu items that have a submenu have the class designation
    MenuBarItemSubmenu and are set to use a background image positioned
    on the far left (95%) and centered vertically (50%)*/
    ul.MenuBarVertical a.MenuBarItemSubmenu
    background-image: url(../images/topnav-up.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    background-color: #038203;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: #666666;
    border-top-width: 2px;
    border-top-color: #FFFFFF;
    border-right-width: 2px;
    border-left-width: 2px;
    border-top-style: solid;
    border-right-style: solid;
    border-left-style: solid;
    border-right-color: #666666;
    border-left-color: #FFFFFF;
    /* Menu items that are open with submenus have the class
    designation MenuBarItemSubmenuHover and are set to use a "hover"
    background image positioned on the far left (95%) and centered
    vertically (50%) */
    ul.MenuBarVertical a.MenuBarItemSubmenuHover
    background-image: url(../images/topnav-dn.gif);
    background-repeat: no-repeat;
    background-position: 0% 50%;
    BROWSER HACKS: the hacks below should not be changed unless
    you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form
    controls, we underlay each submenu with an iframe */
    ul.MenuBarVertical iframe
    position: absolute;
    z-index: 1010;
    /* HACK FOR IE: to stabilize appearance of menu items; the
    slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarVertical li.MenuBarItemIE
    display: inline;
    f\loat: left;
    background: #FFF;

  • Dreamweaver template Spry Accordion displays error on Firefox

    Hi,
    I downloaded and try to use the template 02 with Dreamweaver CS5 from
    http://www.adobe.com/devnet/dreamweaver/articles/dreamweaver_custom_templates.html
    However, when I try to browse the theme_02_design.html in firebox, the spry accordion is corrupted ( see image) ,
    it didn't displays as the way it looks in here: http://www.adobe.com/devnet-archive/dreamweaver/articles/dreamweaver_custom_templates/temp late2/Publish/theme_02_design_from_template.html
    I already finished the whole editing to create a new site and it works perfectly fine in google chrome and IE.
    I only browse the theme_02_design.html in firebox and it doesn't look right already.
    Or is this template doesn't work well with firefox? How should I fix this problem?
    Thanks a million for any help, appreciate it.

    #1 Validate code with the tools below and fix reported errors.
              CSS - http://jigsaw.w3.org/css-validator/
              HTML - http://validator.w3.org/
    #2 Upload your test page and dependant files to a web server space you control.
    #3 Come back to the forum & post the URL to your page.
    Nancy O.

  • Rewriting a select statement containing a correlated subquery

    Hi,
    I would like to rewrite the statement below to improve it's performance. Is it possible?
    *SELECT DISTINCT A.FIELD1
              ,A.FIELD2
              ,A.FIELD3
              ,A.FIELD4
              ,A.DATE_FIELD1
              ,(SELECT SUM(B.NUMBER_FIELD1)
                        FROM TABLE1 B
                        where B.FIELD1 = A.FIELD1
                        and B.FIELD2 = A.FIELD
                        and B.FIELD3 = A.FIELD
                        and B.FIELD4 = A.FIELD
                        and B.DATE_FIELD1 <= A.DATE_FIELD1
                   ) as Total
              FROM TABLE1 A*
    The results should be a running total for a given "A.FIELD4" based on the date field "DATE_FIELD".
    Many Thanks

    Shouldn't the total for 13/JUL/09 be 0 instead of 3100 or am I missing something?
    SQL> create table t as
      2  select 'CP001' field1, '0004' field2, 'O' field3, '000000000000003' field4, to_date('01/JUL/09', 'dd/mon/yy') date_field1, 1550 number_field1 from dual union all
      3  select 'CP001', '0004', 'O', '000000000000003', to_date('01/JUL/09', 'dd/mon/yy'), 1550 from dual union all                 
      4  select 'CP001', '0004', 'O', '000000000000001', to_date('27/FEB/09', 'dd/mon/yy'), 1550 from dual union all                 
      5  select 'CP001', '0004', 'O', '000000000000002', to_date('11/JUN/09', 'dd/mon/yy'), -1550 from dual union all                 
      6  select 'CP001', '0004', 'O', '000000000000003', to_date('13/JUL/09', 'dd/mon/yy'), -1550 from dual union all                 
      7  select 'CP001', '0004', 'O', '000000000000003', to_date('13/JUL/09', 'dd/mon/yy'), 1550 from dual union all                  
      8  select 'CP001', '0004', 'O', '000000000000004', to_date('23/OCT/09', 'dd/mon/yy'), -3100 from dual union all                 
      9  select 'CP001', '0004', 'O', '000000000000005', to_date('26/FEB/10', 'dd/mon/yy'), 1750 from dual union all                  
    10  select 'CP001', '0004', 'O', '000000000000005', to_date('26/FEB/10', 'dd/mon/yy'), 1750 from dual;
    Table created.
    SQL> select * from t;
    FIELD FIEL F FIELD4          DATE_FIELD1         NUMBER_FIELD1
    CP001 0004 O 000000000000003 01-07-2009 00:00:00          1550
    CP001 0004 O 000000000000003 01-07-2009 00:00:00          1550
    CP001 0004 O 000000000000001 27-02-2009 00:00:00          1550
    CP001 0004 O 000000000000002 11-06-2009 00:00:00         -1550
    CP001 0004 O 000000000000003 13-07-2009 00:00:00         -1550
    CP001 0004 O 000000000000003 13-07-2009 00:00:00          1550
    CP001 0004 O 000000000000004 23-10-2009 00:00:00         -3100
    CP001 0004 O 000000000000005 26-02-2010 00:00:00          1750
    CP001 0004 O 000000000000005 26-02-2010 00:00:00          1750
    9 rows selected.
    SQL> -- your query (added only an extra order by):
    SQL> select distinct
      2         a.field1
      3  ,      a.field2
      4  ,      a.field3
      5  ,      a.field4
      6  ,      a.date_field1
      7  ,    ( select sum(b.number_field1)
      8         from   t b
      9         where  b.field1 = a.field1
    10         and    b.field2 = a.field2
    11         and    b.field3 = a.field3
    12         and    b.field4 = a.field4
    13         and    b.date_field1 <= a.date_field1
    14       ) as total
    15  from t a
    16  order by a.date_field1;
    FIELD FIEL F FIELD4          DATE_FIELD1              TOTAL
    CP001 0004 O 000000000000001 27-02-2009 00:00:00       1550
    CP001 0004 O 000000000000002 11-06-2009 00:00:00      -1550
    CP001 0004 O 000000000000003 01-07-2009 00:00:00       3100
    CP001 0004 O 000000000000003 13-07-2009 00:00:00       3100
    CP001 0004 O 000000000000004 23-10-2009 00:00:00      -3100
    CP001 0004 O 000000000000005 26-02-2010 00:00:00       3500
    6 rows selected.
    SQL> -- an alternative, without analytics:
    SQL> select a.field1
      2  ,      a.field2
      3  ,      a.field3
      4  ,      a.field4
      5  ,      a.date_field1
      6  ,      sum(a.number_field1) total
      7  from t a
      8  group by a.field1
      9  ,        a.field2
    10  ,        a.field3
    11  ,        a.field4
    12  ,        a.date_field1
    13  order by a.date_field1;
    FIELD FIEL F FIELD4          DATE_FIELD1              TOTAL
    CP001 0004 O 000000000000001 27-02-2009 00:00:00       1550
    CP001 0004 O 000000000000002 11-06-2009 00:00:00      -1550
    CP001 0004 O 000000000000003 01-07-2009 00:00:00       3100
    CP001 0004 O 000000000000003 13-07-2009 00:00:00          0
    CP001 0004 O 000000000000004 23-10-2009 00:00:00      -3100
    CP001 0004 O 000000000000005 26-02-2010 00:00:00       3500
    6 rows selected.

  • Spry valid state form msg

    Hi,
    I'm just learning to built Spry form from DWCS3.
    How do you include a custom message for the valid state?
    It is currently display green color only.
    I want it to display a message like the invalid state.
    The invalid state " A value is required."
    Thanks,
    oneone1

    Fixed this by specifying the item number for each option in my select as follows:
    <span id="spryEquipLoc">
    <label for="EquipLoc">Equipment Location</label><br/>
        <select name="EquipLoc" id="EquipLoc" tabindex="4">
          <option selected></option>
          <option value="item1">Master Control</option>
          <option value="item2">Media Services</option>
          <option value="item3">Central Tape</option>
         </select>
         <span class="selectRequiredMsg">Please select an item.</span></span>
    Found the info here:
    http://labs.adobe.com/technologies/spry/articles/select_overview/index.html

  • Dreamweaver rewriting cfincludes

    Dreamweaver is rewriting my cfincludes from
    <cfinclude template="mytemplate.cfm">
    to:
    <MM:BeginLock translatorClass="MM_SSI" type="ssi"
    orig="%3Ccfinclude template=%22dsp_productDetail.cfm%22%3E"
    fileRef="dsp_productDetail.cfm"><img src="file:///C|/Program
    Files/Macromedia/Dreamweaver MX
    2004/Configuration/ThirdPartyTags/ColdFusion.gif"><MM:EndLock>
    How can I turn this off?
    Thanks.

    Man this is an old problem! I have this situation right now,
    it probably wont do any good to post another message at this
    point!

  • Spry Panel State - open/closed ?

    Hello Guys/Gals,
    I don't want to re-invent the wheel here if at all possible...
    Has anyone ever included the Spry Collapsible Panel in menu by PHP Includes?
    Here is what I need to accomplish, the spry panels are in 1 file which is included throughout the entire site with php includes.
    I need the open/closed state to be remembered - so if you open panel #2 and click a link, you end up on that page with only panel #2 open.
    If the user closes that panel, then the panel is closed on any page visited.
    Tracking user with cookies or what?
    Can someone point me to any example code for this?
    Thanks,
    RD

    Does this help:
    http://www.spry-it.com/examples/spry-widget-cookie-history/
    http://www.spry-it.com/examples/spry-widget-cookie-history/#collapsiblepanel

  • Form Validation against database - Dreamweaver CS4 Spry

    Hi all,
    I'm trying to figure out how to implement a form validation
    of some fields, let's say a username. I have a form that inserts on
    MySQL table, and when the user is typing the username, after it
    looses the focus on field, validate it if there is a record on
    table with the specified username. If so, validation will fail.
    I already saw something similar with this on Dreamweaver MX
    using some extension (because at that time, it did not support
    ajax).
    Kind regards, and thanks in advance.

    I don't have a solution, but you may try posting in the Spry
    Forums, you might get a better response.
    http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602

  • Dreamweaver CS3 Spry Updates

    Just been reading the Edge newsletter for June, and picked up
    on this under the section describing Ajax features in DW CS3:
    Adobe say-
    "Because Spry lives independently on Adobe Labs, it will
    continue to evolve and become more robust and powerful. Upcoming
    releases will include JavaScript Object Notation (JSON) support,
    unobtrusive JavaScript support, HTML datasets, and more."
    With each stable release of Spry, is there going to be an
    update for DW to expand the functionality within the software, for
    instance, update the Spry toolbar to contain buttons for new
    features etc?

    Yep - that's the ticket....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Al Sparber- PVII" <[email protected]> wrote in
    message
    news:f568nl$ha1$[email protected]..
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:f56612$e0c$[email protected]..
    >> Make it a server-side include. Remember that the
    parent page must have
    >> the links to the CSS files, and the javascript
    files, NOT the include
    >> file.
    >
    > Even though this is part of the Pop Menu Magic user
    guide, the theory
    > would be the same for the Spry menu (without the
    automation features):
    >
    http://www.projectseven.com/products/menusystems/pmm/user_guide/site_wide/includes/index.h tm
    >
    >
    > --
    > Al Sparber - PVII
    >
    http://www.projectseven.com
    > Extending Dreamweaver - Nav Systems | Galleries |
    Widgets
    > Authors: "42nd Street: Mastering the Art of CSS Design"
    >
    >

Maybe you are looking for

  • HELP!!!! My iTunes Library will  not load...

    So, I uninstalled the Safari tool, I never use it. I restarted my computer and now my iTunes library is empty. I try to import the library from my music folder, and I get an error that says "The file iTunes library.itl cannot be imported because it d

  • What happens when an internet enabled phone...

    ...encounters a website using Flash? Basically, I'm wondering how web-enabled phones handle Flash if they don't have Flash Lite 1 or 2. As a North American, I'm wondering what the impetus is to develop mobile Flash content if the phones can't use it.

  • BEx - Storage location

    Hi, When i executed a query... In a storage location column we are plant and storage location code simultaneously... but we are selecting only storage location.. cannot we seperate bothe if yes how... please kindly help me... Thanks Sonu

  • Is USB 3.0 a valid option for the 610-1280qd CTO?

    When I ordered my 610-1280qd CTO Prod No. QB912AV#ABA ten days ago the online customizer did not list a USB 3.0 option--and still does not today.  I definitely would have opted for it if it had it been a selectable option.   Is the online customizer

  • Getting applets into a web page

    I am trying to learn about Java Applets from a book, after having done a little programming at college. My problem is that the books first example (�Watch�) works fine when viewed through an appletviewer, but when I try to add it to a web page I get