Set OVS Row Num

Dear All,
Is it possible to specify the number of visible rows in OVS return table? I'm getting 5 rows, and i need to show 10.
Thanks & Regards,
Jiandong

Updating this thread,
You can look for "_webdynpro_component_ovs.jar" inside your server filesystem. Should be in JC00/j2ee/cluster/server0/apps/sap.com/tcwdcorecomp/webdynpro/public/lib/"
This is the WDP component supplied by SAP. I think it's better than overriding the whole Table class. Inside this JAR, there is a class file called InternalResultView.class. Inside the method wdCreateUITree() you can add a new line:
    public IWDViewElement wdCreateUITree()
        IWDTransparentContainer _RootUIElementContainer = (IWDTransparentContainer)wdAlterEgo.createElement(com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDTransparentContainer.class, "RootUIElementContainer");
        IWDFlowLayout _RootUIElementContainer__Layout = (IWDFlowLayout)_RootUIElementContainer.createLayout(com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDFlowLayout.class);
        IWDTable _result = (IWDTable)wdAlterEgo.createElement(com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDTable.class, "result");
        _result.setReadOnly(true);
        _result.setSelectionMode(WDTableSelectionMode.valueOf("single"));
        _result.setVisibleRowCount(10);    // Added Line..
        _result.setWidth("100%");
        _result.setOnLeadSelect(wdAlterEgo.getAction("LeadSelected"));
        IWDFlowData _result__LayoutData = (IWDFlowData)_result.createLayoutData(com.sap.tc.webdynpro.clientserver.uielib.standard.api.IWDFlowData.class);
        _RootUIElementContainer.addChild(_result);
        return _RootUIElementContainer;
Repack everything and have a go.
Hope it helps,
Daniel

