Number of rows in the WebADI sheet

Hi,
I have an Integrator with a PL/SQL interface where I run a post-process (also PL/SQL) wherin I would like to know how many rows the user has uploaded.
Does anyone know if it is possible to retrieve the total number of rows that is in the WebADI sheet?
Thank you.
Jeroen

METHOD wddoinit .
  DATA: lo_column TYPE REF TO cl_salv_wd_column,
        lo_cmp_usage TYPE REF TO if_wd_component_usage,
        lo_interfacecontroller TYPE REF TO iwci_salv_wd_table,
        lt_functions TYPE salv_wd_t_function_std_ref,
        ls_function TYPE salv_wd_s_function_std_ref,
        lo_function TYPE REF TO cl_salv_wd_function_std,
        lo_data TYPE REF TO if_wd_context_node,
        lo_element TYPE REF TO if_wd_context_element,
        lv_index TYPE i,
        lo_model TYPE REF TO cl_salv_wd_config_table.
Retrieve ALV object
  lo_cmp_usage = wd_this->wd_cpuse_alv( ).
Initial? Create new
  IF lo_cmp_usage->has_active_component( ) IS INITIAL.
    lo_cmp_usage->create_component( ).
  ENDIF.
Interfacecontroller
  lo_interfacecontroller = wd_this->wd_cpifc_alv( ).
  lo_model = lo_interfacecontroller->get_model( ).
Get main NODE DATA, this is the node which supplies the ALV
  lo_data = wd_context->get_child_node( name = 'DATA' ).
How many rows has the table?
  lv_index = lo_data->GET_ELEMENT_COUNT( ).
Not more then 20 rows on the screen
  IF lv_index GT 20.
    lv_index = 20.
  ENDIF.
Put the number of rows in the screen
  lo_model->if_salv_wd_table_settings~set_visible_row_count( lv_index ).
should the screen set to freeze?
  lo_model->if_salv_wd_table_settings~set_fixed_table_layout( abap_true ).

