Table row selection not working

Hi,
I have a context node for a table of value nodes - APTDATES2 (  superclass CL_BSP_WD_CONTEXT_NODE_TV ),  bound to a custom controller context node,
which I am displaying via the following on the .htm  page :
  <chtmlb:configTable
                       xml                   = "<%= lv_xml %>"
                       id="appt2"
                       headerText = "Available Appointments"
                       navigationMode="BYPAGE"
                       table="//APTDATES2/Table"
                       visibleRowCount = "12"
                       allRowsEditable = "TRUE"
                       downloadToExcel = "FALSE"
                       personalizable = "FALSE"
                       onRowSelection        = "select"
                       selectionMode   = "<%= APTDATES2->selection_mode %>"
                       selectedRowIndex      = "<%= APTDATES2->selected_index %>"
                       selectedRowIndexTable = "<%= APTDATES2->selection_tab %>"
                       showNoMatchText = "TRUE"
                       width="100%"
                       visibleFirstRow       = "<%= APTDATES2->visible_first_row_index %>"
                       HEIGHT = "10"/>
My problem is that I cannot click in the left-hand column to select a row on the table - it is not  triggering any events (not even triggering a round-trip  - confirmed this by putting a break-point in the view implementation DO_HANDLE_DATA ).   Have similarly checked that APTDATES2->SELECTION_MODE
contains SINGLESELECT.
What am I missing ?