Similar Messages

  • Suppress Row Num from XML output

    Hi there,
    Is possible to generate the output following without using style sheet ?
    a) remove <ROW num="10">
    b) to change the tag Code <COMM NULL="TRUE"/> to <COMM><COMM/>
    Thanks
    Jeremy Lee
    =====
    declare
    queryCtx DBMS_XMLquery.ctxType;
    result CLOB;
    begin
    delete from temp_clob_tab;
    commit;
    result := empty_clob();
    -- set up the query context...!
    -- queryCtx := DBMS_XMLQuery.newContext('select * from testxml');
    queryCtx := DBMS_XMLQuery.newContext('select empno ,ename,comm from emp WHERE comm is null');
    -- modify encoding format
    DBMS_XMLQuery.setEncodingTag(queryCtx, '"WINDOWS-1252"');
    --DBMS_XMLQUERY.setencodingtag(queryCtx 'UTF-8');
    -- DBMS_XMLGEN.SETNULLHANDLING(queryctx,2);
    dbms_xmlquery.SETROWSETTAG(queryCTX,'ROOT');
    dbms_xmlquery.usenullattributeindicator(queryCtx, true);
    -- get the result..!
    result := DBMS_XMLQuery.getXML(queryCtx);
    INSERT INTO temp_clob_tab VALUES(result);
    -- Now you can use the result to put it in tables/send as messages..
    ShowClobContents(result);
    DBMS_XMLQuery.closeContext(queryCtx); -- you must close the query handle..
    end;
    ================================================================
    | </ROW>
    | <ROW num="9">
    | <EMPNO>7902</EMPNO>
    | <ENAME>FORD</ENAME>
    | <COMM NULL="TRUE"/>
    | </ROW>
    | <ROW num="10">
    | <EMPNO>7934</EMPNO>
    | <ENAME>MILLER</ENAME>
    | <COMM NULL="TRUE"/>
    | </ROW>
    | </ROOT>

    Hi Ramesh,
    Thanks for your reply. If I tried using DBMS_XMLGEN, I get the following output which is closer to the output that I want. How do i show the null value as <COMM></COMM> ?
    Thanks
    Regards
    Jeremy Lee
    DECLARE
         ctx DBMS_XMLGEN.ctxHandle;
         xml CLOB;
    BEGIN
    delete from temp_clob_tab;
    commit;
         ctx := dbms_xmlgen.newcontext('select * from emp where comm is null');
         dbms_xmlgen.setrowsettag(ctx, 'Root');
    dbms_xmlgen.setrowtag(ctx, 'ROW');
    DBMS_XMLGEN.SETNULLHANDLING(ctx,2);
    -- DBMS_XMLGEN.setEncodingTag(ctx, '"iso-8859-1"');
    -- dbms_XMLGEN.usenullattributeindicator(ctx, true);
    xml := dbms_xmlgen.getxml(ctx);
    INSERT INTO temp_clob_tab VALUES(xml);
         -- dbms_output.put_line(substr(xml,1,1000));
    DBMS_XMLGEN.closeContext(ctx);
    END;
    ===================================================================
    <ROW>
    <EMPNO>7934</EMPNO>
    <ENAME>MILLER</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7782</MGR>
    <HIREDATE>23-JAN-82</HIREDATE>
    <SAL>1300</SAL>
    <COMM/>
    <DEPTNO>10</DEPTNO>
    </ROW>
    Regards
    Jeremy Lee

  • Suppress Row Num from XML

    Hi there,
    Is possible to generate the output following without using style sheet ?
    a) remove <ROW num="10">
    b) to change the tag Code <COMM NULL="TRUE"/> to <COMM><COMM/>
    Thanks
    Jeremy Lee
    =====
    declare
    queryCtx DBMS_XMLquery.ctxType;
    result CLOB;
    begin
    delete from temp_clob_tab;
    commit;
    result := empty_clob();
    -- set up the query context...!
    -- queryCtx := DBMS_XMLQuery.newContext('select * from testxml');
    queryCtx := DBMS_XMLQuery.newContext('select empno ,ename,comm from emp WHERE comm is null');
    -- modify encoding format
    DBMS_XMLQuery.setEncodingTag(queryCtx, '"WINDOWS-1252"');
    --DBMS_XMLQUERY.setencodingtag(queryCtx 'UTF-8');
    -- DBMS_XMLGEN.SETNULLHANDLING(queryctx,2);
    dbms_xmlquery.SETROWSETTAG(queryCTX,'ROOT');
    dbms_xmlquery.usenullattributeindicator(queryCtx, true);
    -- get the result..!
    result := DBMS_XMLQuery.getXML(queryCtx);
    INSERT INTO temp_clob_tab VALUES(result);
    -- Now you can use the result to put it in tables/send as messages..
    ShowClobContents(result);
    DBMS_XMLQuery.closeContext(queryCtx); -- you must close the query handle..
    end;
    ================================================================
    | </ROW>
    | <ROW num="9">
    | <EMPNO>7902</EMPNO>
    | <ENAME>FORD</ENAME>
    | <COMM NULL="TRUE"/>
    | </ROW>
    | <ROW num="10">
    | <EMPNO>7934</EMPNO>
    | <ENAME>MILLER</ENAME>
    | <COMM NULL="TRUE"/>
    | </ROW>
    | </ROOT>

    Dup of {thread:id=2159004}

  • Error in report getting "Invalid set of rows requested......."

    Hi all,
    I have search report in which, 5 multiselects are there and two select list are there.
    some times when we choose the options and press 'GO' button
    this kind of error is comming
    "Invalid set of rows requested, the source data of the report has been modified."
    But after going to another page and comming back it is working properly.
    What might be the reason for it?? how to avoid it???
    Please any suggestions are appreciated.
    Thanks in advance
    kavitha

    Hi
    Please anyone could give me suggestion to solve the problem...
    First time, when i run the application. the first page is the search page and the report will by-default display.
    i am displaying 25 records per page. and when i click the pagination next arrow mark, it is saying "No records found"
    but when i click the GO button once again it is comming.
    This happens only once that too, only for the 2nd page... when i press next arrow for the next pages (3rd page) it is working fine.
    when i run the application in the beginning.(ie when i start to run the application for the first time)
    thanks in advance
    kavitha

  • How to insert a set of rows at a time from another table

    Hello!
    I have a table1 and table 2 - i want to insert a set of rows at a time from table1 to table 2. Then do a COMMIT. Then continue inserting another set of rows and so on.... say i want to insert into table 2 i million records at a time and then do a commit. then continue with the next 1 million and do a commit and so on..until there are no more records in table 1
    Any ideas please!!!!!!!!!!

    may be this will help
    declare
    cursor c1
    select * from table1
    i_counter binary_integer := 1;
    begin
    for c1_rec in c1
    insert into table2
    values(c1_rec.,..);
    if i_counter = 1000? then
    commit;
    i_counter = 1;
    end if;
    i_counter := i_counter+1;
    end loop
    end;

  • Is it feasible to set the rows displayed per page dynamically?

    Hi,
    Is it feasible to set the rows displayed per page dynamically in the table view result as per the user wants eg : the user wishes to see only 25 records or all the records?
    Also what is the maximum limit of rows that can be fetched as per the entry in instanceconfig.xml :
    <ResultRowLimit>65000</ResultRowLimit>
    Is there a limit for number of rows being displayed in table view?
    thanks
    Rishabh

    See this
    How to increase default  number of rows dspalyed ?
    This is your thread only...

  • How to load only first set of rows only in pagination of interactive report

    Hi all,
    Iam using 3.2 x and database 10g.
    I have created interactive report and it contains 500000 records. and iam using pagination x to y but background it loads complete rows from database.
    To load complete 500000 records page taking 10 minutes.So My reqiurement is I need to load first set of rows like 500 rows and Once i click next button then only it should load next set of rows like 501 to 1000.
    Please tell any idea to resolve the above problem.
    thanks
    balu

    Balu,
    try to trace your page to see how your statement can be tuned. To do that add &p_trace=YES to the URL.
    This creates a standard Database Trace file which can be analyzed with TKPROF or SQL Developer or similiar tools.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • How do I export a specific set of rows from Numbers?

    What i am looking to be able to do is
    Export a specific set of rows from Numbers
    I am working with large files of information
    but would like to break the file up into smaller files
    for example
    I have 1 file with 40,000 rows
    I need to be able to export/save this file into 4 smaller files
    Rows 1-10,000
    Rows 10,001-20,000
    Rows 20,001-30,000
    Rows 30,001-40,000

    I do not think I would use Numbers for this task.
    I would duplicate the file (let's say the name is data.txt)
    and name the two files:
    dataA.txt
    dataC.txt
    then I would open dataA.txt in TextEdit and delete the last half of the file and save
    then I would open dataC.txt in TextEdit and delete the first half of the file and save
    then duplicate dataA.txt and name the new file dataB.txt
    then duplicate dataC.txt and name the new file dataD.txt
    Now open dataA.txt and delete the last half of the file, save
    Now open dataB.txt and delete the first half of the file, save
    Now open dataC.txt and delete the last half of the file, save
    Now open dataD.txt and delete the first half of the file, save
    if you did this very often I would suggest a script of some kind

  • Setting Two Row Tags issue using DBMS_XMLGEN.setrowtag ?

    Hi All,
         Am generating a xml using DBMS_XMLGEN.
         I want to generate a XML in the following format
         <MAIN>
         <PACK = 1>
         <EMP DETAILS>
              Some data goes here     
         <EMP DETAILS>     
    <PACK = 2>
         <EMP DETAILS>
                   Some data goes here
         <EMP DETAILS>     
                   Some data goes here
         <EMP DETAILS>
                   Some data goes here
    <PACK = 3>
         <EMP DETAILS>
                   Some data goes here
         <EMP DETAILS>     
                   Some data goes here               
         <EMP DETAILS>
         <MAIN>
         Am able to set the only the following
         DBMS_XMLGEN.setrowsettag('xmlhandle','MAIN');
         DBMS_XMLGEN.setrowtag('xmlhandle','EMP DETAILS');
         But the problem is setting another row tag <PACK>
         Is it possible to set another rowtag ?
         Please any inputs on this will be really helpful?

    I don't think you can set two different row tags in dbms_xmlgen. I'm also not sure about the "= 1", "= 2", etc. strings in your PACK tags. Perhaps I'm missing something but that doesn't look like legal XML.
    Here's an approach that may help anyway though ...
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    set echo on
    set long 10000
    set longchunksize 10000
    set pagesize 100
    create or replace type emp_details as object
    ( empno integer, ename varchar2(10) )
    Type created.
    create or replace function getxmldata return clob
    is
      mysql dbms_xmlgen.ctxHandle ;
      v_result clob ;
    begin
      mysql :=
        dbms_xmlgen.newContext
          'select emp_details( empno, ename ) as emp_details
          from emp where deptno = 10'
      dbms_xmlgen.setrowsettag(mysql,'MAIN');
      dbms_xmlgen.setrowtag(mysql,'PACK');
      v_result := dbms_xmlgen.getXML(mysql) ;
      dbms_xmlgen.closeContext( mysql );
      return( v_result );
    end;
    Function created.
    show errors
    No errors.
    select getxmldata from dual ;
    GETXMLDATA
    <?xml version="1.0"?>
    <MAIN>
    <PACK>
      <EMP_DETAILS>
       <EMPNO>7782</EMPNO>
       <ENAME>CLARK</ENAME>
      </EMP_DETAILS>
    </PACK>
    <PACK>
      <EMP_DETAILS>
       <EMPNO>7839</EMPNO>
       <ENAME>KING</ENAME>
      </EMP_DETAILS>
    </PACK>
    <PACK>
      <EMP_DETAILS>
       <EMPNO>7934</EMPNO>
       <ENAME>MILLER</ENAME>
      </EMP_DETAILS>
    </PACK>
    </MAIN>
    1 row selected.
    drop function getxmldata ;
    Function dropped.
    drop type emp_details ;
    Type dropped.--
    Joe Fuda
    SQL Snippets

  • How to insert a new row in the middle of an set of rows

    Hi
    How to insert a new  row in the middle of an set of rows ? and How to Reset the line id after the new row added ?
    Regards,
    Sudhir B.

    Hai,
    just try this,
    Instead of using omatrix.Addrow(1,-1) use like
    omatrix.AddRow( RowCount , Position)
    RowCount
    The number of rows to add (default is 1)
    Position
    The position of the new rows (0-based; default is -1, meaning append row to the end)
    After adding rows in matrix For, sno.
    for i=1 to omatrix.visualrowcount
    otext=omatrix.getcellspecific("columnid",i)  '--where columnid is the unique id of the sno column
    otext.value=i
    next i
    Hope this helps you.
    Thanks & Regards,
    Parvatha Solai.N

  • Set Maximum Rows Per Page not working

    I want to display 50 rows per page and I tried the below but still I can see the default 15 rows per page.
    Home>Application Builder>Application 301>Page 51>Interactive Report Attributes>Search Bar>Maximum Rows Per Page
    Set to = 50
    Home>Application Builder>Application 301>Page 51>Interactive Report Attributes>Search Bar>Rows Per Page Selector
    Removed the check mark and still shows 15 rows per page.

    Run your report. Set the Rows to 50. Press Go. Select 'Save Report' from the 'magic wheel' menu and next select 'Save as default report settings'.
    It is a rather long way, but seems the only one...
    Roel

  • How to set special rows in jtable not selectable

    Hello programmers,
    anybody knows how to set special rows(p.E. row 0) in jtable not selectable.
    in advance thanks for your answers

    table = new JTable(...)
         public void changeSelection(int row, int column, boolean toggle, boolean extend)
              if (row == 0)
                   return;
              else
                   super.changeSelection(row, column, toggle, extend);
    };

  • GetRowIndex of richTable returns different row num from what is defined in the generated page

    Hi,
    I am using jdev 11.1.2.4...
    I have a binding to a RichTable. When I use dataTable.getRowIndex() I get the right row numbers, from 0.
    When I look at the source of the page in the browser, after pressing execute query - the row num in the page increases by the total number of rows in the table.
    So when I need to get the inputText clientid (to open a popup next to it) I can't get the right client id.
    for example:
    For the first time the page is entered the id is: pt1:weekTab:2:inTime1
    after pressing execute query the same field is called like this: pt1:weekTab:13:inTime1
    Does this may have something to do with that I use contextual event to run the "execute query" (the dates are on a fragment inside the page )?
    Some other definitions of the table?
    Thank you,
    Nina

    Hi,
    no it has to do with the fact that tables are stamped and the components in the table cells are no object instances. Do you launch the popup programmatically ?
    Frank

  • ORA-30926: unable to get a stable set of rows in the source tables

    hi,
    I am loading data from source table to target table in a interface.
    Using LKM incremental update .
    In the merge rows step , getting the below error.
    30926 : 99999 : java.sql.SQLException: ORA-30926: unable to get a stable set of rows in the source tables
    please help as what should be done to resolve this.

    Below is the query in the merge step...
    when i run from SQL also, same error
    SQL Error: ORA-30926: unable to get a stable set of rows in the source tables
    30926. 00000 - "unable to get a stable set of rows in the source tables"
    *Cause:    A stable set of rows could not be got because of large dml
    activity or a non-deterministic where clause.
    *Action:   Remove any non-deterministic where clauses and reissue the dml.
    merge into     TFR.INVENTORIES T
    using     TFR.I$_INVENTORIES S
    on     (
              T.ORGANIZATION_ID=S.ORGANIZATION_ID
         and          T.ITEM_ID=S.ITEM_ID
    when matched
    then update set
         T.ITEM_TYPE     = S.ITEM_TYPE,
         T.SEGMENT1     = S.SEGMENT1,
         T.DESCRIPTION     = S.DESCRIPTION,
         T.LIST_PRICE_PER_UNIT     = S.LIST_PRICE_PER_UNIT,
         T.CREATED_BY     = S.CREATED_BY,
         T.DEFAULT_SO_SOURCE_TYPE     = S.DEFAULT_SO_SOURCE_TYPE,
         T.MATERIAL_BILLABLE_FLAG     = S.MATERIAL_BILLABLE_FLAG,
         T.LAST_UPDATED_BY     = S.LAST_UPDATED_BY
         ,T.ID     = TFR.INVENTORIES_SEQ.NEXTVAL,
         T.CREATION_DATE     = CURRENT_DATE,
         T.LAST_UPDATE_DATE     = CURRENT_DATE
    when not matched
    then insert
         T.ORGANIZATION_ID,
         T.ITEM_ID,
         T.ITEM_TYPE,
         T.SEGMENT1,
         T.DESCRIPTION,
         T.LIST_PRICE_PER_UNIT,
         T.CREATED_BY,
         T.DEFAULT_SO_SOURCE_TYPE,
         T.MATERIAL_BILLABLE_FLAG,
         T.LAST_UPDATED_BY
         ,T.ID,
         T.CREATION_DATE,
         T.LAST_UPDATE_DATE
    values
         S.ORGANIZATION_ID,
         S.ITEM_ID,
         S.ITEM_TYPE,
         S.SEGMENT1,
         S.DESCRIPTION,
         S.LIST_PRICE_PER_UNIT,
         S.CREATED_BY,
         S.DEFAULT_SO_SOURCE_TYPE,
         S.MATERIAL_BILLABLE_FLAG,
         S.LAST_UPDATED_BY
         ,TFR.INVENTORIES_SEQ.NEXTVAL,
         CURRENT_DATE,
         CURRENT_DATE
         )

  • MERGE error : unable to get a stable set of rows in the source tables

    Hi,
    For an update, the following MERGE statement throws the error-unable to get a stable set of rows in the source tables:
    MERGE INTO table2t INT
    USING (SELECT DISTINCT NULL bdl_inst_id,.......
    FROM table1 ftp
    WHERE ftp.gld_business_date = g_business_date
    AND ftp.underlying_instrument_id IS NOT NULL) ui
    ON ( ( INT.inst_id = ui.inst_id
    AND g_business_date BETWEEN INT.valid_from_date
    AND INT.valid_to_date
    OR ( INT.ric = ui.ric
    AND g_business_date BETWEEN INT.valid_from_date
    AND INT.valid_to_date
    OR ( INT.isin = ui.isin
    AND g_business_date BETWEEN INT.valid_from_date
    AND INT.valid_to_date
    OR ( INT.sedol = ui.sedol
    AND g_business_date BETWEEN INT.valid_from_date
    AND INT.valid_to_date
    OR ( INT.cusip = ui.cusip
    AND g_business_date BETWEEN INT.valid_from_date
    AND INT.valid_to_date
    WHEN MATCHED THEN
    UPDATE
    SET INT.inst_id = ui.inst_id, INT.ric = ui.ric
    WHEN NOT MATCHED THEN
    INSERT (inst_key, ......)
    VALUES (inst_key, ......);
    To determine the existence of a record, first check if any match is found on the first key, if not then search for the second key and so on.
    Now two records with differenct first key, i.e. inst_id, can have the same ric(second key). On a rerun, with the target table already populated, the code fails. The reason is it finds duplicate entries for the second key.
    Any suggestions on how to make this work?
    Thanks in advance.
    Annie

    Annie
    You've spotted the problem (that two records have the same RIC). MERGE doesn't allow that; each record in the data being updated is only allowed to be updated once.
    Is there a PK column (or columns) that we can rely on?
    What you can try is to outer join FTP to INT. Something like:
    MERGE INTO INT int1
    USING (
        select columns_you_need
        from (
            select ftp.columns -- whatever they are
                   , int2.columns
                   , row_number() over (partition by int2.pk_columns order by int2.somecolumns) as rn
            from   ftp
            left join int int2
            on (the condition you used in your query)
        where rn=1
    ) s
    WHEN MATCHED THEN UPDATE ...
    WHEN NOT MATCHED THEN INSERT ...So if you can restrict the driving query so that only the first one of the possible updates actually gets presented to the MERGE operation, you might be in with a chance :-)
    And of course this error is nothing to do with any triggers.
    HTH
    Regards Nigel

Maybe you are looking for

  • How to make Object class to be serializable?

    I'm writing a session bean which contains an Object[][] as a return e.g public Object[][] getFoo(){ I need the return to be of type Object since I'm constracting a 2D array of different object types e.g Integer, Double, HashMap, String etc. But EJBs

  • No Global Address List (GAL)??

    I just got my iPhone 3G yesterday and got Exchange set up. I am able to send e-mails and set calendar appointments. However, I do not seem to be able to look up people in the GAL. I have sync of contacts disabled from my exchange account. Do I need t

  • Changing application used for streaming

    Hi all, I am going insane here..... I want to listen to the radio online but for some reason their file now tries to open with VLC instead of the Windows Media Player that it needs. It used to work fine with WMP but VLC can't play it. I've tried chan

  • Tariff #, Commodity #,  HTS # and Schedule B # all are same.

    My understanding is  Tariff #, Commodity #,  HTS # and Schedule B # all are same.  Meaning, you apply and assign same 10 digit numbering scheme for the given parts.    When you import you call it HTS# or Tariff #. When you export the part # it is cal

  • When I try to create an e-print account, it says my e-mail is already registered, but it is not!

    The system returns an answer that my email is already registered, then if I try to get a password reset, it replies "use the e-mail associated with your account"...so I'm locked out This question was solved. View Solution.