Forms: how to use COUNT_RECORD to get the number of record retrieved?

After GO_BLOCK(BlockName)EXECUTE_QUERY, there must a way to obtain the number of records retrieved.
I like to use this number to display to number of records on the form.
Clearly, a not so good way is:
SELECT COUNT(*) INTO :NUM_RECORD FROM Table_Name;
It queries table one more time.
Could any one give a clue?
Thank you.

Dear Kiran,
Fom tables EINE (inforec no, plant) and EINA (inforec no, material, vendor), you can get the desired information.
Regards,
Prasanth

Similar Messages

  • How to get the number of records of a streaming result set

    Hi guys.
    So if it wasn't a streaming result set, I would have done this:
    {noformat}myResultSet<code class="jive-code jive-java">.last();
    {color:navy}*int*{color} numResults = </code>myResultSet<code class="jive-code jive-java">.getRow();
    </code>myResultSet<code class="jive-code jive-java">.beforeFirst();
    </code>{noformat}
    but being a streaming result set, beforeFirst() throws an exception...
    So how do you get the number of records in that result set? I wanna avoid an extra count(*) query, so I would appreciate other solutions than that.

    JoachimSauer wrote:
    vanwil wrote:
    you see, for now I just use a count(*) query to get the number of records, but that's adding a lot of extra waiting time...Iterating over the result twice will surely be slower then doing the count(*).great! so what I got now is actually the fastest way there is... awesome...
    If you get an exception, then you surely have a stack trace. That should tell you what happens, or at least where.com.mysql.jdbc.MysqlIO.checkForOutstandingStreamingData(MysqlIO.java:2066)
    Why do you need to know the number of elements beforehand, anyway?I need to know the number of elements because the incoming data goes into a table. Now of course, I could use ArrayList<String[]> or something, but wouldn't that require more memory resources than Object[][] ?
    No one can tell you that, at least not without more information (say, the stack trace for example).Here's the exception message:
    java.sql.SQLException: Streaming result set com.mysql.jdbc.RowDataDynamic@10c0ef2 is still active. Only one streaming result set may be open and in use per-connection. Ensure that you have called .close() on  any active result sets before attempting more queries.

  • Any table or program to get the number of records in P, A and F tables

    HI all
    any table for program to get the number of records in P, A and F tables. I want to create SQ01 queries to get the status of number of records. We are gng for a production cutover next week. Want to capture all the data before and after Upgrade cutover.
    Also suggest me how to create sq01 queries.
    Thanks in advance
    regards
    Janardhan KUmar K.

    Use Transaction LISTSCHEMA to see all the tables assosciated with ur cube
    Total number would be what you find in both the E & F fact tables. If there is no compression in the cube then E table will be empty.
    Alternatively u can use se16 transaction and enter E table and F table manually
    E table - /BIC/E(Cube name) and Ftable -  /BIC/F(Cube name)
    Or else u can go to the manage of the cube and without selecting any field for O/P and ticking the option output number of hits execute. The total of Row Count will give u the total no of records in the cube.

  • FORMS 9i issue: Is there a [b]SYSTEM build-in to get the number of records?

    In master-detail data blocks, a query generally return multiple records from the detail table. I'd like to know how to get the number of the records:
    1. I use NEXT_RECORD to navigate these records
    2. use SYSTEM.CURSOR_RECORD to know the current record
    3. use SYSTEM.LAST_RECORD to know when the last record is reached.
    What is missing is the total number of the records.
    Thank you in advance for helping

    My tip would also be the summary item

  • Returning the number of records retrieved by a query

    Hi everyone,
    I did a search on this question, but I'm still unclear as to why it's so difficult to retrieve the number of records returned by a query.
    What is the easiest and most straight-foward way ?
    Thanks,
    Bob

    Shay
    I am confused. I still do not know how to achieve the count of records retrieved in a block. I have viewed the viewlet calculated field demo. I am unclear of what you were refering to when you said use the count as the function.
    I did try setting function to be "get_block_property('myblock',query_hits)", but this always had value of zero. But I do not think this is what you meant.
    Has anybody been able to answer the original question?

  • How to use sdk to get the image in the pdf file created by illustrator?

    I have some pdf files create by illustrator and saved as pdf documents,
    now I want to use the sdk to get the image in pdf files.
    how to?
    Thanks.

    Thank you first!
    Yes,you are right,since I am new to illustrator,and I want to try to write a plugin,
    I have read the sdk doc and API and opened the sample in vs2010,but no idea about how to operate the pdf doc in illustrator with api.
    Hope more advise or any examples,thank a lot.

  • How to use apdu to get the certificate in smartcard?

    hi,guys
    how could i use the apdu command to get the certificate in smart card.
    now i sent following commands in JCOP shell
    /send 00a404000cA000000063504B43532D3135
    /send 00a4000c023f00
    /send 00a4000c025031
    /send 00a40200024404
    /send 00b0000080
    /send 00b0008080
    what's the next step?

    i'm using the A.E.T's safesign card,i just only use the apdu to load from card.
    but it's seems like it's can't load whole certificate.

  • How to use SPMetal to get the item's original field which named 'Created'

    I want to read the field which named 'Created' by using SPMetal,I found the 'Item' class has the property named '_originalValues', it seems to get the infomation about the original values.
    Is there anyone who has solved this kind of problems?

    Hi,
    By default, the Created, CreatedBy, Modified and ModifiedBy fields are not created by SPMetal, so we will need to extend our base entity class for accessing these fields in our
    code.
    Here is a link will show how to achieve this with steps in detail:
    http://weblogs.asp.net/uruit/archive/2011/05/05/linq-to-sharepoint-working-with-created-createdby-modified-and-modifiedby.aspx
    Best regards
    Patrick Liang
    TechNet Community Support

  • To get  the number of record from cmp

    how can i get the specific number of record (25 records) from cmp using weblogic8?
    anybody know pls tell.

    http://java.sun.com/j2se/1.4.1/docs/api/java/io/File.html

  • How to use script to get the first table row on each page?

    I create a print form to display a table. I set a conditional page break on this table, so the table rows on each page could be different.
    For example, there're total 50 rows in this table. On the 1st page, there're 5 rows, but on the 2nd page, there're only 2 rows, and so on...
    Now I want to get some value from the 1st table row on each page. How can do that? I can refer to a table row using TableRow[n], but I don't know how to calculate 'n' in script (either FormCalc or JavaScript) for the 1st row on each page.
    Any ideas?

    Hi Wei,
    There is an option of setting the overflow header in the pallette. You may check that out. It is basically used to have the table header to be seen in all pages, if the table is overflowing to multiple pages. You may put your first row as the overflow header.
    - hope this helps, Kindly update,
    thanks and regards,
    - anto.

  • How to use offset in getting the last 7 digit of a sting

    Hi,
    Will you please tell me, how I can use Offset like command for the following code :-
    Data :- v_file type string .
    Let v_file = xyz/abc/ABCD/pq.rs.tuv1234
    I want to take last 7 digit i.e. "tuv1234"
    Please tell me..
    Saurabh

    data : text(40) type c value 'gashscj/kdkkl223',
             length type i,
             value(7).
    length = strlen( text ).
    length = length - 7.
    value = text+length(7).
    regards
    shiba dutta
    Message was edited by:
            SHIBA DUTTA

  • How to use alias to get the columns list?!?

    Is there a way to make raptor show the columns list of a table when typing like
    "select * from table a where a....(waiting for columns list)" ?
    Tks,
    Claudio.

    you cant do it with aliases and we have a bug logged on that. however, you can use the full tablename followed by a . and then the insight list will be populated. ctrl-Space will do completion too

  • To get the count of records and able to access the column value in a single

    Hi
    Is there any way to get the number of records in the query and access the column values
    e.g
    select count(*)
    from
    (SELECT department, COUNT(*) as "Number of employees"
    FROM employees
    WHERE salary > 25000
    GROUP BY department ) a
    This wil only get the Count, if i want to access each row from the inline view how can i do that.

    Your question is not clear.
    Are you looking for total record count as well as count by department ?
    Something like this?
    SQL>
    SQL> with temp as
      2  (
      3  select 1 dept ,10000 sal from dual union
      4  select 1 dept ,25100 sal from dual union
      5  select 1 dept ,30000 sal from dual union
      6  select 1 dept ,40000 sal from dual union
      7  select 2 dept ,10000 sal from dual union
      8  select 2 dept ,25100 sal from dual union
      9  select 2 dept ,30000 sal from dual union
    10  select 2 dept ,40000 sal from dual )
    11  select count(*) over( partition by 1 ) total_count,dept,
    12  count(*) over(partition by dept) dept_cnt  from temp
    13  where sal>25000;
    TOTAL_COUNT       DEPT   DEPT_CNT
              6          1          3
              6          1          3
              6          1          3
              6          2          3
              6          2          3
              6          2          3
    6 rows selected
    SQL>

  • Get the number of Bid Invitation with the number of Cotation

    Hi Experts
    Anybody knows how can I do to get the number of Bid Invitation with the number of Cotation?
    Thanks
    Victor

    Hi,
    Go to BBP_PD transaction, select Object Type BUS2202 --> give the number of yout cotation in Object ID field --> Execute.
    Go to Header Links and select the Obj_Key "HEADER"
    You'll see the number of your bid invitation in Object_ID field.
    Rgs,
    Pedro

  • Limitting the number of records in query

    I like to limit the number of records retrieved in the query. I set Query All Records block property to NO, Query Array Size to the number I want to retrieve. Before doing that, I set form Preference - Array Processing checked. The result is form always retrieves all records meets the search condition. Could someone tell me what's wrong with it?

    I do not understand why and what exactly you want to do. The query array size defines the number records your form should fetch at a time, i.e. if you have 100 records in the database and you set the array size to 20, forms will perform 5 fetch cycles to retrieve all records. However, this is transparent to the user and he will see all 100 records. This property is used for performance tuning when working with a large volume of records.

