How to limit numbers of rows in a sortable table

Hi,
I created a table that shows the first 25 of over 200.000 rows. This table is sortable. That means that I cant use the topN function to restrict the total numbers of rows.
Is there any chance mabe by using the advanced tab to limit the rows.
Regards,
Frank

Hy,
Take a look here :
http://gerardnico.com/wiki/dat/obiee/obiee_limit_clause
I had the same problem but unfortunately I don't have find how to limit the sql performed in a answer. You can only force your users to limit the number of rows returned by applying a filter.
Regards
Nico

Similar Messages

  • Finding missed sequence numbers and rows from a fact table

    Finding missed sequence numbers and rows from a fact table
    Hi
    I am working on an OLAP date cube with the following schema:
    As you can see there is a fact transaction with two dimensions called cardNumber and Sequence. Card dimension contains about three million card numbers. 
    Sequence dimension contains a sequence number from 0 to 255. Fact transaction contains about 400 million transactions of those cards.
    Each transaction has a sequence number in 0 to 255 ranges. If sequence number of transactions of a card reaches to 255 the next transaction would get 0 as a sequence number.
    For example if a card has 1000 transactions then sequence numbers are as follows;
    Transaction 1 to transaction 256 with sequences from 0 to 255
    Transaction 257 to transaction 512 with sequences from 0 to 255
    Transaction 513 to transaction 768 with sequences from 0 to 255
    Transaction 769 to transaction 1000 with sequences from 0 to 231
    The problem is that:
    Sometimes there are several missed transactions. For example instead of sequence from 0 to 255, sequences are from 0 to 150 and then from 160 to 255. Here 10 transactions have been missed.
    How can I find all missed transactions of all cards with a MDX QUERY?
    I really appreciate for helps

    Thank you Liao
    I need to find missed numbers, In this scenario I want the query to tell the missed numbers are: 151,152,153,154,155,156,157,158,159
    Relative transactions are also missed, so I think it is impossible to get them by your MDX query
    Suppose this:
    date
    time
    sequence
    20140701
    23:22:00
    149
    20140701
    23:44:00
    150
    20140702
    8:30:00
    160
    20140702
    9:30:00
    161
    20140702
    11:30:00
    162
    20140702
    11:45:00
    163
    As you can see the sequence number of the last transaction at the 20140701 is 150
    We expecting that the first transaction of the next day should be 151 but it is 160. Those 10 transactions are totally missed and we just need to
    find missed sequence numbers

  • How to freeze column and row headers of a table

    How to freeze column and row headers of a table in jsp and javascript. An example is available in
    http://www.massless.org/_tests/grid1/ pls help to find a solutionj
    Thanks in anticipation
    Sreejesh

    At least I don't stop you from that. I also don't see any benefits in this topic.
    Success.

  • How to limit no of rows in ADF table

    Hi all,
    i want to limit the number of rows displayed in ADf table. I tried using range size, but it didn't work. In the post
    Limiting ADF table number of rows is not working
    it was stated that it is a bug. Is it fixed now or is there any work around to fix this.
    Thanks in advance,
    Nad

    Hi Nad..
    Hope this would help you..
    Suppose you have these..
    Jspx Page - RangeTable.jspx
    Backing Class - RangeTable.java
    Iterator used to load Table in page definition - ViewObjTableData
    First of all In your pagedefinition page change the RangeSize value to -1 to display all rows in your table like
    <iterator id="ViewObjTableDataIterator" RangeSize="-1"
                  Binds="ViewObjTableData" DataControl="AppModuleDataControl"/>Now Goto your Backing bean and there put the setter getter method to limit your Table to show data as you want.. Like..
    public static int rangeSize = 10;   
        public void setRangeSize(int rangeSize) {
            this.rangeSize = rangeSize;
            AdfFacesContext.getCurrentInstance().addPartialTarget(table1);
        public int getRangeSize() {
            return rangeSize;
        }Line having this is your default no of rows which you will get on table load..
    public static int rangeSize = 10;and
    this will forcely refresh your table according to your choise
    AdfFacesContext.getCurrentInstance().addPartialTarget(table1);Now come to Your Jspx page and
    Add af:selectOneChoice to Action facet of your table and add some selectItem having value of *10*,*20*, and *30* According to your choise
    <af:selectOneChoice label="Row Limit" autoSubmit="true"
                                          binding="#{backing_RangeTable.selectOneChoice1}"
                                          id="selectOneChoice1"
                                          value="#{backing_RangeTable.rangeSize}">
               <af:selectItem label="10" value="10"
                                       binding="#{backing_RangeTable.selectItem1}"
                                       id="selectItem1"/>
               <af:selectItem label="20" value="20"
                                       binding="#{backing_RangeTable.selectItem2}"
                                       id="selectItem2"/>
               <af:selectItem label="30" value="30"
                                       binding="#{backing_RangeTable.selectItem3}"
                                       id="selectItem3"/>
    </af:selectOneChoice>set its autoSubmit property to true and bind the value property to the rangeSize of your backing beans
    now in your table change binding property of Rows to your backingbean's rangeSize like
    rows="#{backing_RangeTable.rangeSize}"and also set this
    partialTriggers="selectOneChoice1"That all dear..
    Now check it out and let me know that you got your solution or not?
    and if you got your right answer then dont forget to put \[SOLVED\] tag with your subject line. and mark this answer as correct and helpful.. :-)
    Thanks,
    Fizzz...

  • How to get the last row of a database table.

    HI ,
    I want to get record exactly from the last row of a database table.
    How is that possible?

    Hi,
    To fetch last record from an internal table, just do find the number of records in it and read using index.
    DESCRIBE TABLE ITAB LINES L_LINES.
    READ TABLE ITAB INDEX L_LINES.
    You can also use LOOP .. ENDLOOP but the above method is better (performance wise).
    using LOOP .. ENDLOOP.
    LOOP AT ITAB.
    **do nothing
    ENDLOOP.
    **process ITAB (Header record of ITAB).
    **after ENLOOP, ITAB will have the last record of the internal table.
    [here ITAB is internal table as well as header record.]
    But what is the requirement?
    If you are looking for the current record of an employee then you can use ENDDA = HIGH_DATE.
    My advice is to review your requirement again and try to fetch only that record which you need.
    Mubeen

  • How to get the selected rows & columns in the table?

    hi everybody,
                         In my application the table is kept inside the event structure.I select the cells  in the table (using mouse) on running time.How to get the selected number of rows & columns in that table?

    Hello,
    You can fill selected values of the table by writing to it or the corresponding property using a property node - the table is just a 2D array of strings.  I think for your "disable" question you are referring to the shortcut menu (when you right click).  If you are using LabVIEW 8.x, you can edit or disable that shortcut menu - just right click on your table at edit time and choose Advanced >> Run-Time Shortcut Menu.
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • How can i count no rows in my database table

    plz tell me how can i count no of rows in my database table with[b] ResultSet object

    Hi ! hope this code helps you .
    We can use the count(*) to get the total no of records in the table ad then access it through the getString method .
    import java.sql.*;
    public class JdbcTest
         public static void main(String [] args ) throws Exception
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              String DBURL = "jdbc:odbc:mydsn" ;
              Connection conn = DriverManager.getConnection(DBURL);
              Statement st = conn.createStatement();
              ResultSet rs = st.executeQuery("select count(*) from table1");
              rs.next();
              System.out.println("total rec = " + rs.getString(1));     
    Cheers !

  • How to create a total row in a DynPro table ?

    Hello,
    I've created a standard table in DynPro which consist two lines: One indicating a certain count and the other indicating a certain amount. I would like to create at the end of the row a total row which will sum it's relevant column. How can I do it without summming each row manually at the code and how do I add another row at the end which will indicate the total?
    Roy

    Hi Roy,
    Refer this tutorial for calculating the total in the WD table
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/developing with tables in web dynpro.pdf
    Regards,
    Jaydeep

  • How to add a footer row to an existing table?

    The LiveCycle on-line help is pretty cryptic on this one . . . .
    I have an existing table in a form in which the designer (me) left off a footer row by mistake. In lieu of deleting the table and rebuilding it using the Table Assistant, is there a way to add a footer row to the existing table? The on-line help seems to indicate that it's possible, but offers little in the way of instruction on how to do it.
    Thanks in advance!
    Bill

    Hi Bill,
    in your hierarchy view of your table,
    selsct the body row of your tabke and
    right-click and select 'Insert'.
    Then select 'Rows below'.
    You will see a new row beneath your original body row.
    Select your new row, and in your Object tab, select 'Footer Row' under type.
    Now, under the Pagination tab select wether you want to see the footer row on every page or just the last page.
    Good Luck!
    Zoe

  • How to perform Autosubmit  on Row selection in ADF Table

    Hi,
    I am using ADF Table , in which I want to enable AutoSubmit for the Table Row Selection.
    I want to enable some button on my screen when a row is selected in the table.
    I want to achive this with out using SelectionListener .. any iputs for this?
    Thanks,
    Swathi

    Hi Timo,
    here is my code : this code is to implement Custom shuttle .. where I am using two ADF Tables to display the Available list and Selected List ..and using navigation buttons to move the selected item.When I select a Row in the left table .. I want to enable the 'add' button.
    <af:table value="#{pageFlowScope.ebean.al}" var="row"
                      rowBandingInterval="0" varStatus="vs" id="t2"
                      rowSelection="single"
                      binding="#{pageFlowScope.ebean.availableList}"
                      partialTriggers="::cb2 ::cbAdd ::cbRemove"
                      summary="#{backingBeanScope.BundleBean.MEASURES}"
                       selectionListener="#{pageFlowScope.ebean.rowSelection}"
                      inlineStyle="height:200.0px;" horizontalGridVisible="false">
              <af:column sortProperty="Name" sortable="false"
                         headerText="Name"
                         id="c3" width="300" rowHeader="unstyled">
                <af:panelGroupLayout id="pgl6">
                  <af:image source="/images/file_ena.png" id="i2"
                            shortDesc="#{backingBeanScope.BundleBean.FILE_ENA}"/>
                  <af:outputText value="#{row.label}" id="ot2"/>
                </af:panelGroupLayout>
              </af:column>
            </af:table>
          </af:panelGroupLayout>
          <af:panelGroupLayout id="pgl3" layout="vertical"
                               inlineStyle="width:39px;">
            <af:commandButton id="cbAdd"
                              actionListener="#{pageFlowScope.ebean.onAdd}"
                              partialSubmit="true"
                              disabled="#{pageFlowScope.ebean.dataToAdd==null}"
                              icon="/images/shuttleright_ena.png"
                              shortDesc="#{backingBeanScope.BundleBean.ADD}"
                              partialTriggers="t2"/>
            <af:spacer width="10" height="10" id="s1"/>
            <af:commandButton id="cbAddAll" action="addAll"
                              actionListener="#{pageFlowScope.ebean.onAddAll}"
                              disabled="#{pageFlowScope.ebean.availableListSize==0}"
                              icon="/images/shuttlerightall_ena.png"
                              shortDesc="#{backingBeanScope.BundleBean.ADD_ALL}"
                              partialTriggers="cbRemove"/>
            <af:spacer width="10" height="10" id="s2"/>  
            <af:commandButton id="cbRemove" partialSubmit="true"
                              actionListener="#{pageFlowScope.ebean.onRemove}"
                              icon="/images/shuttleleft_ena.png"
                              shortDesc="#{backingBeanScope.BundleBean.REMOVE}"
                              partialTriggers="t3"
                              disabled="#{ pageFlowScope.ebean.dataToRemove==null}"/>
            <af:spacer width="10" height="10" id="s4"/>
            <af:commandButton id="cbRemoveAll"
                              actionListener="#{pageFlowScope.ebean.onRemoveAll}"                         
                              icon="/images/shuttleleftall_ena.png"
                              shortDesc="#{backingBeanScope.BundleBean.REMOVE_ALL}"
                              disabled="#{pageFlowScope.ebean.listSize==0}"
                              partialTriggers="cbAdd "/>
          </af:panelGroupLayout>
          <af:panelGroupLayout id="pgl5">
            <af:outputText value="#{backingBeanScope.BundleBean.SELECTED_MEASURES}#{pageFlowScope.ebean.listSize}#{backingBeanScope.BundleBean.CB}"
                           id="ot3"
                           inlineStyle="font-weight:bold; font-size:small;"
                           partialTriggers="cbAdd cbRemove"/>
            <af:table value="#{pageFlowScope.ebean.sl}" var="row"
                      rowBandingInterval="0" varStatus="vs" id="t3"
                      rowSelection="single"
                      binding="#{pageFlowScope.ebean.list}"
                      partialTriggers="::cbAdd ::cbAddAll ::cbRemove ::cbRemoveAll"
                      summary="#{backingBeanScope.BundleBean.MEASURES}"
                      selectionListener="#{pageFlowScope.ebean.rowSelection}"
                       inlineStyle="height:200.0px;" horizontalGridVisible="false">
              <af:column sortProperty="Name" sortable="false"
                         headerText="Name"
                         id="c5" width="300" rowHeader="unstyled">
                <af:panelGroupLayout id="pgl9">
                  <af:image source="/images/file_ena.png" id="i3"
                            shortDesc="#{backingBeanScope.BundleBean.FILE_ENA}"/>
                  <af:outputText value="#{row.label}" id="ot1"/>
                </af:panelGroupLayout>
              </af:column>
            </af:table>
        </af:panelGroupLayout>
    public void rowSelection(SelectionEvent selectionEvent) {
            RichTable at = (RichTable)selectionEvent.getComponent();
            if(at.getId().equals("t2"))
                getDataToAdd();
            else          
               getDataToRemove();       
        public Object getDataToAdd(){
            if(availableList!=null)
         return availableList.getComponent().getSelectedRowData();
            return null;
        public Object getDataToRemove() {       
            if (list != null && list.getComponent().getSelectedRowKeys()!=null)
                    return list.getComponent().getSelectedRowData();
            return null;
        }Thanks,
    Swathi

  • How can i select the rows from the 3 tables by particular column name?

    Vehicle Passing Summary table structure
              PsngSmry_ID(Number),Vehicle_iD(Number),PsngSmryTime(datetime)
    Vehicle table structure
              Vehicle_iD(Number),VehicleName(VarChar2),VehicleType(VarChar2)
    Here Vehicle_iD is the Primary Key
    Equipment Table Structure
              Eqpmt_id(Number),Vehicle_iD(Number),EqpmtName(VarChar2),EqpmtType(VarChar2)
    Here Eqpmt_id is the Primary Key and Vehicle_iD is the foreign Key
    Equipment Component Table Structure
              Eqpmt_Cmpnt_id(Number) ,Eqpmt_id(Number),EqpmtCmpntName(VarChar2),EqpmtCmpntName(VarChar2),Parent_Eqpmnt_ID(Number)
    Here Eqpmt_Cmpnt_id is the Primary Key and Eqpmt_id is the foreign Key
    The rows in the Vehicle Passing Summary table
         PsngSmry_ID Vehicle_ID     PsngSmryTime
         111111          80986246     2010/10/11
         111112          80986247     2010/10/12
         111113          80986248     2010/10/10
    The rows in the Vehicle Table
         Vehicle_iD     VehicleName     VehicleType
         80986246          Lorry          Four Wheeler
         80986247          Van          Four Wheeler
         80986248          Bus          Four Wheeler
    The rows in the Equipment Table:
         Eqpmt_id     Vehicle_iD     EqpmtName          EqpmtType
         109846          80986246          2 Axle Lorry          CAR
    109821          80986246          4 Axle Lorry          CAR
    109825          80986246          4 Axle Lorry          CAR
         109562          80986247          2 Axle VAn          CAR
    109555          80986247          3 Axle VAn          CAR
    109777          80986247          3 Axle VAn          CAR
         109587          80986248          2 Axle Bus          CAR
    The rows in the Equipment Component Table :
         Eqpmt_Cmpnt_id Eqpmt_id EqpmtCmpntName Parent_Eqpmnt_ID
         20904146          109846          Truck               
         20904147          109846          Truck
         20904148          109846          Axle               20904146
         20904159          109846          Axle               20904146
         20904167          109846          Wheel               20904148
         20904177          109846          Wheel               20904148
         20904185          109846          Wheel               20904159
         20904325          109846          Wheel               20904159
         20904188          109846          Axle               20904147
         20904189          109846          Axle               20904147
         20904195          109846          Wheel               20904188
         20904196          109846          Wheel               20904188
         20904197          109846          Wheel               20904189
         20904398          109846          Wheel               20904189
         10904146          109562          Truck               
         10904147          109562          Truck
         10904148          109562          Axle               10904146
         10904159          109562          Axle               10904146
         10904167          109562          Wheel               10904148
         10904177          109562          Wheel               10904148
         10904185          109562          Wheel               10904159
         10904325          109562          Wheel               10904159
         10904188          109562          Axle               10904147
         10904189          109562          Axle               10904147
         10904195          109562          Wheel               10904188
         10904196          109562          Wheel               10904188
         10904197          109562          Wheel               10904189
         10904398          109562          Wheel               10904189
    Note : In Equipment Component Table,the hierarchy will be Truck-->Axle-->Wheel.So
    1.the Parent_Eqpmnt_ID of Axle is Truck's Eqpmt_Cmpnt_id.
    2.the Parent_Eqpmnt_ID of Wheel is Axle's Eqpmt_Cmpnt_id.
    Now I want to write the store procedure which will take "PsngSmry_ID(Number)" as input and the o/p will be in the format :
         Eqpmt_Cmpnt_id Eqpmt_id EqpmtCmpntName Parent_Eqpmnt_ID
         20904146          109846      Truck     
         20904148          109846      Axle               20904146
         20904167          109846      Wheel               20904148
         20904177          109846      Wheel               20904148     
         20904159          109846      Axle               20904146
         20904185          109846      Wheel               20904159
         20904325          109846      Wheel               20904159
         20904147          109846      Truck
         20904188          109846      Axle               20904147
         20904195          109846      Wheel               20904188
         20904196          109846      Wheel               20904188
         20904189          109846      Axle               20904147
         20904197          109846      Wheel               20904189
         20904398          109846      Wheel               20904189
         10904146          109562          Truck     
         10904148          109562          Axle               10904146
         10904167          109562          Wheel               10904148
         10904177          109562          Wheel               10904148     
         10904159          109562          Axle               10904146
         10904185          109562          Wheel               10904159
         10904325          109562          Wheel               10904159
         10904147          109562      Truck
         10904188          109562      Axle               10904147
         10904195          109562      Wheel               10904188
         10904196          109562      Wheel               10904188
         10904189          109562      Axle               10904147
         10904197          109562      Wheel               10904189
         10904398          109562      Wheel               10904189
    **Please add these columns in the o/p **
    1.EqpmtName and EqpmtType from Eqpmt table
    2.VehicleName and Vehicle Type from Vehicle table
    3.PsngSmryTime from PassingSummary table **
    Can anyone tell me the solution?
    Edited by: 865216 on Jun 22, 2011 2:14 AM

    Hi,
    I am new to this technology;But, just wanted to help you.
    Please refer the code it might be atleast helpful for you.
    But am facing PL/SQL: ORA-00933: error and unable to resolve it.could anyone please correct this code.
    sorry if my code is totally wrong.
    Thank you,
    Rupa
    create or replace procedure Equipment_proc
    is
    begin
    DECLARE
    TYPE EQP_record IS RECORD (
    Vehicle_iD Vehicle.Vehicle_iD%TYPE,
    Eqpmt_Cmpnt_id Equipment_Component.Eqpmt_Cmpnt_id%type,
    EqpmtCmpntName Equipment_Component.EqpmtCmpntName%type,
    Parent_Eqpmnt_ID Equipment_Component.Parent_Eqpmnt_ID%type,
    Eqpmt_id Equipment.Eqpmt_id%type,
    vehicleId NUMBER);
    EQP_rec EQP_record;
    CURSOR EQP_cursor IS
    select a.Vehicle_iD,c.Eqpmt_Cmpnt_id,b.Eqpmt_id,c.EqpmtCmpntName,c.Parent_Eqpmnt_ID
    from Vehicle a,Equipment b,Equipment_Component c
    where a.Vehicle_iD=b.Vehicle_iD
    and b.Eqpmt_id=c.Eqpmt_id
    and a.vehicle_id=&EQP_rec.vehicleId;
    BEGIN
    OPEN EQP_cursor;
         FETCH EQP_cursor INTO EQP_rec;
         dbms_output.put_line(EQP_rec.Vehicle_iD,EQP_rec.Eqpmt_Cmpnt_id||','||EQP_rec.Eqpmt_id||','||EQP_rec.EqpmtCmpntName||','||EQP_rec.Parent_Eqpmnt_ID);
    CLOSE EQP_cursor;
    END;
    END;

  • How to reset the sort criteria on a sortable table?

    Hi all,
    How can I reset the sort criteria on a sortable table?
    Regards

    Hi,
    Did you try with <af:resetActionListener> or refresh table in Bean using button make sure partialSubmit true for Button and use following code
    acesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
    adfFacesContext.addPartialTargets(UIForTable);Check following
    http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_resetActionListener.html
    http://www.adftips.com/2010/10/adf-ui-resetting-or-clearing-form.html

  • How to limit the response rows while invoking a stored procedure from OSB 10gR3

    Dear Experts,
    I am trying to limit the response while invoking a stored procedure from OSB via DB adapter.
    Here the stored procedure returns cursors as response. I tried using the MaxTransactionSize propertiy (which is used for polling the database option in DB adapter).
    We are investigating the ways to protect the application from response containing huge number of rows.
    Is there any way to restrict the number of rows returned in each and every cursor while invoking the stored procedure via DB adapter?
    Thanks
    Ram

    Hi James ,
    I want to know how to run stored procedure using jca adapter in OSB11g.
    I am new to stored prcoedure,will be great if you could share some example on it as above.
    Req: Single input xml will be posted on queue ,need to perform 3 DB operation (with same input):
    1.Insert operation to insert master table contents.
    2.select the primary key column value from master table for the last inserted record.
    3.Need to insert primary key column value + other fields frm same xml file to child table.
    Pls assist me on how to create a simple stored procedure and to run the same with OSB 11g.I am familiar with creation of DB adapter using Jdeveloper,we have option to perform insert and to call stored procedure here,will it be useful for this scenario?
    Edited by: Anitha R on Nov 21, 2010 9:30 PM

  • How to limit number of rows(pagination) in the bam report?

    Is there anyway i can limit the number of rows in a report in BAM 10.1.3.4 ?

    In BAM 11g
    There is a property ElementsCountLimit which is configurd in BAMServerConfig.xml
    The number of change lists that are cached before rewriting the cache file.
    The default value is 50. When the 51st change list is received, it is cached by replacing the 1st change list.
    Default: 50

  • How to Limit number of Rows in Answers

    Hi all,
    Here goes my requirement.
    The reports should not display more than 50000 records in Answers. If the report exceeds 50000 records it should display a cutomised message " Out of Limit ".
    I am aware that we can apply filter in RPD. What all I need to achieve is teh customided message in Answers. Please provide any inputs on this.
    Thanks in advance,
    Chandu.

    In Answers, for the default Table view, you can set DefaultRowsDisplayed to a desired count. I am not sure to display 'Out of Limits' to end-users. However, an alert can be written in the log as displayed in the link or to disable. See the link below.
    http://gerardnico.com/wiki/dat/obiee/obiee_limit_clause

Maybe you are looking for