I am able to fix it using a managed variable for the selectionState. Here is the code:
<af:table emptyText="No items were found"
value="#{backing_UpdateResult.resultList}"
var="row"
rows="10"
binding="#{backing_UpdateResult.resultsTable}"
selectionState="="#{backing_UpdateResult.tableSelectionState}"
id="resultsTable"
>
In the backing bean I have a property variable like:
private RowKeySet tableSelectionState;
public RowKeySet getTableSelectionState() {
if (tableSelectionState == null) {
tableSelectionState = new RowKeySet();
tableSelectionState.getKeySet().add("0");
return tableSelectionState;
}

Similar Messages

  • Row selection not working in SQL view?

    Hope this something silly --
    I have an ADF view defined something like this -- breaks selected orders into pricing buckets.
    select floor((billingAmount / mileAge) / .05) as bucket,
    floor((billingAmount / mileAge) / .05)* .05 as bucketMin,
    ceiling((billingAmount / mileAge) / .05)* .05 as bucketMax,
    count(*) as orders
    from ordersMaster
    where originZoneNumber = ? and destinationZoneNumber = ? and DSRDate >= ?
    group by floor((billingAmount / mileAge) / .05),
    floor((billingAmount / mileAge) / .05)* .05,
    ceiling((billingAmount / mileAge) / .05)* .05
    After setting the bind variables, this gives me a fine read-only table with selection columns.
    The first couple rows of the table looks something like
    Select Bucket bucketMin bucketMax orders
    60 3.00 3.05 1
    61 3.05 3.10 4
    62 3.10 3.15 7
    On the Select button, I have this code snippet:
    DCIteratorBinding ib = ADFUtils.findIterator("RevenueRangeViewIterator");
    Row row = ib.getCurrentRow();
    System.out.println("Selected range starts at " + row.getAttribute("bucketMin"));
    System.out.println("Selected range has " + row.getAttribute("orders"));
    Regardless of what row I have selected, I get data for the first row.
    When I do the same code against a table created from entities, it works fine.
    What am I missing?
    Thanks in advance
    Ed Schechter

    Hope this something silly --
    I have an ADF view defined something like this -- breaks selected orders into pricing buckets.
    select floor((billingAmount / mileAge) / .05) as bucket,
    floor((billingAmount / mileAge) / .05)* .05 as bucketMin,
    ceiling((billingAmount / mileAge) / .05)* .05 as bucketMax,
    count(*) as orders
    from ordersMaster
    where originZoneNumber = ? and destinationZoneNumber = ? and DSRDate >= ?
    group by floor((billingAmount / mileAge) / .05),
    floor((billingAmount / mileAge) / .05)* .05,
    ceiling((billingAmount / mileAge) / .05)* .05
    After setting the bind variables, this gives me a fine read-only table with selection columns.
    The first couple rows of the table looks something like
    Select Bucket bucketMin bucketMax orders
    60 3.00 3.05 1
    61 3.05 3.10 4
    62 3.10 3.15 7
    On the Select button, I have this code snippet:
    DCIteratorBinding ib = ADFUtils.findIterator("RevenueRangeViewIterator");
    Row row = ib.getCurrentRow();
    System.out.println("Selected range starts at " + row.getAttribute("bucketMin"));
    System.out.println("Selected range has " + row.getAttribute("orders"));
    Regardless of what row I have selected, I get data for the first row.
    When I do the same code against a table created from entities, it works fine.
    What am I missing?
    Thanks in advance
    Ed Schechter

  • Restriction in Rows Selection not working

    Hello,
    I  have a requrement where i need to restrict the material based on the date
    output is
    Sno Material                                       date           quantity
    1      Material > 90 days                  5/7/2012        20
            material within 90 days          12/31/2011      5
                                                            1/2/2012        10
    like this
    Material > 90 days is material exist 90 days from current system date Ex. for Feb 7,2012 ./ the range is may 7 ,2012
    material within 90 days is material  +  or - 90 days.. ex, for Feb 7,2012 .. the range is Dec 7,2011 to May 7,2012
    I created a new selection in Rows for material and restricted based on 0DAT variable with offset.
    its not working.
    Request you to help on this
    Thanks
    Bala

    Hi, Malkit.
       I am not quite clear with this "Earlier it was working fine but some how it stopped although custom OVS is working fine when i remove the restricted filed, all the values come properly".
    Can you please explain what happened more clearly?
    Have you tried executing your QueryByElements with projectID in PDI?
    Regards,
    Fred

  • JTable - row selection not working + change the text format

    Hi All,
    I have written a code to display Jtable with 2 columns, 1 column to display image+text and other is multiline.
    I have used 2 different cell renderer for achiveing the same.
    Please advice on the following:
    @ When I click on row, only one column gets selected. How to fix this?
    @ Data to be displayed in rows is fetched from database. And on some STATUS value row should be in bold text or plain text. I have achieved this but withou logic to iterate over it.
    @ When user right clicks on the row allow them to set text in the row as bold or plain.(Just like we do with mails in outlook box)
    Below is the code:
    Hi All,
    I have written a code to display Jtable with 2 columns, 1 column to display image+text and other is multiline.
    I have used 2 different cell renderer for achiveing the same.
    Please advice on the following:
    @ When I click on row, only one column gets selected. How to fix this?
    @ Data to be displayed in rows is fetched from database. And on some STATUS value row should be in bold text or plain text. I have achieved this but withou logic to iterate over it.
    @ When user right clicks on the row allow them to set text in the row as bold or plain.(Just like we do with mails in outlook box)
    Below is the code:package jtab;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.util.Vector;
    import javax.swing.ImageIcon;
    import javax.swing.JEditorPane;
    import javax.swing.JFrame;
    import javax.swing.JMenuItem;
    import javax.swing.JOptionPane;
    import javax.swing.JPopupMenu;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableCellRenderer;
    import jtab.TestIcon.iconRenderer;
    public class SampleJtable {
         JFrame frame;
         JTable table;
         JScrollPane panel;
         JPopupMenu popupMenu ;
         public static void main(String[] args) {
              SampleJtable sample = new SampleJtable();
              sample.loadGUI();
         public void loadGUI(){
              frame = new JFrame("Sample Program for Font and ImageIcons");
              frame.setContentPane(panel);
              frame.setSize(550,250);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setVisible(true);
         public SampleJtable(){
              BufferedImage images[] = new BufferedImage[1];
              try{
                   images[0] = javax.imageio.ImageIO.read(new File("C:/go.gif"));
              }catch(Exception e){
                   e.printStackTrace();
              final Object data [][] = {{"Auftrag \n test \n 777,Abdherhalden Josef, \n 1957,Grenchen Kaufe \n P",new ImageStore(images[0],"Bourquin Rene")},
                        {"Auftrag \n test \n \n 1957,Grenchen Kaufe \n N",new ImageStore(images[0],"Bourquin Rene")}};
              String colIds [] ={"Beschrebung","Von"};
              DefaultTableModel model = new DefaultTableModel(data, colIds) {  
    public Class getColumnClass(int column) {  
    return data[0][column].getClass();
              /*Vector<Object> rowData1 = new Vector(2);
              rowData1.add("Auftrag \n test \n 777,Abdherhalden Josef, \n 1957,Grenchen Kaufe");
              rowData1.add(new ImageStore(images[0],"Bourquin Rene"));
              Vector<Object> rowData2 = new Vector(2);
              rowData2.add("Auftrag \n test \n 777,Abdherhalden Josef, \n 1957,Grenchen Kaufe");
              rowData2.add(new ImageStore(images[0],"Bourquin Rene"));
              Vector<Vector> rowData = new Vector<Vector>();
         rowData.addElement(rowData1);
         rowData.addElement(rowData2);
              Vector<String> columnNames = new Vector<String>();
         columnNames.addElement("Beschrebung");
         columnNames.addElement("Von");     
              DefaultTableModel model = new DefaultTableModel(rowData, columnNames) {  
              table = new JTable(model);
              table.setDefaultRenderer(ImageStore.class, new ImageRenderer());          
              table.getTableHeader().getColumnModel().getColumn(0).setCellRenderer(new LineCellRenderer());
              table.setRowHeight(84);
              panel = new JScrollPane(table);
              panel.setOpaque(true);
         class ImageRenderer extends DefaultTableCellRenderer {  
         public Component getTableCellRendererComponent(JTable table,
         Object value,
         boolean isSelected,
         boolean hasFocus,
         int row, int column) {  
         super.getTableCellRendererComponent(table, value, isSelected,
         hasFocus, row, column);
         ImageStore store = (ImageStore)value;
         setIcon(store.getIcon());
         setText(store.text);
         return this;
         class ImageStore {  
         ImageIcon icons;
         String text;
         int showingIndex;
         public ImageStore(BufferedImage image1,String s) {
         icons = new ImageIcon(image1);
         showingIndex = 0;
         text = s;
         public ImageIcon getIcon() {  
         return icons;
         public void toggleIndex() {  
         showingIndex = (showingIndex == 0) ? 1 : 0;
         class LineCellRenderer extends JEditorPane implements TableCellRenderer {
              public LineCellRenderer() {           
              setOpaque(true);
              setContentType("text/html");          
              public Component getTableCellRendererComponent(JTable table, Object value,
              boolean isSelected, boolean hasFocus, int row, int column) {
              //System.out.println("Whats in value = "+ value.toString());
              String [] strArray = value.toString().split("\n");
              String rtStr = null ;
              System.out.println("TYPE+ "+ strArray[strArray.length-1].toString());
              String val = strArray[strArray.length-1].toString().trim();
              if (val.equalsIgnoreCase("N")){
                   System.out.println("TYPE+ IS NEW");
                   rtStr = "<html><head></head><body><b><div style=\"color:#FF0000;font-weight:bold;\">" + strArray[0] + "</div>" +
                             " <div style=\"color:#0000FF;font-weight:bold;\">" + strArray[1] + "</div>" +
                             "<div style=\"color:#0000FF;font-weight:bold;\">" + strArray[2] + "</div>" +
                             "<div style=\"color:#0000FF;font-weight:bold;\">" + strArray[3] + "</div>" +
                             "</b></body></html>";
              else {
                   System.out.println("TYPE+ IS PENDING");
                   rtStr = "<html><head></head><body><div style=\"color:#FF0000;\">" + strArray[0] + "</div>" +
                   " <div style=\"color:#0000FF;\">" + strArray[1] + "</div>" +
                   "<div style=\"color:#0000FF;\">" + strArray[2] + "</div>" +
                   "<div style=\"color:#0000FF;\">" + strArray[3] + "</div>" +
                   "</body></html>";
              setText(rtStr);
              return this;

    Posting code again........
    package jtab;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.util.Vector;
    import javax.swing.ImageIcon;
    import javax.swing.JEditorPane;
    import javax.swing.JFrame;
    import javax.swing.JMenuItem;
    import javax.swing.JOptionPane;
    import javax.swing.JPopupMenu;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableCellRenderer;
    import jtab.TestIcon.iconRenderer;
    public class SampleJtable {
    JFrame frame;
    JTable table;
    JScrollPane panel;
    JPopupMenu popupMenu ;
    public static void main(String[] args) {
    SampleJtable sample = new SampleJtable();
    sample.loadGUI();
    public void loadGUI(){
    frame = new JFrame("Sample Program for Font and ImageIcons");
    frame.setContentPane(panel);
    frame.setSize(550,250);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
    public SampleJtable(){
    BufferedImage images[] = new BufferedImage[1];
    try{
    images[0] = javax.imageio.ImageIO.read(new File("C:/go.gif"));
    }catch(Exception e){
    e.printStackTrace();
    final Object data [][] = {{"Auftrag \n test \n 777,Abdherhalden Josef, \n 1957,Grenchen Kaufe \n P",new ImageStore(images[0],"Bourquin Rene")},
    {"Auftrag \n test \n \n 1957,Grenchen Kaufe \n N",new ImageStore(images[0],"Bourquin Rene")}};
    String colIds [] ={"Beschrebung","Von"};
    DefaultTableModel model = new DefaultTableModel(data, colIds) {
    public Class getColumnClass(int column) {
    return data[0][column].getClass();
    /Vector<Object> rowData1 = new Vector(2);
    rowData1.add("Auftrag \n test \n 777,Abdherhalden Josef, \n 1957,Grenchen Kaufe");
    rowData1.add(new ImageStore(images[0],"Bourquin Rene"));
    Vector<Object> rowData2 = new Vector(2);
    rowData2.add("Auftrag \n test \n 777,Abdherhalden Josef, \n 1957,Grenchen Kaufe");
    rowData2.add(new ImageStore(images[0],"Bourquin Rene"));
    Vector<Vector> rowData = new Vector<Vector>();
    rowData.addElement(rowData1);
    rowData.addElement(rowData2);
    Vector<String> columnNames = new Vector<String>();
    columnNames.addElement("Beschrebung");
    columnNames.addElement("Von");
    DefaultTableModel model = new DefaultTableModel(rowData, columnNames) {
    table = new JTable(model);
    table.setDefaultRenderer(ImageStore.class, new ImageRenderer());
    table.getTableHeader().getColumnModel().getColumn(0).setCellRenderer(new LineCellRenderer());
    table.setRowHeight(84);
    panel = new JScrollPane(table);
    panel.setOpaque(true);
    class ImageRenderer extends DefaultTableCellRenderer {
    public Component getTableCellRendererComponent(JTable table,
    Object value,
    boolean isSelected,
    boolean hasFocus,
    int row, int column) {
    super.getTableCellRendererComponent(table, value, isSelected,
    hasFocus, row, column);
    ImageStore store = (ImageStore)value;
    setIcon(store.getIcon());
    setText(store.text);
    return this;
    class ImageStore {
    ImageIcon icons;
    String text;
    int showingIndex;
    public ImageStore(BufferedImage image1,String s) {
    icons = new ImageIcon(image1);
    showingIndex = 0;
    text = s;
    public ImageIcon getIcon() {
    return icons;
    public void toggleIndex() {
    showingIndex = (showingIndex == 0) ? 1 : 0;
    class LineCellRenderer extends JEditorPane implements TableCellRenderer {
    public LineCellRenderer() {
    setOpaque(true);
    setContentType("text/html");
    public Component getTableCellRendererComponent(JTable table, Object value,
    boolean isSelected, boolean hasFocus, int row, int column) {
    //System.out.println("Whats in value = " value.toString());
    String [] strArray = value.toString().split("\n");
    String rtStr = null ;
    System.out.println("TYPE " strArray[strArray.length-1].toString());
    String val = strArray[strArray.length-1].toString().trim();
    if (val.equalsIgnoreCase("N")){
    System.out.println("TYPE IS NEW");
    rtStr = "<html><head></head><body><b><div style=\"color:#FF0000;font-weight:bold;\">" strArray[0] "</div>"
    " <div style=\"color:#0000FF;font-weight:bold;\">" strArray[1] "</div>"
    "<div style=\"color:#0000FF;font-weight:bold;\">" strArray[2] "</div>"
    "<div style=\"color:#0000FF;font-weight:bold;\">" strArray[3] "</div>"
    "</b></body></html>";
    else {
    System.out.println("TYPE+ IS PENDING");
    rtStr = "<html><head></head><body><div style=\"color:#FF0000;\">" strArray[0] "</div>"
    " <div style=\"color:#0000FF;\">" strArray[1] "</div>"
    "<div style=\"color:#0000FF;\">" strArray[2] "</div>"
    "<div style=\"color:#0000FF;\">" strArray[3] "</div>"
    "</body></html>";
    setText(rtStr);
    return this;
    }

  • Table range is not working!!

    Hello all,
    I am using the JHeadstart 10.1.3 production (build 91) and JDeveloper 10.1.3
    I have a main group and 2 detail groups (nested) and regions on the main group. I tried to limit the number of rows by the "table rangë", by selecting it and putting the number of rows and its not showing on the page. I am getting the entire rows.
    any comments about it
    thanks
    san

    San,
    Hmm, very strange. Is this the only page where table range is not working? Can you try creating a new project from scratch and see whether it works correctly there?
    Steven Davelaar,
    JHeadstart Team.

  • Table row does not flow to next page

    Hi,
    I am using deep structure table in adobe form but the content is not flowing to next page.
    I have wraped the table in subform, Body Page, subform and table all are flowed and allow page breaks with content is also ticked,  still the table row does not flow to next page.
    Regards,
    Kimaya

    Hi Kimaya,
    Just drag the table directly on the body page and execute the form. This should take care of the properties required for data to flow on the form.
    Thanks

  • Photoshop CC. Colour selection not working when using alt and brush.

    Hi, Photoshop CC. Windows 8.1 64 bit. Colour selection not working when using alt and brush. I have tried rebooting and other things like closing swatch panel etc.
    The alt key is otherwise OK.  It's not the recent upgrade from Win 8 to 8.1 (5 days ago) because the colour selection facility was working yesterday. Any ideas.

    I'd say things sound desperate enough to try resetting Preferences
    Reset Preferences
    Windows — Hold down Shift Ctrl Alt immediately after starting Photoshop
    Mac — Hold down Shift Cmd Opt immediately after starting Photoshop
    If that fails, we need to know your operating system?
    Do you have a full CC subscription, or by apps do you mean Photoshop, Bridge and Lightroom?
    Another other information that might pertain ?

  • The front row is not working. Remote control not triger,

    Front row is not working, Remote control no response, command-esc not triger as well.
    check keyboard shortcut from system preference, there is no front row.
    anyone know why?

    Ok first try it in another Account.
    1. Open the account system pref window (System Preferences > Accounts)
    2. Click the plus button at the bottom
    3. Specify an account name (ex: test)
    4. Add account
    5. Logout of your current account, and login to the newly created one
    If it works, then something was wrong with your account, move your files to the new account, and delete the old one.
    If it did not work:
    1. Try the reinstall again (DO NOT DO "ARCHIVE AND REINSTALL", as this may keep some file that is hindering FR from operating correctly
    2. Make sure the FR file is in the Core Services Folder (Macintosh HD/System/Library/CoreServices/Front Row.app)
    3. Make sure that you do not have the IR sensor turned off on your computer (System Prefs > Security > Uncheck "Disable Remote Control IR Sensor")
    4. Make sure that your remote is paired (http://docs.info.apple.com/article.html?artnum=302545)
    5. Make sure that the Command + Esc key is setup to respond by opening front row:
    (1) Open system prefs
    (2) Open keyboard & mouse prefs
    (3) Click keyboard shortcuts
    (4) Scroll down until you see front row
    (5) Assign the Command + Esc key if it is not mapped
    6. Finally, if all else fails, call AppleCare while your computer is still under warranty
    Hope this helps,
    Cory

  • DB Adaptor import table option does not work with the AS400 DB

    1. The DB Adaptor import table option does not work with the IBM i-series(AS/400) tables(Both in ESB and BPEL).
    2. Also I was not able to import tables from multiple databases into
    the same BPEL project.

    Both of these issues work in preview version. My earlier posting was based on beta version testing.

  • TopN limit on pivot table row display, not selection

    Hi all,
    I'm trying to create a pivot table which only displays the top 20 rows of data I'm interested in. I know I can filter the data with the TopN function or one of the columns "is in top n" filter, but I'm displaying the data as a percentage, and I want these to accurately refelect the full data available not only the items displayed:
    Example:
    Text-Description 1, 160, 80%
    Text-Description 2, 20, 10%
    Text-Description 3, 10, 5%
    Text-Description 4, 10, 5%
    Say I want to only show the top 2 rows, and get:
    Text-Description 1, 160, 80%
    Text-Description 2, 20, 10%
    Whereas what I actually get is:
    Text-Description 1, 160, 88.8%
    Text-Description 2, 20, 11.1%
    The percentage figure is calculated from the data selected, not just to limit the rows displayed. My other way through this is to get the "text description" to also have a conditional field that returns "Others" that uses the TopN function, where I'd get:
    Text-Description 1, 160, 80%
    Text-Description 2, 20, 10%
    Others, 20, 10%
    Does anyone have any other ideas?
    Thanks in advance

    Create a dashboard prompt and set the formula as i and set it to edit box and give the presentation variable name.
    use this presentation variable in topn function like
    TOPN(column,@{variablename}{defaultvalue})
    Venkat V

  • Is it possible to enable/disable table row selection?

    I have a situation where a user can add rows to a "selection" table with a value that is used to perform a query to get a collection of objects associated with that value. Once those objects are available, a second "results" table will be populated with the row(s) returned. When the value is entered in the selection table, a web service call is made to perform the query and return the results. This may take a few moments and I am displaying an indeterminate progress indicator for the selection table row involved to indicate that the data is not yet available - the progress indicator is included as a column in the row; each row has its own indicator. Once the results are received the indicator is hidden to indicate the query for that row has completed. The user may enter as many rows in the selection table as they wish so there is a distinct possibility of multiple queries being executed at a given time. I have also attached a row selection listener to the selection table such that when a given row is selected, the results table will display the corresponding associated row(s).
    What I'd like to be able to do is somehow temporarily disable the selection of any row that has a query in progress, while leaving other rows whose queries have completed be selectable. Once the query completes, the row can then become selectable, thus allowing for the results to be loaded and displayed in the results table. The way it works right now, if the row is selected while the query is still in progress, nothing is displayed (obviously), but then the row has to be re-selected after the query has completed to see the results. This is a viable (though undesirable) solution/workaround if there is at least one other row in the table. However, if the row is the only row in the table and has been selected, it cannot be re-selected (there's no other row to select to allow for re-selection). To boil it down, what I'd like to do is prevent the selection of the row until the query for that row is complete.
    After perusing the JavaFX 2.2 API, I'm not seeing any obvious way to achieve this effect. If anyone has any solutions, suggestions, etc. on how this could be done I'd appreciate it greatly.

    Here's an [url https://github.com/james-d/Conditionally-selectable-table]example. As predicted, keyboard navigation fails if the keyboard presses would result in an unselectable item being selected using the default selection model. The best workaround I can see for this is to register event filters for the appropriate keyboard strokes, as in the previously referenced thread.
    Update: That code won't run in the current (ea b90) release of JavaFX 8.0, and probably a few recent releases; it will however run in the final release (and it runs in JDK 7). See [url https://javafx-jira.kenai.com/browse/RT-30593]RT-30593
    Edited by: James_D on May 22, 2013 7:51 PM

  • [SOLVED :)] Need help with adf table row selection

    Hi,
    In my application I am displaying results in a table. The DisplayRow property of table is set to Selected
    There are Next and Back buttons which help user to view details associated to the next/previous rows.
    I am using ADF 11g
    When user clicks Next or Previous button, then the selection of the row should also gets updated
    To achieve this i wrote below piece of code:
    this.tblS.getSelectedRowKeys().clear();+
    this.tblS.setRowIndex(count);+
    RowKeySet rks =  tblS.getSelectedRowKeys();+
    rks.add(tblS.getRowKey());+
    rks =  tblS.getSelectedRowKeys();+
    ISSUE:_
    When i run application and click Next/Previous Button, all functionalities do take place properly, but a null pointer exception is also thrown._+
    If i remove DisplayRow property of table from Selected to Default, every thing works good and no Exception is thrown_+       
    But as records in my table are going to be around 50-60 everytime, i need to set DisplayRow property of table to Selected.
    Is there any way to achieve this? Solve this problem?
    Some more details:_
    I am using a POJO class to create DataController. This DataController is having a view Object which is used to create results table.
    I have defined Primary key for my POJO Data Controller.
    Here is code of xml file:*
    +<?xml version="1.0" encoding="UTF-8" ?>+
    +<JavaBean xmlns="http://xmlns.oracle.com/adfm/beanmodel" version="11.1.1.52.5"+
    id="ProductListBean" Package="xxadf.mm.resources"
    BeanClass="xxadf.mm.resources.ProductListBean"
    isJavaBased="true">
    +<Attribute Name="Product" Type="java.lang.String" PrimaryKey="true"/>+
    +<Attribute Name="Stock" Type="java.lang.String"/>+
    +<Attribute Name="Rate" Type="java.lang.String"/>+
    +<Attribute Name="Accuracy" Type="java.lang.String"/>+
    +<Attribute Name="Details" Type="java.lang.String"/>+
    +<ConstructorMethod IsCollection="true"+
    Type="xxadf.mm.resources.ProductListBean"
    BeanClass="xxadf.mm.resources.ProductListBean"
    id="ProductListBean"/>
    +</JavaBean>+
    Error Log:*
    SEVERE: Server Exception during PPR, #1
    java.lang.NullPointerException
    at oracle.adfinternal.view.faces.model.binding.RowDataManager.getRowIndex(RowDataManager.java:200)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.getRowIndex(FacesCtrlHierBinding.java:506)
    at org.apache.myfaces.trinidad.component.UIXIterator._fixupFirst(UIXIterator.java:414)
    at org.apache.myfaces.trinidad.component.UIXIterator.__encodeBegin(UIXIterator.java:392)
    at org.apache.myfaces.trinidad.component.UIXTable.__encodeBegin(UIXTable.java:168)
    at org.apache.myfaces.trinidad.component.UIXCollection.encodeBegin(UIXCollection.java:517)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:399)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeHorizontalChild(PanelGroupLayoutRenderer.java:458)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$100(PanelGroupLayoutRenderer.java:30)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:618)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:560)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:317)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:392)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:641)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:560)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:317)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer.access$100(ShowDetailItemRenderer.java:31)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer$ChildEncoderCallback.processComponent(ShowDetailItemRenderer.java:491)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer$ChildEncoderCallback.processComponent(ShowDetailItemRenderer.java:464)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer._encodeChildren(ShowDetailItemRenderer.java:406)
    at oracle.adfinternal.view.faces.renderkit.rich.ShowDetailItemRenderer.encodeAll(ShowDetailItemRenderer.java:114)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at oracle.adf.view.rich.render.RichRenderer.encodeStretchedChild(RichRenderer.java:1523)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer.access$500(PanelTabbedRenderer.java:38)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer$BodyEncoderCallback.processComponent(PanelTabbedRenderer.java:969)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer$BodyEncoderCallback.processComponent(PanelTabbedRenderer.java:920)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:125)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:201)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:167)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer._renderTabBody(PanelTabbedRenderer.java:519)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelTabbedRenderer.encodeAll(PanelTabbedRenderer.java:233)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:221)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:432)
    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:820)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1494)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:771)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
    at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:685)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:261)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:193)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
    at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Please Help I have been struggling with this issue for long.
    Thanks and Regards
    Manav Ratra
    Edited by: user11255144 on Feb 8, 2010 5:33 AM

    Hi Arun,
    Thanks for replying.
    Actually in my application there is one result table and a section that is displaying complete details of the product selectd in result table.
    The next/previous buttons are not binded with result table.
    What I am doing is, I am puuliing data from VO and displaying it on form, whenever any of these buttons is clicked.
    As soon as these buttons are clicked data is coming up, but selection state of table is not getting updated.
    So to update selection state i wrote piece of code described in my previous post.
    Everything works fine if displayRow property of table is not set to selected.
    If i set display row property of table to selected, then i get a null pointer exception with message log defined in previous post.
    Although NPE is thrown, yet all data is properly fetched and table selection is also updated. But am not able to get how this NPE is coming and hpw to fix it .
    (I need to keep displayRow = selected, for all other cases NPE is not thrown)
    Please help..
    Thanks and Regards
    Manav Ratra

  • Table date filter not working properly

    Hi OTN,
    I have noticed that table date filter not always working properly.
    When I copy actual value from column outputText to column filter and hit Enter - I see an empty table.
    http://imageshack.us/photo/my-images/818/filter.png/
    I suspect the problem to lie among date formats.
    But I tried to delete convertDateTime from outputText or add it under filter inputDate. Nothing helped.
    <af:column sortProperty="Hisdate" sortable="true"
                                     headerText="#{bindings.InformationView1.hints.Hisdate.label}"
                                     id="c8" visible="false" filterable="true"
                                     width="83">
                            <af:outputText value="#{row.Hisdate}" id="ot5">
                              <af:convertDateTime pattern="#{bindings.InformationView1.hints.Hisdate.format}"/> // or without both lines
                            </af:outputText>
                            <f:facet name="filter">
                              <af:inputDate id="id15"
                                            value="#{vs.filterCriteria.Hisdate}"
                                            columns="8">
                                <af:convertDateTime pattern="#{bindings.InformationView1.hints.Hisdate.format}"/> // or without both lines
                              </af:inputDate>
                            </f:facet>
                          </af:column>Nothing special about the attribute. A database table field of type DATE. In database this (see picture) row has exactly "06.06.2006".
    Could you please point me out where to start seeking?
    Thanks.
    JDev 11.1.1.4

    Well, OK. I think I'd better have 2 attributes: truncated date for filter and full date with time for edit.
    What is an attribute type for datetime?
    select trunc(t.HISDATE) AS HISDATE -- date attribute type
        ,to_char(t.HISDATE, 'dd.mm.yyyy hh24:mi') AS HISDATETIME -- timestamp/date attribute type?Something like this?

  • Add Row Button Not Working

    I've read the threads and done numerous searches.  Not sure why the add row button isn't working, other buttons work.
    Here's what I've found and done.
    Print button subform - positioned (have tried flowed, too) allow page breaks
    Table: body rows vary   -    Insert wrap in subform  - subform flowed - allow page breaks
         row 1 binding - repeat row for each data item - min 1, max 25 (why won't it  keep an initial count when I try putting in 1 or 0?)
    Form properties - preview in dynamic PDF, interactive   -   PDF render format dynamic xml, run in 9.0 or later (to remove errors)
    Insert Row Button in Subform Row 1 Cell 1 (not counting header row) on  click, JavaScript run at client tried table.row1.instancemanager.addinstance(1);   also tried full path
    saved as dynamic pdf
    My hierarchy looks like:
    form1   [autofit]
         master pages
              page 1
                   untitled content area
         printbuttonSubForm  [flowed, top to bottom, allow page breaks]
              untitled subform [flowed, top to bottom, allow page breaks]
                   printbutton1
              tablesf    [flowed, top to bottom, allow page breaks]
                   table1    [allow page breaks]
                        headerRow
                             cell1
                             cell2 etc
                        Row1   [allow page breaks, repeat row for each data item, min 1, max 25 (why won't it  keep an initial count when I try putting in 1 or 0?)]
                             subform   [allow page breaks, repeat row for each data item, min 1, max 25
                                            (why won't it  keep an initial count when I try putting in 1 or 0?)]
                                  button1    table1.row1.subform1.instanceManager.addinstance(1);
                             cell2, etc
         Referenced objects
    Questions:
    I click the Add Row button, but nothing happens, why?  The print button works.
    Found a reference to def instances of same row, what does that mean?
    Is my hierarchy correct?
    How to set Form1 to flow? Object says mixed objects with no options
    Many thanks for your assistance! Leslie

    Hi Leslie,
    There could be a few things.
    First check that the form is saved as Dynamic XML in the save as dialog. If it is saved as Static the add instance will not work.
    Make sure that the object you are targetting is set to repeat in the Object > Binding tab
    Check your syntax in the script editor (button above the editor). Some of your post is not camel case. For example addInstance and instanceManager. Note the capital letter for the second word.
    If you could share your form it would be easier to track down what the problem is. You can use Acrobat.com or YouSendIt.com or some other file sharing site. Just remember to post the published URL.
    Good luck,
    Niall

  • Code at Infoset SQ02 - Start of Selection - not working

    I have a code at SQ02 infoset START-OF-SELECTION:
    select bukrs
      into table i_bukrs
      from t001
      where bukrs in ('SP$00007').
    if sy-subrc = 0.
    endif.
    where SP$00007 is a select-option at the query selection screen.
    This coding is not working. It is always returning sy-subrc 4. How do I acces a select option form the query start of selection?
    Where I am doing wrong? I have got the 'SP$00007' from the generated code of query.
    If I try like this it gives me a syntax error:
    where bukrs in SP$00007.
    Any idea what I am doing wrong?

    The Solution:
    DATA cond_syntax TYPE string.
    CONCATENATE 'BUKRS' 'IN SP$00007'
                INTO cond_syntax SEPARATED BY space.
    SELECT bukrs
      INTO TABLE i_bukrs
      FROM t001
      WHERE (cond_syntax).
    IF sy-subrc = 0.
      LOOP AT i_bukrs INTO wa_bukrs.
        AUTHORITY-CHECK OBJECT 'J_B_BUKRS'
                 ID 'BUKRS' FIELD wa_bukrs-bukrs.
        IF sy-subrc <> 0.
          MESSAGE s000(z_zzz_ca_messages)
          WITH
          'You do not have authorization to view Company Code '
           wa_bukrs-bukrs
           ' data.'.
          LEAVE LIST-PROCESSING.
        ENDIF.
      ENDLOOP.
    ENDIF.
    If there is a better way please let me know?

Maybe you are looking for