Sum a field in repeat region

Hi There,
I am trying to sum a field in a repeat region.
That is, the repeat region displays on page as per normal but then have a total field based on the sub total fields stored in the data base for each record.
Any help is appreciated.
Cheers

Here's a quick idea of how to do it in CF. If you use PHP the principle would be the same.
<cfset ThisRowTotal = 0 >
<cfloop query="getPageLinks">
  <cfset ThisRowTotal = ThisRowTotal + YourSubTotalVariable>
    <cfoutput>#ThisRowTotal#<cfoutput>
</cfloop>
That's how it would look, what it is doing is each loop it is adding that loop's subtotal to the "ThisRowTotal" variable, then outputting it, so each loop will show the cumulative sub total.
Hope this helps.
Lawrence Cramer - *Adobe Community Professional*
http://www.Cartweaver.com
Shopping Cart for Adobe Dreamweaver
available in PHP, ColdFusion, and ASP
Stay updated - http://blog.cartweaver.com

Similar Messages

  • I need to validate field in repeated region

    I need to validate a form that is inside a repeated region,
    therefore the
    name of the form element changes, like ... name1, then same
    field next row
    is 'name2', and so forth ... I haven't been able to find help
    nor tutorials,
    I need to get this done over the weekend, does anyone knows
    someone who I
    can hire to do this job ?
    A

    I did, I just don't know how to validate them .... any clues
    A
    "Randy Edmunds" <[email protected]> wrote in
    message
    news:eesnug$bbd$[email protected]..
    > Alejandro,
    >
    > To use form elements in a Repeat Region, you'll need to
    setup a scheme to
    > automatically generate unique ids/names for each
    element. And do it in
    > such as way that you can interpret the data later.
    >
    > HTH,
    > Randy
    >
    >
    >> I have a page that updates multiple records, the
    first field in the
    >> repeated region is a date.
    >>
    >> I need to validate that the information entered in
    such field is a date,
    >> keep in mind this is not just one field but a
    repeated region. I tried
    >> using my regular form validation extensions but none
    work.
    >> Is there a way to validate form elements inside a
    repeated region ?

  • Assigning "position" in repeat region

    I have a site that runs a contest and displays winners from
    across the
    nation. Through the year they compete and can go online to
    see where they
    stand in relation to others in their same territory. In order
    to display
    the winner's positions on the page, I sort the underlying
    data in sql using
    the necessary criteria, then on my asp page, as part of the
    repeat region, I
    run code that loops through the recordset and uses an x+1
    method of
    displaying each person's position. Whether or not this is the
    best way to
    do this, it works.
    MY PROBLEM...
    Up until now I only needed to display the positions based on
    one selected
    territory. So my results would always simply show 1 -x, in
    order.
    Joe territory1 1
    Van territory1 2
    Tim territory1 3
    Bob territory1 4
    NOW I am being asked to show the entire nation on one page
    for
    administrators. They want to see ALL the territories and the
    positions of
    each person for each territory, and have the ability to sort
    based on
    various columns. So now my "positions" column will have
    several people in
    1st position, several in 2nd, etc.
    Joe territory1 1
    Jen territory2 1
    Van territory1 2
    Sue territory2 2
    Tim territory1 3
    Len territory2 3
    Bob territory1 4
    Ken territory2 4
    I'm not sure how to go about this, and would greatly
    appreciate any advice!

    In the actual case the criteria for winning is that 1) ALL
    criteria are met
    (there are actually four of them, not two as shown in my
    example), and then
    2) you have the highest perentage.
    So in the case below, remembering that each territory has its
    own set of
    winners, it would look like this (if sorted by winning
    position - keeping in
    mind that I need to allow sorting on ANY column by the user):
    name territory Criteria_A Criteria_B Criteria_C POS
    Bob 1 74% Y Y
    1
    Tim 1 42% Y Y
    2
    Van 1 25% Y Y
    3
    Len 2 66% N Y
    1
    Sue 2 56% N Y
    2
    Joe 1 43% Y N
    4
    Ken 2 82% N N
    3
    Jen 2 68% N N
    4
    Here you can see that Bob, Tim, and Van all have Y for both
    their B & C
    criteria, so they are sorted to the top (how I do that is
    somewhat secondary
    at this point -- you can just assume that Y=10 and N=0 and
    I'll sort on the
    sum of those columns).
    Then Len, Sue, and Joe each have one Y and one N, so they are
    grouped
    together based on that, then sorted by percent. Note that Joe
    has a
    position of 4 because he is in Territory 1.
    Lastly, Ken and Jen have "N" for both criteria, so they are
    sorted last, and
    then by their percentage.
    I put a dashed line in there as a visual aid -- doesn't need
    to be in my
    results.
    "Pizza Good" <[email protected]> wrote in message
    news:[email protected]...
    > Hmm...interesting.
    >
    > In the sample data below, can you please sort them how
    you want them to
    > appear? I want to see how you handle the Y's and N's.
    >
    >
    > "HX" <[email protected]> wrote in message
    > news:[email protected]...
    >> Because "position" isn't a field in the database -
    it's determined based
    >> on sorting the list on various criteria. For
    example, let's say the
    >> winner for each territory will have met all of
    criteria_B and _C and then
    >> will have the highest % in criteria_A . All I have
    in my database is:
    >>
    >> name territory Criteria_A Criteria_B Criteria_C
    >> Joe 1 43% Y N
    >> Jen 2 68% N N
    >> Van 1 25% Y Y
    >> Sue 2 56% N Y
    >> Tim 1 42% Y Y
    >> Len 2 66% N Y
    >> Bob 1 74% Y Y
    >> Ken 2 82% N N
    >>
    >> For Territory 1 I can pull out those names, sort
    based on my criteria,
    >> then loop in my repeat region and assign their
    positions right there in
    >> the asp.
    >>
    >> But when I combine ALL of them onto one page, I
    can't do that.
    >>
    >> Is there some way to set those positions in the
    sub-query (for each
    >> territory) and reference that field in a 2nd query?
    >>
    >>
    >>
    >>
    >> "Pizza Good" <[email protected]> wrote
    in message
    >> news:[email protected]...
    >>> Why not just sort by both fields?
    >>>
    >>> Not sure what your fields are called so I will
    use:
    >>>
    >>> territory
    >>> position
    >>>
    >>> ORDER BY territory ASC, position ASC
    >>>
    >>>
    >>>
    >>>
    >>> "HX" <[email protected]> wrote in
    message
    >>> news:[email protected]...
    >>>>I have a site that runs a contest and
    displays winners from across the
    >>>>nation. Through the year they compete and can
    go online to see where
    >>>>they stand in relation to others in their
    same territory. In order to
    >>>>display the winner's positions on the page, I
    sort the underlying data
    >>>>in sql using the necessary criteria, then on
    my asp page, as part of the
    >>>>repeat region, I run code that loops through
    the recordset and uses an
    >>>>x+1 method of displaying each person's
    position. Whether or not this is
    >>>>the best way to do this, it works.
    >>>>
    >>>> MY PROBLEM...
    >>>>
    >>>> Up until now I only needed to display the
    positions based on one
    >>>> selected territory. So my results would
    always simply show 1 -x, in
    >>>> order.
    >>>>
    >>>> Joe territory1 1
    >>>> Van territory1 2
    >>>> Tim territory1 3
    >>>> Bob territory1 4
    >>>>
    >>>> NOW I am being asked to show the entire
    nation on one page for
    >>>> administrators. They want to see ALL the
    territories and the positions
    >>>> of each person for each territory, and have
    the ability to sort based
    >>>> on various columns. So now my "positions"
    column will have several
    >>>> people in 1st position, several in 2nd, etc.
    >>>>
    >>>> Joe territory1 1
    >>>> Jen territory2 1
    >>>> Van territory1 2
    >>>> Sue territory2 2
    >>>> Tim territory1 3
    >>>> Len territory2 3
    >>>> Bob territory1 4
    >>>> Ken territory2 4
    >>>>
    >>>> I'm not sure how to go about this, and would
    greatly appreciate any
    >>>> advice!
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>
    >>>
    >>
    >>
    >
    >

  • Calculate Total In Repeat Region

    Hi,
    I need to calculate a total based on fields in a repeat
    region, these values
    are stored in an SQL db, all are numeric and written in ASP.
    fields are
    TOTAL_COST VAT GRANDTOTAL (Page selects records based on
    field parameter and displays in a repeat region)
    At bottom of page need to show total sum like
    TOTAL_COST(sum of above)
    VAT(sum of above)
    GRANDTOTAL(sum of above)
    Thanks in advance
    Simon

    Above your repeat region declare three values like this
    <%
    Dim TCost = 0
    Dim VAT=0
    Dim GTotal = 0
    %>
    Then inside the repeat region simply have a line like this
    <%
    TCost = TCost + recordset.fields.item("cost").value
    %>
    Finally where you want the numbers to display you would have
    the following
    calculations
    <%
    VAT = TCost * .01
    GTotal = TCost + VAT
    %>
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Simon Gare" <[email protected]> wrote in message
    news:e71gpa$8la$[email protected]..
    > Hi,
    >
    > I need to calculate a total based on fields in a repeat
    region, these
    > values
    > are stored in an SQL db, all are numeric and written in
    ASP.
    >
    > fields are
    >
    > TOTAL_COST VAT GRANDTOTAL (Page selects records based
    > on
    > field parameter and displays in a repeat region)
    >
    >
    > At bottom of page need to show total sum like
    >
    > TOTAL_COST(sum of above)
    > VAT(sum of above)
    > GRANDTOTAL(sum of above)
    >
    > Thanks in advance
    > Simon
    >
    >

  • Help I can't get my images and description from recordset to display in repeat region table

    Hi everyone,
    could somebody please help me, this is my first php and mysql website, I have a web page that is supposed to display a table with 2 rows 3 columns.
    In each column i want an image, a description and a paypal button.
    then i have a repeat region placed around the second row which should display 3 records at a time.
    The recordset worked when I tested it several times, and the paypal button displays in the browser, but the image and the description won't display and the repeat region doesn't work either as only one button paypal button displays.
    I have uploaded the actual page, in the hope that some could take a look and help me to find out what the problem is.
    Thanks

    In the second row, did you mean you want the three fields to display, not three records?  A record is one row of data.
    Start by getting a single row to display, and leave the paypal button out for now.  So that means you will see the first record in your recordset, the image and description.  To view the description, use the data bindings panel, expand the recordset and drag the description field onto the page in the table.  For the image, insert and image placeholder and point the source to a dynamic data source. Again, choose the approprate field from your recordset.
    Once that record is working, add your repeat region and test.
    For the Paypal button, I am not sure if each button will carry the correct information with it in a repeat region.  There has to be a way to dynamicall add the approprate data to the paypal link for each record.  You may want to also incude checkboxes or radio buttons and have only 1 paypal button - but that introduces other issues which we can tackle later.

  • Php/MySQL Repeated region which doen't include the last item?

    Hi,
    I hope somebody can help me with this. I use php/MySQL.
    I need t create a repeated region which doen't include the last item (post) added to the table.
    Does somebody know how to establish this?

    In SQL, there is no native concept of the last item inserted. It's up to you to control that. What is your definition of the last item? Is it the row with the greatest datetime stamp? An autoincrement id field? Something else?
    Using an autoincrement id field as an example, the last row inserted will have the largest value, so
    Select * from MyTable where MyID != (select max MyID from MyTable)

  • How to create a repeating region like the attachements in Gmail

    I don't even know how to begin Googling or searching here for
    this topic. But I've got a form and I want to have two fields show
    up for inputting the fabric type and then the pattern name. This
    site will allow them to request fabric swatches to see in person
    how they look and make a decision for their furniture. And if
    customers want to ask for more than one sample, I want to be able
    to have a link that says, "Request another" and when clicked, it
    creates another instance of those two fields automagically, just
    how the attachments in Gmail work.
    Is this something possible with Spry? I'd like to think it
    is, but it might need some jury rigging to ensure that the ids for
    those text inputs are all unique and such. But like I said, I don't
    even know how to begin searching for this topic since "repeating
    area" or "repeating region" brings back 1000s of unrelating
    results.
    Anyone have any experience doing something like this and
    could shed some light on it and/or point me toward some resources
    that could help out?
    Thanks!

    Hi unnamed,
    Suppose you have an id that identifies your record.
    Go to Report definiton, tab report attirbutes.
    Select the id of your record.
    Create a link to the page you want to go to.
    Hope this helps.
    If not, I suggest you to create a from with report, and analyze the way the wizard has generated it.
    Leo

  • Conditionally Hide/Display fields in a region

    How can I conditionally hide/display fields in a region. Based on a user selection whether they want to 'Enter' or 'Select', I want to dispaly the appropriate field .i.e. if the user selects 'Enter' then I want to display a Text field and if they opt for 'Select', then I want to display a Select list.
    Thanks in Advance.
    Regards,
    Hilal

    Hi Halil,
    I've been trying to reproduce what the linked site does.
    Here's my solution:
    1 - Add all items to the page whether or not they are going to be displayed
    2 - Ensure that all items that could be shown/hidden are on lines on their own (ie, set New Line to Yes)
    3 - In the region's Region Footer (or in a new HTML region in the Before Footer position), add in this bit of javascript:
    &lt;script type="text/javascript"&gt;
    html_HideItemRow('NameOfFieldToHide');
    -- repeat for each item to be hidden when the page first loads
    &lt;/script&gt;
    4 - On the radio button's definition, add the following in the HTML Form Element Attributes setting:
    onclick="html_ToggleItemRow('NameOfDisplayedItem');html_ToggleItemRow('NameOfHiddenItem');"
    Now when the page is loaded, one field is automatically hidden then clicking any of the radio button options will toggle the hidden/displayed fields and their labels.
    As stated before, if you do a View Source on the linked application's page, you will see either more methods that are used to show/hide items/regions, but the above should be a starting point for you.
    Regards
    Andy

  • Creating links in repeat regions

    How do I link a downloadable word document in a repeat region displaying information from a database. The word document would be different for each record. Thanks.
    I posted this question 9 hours ago and have not received a reply. I am not sure that you understant my question and so I will try to make it clearer.
    1. I created a database and stored the name of the word document in the cv_name field.
    2. I created a repeat region that displays the name of the word documents in the recordset
    3 All I need to do is to link the name of the word document to the word file in dreamweaver
    4 I highlight the name field, open the property inspector, click the folder icon, set the link to use Data Sources, and select the recordset column that holds the word document name.
    5 However when I click on the file name that is displayed on the website I get an error.
    Thanks for any assistance

    Hi Avci,
    Try this
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <HTML><HEAD><TITLE>Home</TITLE>
    <META http-equiv=Content-Type content="text/html;
    charset=iso-8859-1">
    <META content="MSHTML 6.00.2800.1458" name=GENERATOR>
    <style>
    .redlnk {
    FONT-SIZE: 9px;
    COLOR: red;
    LINE-HEIGHT: 15px;
    FONT-STYLE: normal;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    .redlnk:hover{
    FONT-SIZE: 9px;
    COLOR: red;
    LINE-HEIGHT: 15px;
    FONT-STYLE: normal;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION:underline;
    .bluelnk {
    FONT-SIZE: 9px;
    COLOR: blue;
    LINE-HEIGHT: 15px;
    FONT-STYLE: normal;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    .bluelnk:hover{
    FONT-SIZE: 9px;
    COLOR: blue;
    LINE-HEIGHT: 15px;
    FONT-STYLE: normal;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION:underline;
    .greenlnk {
    FONT-SIZE: 9px;
    COLOR: green;
    LINE-HEIGHT: 15px;
    FONT-STYLE: normal;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION: none;
    .greenlnk:hover{
    FONT-SIZE: 9px;
    COLOR: green;
    LINE-HEIGHT: 15px;
    FONT-STYLE: normal;
    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
    TEXT-DECORATION:underline;
    </style>
    </HEAD>
    <BODY topmargin="0" leftmargin="0" rightmargin="0" >
    <a class="redlnk" href="red.htm"
    title="red">Red</a>
    <br/>
    <a class="bluelnk" href="blue.htm"
    title="blue">Blue</a>
    <br/>
    <a class="greenlnk" href="green.htm"
    title="green">Green</a>
    </BODY>
    </HTML>
    I hope this helps.
    shanthi

  • Nested Repeat Region

    Dreamweaver CS3
    ASP / VBScript
    Hi,
    I'm trying to create a nested repeat region to display a list
    of categories
    and, in brackets afterwards, a count of the number of
    sub-categories
    contained in it E.g.
    Cats (12)
    Dogs (43)
    Fish (92)
    Etc
    I have managed to create my repeat region ok because as soon
    as I drop a
    field in from the recordset, it loops through them all and
    displays them
    correctly. However, when I try and simply write out the total
    number of
    records found, it doesn't display anything.
    Recordset 1 is a straighforward select from the table.
    Recordset 2 adds a
    WHERE clause usinga variable based on the 1st recordset. Here
    is the code
    i'm using for the 2 recordsets:
    Recordset 1 :
    <%
    Dim Level1
    Dim Level1_cmd
    Dim Level1_numRows
    Set Level1_cmd = Server.CreateObject ("ADODB.Command")
    Level1_cmd.ActiveConnection = MM_SemiDirectory_STRING
    Level1_cmd.CommandText = "SELECT * FROM TBL_Level1 ORDER BY
    [Description]
    ASC"
    Level1_cmd.Prepared = true
    Set Level1 = Level1_cmd.Execute
    Level1_numRows = 0
    %>
    Recordset 2 :
    <%
    Dim Level2__varLink
    Level2__varLink = "1"
    If (level1.fields.item("Level1_ID").value <> "") Then
    Level2__varLink = level1.fields.item("Level1_ID").value
    End If
    %>
    <%
    Dim Level2
    Dim Level2_cmd
    Dim Level2_numRows
    Set Level2_cmd = Server.CreateObject ("ADODB.Command")
    Level2_cmd.ActiveConnection = MM_SemiDirectory_STRING
    Level2_cmd.CommandText = "SELECT * FROM TBL_Level2 WHERE
    Level1_ID = ? ORDER
    BY Level1_ID ASC"
    Level2_cmd.Prepared = true
    Level2_cmd.Parameters.Append
    Level2_cmd.CreateParameter("param1", 5, 1, -1,
    Level2__varLink) ' adDouble
    Set Level2 = Level2_cmd.Execute
    Level2_numRows = 0
    %>
    Now for the repeated code :
    <%
    While ((Repeat1__numRows <> 0) AND (NOT Level1.EOF))
    %>
    <li><a
    href="category.asp?level1=<%=(Level1.Fields.Item("Level1_ID").Value)%>"><%=(Level1.Fields .Item("Description").Value)%>
    (<%=(Level2_total)%>)
    </li></a>
    <%
    Repeat1__index=Repeat1__index+1
    Repeat1__numRows=Repeat1__numRows-1
    Level1.MoveNext()
    Wend
    %>
    Can anyone tell me what I need to do to this code to make it
    display the
    number of sub-categories?
    Thanks!!!

    Ok folks,
    I found a way to get what I want. It's not pretty as I had to
    make an extra
    query in the database (that select of the count of all child
    table results
    for each parent category) and am pulling from that but it
    works and that's
    the main thing. I'm sure there is a more effective way of
    doing it but
    that's life!
    I'm still interested in knowing the 'proper' way (if there is
    such a thing)
    so if you have the time to show me, i'm all ears!
    Cheers!
    "Mintyman" <[email protected]> wrote in message
    news:[email protected]...
    > Ok,
    >
    > So I closed the <li> code before the <a>
    code. D'oh!
    >
    > Anyway, it returns a number now........the problem now
    is that it returns
    > the same value for each parent repeat!!!
    >
    > "Mintyman" <[email protected]> wrote in message
    > news:[email protected]...
    >> Dreamweaver CS3
    >> ASP / VBScript
    >>
    >> Hi,
    >>
    >> I'm trying to create a nested repeat region to
    display a list of
    >> categories and, in brackets afterwards, a count of
    the number of
    >> sub-categories contained in it E.g.
    >>
    >> Cats (12)
    >> Dogs (43)
    >> Fish (92)
    >> Etc
    >>
    >> I have managed to create my repeat region ok because
    as soon as I drop a
    >> field in from the recordset, it loops through them
    all and displays them
    >> correctly. However, when I try and simply write out
    the total number of
    >> records found, it doesn't display anything.
    >>
    >> Recordset 1 is a straighforward select from the
    table. Recordset 2 adds a
    >> WHERE clause usinga variable based on the 1st
    recordset. Here is the
    >> code i'm using for the 2 recordsets:
    >>
    >> Recordset 1 :
    >>
    >> <%
    >> Dim Level1
    >> Dim Level1_cmd
    >> Dim Level1_numRows
    >>
    >> Set Level1_cmd = Server.CreateObject
    ("ADODB.Command")
    >> Level1_cmd.ActiveConnection =
    MM_SemiDirectory_STRING
    >> Level1_cmd.CommandText = "SELECT * FROM TBL_Level1
    ORDER BY [Description]
    >> ASC"
    >> Level1_cmd.Prepared = true
    >>
    >> Set Level1 = Level1_cmd.Execute
    >> Level1_numRows = 0
    >> %>
    >>
    >> Recordset 2 :
    >>
    >> <%
    >> Dim Level2__varLink
    >> Level2__varLink = "1"
    >> If (level1.fields.item("Level1_ID").value <>
    "") Then
    >> Level2__varLink =
    level1.fields.item("Level1_ID").value
    >> End If
    >> %>
    >> <%
    >> Dim Level2
    >> Dim Level2_cmd
    >> Dim Level2_numRows
    >>
    >> Set Level2_cmd = Server.CreateObject
    ("ADODB.Command")
    >> Level2_cmd.ActiveConnection =
    MM_SemiDirectory_STRING
    >> Level2_cmd.CommandText = "SELECT * FROM TBL_Level2
    WHERE Level1_ID = ?
    >> ORDER BY Level1_ID ASC"
    >> Level2_cmd.Prepared = true
    >> Level2_cmd.Parameters.Append
    Level2_cmd.CreateParameter("param1", 5,
    >> 1, -1, Level2__varLink) ' adDouble
    >>
    >> Set Level2 = Level2_cmd.Execute
    >> Level2_numRows = 0
    >> %>
    >>
    >>
    >> Now for the repeated code :
    >>
    >>
    >> <%
    >> While ((Repeat1__numRows <> 0) AND (NOT
    Level1.EOF))
    >> %>
    >> <li><a
    >>
    href="category.asp?level1=<%=(Level1.Fields.Item("Level1_ID").Value)%>"><%=(Level1.Fields .Item("Description").Value)%>
    >> (<%=(Level2_total)%>)
    >> </li></a>
    >>
    >>
    >> <%
    >> Repeat1__index=Repeat1__index+1
    >> Repeat1__numRows=Repeat1__numRows-1
    >> Level1.MoveNext()
    >> Wend
    >> %>
    >>
    >> Can anyone tell me what I need to do to this code to
    make it display the
    >> number of sub-categories?
    >>
    >> Thanks!!!
    >>
    >>
    >>
    >
    >

  • Record Set - Repeat Region

    I have a page which on default will display 5 rows per page.
    I would the user to be able to select from a listbox (on the
    recordset page)and change the number of rows displayed on the page.
    I have tried a page with a listbox on and submitting to
    itself. But on re-load the listbox returns to its default
    value.

    Never mind, I was placing the repeat region in a blank row
    instead of one with data fields.

  • Filter same record in Repeat Region

    I would like to know how to filter same record in repeat
    region so that it only display once. I hv a table use repeat region
    to display 3 fields (title, date, time). My first page only display
    title field and when user click on the record at title field, it
    will pass URL parameter to second page which will display title and
    date filed and when user click on the record under date field it
    will again pass URL parameter to third page which display all
    field. I want same date in the date field only display once. I try
    to use GROUP by date, it works but i cant click the date to pass
    URL parameter. Any help would be appreciated.

    <cfoutput query = "yourQuery" group = "Date">
    #Date#
    <cfoutput>
    #OtherField#
    </cfoutput?
    </cfoutput>

  • IE bug - onclick in repeat region

    So, it took me most of the day to track this down.
    I have a repeat region that is setting an onclick and the
    page was throwing a JS error in IE6 and IE7.
    But, after it threw the error everything worked including the
    onclick.
    I finally figured out that it worked if I changed this:
    onclick="alert({modelid});"
    To this:
    onclick="alert('{modelid}');"
    I had to surround the spry variable notation with
    single-quotes.
    The reason I hadn't done this to begin with is that I have an
    integer in that field, so it's unnecessary.
    I'd be happy to send any Adobe employee the file that I
    created to demonstrate the problem.
    If the single quotes are always necessary, then that should
    be prominent in the instructions.
    If not (and they shouldn't be), then I look forward to this
    being fixed in the .4 release.
    Keep up the good work guys. Spry really is impressive (when
    IE, in all it's suckitude, isn't murdering it)

    Hi cf_addict,
    This is a known problem, so you are absolutely correct that
    it should be something we warn folks about up-front. Don and I have
    had some discussions about putting together a common problems page
    and posting it on labs and including it in the next version of
    Spry.
    For the curious, it looks like IE pre-compiles the JS in on*
    event attributes, so it barfs on unquoted data references because
    it thinks it's a syntax error. Quoting the data reference prevents
    the problem, and because JS does a lot of auto-coercing of types,
    things just work most of the time.
    --== Kin ==--

  • Formatting Recordset - Repeating Region

    Hi,
    I am a newbie and trying to format dynamic content.  I've created the link to the database and established a repeating region to return one field from the table.  Currently, a new line is created for each field and would prefer to format in paragraph style.
    This:
    item1 item2 item3 item4 item5
    Not this:
    item1
    item2
    item3
    item4
    item5
    Any help is appreciated.
    the current code looks something like below:
    <?php do { ?>
            <h1 class="item_stuff"><?php echo $row_Recordset1['item']; ?></h1>
            <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>

    I think I got it...  needed to update html tags...thanks anyway

  • Can i sum time fields?? (i expect that yes....)

    Hi everybody.
    I'm a visual basic programmer, actually, visual studio 2005, now i beginning with crystal report for visual studio 2005, nice and easy to use with the wizard, but,,, if i want to do something i little bit complex i can't find a manual for beginners.
    Now Iu2019m trying to do a report that list fields from a typed dataset, that dataset contains same datetime fields i.e. 1:30 , I put that fields in the details region, all it's ok, but the problem became when i try to sum all the times and totalize then.  The reason (i supposed) it's that the4 crystal can't sum time fields.
    Thinking about this, i suppose that i can do something with code but i can't find nothing about this, Can anybody tell me where is a manual to code in crystal report?
    Well, if somebody have any idea please tell me.

    The Crystal syntax doesn't change much from version to version so you can look at our SDK Guide on Diamond.
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_net_doc/doc/crsdk_net_doc/html/crconformulareference.htm
    If you really want to formula reference for Crystal Reports for Visual Studio .NET 2005 you can look here [http://msdn.microsoft.com/en-us/library/ms225334(VS.80).aspx|http://msdn.microsoft.com/en-us/library/ms225334(VS.80).aspx].
    Edited by: David Hilton on Sep 29, 2008 4:47 PM
    Edited by: David Hilton on Sep 29, 2008 4:48 PM

Maybe you are looking for