Need to hide row when table has 1 entry in adobe

Dear Experts,
I have made select statement in Initialization and in context i have called Table EKPO and under that EKET based on EBELP where clause. Then I have called Sub form for both Tables and made as EKPO(Role Body Row) EKET(Role Table for subform1, Role Body row for subform2)
Eg: Table EKPO
              Table EKET
Need to hide if EKET has one row for that, I want to know number of rows in table, if row 1 then need to hide otherwise need to show in adobe.
Sharrad Dixit
dixitasharad at gmail

Hi A,
I hope as per your previous post, you might have already set the presentation variable. You can write the column formula now as:
case when @{variables.country} = 'All Choices' then sum(revenue) by year else <your previous case to hide the USA column} end.
Hope this helps.
Thank you,
Dhar

Similar Messages

  • Show scrollpane only when table has x rows

    Is there any way to not make use of scrollpane when a table currently has less that 5 rows ?
    I have my table embedded in a JScrollPane, but I want to show the scrollpane only if my table has atleast
    'x' number of rows.
    Thanks,

    Something like...
    DefaultTableModel tm = new DefaultTableModel(data, index);
    int size = tm.getRowCount();
    JTable t = new JTable(tm);
    JPanel p = new JPanel();
    if(size > 5)
      JScrollPane jsp = new JScrollPane(t);
      p.add(jsp);
    else
      p.add(t);
    // add p to JFrame

  • How to hide row from table after logical delete

    Hello.
    I am using Jdeveloper 11.1.1.3.0, ADF BC and ADF Faces.
    I want to implement Logical delete in my application.
    In my Entity object I have Deleted attribute and I override the remove() method in my EntityImpl class.
        @Override
        public void remove()
           setDeleted("Y");
        }and I added this condition to my view object
    WHERE NVL(Deleted,'N') <> 'Y'in my page I have a table. this table has a column to delete each row. I dragged and drop RemoveRowWithKey action from the data control
    and set the parameter to *#{row.rowKeyStr}* .
    I what I need is this:
    when the user click the delete button I want to hide the roe from the table. I tried to re-execute the query after the delete but the row is still on the page. Why execute query does not hide the row from the screen.
    here is the code I used for delete and execute query
        public String deleteLogically()
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("removeRowWithKey");
            Object result = operationBinding.execute();
            DCBindingContainer dc=(DCBindingContainer) bindings;
            DCIteratorBinding iter=dc.findIteratorBinding("TakenMaterialsView4Iterator");
            iter.getCurrentRow().setAttribute("Deleted", "Y");
            //iter.getViewObject().executeQuery();
            iter.executeQuery();
            return null;
        }as you see I used two method iter.getViewObject().executeQuery(); and  iter.executeQuery(); but the result is same.

    Thank you Jobinesh.
    I used this method.
        @Override
        protected boolean rowQualifies(ViewRowImpl viewRowImpl)
          Object attrValue =viewRowImpl.getAttribute("Deleted"); 
            if (attrValue != null) { 
             if ("Y".equals(attrValue)) 
                return false; 
             else 
                return true; 
            return super.rowQualifies(viewRowImpl);
        }But I have one drawback for using it, and here is the case:
    If the user clicks the delete button *(no commit)* the row will be hidden in the table, but when the user click cancel changes the row is not returned since it is not returned due to the rowQualifies(ViewRowImpl viewRowImpl) (the Deleted attribute is set to "N" now).
    here is the code for delete and cancel change buttons
        public String deleteLogically()
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding =
                bindings.getOperationBinding("removeRowWithKey");
            Object result = operationBinding.execute();
            DCBindingContainer dc = (DCBindingContainer)bindings;
            DCIteratorBinding iter =
                dc.findIteratorBinding("TakenMaterialsView4Iterator");
            iter.getCurrentRow().setAttribute("Deleted", "Y");
             iter.executeQuery();
            AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
            adfFacesContext.addPartialTarget(this.getTakenMaterialsTable());
            return null;
        public String cancelChanges(String iteratorName)
            System.out.println("begin cancel change");
            BindingContainer bindings =
                BindingContext.getCurrent().getCurrentBindingsEntry();
            DCBindingContainer dc = (DCBindingContainer)bindings;
            DCIteratorBinding iter =
                (DCIteratorBinding)dc.findIteratorBinding(iteratorName);
            ViewObject vo = iter.getViewObject();
            //create a secondary RowSetIterator to avoid disturbing row currency
            RowSetIterator rsi = vo.createRowSetIterator(null);
            //move the currency to the slot before the first row.
            rsi.reset();
            while (rsi.hasNext())
                    currentRow = rsi.next();
                    currentRow.setAttribute("Deleted", "N");
            rsi.closeRowSetIterator();
            iter.executeQuery();
            AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
            adfFacesContext.addPartialTarget(this.getTakenMaterialsTable());
            return null;
        }as example, if the user initially has 8 rows, then deleted 2 rows, in cancelChanges only 6 rows appears. and the deleted rows are not there??
    any suggestion?

  • Need help - Hide row of a recursive grouping if textbox value is empty

    Hard to explain, but I will do my best.
    I have a simple report that has a resource (accounting) recursive grouping.  The group and the recursion is working correctly.  The only dollar values I have to display are at the lowest level of the hierarchy so instead of having a simple SUM("POSTED_TOTAL_AMT")
    field to show the rollup totals I did the following =Sum(Fields!POSTED_TOTAL_AMT.Value, "TREE_NODE", Recursive).
    TREE   NODE
    POSTED   TOTAL AMT
    ALL_RESOURCES
    24163945.66
    BANK
    BENALL
    7027062.56
    BENWL
    3490587.96
    BENFT
    279969.6
    BENLD
    3210618.36
    COMAB
    1357934.08
    INCWL
    2178540.52
    CASH_FLOW
    CHRTY
    COGS-ENS
    Everything I have read shows you how to hide a row based on a dataset field but I need to hide the row based on the textbox expression.  For reference here is the expression for the values showing on the report: =Sum(Fields!POSTED_TOTAL_AMT.Value, "TREE_NODE",
    Recursive)
    I added this into the row visibility: =iif(IsNothing(Fields!POSTED_TOTAL_AMT2.Value),True,False)
    But when I run the report I get the following error:
    System.Web.Services.Protocols.SoapException: The Hidden expression for the grouping ‘TREE_NODE’ refers to the field ‘POSTED_TOTAL_AMT2’.  Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the
    specified dataset scope. Letters in the names of fields must use the correct case.

    Hi BlackHills_SD,
    According to your description, when you use the iif expression to set visibility of the row, you got the error message.
    When we write expressions, we will find that the term scope is used in multiple contexts. Scope can specify the data to use for evaluating an expression, the set of text boxes on a rendered page, the set of report items that can be shown or hidden based
    on a toggle. It seems that POSTED_TOTAL_AMT2 is not in the same dataset as TREE_NODE. We can refer to the following steps to troubleshoot the problem:
    Right-click the report and click Insert to add a text box.
    Right-click inside of the text box, then click Expression.
    Click Datasets, click First(POSTED_TOTAL_AMT2), scope of POSTED_TOTAL_AMT2 will be listed.
    For more information about Understanding Expression Scope, please refer to the following document:
    https://technet.microsoft.com/en-us/library/dd255256%28v=sql.105%29.aspx?f=255&MSPPError=-2147217396
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • How to Hide Row in table view depend on condition

    Dear Friends,
    Please any one suggest how to do hide some rows in table depend on condtions.
    My Issue is :
    I have table with binding componant context controller, with in that some rows are no need to disply in my table, I tried to delete that entities from collection wrapper in do_prepare_output. but that entites are perminatly deleted from model node.
    how can achive this with out delete entities from model node and hide some rows in table view.
    thanks & Regards

    Hi Andrew,
    Please can you explain alobrate, because i wont' found that method in my implimentation and it's table config like follow
    <% IF attr->check_consistency( ) eq abap_true. %>
        <chtmlb:configTable  xml="<%= lv_xml %>"
                             id="TextList"
                             navigationMode="BYPAGE"
                             onRowSelection="select"
                             table="//Text/Table"
                             width="100%"
                             selectedRowIndex="<%=Text->SELECTED_INDEX%>"
                             selectedRowIndexTable="<%=Text->SELECTION_TAB%>"
                             selectionMode="<%=Text->SELECTION_MODE%>"
                             usage="ASSIGNMENTBLOCK"
                             visibleRowCount="3"/>
      <% ENDIF. %>
    thanks & Regards
    Ganesh

  • Need to hide row in a pivot table

    Hi All,
    I have a requirement
    which has country, year, dept, revenue as the column
    Prompt is on country
    created the report in pivot table
    row wise data is present in the table
    If i select country in prompt
    INDIA
    1999     IT      50000
         NON_IT     40000
    USA
    1999     IT     100000
         NON_IT 700000 (WANT TO HIDE IT)
    CHINA
    1999 IT 40000
    NON_IT 60000
    if i select ALL CHOICE IN PROMPT
    1999 IT 1000000 (SUM OF ALL COUNTRY)
    NON_IT (IT SHOULD BE HIDDEN)
    please let me know if we can achieve it
    thanks a lot
    A

    Hi A,
    I hope as per your previous post, you might have already set the presentation variable. You can write the column formula now as:
    case when @{variables.country} = 'All Choices' then sum(revenue) by year else <your previous case to hide the USA column} end.
    Hope this helps.
    Thank you,
    Dhar

  • Need to hide rows in the Query results with blank values

    Hi All,
    We have a requirement like this for Stock Report, we need to display both movements and balance in that report. We display the movement data directly from the Standard cube with input as Fiscal period/year.  When we do like this, we are not able to get the opening balance as fiscal period was in char restrictions pane.
    We have created a dummy keyfigure restricted to Fiscal period ( so that the global filter is not applied and get the inventory data irrespective of fiscal period input ). We have created 3 variables of processing type customer exit and acheived calculating opening balance, current movement and closing balance.
    If FP input is 009.2010 to 010.2010, it will get whatever Qty moved before 009.2010 ( 001.1990 - 009.2010 in exit ) as opening balance and closing balance ( 001.1990 - 010.2010 )  and the Qty KF restricted with another exit varibale ( 009.2010 to 010.2010 ).
    Hope everyone understood the scenario and issue here is, though I give the input 009.2010 - 010.2010 , I get the rows displayed for different periods ( this is because I am retreiving data for all the fiscal periods but restricting it based on input ). How to restrict/hide these rows.
    Your inputs and suggestions are valued.
    Thanks,
    Chandra.

    Hi,
    Try creating a query level field which would populate as "X" (with the IF condition ) if the record falls in the period which you have given for input variable (009.2010 - 010.2010). Then place a query level filter for this field where only records with value "1" for this field is displayed.
    Hope this helps.
    Happy to help further.
    Regards
    Venky

  • Need to Hide Controls when FLV starts playing

    I am using FLVPlayer_Progressive.swf
    and Clear_Skin_1.swf to load and auto-play FLV video on a
    website.
    It works great but the video controls are visible on top of
    the video.
    I want to hide the controls!
    I spent several hours to find a way how to hide the controls
    (Play/Stop) when video starts playing.
    Anyone knows how to do this?

    I have the same desire to have video controls hidden unless
    mouse activity. As robertvo stated, FLVPlayer_Progressive.swf with
    any of the Clear_Skin_*.swf skins, shows video controls when movie
    starts. I am embedding player in html and have set skinAutoHide in
    flashvars parameter as follows but it has no affect:
    <param name="FlashVars"
    value="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=${param.videoClip}&autoPla y=true&autoRewind=false&skinAutoHide=true"
    />
    Jeff

  • Help needed in displaying rows in table

    hi gurus,
    i have created a table and using select statement i was able to retrieve the data.the problem iam facing is ..when i run the application and give a value for a field and clicked on the button i was able to see only one record in the web dynpro table..actually the database table contains 10 records and i was able to see only one record,i didnt give any where condition in the select statement,i have changed the cardinality property of the node to 0..n and the sys was throwing error and if i put 0..1 or 1..1 it was running fine..
    Please give me your valuable inputs for solving this...
    Thanks in advance
    Regards
    ravi

    hi David ,
    thanks for the reply...
    this is the select statement code iam using ..
    data: it_csunit type /BI0/PCS_UNIT.
        select * from /BI0/PCS_UNIT into it_csunit.
        ls_n2-Cs_unit = it_csunit-Cs_unit.
        ls_n2-Company = it_csunit-Company.
        ls_n2-Cons_ba = it_csunit-Cons_ba.
        ls_n2-Country = it_csunit-Country.
        ls_n2-Co_area = it_csunit-Co_area.
    endselect.
    CALL METHOD LO_ND_N2->SET_STATIC_ATTRIBUTES
      EXPORTING
       INDEX             = USE_LEAD_SELECTION
        STATIC_ATTRIBUTES = ls_n2.
    Regards
    ravi

  • How to hide rows when no value entered automatically

    is there a way in conditional formatting where i can hise a row of information when no value is entered against that row , simlar to a macro in excel?
    thanks fred 69

    Fred,
    Yes, you can use the Reorganize Panel to show only rows that meet certain criteria. I would think that you could find a way to use that feature to accomplish your goal.
    Jerry

  • GoldenGate: Initialization when Table has Clob

    I have been testing Goldengate and I have performed schema initialization successfully when
    all tables have scalar data types.
    I have a problem when I include a table with a clob column in this test.
    My clob table is simply:
    desc johns_clob
    Name Null? Type
    ID NOT NULL NUMBER
    MYCLOB CLOB
    I've loaded the clob column with a character string that is 30000 characters long.
    When I try to start the initial load, I get the following information in my ggserr.log file and the
    process abends:
    2010-11-10 16:47:40 INFO OGG-00963 Oracle GoldenGate Manager for Oracle, mgr.prm: Command received from GGSCI on host 10.143.204.77 (START EXTRACT INITLOAD ).
    2010-11-10 16:47:40 INFO OGG-00975 Oracle GoldenGate Manager for Oracle, mgr.prm: EXTRACT INITLOAD starting.
    2010-11-10 16:47:40 INFO OGG-01017 Oracle GoldenGate Capture for Oracle, initload.prm: Wildcard resolution set to IMMEDIATE because SOURCEISTABLE is used.
    2010-11-10 16:47:40 INFO OGG-00992 Oracle GoldenGate Capture for Oracle, initload.prm: EXTRACT INITLOAD starting.
    2010-11-10 16:47:41 ERROR OGG-01192 Oracle GoldenGate Capture for Oracle, initload.prm: Trying to use RMTTASK on data types which may be written as LOB chunks (Table: 'JOHNB.JOHNS_CLOB').
    2010-11-10 16:47:41 ERROR OGG-01668 Oracle GoldenGate Capture for Oracle, initload.prm: PROCESS ABENDING.
    Trying to use RMTTASK on data types which may be written as LOB chunks
    I cannot find any reference to the message "Trying to use RMTTASK on data types which may be written as LOB chunks".
    Any help is appreciated.
    Thanks,
    John

    Hi,
    Did you check this Metalink Doc?
    Does GoldenGate Extract Support Oracle Spatial? [ID 971719.1]
    Modified 07-JAN-2010 Type HOWTO Status PUBLISHED
    In this Document
    Solution
    Applies to:
    Oracle GoldenGate - Version: 4.0.0 - Release: 4.0.0
    Information in this document applies to any platform.
    Solution
    Issue:
    Does GoldenGate Extract support Oracle Spatial?
    Solution Overview:
    Oracle Spatial is supported with limitations.
    Solution Details:
    Spatial is supported:
    1.Like-to-like only.
    ASSUMETARGETDEFS is required in the Replicat parameter file.
    SOURCEDEFS is not supported currently.
    2. XMLType embedded in Spatial (and other UDT and system-DT) is not supported currently. (OS-7065)
    3. The Spatial types that includes LOB are not supported currently. (OS-7134)
    --------------------------------- example --------------------------------
    NOTE: The 'SDO' indicates a spatial type object.
    --------------------------------- example --------------------------------
    --- create source table----
    CREATE TABLE cities (
    city VARCHAR2 (30) primary key,
    state VARCHAR2 (30),
    geom mdsys.SDO_GEOMETRY
    --- create target table----
    CREATE TABLE cities_t (
    city VARCHAR2 (30) primary key,
    state VARCHAR2 (30),
    geom mdsys.SDO_GEOMETRY
    INSERT into cities values ('SF','CA',
    mdsys.sdo_geometry (2008, null, null,
    mdsys.sdo_elem_info_array (1,1003,3),
    mdsys.sdo_ordinate_array (-109,37,-102,40)
    commit;
    SQL >select * from cities; <======================= source table
    CITY STATE
    GEOM(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    SF CA
    SDO_GEOMETRY(2008, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 3), SDO_ORDINATE_ARR
    AY(-109, 37, -102, 40))
    SQL >select * from cities_t; <======================target table
    CITY STATE
    GEOM(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
    SF CA
    SDO_GEOMETRY(2008, NULL, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 3), SDO_ORDINATE_ARR
    AY(-109, 37, -102, 40))
    Thanks.

  • How to deactivate move columns/rows on tables obiee11

    Hi!
    I have two questions:
    1. Is possible to hide the option of next image?
    http://imageshack.us/photo/my-images/690/tabledp.jpg/
    I want to user only see table like obiee 10 and I don't want to move columns or rows...
    2. Also I want to hide information when user has the mouse in gauge chart...like next image:
    http://imageshack.us/photo/my-images/809/gaugej.jpg/
    Only for this gauge...maybe some other gauges I want to see this info...
    Thanks!

    Alex1 wrote:
    1. Is possible to hide the option of next image?
    http://imageshack.us/photo/my-images/690/tabledp.jpg/
    I want to user only see table like obiee 10 and I don't want to move columns or rows...
    No, this is not possible in OBIEE 11g. There is a bug logged for this ( Bug 10222173 - ABILITY TO DISABLE DRAG AND SORT FUNCTIONALITY OF COLUMNS )
    Regards,
    -Amith.

  • How to show 10 bottom rows instead of showing 10 top rows of table as defau

    A table was created with JTable class and JScrollPane class. If you run the following code, it always shows you the top 10 rows, the scrollbar stays at the right-top by default. However, what I want the program to show is the bottom 10 rows (The table has 30 rows totally) and the scrollbar should stay at the right-bottom as default. I should greatly appreciate it if anybody could tell me how to implement this scenario.
    import javax.swing.JTable;
    import javax.swing.JScrollPane;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.JComponent;
    import java.awt.*;
    import java.awt.event.*;
    //import java.lang.string.*;
    public class SimpleTableDemo extends JFrame {
    private boolean DEBUG = true;
    public SimpleTableDemo() {
    super("SimpleTableDemo");
    Object[][] data = {
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Chasing toddlers", new Integer(2), new Boolean(false)},
    {"Mark", "Andrews",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Chasing toddlers", new Integer(2), new Boolean(false)},
    {"Mark", "Andrews",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Chasing toddlers", new Integer(2), new Boolean(false)},
    {"Mark", "Andrews",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Chasing toddlers", new Integer(2), new Boolean(false)},
    {"Mark", "Andrews",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Chasing toddlers", new Integer(2), new Boolean(false)},
    {"Mark", "Andrews",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Mary", "Campione",
    "Snowboarding", new Integer(5), new Boolean(false)},
    {"Alison", "Huml",
    "Rowing", new Integer(3), new Boolean(true)},
    {"Kathy", "Walrath",
    "Chasing toddlers", new Integer(2), new Boolean(false)},
    {"Mark", "Andrews",
    "Speed reading", new Integer(20), new Boolean(true)},
    {"Angela", "Lih",
    "Teaching high school", new Integer(4), new Boolean(false)}
    String[] columnNames = {"First Name",
    "Last Name",
    "Sport",
    "# of Years",
    "Vegetarian"};
    final JTable table = new JTable(data, columnNames);
    table.setPreferredScrollableViewportSize(new Dimension(650, 150));
    if (DEBUG) {
    table.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    printDebugData(table);
    //Create the scroll pane and add the table to it.
    JScrollPane scrollPane = new JScrollPane(table);
    //Add the scroll pane to this window.
    getContentPane().add(scrollPane, BorderLayout.CENTER);
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    private void printDebugData(JTable table) {
    int numRows = table.getRowCount();
    int numCols = table.getColumnCount();
    javax.swing.table.TableModel model = table.getModel();
    System.out.println("Value of data: ");
    for (int i=0; i < numRows; i++) {
    System.out.print(" row " + i + ":");
    for (int j=0; j < numCols; j++) {
    System.out.print(" " + model.getValueAt(i, j));
    System.out.println();
    System.out.println("--------------------------");
    public static void main(String[] args) {
    SimpleTableDemo frame = new SimpleTableDemo();
    frame.pack();
    frame.setVisible(true);

    Dimension d = table.getSize();
    scrollpane.getViewport().setViewPosition( new Point( 0,
              (int)d.getHeight() ) );This sets it to the end of the table, you might need to edit it to do as you require.
    Mike

  • Hide row values for certain column in GRR2

    Hi Experts,
    Looking for some help in report painter. I need to hide row values for certain columns in report painter. The requirement is I have 5 columns in the report, the 5 th column is the sum of col 1 to 4 and in my row i have a formula setup to sum of values for each column, what i would like to do is for column 1 thru 4 i didnt want to display the total values in row total but i wanted to dispaly value for column 5 in row total. I have been trying my best with putting formula, but couldnt succeed.
    Could somebody let me know is there an way to get this addressed.
    Thanks in advance
    Best Regards,
    gj

    How was it achieved ? Did you use sections for the columns for which rows needed to be hidden?
    I have a smiliar issue of hiding certain rows for few columns.

  • It has error when table row big than 500

    Hi,All
    my war file in Appserver8 is correct,but in JBoss4.0.2,when table row only 100 or 200, be ok yet,but big than 500,has below error.
    2007-12-14 14:43:22,062 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[yx].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
    com.sun.data.provider.DataProviderException: java.lang.reflect.InvocationTargetException
         at com.sun.data.provider.impl.MethodResultTableDataProvider.invokeDataMethod(MethodResultTableDataProvider.java:257)
         at com.sun.data.provider.impl.MethodResultTableDataProvider.invokeDataMethod(MethodResultTableDataProvider.java:215)
         at com.sun.data.provider.impl.MethodResultTableDataProvider.testInvokeDataMethod(MethodResultTableDataProvider.java:267)
         at com.sun.data.provider.impl.MethodResultTableDataProvider.getRowCount(MethodResultTableDataProvider.java:397)
         at com.sun.rave.web.ui.component.TableRowGroup.getRowKeys(TableRowGroup.java:806)
         at com.sun.rave.web.ui.component.TableRowGroup.getFilteredRowKeys(TableRowGroup.java:429)
         at com.sun.rave.web.ui.component.TableRowGroup.getSortedRowKeys(TableRowGroup.java:1385)
         at com.sun.rave.web.ui.component.TableRowGroup.getRenderedRowKeys(TableRowGroup.java:876)
         at com.sun.rave.web.ui.component.TableRowGroup.iterate(TableRowGroup.java:1956)
         at com.sun.rave.web.ui.component.TableRowGroup.processDecodes(TableRowGroup.java:1679)
         at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
         at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
         at com.sun.rave.web.ui.component.Form.processDecodes(Form.java:78)
         at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
         at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
         at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
         at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
         at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:306)
         at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor359.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.data.provider.impl.MethodResultTableDataProvider.invokeDataMethod(MethodResultTableDataProvider.java:236)
         ... 43 more
    Caused by: java.rmi.ServerException: RuntimeException; nested exception is:
         java.lang.NullPointerException
         at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:386)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:196)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
         at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
         at org.jboss.ejb.Container.invoke(Container.java:873)
         at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
         at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
         at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
         at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
         at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
         at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
         at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
         at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
         at $Proxy129.getAmmeterByBooknumForInputData(Unknown Source)
         at khdf.khdfsession.KhdfSessionClient.getAmmeterByBooknumForInputData(KhdfSessionClient.java:214)
         ... 47 more
    Caused by: java.lang.NullPointerException
         at khdf.KhdfSessionBean.getAmmeterByBooknumForInputData(KhdfSessionBean.java:7024)
         at sun.reflect.GeneratedMethodAccessor360.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
         at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
         at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
         ... 68 more
    Heading 6: h6.

    Hi,Futeleufu_John
    Yes,All rows of the table display in a page througe setting layoutpanel's property "overflow:scroll".
    Same war file & jar files,it works fine when i deploys in SunAppserver8 whether the table have many rows,but in Jboss,few rows are fine,e.g. 200 rows are ok,but the table rows more than 500,it's error.
    i has test the ejb's method in Jbuilder,it's fine more than 500 rows,that is, the method is fine,only because of displaying in Jboss.
    the method KhdfSessionBean.getAmmeterByBooknumForInputData's code snippets as follows:
    public AmmeterDTO[] getAmmeterByBooknumForInputData(String charcomid,
          Integer booknum, String operid)
        if (charcomid == null || booknum == null)
          return null;
        ArrayList ammeterList = new ArrayList();
        AmmeterDTO ammeterDto = new AmmeterDTO();
        try
          Context ctx = new InitialContext();
          DataSource ds = (DataSource) ctx.lookup(strJdbc);
          conn = ds.getConnection();
          callstat = conn.prepareCall("{call p_get_ammeterinfo(?,?,?,?,?)}");
            ammeterDto = new AmmeterDTO(..........);
            ammeterList.add(ammeterDto);
        catch (SQLException ex)
        catch (NamingException ex)
        catch (ParseException ex)
        finally
          try
            if (callstat != null)
              callstat.close();
            if (conn != null)
              conn.close();
            if (rs != null)
              rs.close();
          catch (SQLException ex1)
        return (AmmeterDTO[]) ammeterList.toArray(new AmmeterDTO[0]);
      }

Maybe you are looking for