Counting of number of records

i have a control block VIEW1 with some fields YEAR, MONTH, STAFF, and button SEARCH with the trigger when-button-pressed having pl/sql code " go_block(view2); execute_query;"
view2 is data block displaying 10 records on canvas with the fields NAME, STAFF , WAGES.....
in property palette of view2,
insert allowed in set to no, update allowed is set to no and in where clause i have put some code.
after pressing SEARCH of view1 i get all the required records as output.
i want to count the no of records of my output .
how will i do that..??????
thnx. ( i am using 10g)

ManiKanchan wrote:
i have a control block VIEW1 with some fields YEAR, MONTH, STAFF, and button SEARCH with the trigger when-button-pressed having pl/sql code " go_block(view2); execute_query;"
view2 is data block displaying 10 records on canvas with the fields NAME, STAFF , WAGES.....
in property palette of view2,
insert allowed in set to no, update allowed is set to no and in where clause i have put some code.
after pressing SEARCH of view1 i get all the required records as output.
i want to count the no of records of my output .
how will i do that..??????
thnx. ( i am using 10g)You can use a column having data type number and data base no.
Set
calculation mode :summary
summary function:count
summarized block:your_block_name
summarized item:name_columnHopes this helps..

Similar Messages

  • How do I count the number of records returned in the CMIS query

    How do I count the number of records returned in the query CMIS?
    SELECT COUNT(*) FROM ora:t:IDC:GlobalProfile WHERE ora:p:xRegionDefinition = \'RD_PROJETOS_EXCLUSIVOS\''}
    Euler Homero

    Hi Euler,
    interestingly enough, the reference guide for CMIS ( http://wiki.alfresco.com/wiki/CMIS_Query_Language ) that I found does not mention the COUNT function at all. On the other hand it states that: "The SELECT clause identifies which virtual columns to return in the result set. It can be either a comma-separated list of one or more queryNames of properties that are defined by queryable object types or * for all virtual columns."
    There are, however, some other posts like e.g. http://alfrescoshare.wordpress.com/2010/01/20/count-the-total-number-of-documents-in-alfresco-using-sql/ which state that they could make it working.
    Having asked in the WebCenter Portal forum, I assume that your content repository is WebCenter Content. The CMIS doc for the Content is available here: http://docs.oracle.com/cd/E23943_01/doc.1111/e15813.pdf (no COUNT there either). It does, however, mention explicitly that "CMIS queries return a Result Set where each Entry object will contain only the properties that were specified in the query.". This means your could rather investigate the Result Set. Note that there are also other means than CMIS how to get the requested result set (e.g. calling a search service directly via so-called RIDC).
    In the given context I am also interested what your use case is. OOTB CMIS in WebCenter Portal is used, for instance, in Content Presenter, where it is content rather than "parameters" what's displayed.

  • Count the number of records between two key values (BTREE)

    How can I count the number of keys between two values?
    I'm using python driver, and BTREE access method.
    ====>
    ideally what I want is to average a whole time-series data set (the intervals can change) to a given number of points. The keys are the time stamps and the values are the data that needs to be averaged. I need to count the number of records between two time stamps so that I can divide that number by the number of points i need, and average the data. What is the best way to do this?  Or should I just keep the intervals for the time stamp constant and use RECNO access method?
    Thank you
    (first post btw.. and why aren't there many people in stackoverflow who answer Berkeley DB questions?)

    BDB is an embedded db and it does not have any internal counters or statistics that you could grap to use for this.    You will need to do it manually.
    You can create a cursor, grap the records you want, each time you get the next record you bump a counter.
    If you are using RECNO, you can use a cursor to get the record number of the record (DB_GET_RECNO), and if all you data is in
    sequentail records with no missing records you can figure out the total count by take last rec # - initial rec # + 1 to get a total count.
    If you switch over to the SQL API, you can issue a SQL query to give you a count.  Select count(*) Where .......
    Since you have to grab the data anyway, then best may be to count records as you go along.
    thanks
    mike

  • How to count total number of records in mYSQL through JSP ??

    hi
    i want method to count total number of records in table.
    it was there rs.count() method in VB .
    But what about JSP , i used MYSQL database.
    tell me solution please...
    thanks...
    remember JSP - total record count for mySQL

    hello mr.
    i don't want ur suggestion ok
    i know that site.
    no need to give suggestion if u don't give code.
    its better to give proper reply instead of making a
    comment in forum.
    next time take care
    He was perfectly justified in that remark. I have given you the information you need, nicely, twice. But I, and noone else here is going to do your work for you. We will point you in the direction you need to be looking, but we are not going to give code. If you attempt to code something yourself, and it doesn't work, then post the code you tried, and we may make some corrections to it. Then again, with the attitude you've shown so far we probably will not. But one thing no one here will do, is do your work. Especially not for free.
    Now, if you are not willing to sit down, and look at the suggestion that has already been made, and attempt to use it. Then continue wasting your time, but go away and stop wasting our time.

  • Applescript - how can I count the number of records in a Word data source?

    I have written a script in AppleScript to open Word and then perform a mail merge from a data source and everything is working fine.
    One thing I want to do but am struggling with is to return the number of records in the mail merge.
    I am trying things like:
    get last record of datasource of mydatasource
    and also haven't been able to find anything in the AppleScript 2004 Word Reference Guide.
    Can anyone help as I have been searching the web and trying things all day and I am sure it can't be difficult.
    Thank you.

    I don't think there is an automatic way to get a line count, but I don't have any problem just counting the lines on a page. Maybe some more information about what you are trying to do and why you can't do it would help someone to come up with a helpful suggestion.

  • How to count the number of records retreived through a query?

    Dear All
    I want to find the total number of records retreived for a particular query .
    does BW provide any internal count function , which can solve my requirement??
    if yes, please provide some details.
    Thanks.
    Regards,
    Pandurang.

    hi pandurang
    when u see the contents of a particular cube
    RSA1->Infocube->manage->contents
    there is a option "Output number of Hits"
    An extra keyfigure is created displaying the number of records rolled up
    Aggregating the column might just solve ur issue
    Try
    Regards
    Akshay

  • Count the number of records

    Hi all,
    I have a BEx report that displays a list of empnos and their details based on a selection. Now I want to count the number of recrods that were selected and display the total number of records that were selected. How can this be done?
    Thanks,
    Sam

    Dear all,
    Thanks for the suggestions. Actially I had solved it in another way.
    As suggested by Sharma, I had used a CKF as count, But i did not want the empnos to come as the rows with 1 displayed across each row.
    I was trying to bring a summary in there.
    So I had created a structure in Rows and in the structure created a new selection and in that selection included Employee.
    This solved the problem that I was facing.
    Thanks everyone for your time and effort!!
    Cheers,
    Sam

  • Count total number of record of table with deletion from archiving object

    Does anyone know is there any SAP standard program to count the total number of record of the table with deletion from Archiving Object and display in repprt?

    Not sure of the question. Are you looking to get the sql "select count(*) from table" from using the TopLink expression framework or are you getting that SQL already and want something else?
    If you are looking just to get the count from a table/class, you can use a ReportQuery:
    ReportQuery rquery = new ReportQuery(ClassToQueryOn.class);
    rquery.addCount(); //equivalent to count(*);
    session.executeQuery(rquery);
    You can use a report query to return data instead of objects, and use selection criteria just like a normal read query.
    Best Regards,
    Chris

  • Creating a Counter for number of records

    Hi Folks,
    I need to show number of purchase orders, quotation items and purchase requisitions in one report. i need to count the number of RFQs and purchase requisitions per purchase order. 
    I have put numeric 1 in update rules but it shows value 1 even if the number of PR is 2. and getting.
    I want to show the same number irrespective of Analysis (even if the anlysis changes from PO to cost center.)             
    I saw one How to Document on counter some time ago in sdn its not there now.
    Please send a reply for this requirement. Its urgent
    Can Anyone forward it to me.
    Regards
    Mahesh

    The document you are looking for can be found at the following link:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7e58e690-0201-0010-fd85-a2f29a41c7af">How to... Count the occurrences of a characteristic relative to one or more other characteristics</a>.
    Hope this helps...
    Bob

  • Count the number of records in a group

    Hi ,
    My requirement is to display in the BI reprt - records in Order Entry Line Items based on several conditions on the fields.
    If the above conditions do not returm any records ,show an error message - NO DATA FOUND.
    1.checked in standard RTF templates where its a simple example as if :not(//servicereq).
    But ,my RTF has serveral conditions on the group.
    2.Is there a way to take a count of records in the group which statisfy the given condotions,so that I can checkif count = 0 .dislay message.
    Apreciate your help.
    Regards.

    Ummmmm...no I didn't, hate to admit it.
    Added the declaration to the 2 percentage formulas. Now I do get results for the percentage...they are just wrong. Only pattern I've found is that if the running total of Int or Ext is 1, the percentage is 11.39. If it is 2, the percentage is 22.78 and so on.
    Each percentage is a multiple of 11.39 depending on the respective running total calculation. Maybe you can see what I have obviously missed.
    NAME........TOTAL.......TOTAL Int........% Int........TOTAL Ext........%Ext
    Burberry........20..............4..................45.56.............16 ..............182.23
    Cellarosi.......11..............1 .................11.39.............10................113.90
    Chalkley.......19..............2..................22.78.............17................193.62

  • Count of number of record

    hi friends,
    my task was one file to one idoc the file has large no of records Condition is that if the number of items in the idoc after conversion crosses 999 it should report as error.
    i did some work for usual file to idoc procdure,ie. normal mapping and stuff,now what changes do i make.
    does the idoc field document item number help in this regard.
    for a trial i mapped one of the item number as index.
    can any one help me please.
    thanks in advance

    Hi,
    >>>is that if the number of items in the idoc after conversion crosses 999 it should report as error.
    if this means that you need to stop processing
    the message then you can create a user
    advanced function that will check if the index is >= 999
    and if so it can start an exception
    how to call exception:
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    Regards,
    michal

  • (Repost) CR 8.5 I need to count the number or records 0

    - - Crystal Reports 8.5 - -
    I have two fields.
    Qty Shipped and Qty Backordered.
    I want to calculate the percentage of orders shipped.
    Something like:
    Count ({CIT_PT_RO_Fulfillment;1.QtyShip}) > 0
    Count ({CIT_PT_RO_Fulfillment;1.QtyBackorder}) > 0
    But I know these aren't correct as they return the value of True...
    Then I'll take those two fields and calculate the percentage shipped...
    Can someone help me with this?
    Thanks
    Kelvin

    Try this
    if count({CIT_PT_RO_Fulfillment;1.QtyShip})>0 then
    ((Count ({CIT_PT_RO_Fulfillment;1.QtyShip})-Count ({CIT_PT_RO_Fulfillment;1.QtyBackorder}))/Count ({CIT_PT_RO_Fulfillment;1.QtyShip})*100
    Regards,
    Raghavendra

  • Count number of records in a internal table

    hi
    i want to count number of records in internal table
    pls let me know how to count the number of records in a internal table.
    regards
    Arora

    hi
    one way is
    data field type i.
    Decribe table itab lines field.
    write: / field.
    displays the no of records in tha internal table
    or if u want to write logic.
    data:
      w_count type i.
    loop at itab.
    w_count = w_count + 1.
    endloop.
    write: / w_count.
    displays the no of records.
    reward points if useful.

  • Hi Gurus! how to count number of records in any column of ALV Grid report

    Hi Guys!
    I want to know how can we count the number of records in any column selected by the user. Like for oe customer there might be 20 sale order that means for 10 customer there will be 200 Sale order. So if i select cutomer number column ti should give 10 out put and whern select sale order it should give 200 as output.
    -Anurag Jain

    Hi,
    Either you can use the hotspot_click event or double_click to show the Pop-up info of the Sales Order count or customer Count depending on the selection.
    In the hotspot_click event  method you have E_ROW_ID E_COLUMN_ID..using these you can find the Sales Ordert or customer Number.. Loop the internal table and find the Count.
    In the double_click event  method you have E_ROW E_COLUMN..using these you can find the Sales Ordert or customer Number.. Loop the internal table and find the Count.

  • Create Store Procedure to Count Number of records in Database for each table

    Hello,
    I have created the code which counts the number of records for each table in database. However, I want create store procedure for this code this code that when ever use execute the Store Procedure can provide the database name to execute it and as a result
    table will display number of records in each table.
    Below you will find the code its working:
    CREATE
    TABLE #TEMPCOUNT
    (TABLENAME
    NVARCHAR(128),
    RECORD_COUNT BIGINT)
    -- Creating a TEMP table
    EXEC
    sp_msforeachtable
    'insert #tempcount select ''?'', count(*) from ? with (nolock)'
    SELECT
    * FROM
    #TEMPCOUNT
    ORDER
    BY TABLENAME
    DROP
    TABLE #TEMPCOUNT
    This code need to be convert in store procedure and user can give database name when execute the procedure in order to count the records.
    Looking forward for your support.
    Thanks.
    SharePoint_Consultant_EMEA

    Something like:
    set quoted_identifier off
    go
    create procedure usp_TableCounts
    @DBName as varchar(1000)
    as
    set nocount on
    declare @SQLToExecute varchar(1000)
    CREATE TABLE #TEMPCOUNT (TABLENAME NVARCHAR(128), RECORD_COUNT BIGINT) -- Creating a TEMP table
    set @SQLToExecute = @DBName + ".dbo.sp_msforeachtable 'insert into #tempcount select ''?'', count(*) from ? with (nolock)'"
    print @SQLToExecute
    exec (@SQLToExecute)
    SELECT * FROM #TEMPCOUNT
    ORDER BY TABLENAME
    DROP TABLE #TEMPCOUNT
    GO
    Satish Kartan www.sqlfood.com

Maybe you are looking for

  • Hard Drives and video card for new CS5 system

    I've read through much of the threads in the hardware forums and find I still have questions.  I am just beginning to learn how to edit and it is not a source of income for me at the moment.  My sources will be from tapes from my Canon HV20 and at so

  • Node [][item] not described in Schema

    hi though i read and tried all solutions offered in sdn - i cant solve this problem, and i will be greatfull for any suggestions. i'm using nwds Version: 7.0.06. i have web service that need no input. when i call it using xmlspy it gives me values in

  • Hi,about rfc

    The receiver RFC adapter can also process messages with quality of service Exactly Once In Order (EOIO). They are mapped to transactional RFC calls (tRFC). the sentence above appears in the rfc adapter section of online help. i was confused for it..

  • BAPI_PO_CREATE1 u2013 Message SE 518

    Hi, We are using the BAPI, BAPI_PO_CREATE1 to create Purchase Orders Programmatically. We create a Purchase Order and use an offer as draft. The inquiry (offer) was generated from a Purchase Requisition with 17 positions, but our Purchase Offer conta

  • How do I stop iphoto from launching itself every time I use my laptop?

    How do I stop Iphoto from launching itself every time I use my laptop?