Maybe you are looking for

  • Action steps that won't run correctly in PSE 7/8/9 (but did in 4 and 6)

    I have a wonderful action that was written to work in PSE 3/4/6.  It won't run in PSE 7/8/9.  After fooling around for a while, I think I understand why.  Adobe changed the way Adjustment Layers are handled.  In earlier versions of Photoshop and Elem

  • #2170 error calling a webservice from Xcelsius having crossdomain.xml

    Hello together, we are facing a #2170 error indicating we don't have a proper policy file in place when executing a published Xcelsius flash in SAP BI application portal. We created a WebService that is running an SAP BI System 7.01. The WebService i

  • Can't install:  "this disk cannot be used to start up your computer"

    After making sure that my current startup disk for 10.5 was imaged to another hard drive, I inserted the Snow Leopard install disk and double-clicked the Install icon. Everything worked fine till I got to "Select the disk where you want to install Ma

  • SOAP Exception with proxy client

    Hello gurus!, this time i have a problem consuming a several webservice, the specific operation it's goods receipt for purchase order (transaction MB01) using movement type 101 (Goods receipt for purchase order into warehouse/stores), we generate a r

  • How to run muine? [fixed]

    Contrasutra has recompiled the package and it should be fine soon.. thanks! hey all, I've done pacman -S muine , now I run muine from the command line and get: Unhandled Exception: System.DllNotFoundException: libmuine in <0x00053> (wrapper managed-t