Similar Messages

  • XMLIndex: finding indexed XPaths and the number of rows in the path table

    Hi,
    I am storing non-schema-based binary XMLs in an XMLType column in 11g (11.1.0.6.0) and would like to index the XMLs either partially or fully using XMLIndex. I'm expecting to have a large number (tens of millions) of XML documents and have some concerns about the size of the XMLIndex path table.
    In short, I am worried that the path table might grow unmanageable large. In order to avoid this and to plan for table partitioning, I would like to create a report of all indexed XPaths in an XMLIndex and to find out how many times each path is actualized in the path table. I would do this for a representative XML sample.
    I have been creating XMLIndexes with different exclude/include paths, gathering stats with DBMS_STATS (estimate_percent = 100) and selecting the number of rows in the path table through USER_TABLES.
    If anyone knows a more straightforward way of doing this all advice is very much appreciated.
    Best Regards,
    Rasko Leinonen

    Thanks Marco,
    I managed to get out all indexed paths using the following SQL. It took a while to understand how the join the XDB.X$PT39CW6BJR8W4VVE0G0LLGA0OCR5 and XDB.X$QN39CW6BJR8W4VVE0G0LLGA0OCR5 tables together but got there in the end. This helps to clarify which XPaths are being currently indexed by the XMLIndex.
    begin
    for v_row in (select PATH from XDB.X$PT39CW6BJR8W4VVE0G0LLGA0OCR5)
    loop
    declare
    v_i BINARY_INTEGER := 1;
    v_id raw(8);
    v_len BINARY_INTEGER := 2;
    v_skip BINARY_INTEGER := 1;
    begin
    while v_i < utl_raw.length(v_row.path) and
    v_i + v_len <= utl_raw.length(v_row.path)
    loop
    v_i := v_i + v_skip;
    v_id := utl_raw.substr(v_row.path, v_i, v_len);
    --dbms_output.put_line(v_id);
    for v_row2 in (select LOCALNAME, flags from XDB.X$QN39CW6BJR8W4VVE0G0LLGA0OCR5
    where ID = v_id )
    loop
    if rawtohex(v_row2.flags) = '01'
    then
    dbms_output.put('@');
    end if;
    dbms_output.put(v_row2.localname);
    if v_i + v_len < utl_raw.length(v_row.path)
    then
    dbms_output.put('/');
    end if;
    end loop;
    v_i := v_i + v_len;
    end loop;
    dbms_output.put_line('');
    end;
    end loop;
    end;
    Example output:
    RUN
    RUN/@accession
    RUN/@alias
    RUN/@instrument_model
    RUN/@run_date
    RUN/@run_center
    RUN/@total_data_blocks
    RUN/EXPERIMENT_REF
    RUN/EXPERIMENT_REF/@accession
    RUN/EXPERIMENT_REF/@refname
    RUN/DATA_BLOCK
    RUN/DATA_BLOCK/@name
    RUN/DATA_BLOCK/@total_spots
    RUN/DATA_BLOCK/@total_reads
    RUN/DATA_BLOCK/@number_channels
    RUN/DATA_BLOCK/@format_code
    RUN/DATA_BLOCK/@sector
    RUN/DATA_BLOCK/FILES
    RUN/DATA_BLOCK/FILES/FILE
    RUN/DATA_BLOCK/FILES/FILE/@filename
    RUN/DATA_BLOCK/FILES/FILE/@filetype
    RUN/RUN_ATTRIBUTES
    RUN/RUN_ATTRIBUTES/RUN_ATTRIBUTE
    RUN/RUN_ATTRIBUTES/RUN_ATTRIBUTE/TAG
    RUN/RUN_ATTRIBUTES/RUN_ATTRIBUTE/VALUE

  • Display the total number of rows for the report in OBIEE 11g

    Hi, In obiee 11g, the pagination will be 1-25. Is there any possiblity in obiee to show the total rows count next to pagination. Ex: if the result contains 120 rows. it should display after the pagination
    Records 1-25. Total of Records : 120
    Is there any way we can display the total number of rows for the report.
    Kindly help me.. Its very urgent requirement.
    MAny Thank in advacne

    Check this http://obiee100.blogspot.com/2011/07/display-total-number-of-records-in.html
    and
    http://docs.oracle.com/cd/E28280_01/bi.1111/e10544/appsql.htm#CHDCDIDA
    You have to go something like as suggested in previous link.
    Mark as correct/helpful

  • Can i get a number of rows in the select list??

    Hello~
    I am studying the "oracle call interface". but i don't know much about oci.
    Anyway i want to know that how can i get a number of rows.
    for example, there is a source code of the number of colums in the select list.
    The following is a list of DB(example)
    /*DB table*/
    ID NAME CODE ID
    1 A 1 A
    2 B 2 B
    /*source*/
    err = OCIAttrGet ((dvoid *) stmhp, (ub4)OCI_HTYPE_STMT, (dvoid*)
    &parmcnt, (ub4 *) 0, (ub4)OCI_ATTR_PARAM_COUNT, errhp);
    /*result*/
    The Column is 4. (ID, NAME, CODE, ID)
    So, i think that the row is 3 (ID, 1, 2) in the DB table.
    Simply, Can i get a number of rows in the select list??
    for example,
    err = OCIAttrGet ((dvoid *) stmhp, (ub4)OCI_HTYPE_STMT, (dvoid*)
    &parmcnt, (ub4 *) 0, (ub4)OCI_ATTR_RAW_COUNT, errhp);
    I'm trying to get the number of row count. but i can't find.
    Please, could you let me know that how can i get the number of row count.
    Thank you.

    Thank you for your reply.
    we are tested the source code by reply.
    The following is the test source code.
    /*source code*/
    strcpy (szStatement, "SELECT * from DB_TABLE");
    OCIStmtPrepare(gpOCIReadStmHandle, gpOCIErrHandle, szStatement,
         strlen(szStatement), OCI_NTV_SYNTAX, OCI_DEFAULT);
    OCIStmtExecute(gpOCISvcHandle, gpOCIReadStmHandle, gpOCIErrHandle,
         0, 0, 0, 0, OCI_DEFAULT);
    /* get a number of rows count , Reply : prajithparan*/
    OCIAttrGet((dvoid *)gpOCIReadStmHandle, OCI_HTYPE_STMT, (dvoid *)&nRowCount, NULL, OCI_ATTR_ROW_COUNT, gpOCIErrHandle))
    But There is a problem of the result value.
    The result value is 0. It's mean that the row count is 0. and then we are using the all of fuction is succeed.(return value)
    I don't know what is problem. Please let me know about the problem and solution.
    Thank you.

  • Number of rows in the ALV, Web - dynpro

    Hi all
    I have an ALV in my ABAP web-dynpro. For this alv i would like to set the visible rows at the same number as there are rows in the internal table which is the supplier for the ALV.
    In the TABLE component of the WEBDYNPRO you have a visible property who is controlling this.
    I saw that for the ALV you had the same. Of the class IF_SALV_WD_TABLE_SETTINGS there is a method SET_VISIBLE_ROW_COUNT. So i thought this is the one where i can control it.
    So when the table has 10 rows, 10 rows will be displayedon the screen and when the table has 20 rows, 20 rows will  be displayed on the screen.
    But this is not the case.
    Is there something i forget?
    Kind regards,
    Anton Pierhagen

    METHOD wddoinit .
      DATA: lo_column TYPE REF TO cl_salv_wd_column,
            lo_cmp_usage TYPE REF TO if_wd_component_usage,
            lo_interfacecontroller TYPE REF TO iwci_salv_wd_table,
            lt_functions TYPE salv_wd_t_function_std_ref,
            ls_function TYPE salv_wd_s_function_std_ref,
            lo_function TYPE REF TO cl_salv_wd_function_std,
            lo_data TYPE REF TO if_wd_context_node,
            lo_element TYPE REF TO if_wd_context_element,
            lv_index TYPE i,
            lo_model TYPE REF TO cl_salv_wd_config_table.
    Retrieve ALV object
      lo_cmp_usage = wd_this->wd_cpuse_alv( ).
    Initial? Create new
      IF lo_cmp_usage->has_active_component( ) IS INITIAL.
        lo_cmp_usage->create_component( ).
      ENDIF.
    Interfacecontroller
      lo_interfacecontroller = wd_this->wd_cpifc_alv( ).
      lo_model = lo_interfacecontroller->get_model( ).
    Get main NODE DATA, this is the node which supplies the ALV
      lo_data = wd_context->get_child_node( name = 'DATA' ).
    How many rows has the table?
      lv_index = lo_data->GET_ELEMENT_COUNT( ).
    Not more then 20 rows on the screen
      IF lv_index GT 20.
        lv_index = 20.
      ENDIF.
    Put the number of rows in the screen
      lo_model->if_salv_wd_table_settings~set_visible_row_count( lv_index ).
    should the screen set to freeze?
      lo_model->if_salv_wd_table_settings~set_fixed_table_layout( abap_true ).

  • Can I "count" the number of rows excluding the header and footers

    I have some tables that consist of a different number of rows, as the number is part of an equation I need to know the number of rows excluding the header and footers. I have the work around in =ROWS(ColumnG)-3, but is there a tidier way? I want to be able to add footers (or headers) too and not have these counted.
    Many thanks
    Lee

    Hi Lee,
    Add a column to your table (for purposes of this discussion, the new column is placed before column C, and becomes the new column C). enter the formula below in all regular cells, but NOT in header or footer cells:
    =1
    Use the formula below, placed anywhere (except in a regular cell in column C) to get the number of non-header, non-footer cells:
    =COUNT($C)
    The first formula will automatically be placed in cells added to column C, and the results will change to reflect the added rows.
    Regards,
    Barry

  • How to limit the number of rows in the Custom Control box

    Hi All,
    In my Module pool screen I have a Custom Control box for providing some free text as input. Now, there is no limit in the number of rows allowed for this box.
    But, the requirement is, it should have the maximum number of rows = 99. and each row should have maximum length = 60 characters.
    User should not be allowed to enter more than 60 characters per row and more than 99 rows.
    Could you please let me know how to do this..? Are there any methods available which controls the maximum number of rows and maximum length per row..?
    Please help me in resolving the issue. Thanks in advance.
    Thanks & Regards,
    Paddu.

    By "Custom Control Box", do you mean a Custom Container or a Table Control?
    Anyway, I suggest you to use a table control (not a custom container as your requirement seems to be very precise on that point, maybe ask your client twice to make sure). Look at the examples of table controls in ABAPDOCU transaction.

  • How to increase the number of rows in the array as needed

     hello LV
    I need advice following
    1. To the sine signal of 100 data (100 sampling) to sort 250 rows in the array. It changes the sine signal in the plane that time.
    2. To set up a new row by external trigger signal.
    Thank you

    Hi Nusorn,
    Your question makes little to no sense. Could you explain further, perhaps send some example code of what you have done so far?
    Rgs,
    Lucither
    "Everything should be made as simple as possible but no simpler"

  • Why would an Oracle synonym return a different number of rows to the underlying table?

    Hi, I was doing some queries in EBS to extract data and I realized I was missing a lot of data.
    After investigating I realized:
    select count(*) from apps.XLA_TRANSACTION_ENTITIES;
    35459
    select count(*) from xla.XLA_TRANSACTION_ENTITIES;
    1122337
    The apps.XLA_TRANSACTION_ENTITIES is a synonym for xla.XLA_TRANSACTION_ENTITIES.
    The synonym creation code is:
    CREATE OR REPLACE SYNONYM "APPS"."XLA_TRANSACTION_ENTITIES" FOR "XLA"."XLA_TRANSACTION_ENTITIES";
    I've check and there is a dba_policy applied. The predicate is 1 = 1.
    With this predicate shouldn't all the rows be retrieved? What else can be filtering the rows retrieved in the synonym?
    The database version is: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    Thank you,
    Carla

    Carla,
    This is how we find the answer to your question, so maybe this would save you time next time
    - Login to MOS website
    - Search for XLA_TRANSACTION_ENTITIES AND SYNONYM
    - You will see (Why are there differences in SELECT * FROM XLA_TRANSACTION_ENTITIES and SELECT * FROM XLA.XLA_TRANSACTION_ENTITIES ? (Doc ID 946314.1)) second in the list
    Thanks,
    Hussein

  • Is it possible to change the number of rows while printing a contact sheet in Iphoto? Please help

    Hi guys, I am struggling to find out how to change the number of rows on a contact sheet on Iphoto , i have selected my photos and i want it to print 6 photos on each page however I am not able to do it.      Please help me out, im a Art student and i need to submit my contact sheets for an assignment  Thanks in advance guys !!!!!

    I don't think you can do that with the Contact Sheet layout.  If you have Pages or a 3rd party image editor that supports layers you can do what you want.  Or try the demo version of OmniGraffle for Mac It will run fully operational for 14 days. 

  • How to add the Row count(number of rows in table)  in  the table header?

    Hi,
    I'm having a table. This table is viewed when i click on a search button.
    <b>On the table header it should dynamically display the number of rows in the table, i.e., the row count.</b>
    How to do this? could any one explain me with the detailed procedure to achieve this.
    Thanks & Regards,
    Suresh

    If you want to show a localized text in the table header, you should use the <b>Message Pool</b> to create a (parameterized) message "tableHeaderText" like "There are table entries".
    Next, create a context attribute "tableHeaderText" of type "string" and bind the "text" property of the table header Caption UI element to this attribute.
    Whenever the table data has changed (e.g. at the end of the supply function for the table's data source node), update the header text:
    int numRows = wdContext.node<TableDataSourceNode>().size();
    String text = wdComponentAPI.getTextAccessor().getText
      IMessage<ComponentName>.TABLE_HEADER_TEXT,
      new Object[] { String.valueOf(numRows) }
    wdContext.currentContextElement().setTableHeaderText(text);
    Maybe you want to provide a separate message for the case that there are no entries.
    Alternatively, you can make the attribute calculated and return the header text in the attribute getter.
    Armin

  • Trying to find the number of rows in a ResultSet

    I am trying to find the number of rows in a ResultSet, using the following code:
    rs = st.executeQuery(query);
    rs.last(); // to move the cursor to the last row
    System.out.println(rs.getRow());
    However, I am getting this error:
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Unsupported method: ResultSet.last
    Whats going wrong??

    praveen_potru wrote:
    You might have not used scrollable result set..
    Try like this:
    stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);rs = stmt.executeQuery(sqlString);
    // Point to the last row in resultset.
    rs.last();
    // Get the row position which is also the number of rows in the ResultSet.
    int rowcount = rs.getRow();
    System.out.println("Total rows for the query: "+rowcount);
    cheersAnd I hope the OP would read it because the thread is a year old.

  • How to control the number of rows selected from a sybase database table?

    Hi, JDBC guru,
    I'm working on project using Sybase 11.9.x database.We need to process a record in a table,first select it from the table,then do some computing,finally write it to a dbf file, if the above steps succeed,remove the original row in the table.Quite evidently, all these operation should be put into one transaction. But how can I select just a number of rows from the sybase database table?
    Any hints?
    Thank you in advance.
    Regards,
    Jusitne

    Statement stmt...
    stmt.setMaxRows(20);

  • How to get the number of rows returned by a report?

    Hi,
    I'm developing my first application in APEX and so far everything seems fine, except I can't figure out this very simple thing: I have a report based on a PL/SQL block returning an SQL string. I'd like to have a message (something like "X rows returned") just before the report. The closest thing I could find was "X to Y out of Z" in the pagination styles, but that's not what I want. Also I don't think running the same query to get COUNT() is wise.
    Any help would be appreciated.
    Thanks,
    Konstantin

    My guess is that it only shows the number of rows it has retrieved. I believe the defailt is for it to only retrieve 50 rows and as you page through your report it retrieves more. So this would just tell you how many rows was retireved, but probably not how many rows the report would contain if you pages to the end. Oracle doesn't really have a notion of total number of rows until the whole result set has been materialized.

  • How to determine the number of rows of data in a datatable?

    I have a datatable that I fill from an SQL query.  I do not know exactly how many rows of data it will return (due to my selection criteria) but will be somewhere between 100 and 300 rows.  I send this data into a report but need to determine the length of the report (panel height data member) programatically based on how much data the query has returned.  So, I need a way to count how many rows are filled in the data table.
    I tried doing a nested "if" statement checking the value of each cell but when I tested the expression at 59 "if" statements (will need 300+) I got a parser error in lookout when I tried to accept the connection.  I also tried a type of loop by assigning cursor.2 either to its own value (circular) or to its own value plus one depending on the value of the cell at cursor.2.  It was close but overshot by one row or more (much more sometimes).
    Any clever ideas?  Perhaps I have just been looking at this problem too long.  Thanks, in advance, for your help.

    Since the datatable gets the data from the SQL query, you can also use the SQL statement to count the number of rows in the query result.  
    For example, in datatable you do "select localtime, trace1 from intdata where xxx". You can get the count by "select count(trace1) from intdata where xxx". Use the same condition in order to get the same number of rows.
    Maybe another SQLExec object is needed to do the count.
    Whenever the datatable executes the SQL, the SQLExec executes and return the count.
    Ryan Shi
    National Instruments

