Count the total amount of records returned

Is there a way in DW to count and display the total amount of records in my DB table?
Eg: I might have 10,000 records in my database, but only 55 match the SELECT statement, so I want to show a visual counter saying '55 articles in this section' on my page.

Choose one of these  function appropriate to the api you are using:
http://php.net/manual/en/function.mysql-num-rows.php

Similar Messages

  • SQ02 InfoSet Get Count of Total Number of Records that will be processed

    I am developing a query (SQ01) and am currently working on building an InfoSet (SQ02). 
    The Infoset was set up using a 'Direct read of table'.  Next, I'm adding some various fields and then going to Extras and trying to define some code to get the total number of records that my query will be processing.  I'm not sure if SAP pulls a filtered result set into a temporary table (by default - if so how could I reference it?) that I can reference or is just pulling in a row at a time in the record processing code, but my question is in regards to getting a record count of how many records are returned in my result set PRIOR TO going through all of the records.
    Overall, I'd like to be able to have a field that says Record X of Y.  I can get the X part for each line, but cannot get 'Y' until the very end.  Any help or ideas would be much appreciated.  I've looked around a bunch, but haven't found anything like what I'm requesting.
    Query Output would look something like:
    Record X1 of Y | Title1 | Amount1
    Record X2 of Y | Title2 | Amount2

    Hi Subin,
         I have tossed around this idea in my head, but am trying to figure out how to get the values and selection options from the query screen to incorporate into my Select statement within my infoset.  The problem I'm running into is that my user enters a group of account numbers and an ending date that has to be pulled from the SQ01 query screen to the SQ02 infoset code.  I've looked around for examples on pulling the data from the query screen, but have been unsuccessful thus far.  Say for instance I have 15 specific accounts that the user is entering in and they want any records that have been submitted prior to the end of the current month and the start of the business year.
         On my query screen they would enter in something like
    Business Year:  2011
    Reporting End Date:  <= 31.03.2011 (Which equates to all records between 01.01.2011 AND 31.03.2011)
    Account #s:  0000, 0001, 0003, 0005, ..., 9999  (These are a variable amount of accounts entered and could include options such as not equal to or even between ranges etc)
    In my START-OF-SELECTION code I would need a select like:
    NOTE:  This is just a pseudo code format, not checked for syntax here
    SELECT count(*)
    FROM TABLE
    WHERE BusinessYear = '2011' AND
        RecordDate Between 01.01.2011 AND 31.03.2011 AND
        Accounts IN (0000, 0001, 0003, 0005, ..., 9999).
    So In this select I need to reference the values in the SQ01.  How would I reference the account #'s and whether or not the user has entered an account number and said Not Equal on it etc.  This select statement would have to be built on the fly, since it's not guaranteed to be the same for each run.
    Thanks,
    Mark

  • Summary filed to show the total amount

    Hi ,
    Version : Jdeveloper 11.1.1.5
    Table : Revenue ( Columns - RevId ,InAmount, OutAmount)
    Based on the Table i Created Entity Object and Based On Entity I Created View Object (RevenueVOW)
    I Created one method --> RevenueVOW to show Create Mode and 4 new Records to show
    how i will create summary field to show the total amount on InAmount
    ( In forms and reports we will create formula column)
    Thanks
    shk

    HI,
    Did you try with groovy expression
    Check
    Sum of field in af:table

  • Report to extract the total Amount that we spent for materials

    Hi Guru's,
    I was trying to find a report that gives all the following information by Company Code. Out put should have the following fields:
    1)Vendor Name,
    2) Vendor Number,
    3)Company Code,
    4) Payment Terms Code From Vendor Master,
    5) Payment Terms Description,
    6)Material Number,
    7)Material Description and
    8) Amount Spend for last 12 months
    I would appreciate any inputs on these kind of reports.
    Thanks
    Nath..........

    Sridhar,
    Thanks for your response but I am not getting Material number using report FBL1N and also I in the amount column I was looking for the total amount (total spent during the whole year) by Vendor, Company Code and Material. I am trying to execute this for three different company codes. So, will FBL1N work for us to get these total amounts.
    Thanks
    Nath

  • Displaying the total no of records in ALV ouput.

    Hi everybody,
    I am displaying the output in ALV.
    I want display the total number of records at the top of page.( before the columns).
    Can any one throw light on this plz.
    Karunakar reddy

    To get the number of entries in your displayed table use:
    <i>DESCRIBE TABLE tab LINES wg_lines.</i>
    To display the value in a ALV Grid Control, use something like this:
    <i>DATA: sl_layout   TYPE lvc_s_layo.
    sl_layout-grid_title = wl_lines.
    CALL METHOD og_alv->set_table_for_first_display
          EXPORTING
            is_layout                     = sl_layout
            ....</i>
    Regards,
    Martin

  • I just downloaded itunes 11.. and now i cant find out how to display duplicates and also it doesnt show the total amount of songs in my library...anybody know..???

    I just downloaded itunes 11 and now i cant find the display duplicates..and it doesnt show the total amount of songs in my library..anybody know..??

    Two Windows scripts to make playlists of Duplicates and Exact Duplicates. Use shift-delete to remove selected tracks from the library as well as the playlist.
    There is also my DeDuper script if you don't want to do it by hand. Please take note of the warning to backup your library before deduping. See this thread for background.
    tt2

  • PO Condition type to be included in the total amount of PO

    Hi,
    I have a PO conditiont type configured with the ff. attributes:
    1. Condition Class is Discount or surcharge.
    2. Calculation type is percentage.
    3. Cond. category is delivery costs.
    I want to include the additional cost of this condition in the total amount of the PO. How will I configure the condition type to behave this way?

    Hi,
    Go to SPRO- MM - Purchasing - Conditions - Define Price determination Process - Define calculation schema
    Select the pricing procedure and go to the control data add the new condition type that you have configured as an additional step in the pricing procedure before the total amount.
    Regards
    Merwyn

  • PO is getting released even if the total amount is less than the last PO am

    Purchase Order is getting released even if the total amount is less than the last PO amount. The release strategy is only working for the first Purchase Order and if the PO amount is greater than the last PO amount.
    Please let me know how to correct this scenario (release strategy).
    Regards,
    Prishu

    Hi,
    Release strategy has nothing do with the previous PO amount. May be, Co-incidently the amount in previous PO which you are referring and the characteristics value maintained in the release strategy is same.
    1) Please go in release strategy by the path mentioned below
    IMG u2013 Material Management u2013 Purchasing u2013 Purchase Requisition u2013 Release Procedure u2013 Procedure with Classification u2013 Set Up Procedure with Classification
    2) Then go to release strategy. Here the total available release strategies would be displayed. Double click the strategy which is getting reflected in the PO you want and go the classifiction tab. There you will get the PO value. Based on this characteristic value the respective release streategy gets refelected.
    I hope this clarifies.
    Regards
    sachin

  • Ho to count the total number of rows Sql Reporting Services Report Builder's Dataset after filteration based on parameter

    Hi to all,
                 I have parameter and data-set i.e consists of SharePoint List items,Data-set get's  filters and I need to count the total rows of the data-set i.e I get after filtration.
    Thanks, Quality Communication Provides Quality Work. Mohammad Siddiqali.

    Hi siddiqali,
    Thanks for the question and Destin Joy’s reply. Please try to add the filter in the dataset level rather than the data region
    level. Detail steps as below.
    1.      
    Double-click the dataset name in the Report Data window, click Filters in the left panel.
    2.      
    Click Add button, choose Admission Date in the Expression drop-down list. Type in the Value textbox with the parameter name: @selectDate.
    3.      
    Right-click the cell that your identified by the red circle, select Expression, type in it with:
    =CountRows("DataSetName")
    Thanks,
    Sharp Wang
    Please remember to mark the replies as answers if they help you and unmark them if they provide no help.

  • Get the Total Amount Paid of an A/R Invoice

    Hi to All.,
    Im doing a Report where in i should show the total amount paid in an A/R Invoice
    But my Problem is i dont know what table to get it ..
    thx in advance ..

    Hi!
    Try my query here. I'm using this to get my AR Balance base on the date I enter.
    The table I use here were OITR and ITR1 (table of internal reconciliation).
    SELECT
    T0.DocNum,
    T0.DocDate,
    T0.DocTotal,
    isnull(T3.ReconSum,0) as 'Paid to Date',
    ((T0.[DocTotal]) -isnull(T3.reconsum,0)) Balance
    FROM OINV T0 
    LEFT OUTER JOIN (
    SELECT a1.[SrcObjTyp],sum(isnull(a1.[ReconSum],0)) as 'ReconSum',a1.[SrcObjAbs] from OITR a0 INNER JOIN ITR1 a1 ON a0.ReconNum = a1.ReconNum and (a0.ReconDate < [%0]) and a0.iscard='C'
    GROUP BY a1.[SrcObjTyp],a1.[SrcObjAbs]) T3 on T0.[ObjType]=T3.[SrcObjTyp] and  T0.Docentry=T3.[SrcObjAbs]
    where T0.DocDate < [%0] and T0.DocTotal >0
    Hope this helps!
    Regards,

  • Adobe - How to make fix layout but the total amount in the main is flexible

    Hi to all,
    Need help, i am new with adobe forms and do some search but i didnt find one.
    the problem is this the main/content area is display with a box then a total at the end. Now when the document is only 1 page then the total will be display in the page 1. If document has 2 pages then the total will be shown in page 2. remeber that this total is diplay in fix postion. what i did right now is the total amount will be displayed both pages. please see details below.
    main / content area
    |   description     |         amount |.
    |   description     |         amount |.
    |   description     |         amount |.
    |                          |                     |.
    |                          |                     |.
    |                          |                     |.
    |                          |                     |.
    |                          |                     |.
    | total                   |        amount|   -
    > fix position. cant use flowed. if positioned the total will appear all pages
    thanks in advance
    regards,
    Etrafanob
    Edited by: Etrafanob on Dec 2, 2009 4:16 PM

    Hi,
      yes the layout and requirement sounds crazy thats why i have a problem on it.
    actually my master pages contains the fix box with TOTAL and TOTAL AMOUNT at the end.
    the spell word of the amount and the signatory.
    under design view i only flag the description and amount of line item flowed to trigger the second page.
    now hence the total and total amount is in fix position under master pages. it will appear on all pages.
    how will i make fix position but it will appear only on last page.
    thanks
    best regards,
    etrafanob
    Edited by: Etrafanob on Dec 2, 2009 5:17 PM

  • Count the total val of the column in matrix

    hi
    how to count the total value of the column in matrix
    eg:
    id     name     points
    10    sachin    100
    12     rama        80
    count the total points in the matrix
    180

    Hi Hareesh,
    Try This....
      Dim finaltot As Integer = 0
                    Dim i As Integer
                    For i = 1 To omatrix.RowCount
                        oedittot = omatrix.Columns.Item("points").Cells.Item(i).Specific
                        finaltot = finaltot + oedittot.value
                    Next
    Thanks
    Shafi

  • How can I see the total amount of songs in itunes?

    How Can I see the total amount of songs I have in itunes 11.0.1.12?  Totally different from older version.

    From the menu bar, select "View' then "Show Status Bar"

  • How to distribute a % of the total amount to a partner in a contract?

    Is there any way to distribute a % of the total amount to a partner, say a forwarding agent in a contract?
    Thanks & regards,
    Gokul.

    Play the video with Quicktime Player where the controls do not show when you use the space bar to stop the playing.  The forward and back keys will advance/retreat the video till you get the exact frame to make the screenshot of. 
    OT

  • HT1222 How do I increase the total amount of space I have on iPhone for things like iTunes n more music n like MusicTube n YouTube. Thank you in advance for any help that can be given.

    I am running out of usage space. How do I increase the total amount of space I have on my iPhone4S: for things like programs &amp; apps such as, iTunes &amp; more music &amp; like MusicTube &amp; YouTube. The only reason I have any space now is because the music that I had downloaded and synced onto my phone from iTunes I had to take it all off. I would really really love to be able to put my music back onto my iPhone. Currently I'm using apps like Spotify, AOLradio, and MusicTube to listen to music. Thank you so very much in advance for any help that may be given!

    Also to add to my original question: is what I'm asking even a possibility??? Meaning is there even a way to get more usage space? Or do I have to just continue to work within the confines that apple has preset on the phone?

Maybe you are looking for

  • Creating a New PO using BSP Application

    Hello BSP Gurus, Newbie in BSP and want to create a BSP application that uploads PO data using Transaction ME21N. Its like this, an BSP application displays the Header and Line item data. and then I need to create a New PO by inputting the fields in

  • How to change amount in Bar chart in XML Publisher

    Hi all, I want to change a amount in chart in INR. I have created one bar chart for report in which on x-axis i have displayed a Month-Year and on Y-axis i have displayed a Amount. But when i insert a chart it will automatically takes amount in Milli

  • Selecting more than one calendar but not all?

    is it possible on the iTouch iCal application to view more than one calendar but not all? I have one calendar that I would like to have available, but when I check for conflicts, that calendar doesn't matter (if it were included, every day would be a

  • TVARV table

    Hi, I've a report where there is the field Year. If I save a variant the next year system will propose 2011 when that variant will be manually selected. I would like the system will update automatically the value of the year. I don't know how to do t

  • Failover (reasons)

    I was looking for a documentation that explains the failover reasons but the only doc I found (command guide), does not explain the reasons only the states. http://www.cisco.com/en/US/docs/security/asa/asa82/command/reference/s3.html#wp1473355 •No Er