Maybe you are looking for

  • Error while creating Business Role

    Dear Frnds, I am working on webclient , am trying set a Business Role of my own .But it say "You Cannot Assign one PFCG role to different business roles" .As when i copy the standard business role to that role there  is no  PFCG role assigned. Here i

  • Playing tunes wirelessly from pc to hi-fi

    I want to get an airport express to play tunes from my pc wirelessly on my hi-fi. I already have an existing wireless network, so don't need the 'express' to provide wireless internet etc, but what I need to know is do I have to plug anything into th

  • Compilation Errors "skipp incompatible" installing oracle 10g on linux 64z9

    Hello Friends, I have errors while installing Oracle 10g 10.2.0 for z9 Systems on a IBM Z/OS System with a SLES 10 Linux for z9 (64bit System). The Problem: Some programs of oracle cause errors while compiling libraries. The Error: ------------ With

  • Can't adjust screen brightness.

    On my Tecra R840-S830, I recently reinstalled Windows 7 64 bit and I thought I installed the drivers I needed. My flashcard functions are working perfectly except that FN-F6 and FN-F7 will not adjust the screen brightness. I can also find no other wa

  • I upgraded my iphone to ios 6 but now it isn't working with itunes

    I upgraded my iphone to ios 6 but now it isn't working with itunes and my itunes will not upgrade. It is stuck at 10.6.1 and my macbook is not compatible with 10.7