Selected row not becoming active.

JDev 11
In a page fragment
1. I add an af:panelCollection, drag n drop a table from the Data Controls into the collection, enabling filtering, sorting and row selection.
2. I create an af:popup, add an af:panelWindow, drag n drop the same table from the Data Controls into the panelWindow creating an ADF Form with a submit button.
3. I add a toolbar button to the collection in 1, then add an af:showPopupBehavior to the button.
When I select a row, the selected row in the table is highlighted properly.
When I click the button, the popup displays but it is always displaying the first record in the table.
I've tried
making the table both editable and read only.
setting to triggertype in the popup behavior to different settings.
adding partial triggers in multiple places.
setting the button partialsubmit to false.
several other random settings.
blowing away the whole thing and starting over a few times.
I'm pretty sure the problem is related to the row selection in the first table not setting the current row in the data control, but I'm a newb and not sure how to fix it.
Any thoughts?

Figured it out.
There are couple required selectone lists on the popup that were created wrong so the actual value wasnt in the list and I'm guessing since it is in the same screen it wouldnt let the navigation to other records happen.
Fixed those and it all works fine.

Similar Messages

  • Modify existing vpn traffic rule does not become active

    Hi,
    When I modify an existing traffic rule, the rule does not become active.
    Instead I always need to do a stopvpn and startvpn.
    Is this a known issue ?
    We are running Bordermananager 3.8 servicepack 5 (running on Netware 6.5
    servicepack 5)
    regards,
    Pieter

    Is the scmserviceconfiguration java process running? (See JAVA -SHOW).
    Do you have a replica on the server?
    Have you tried clicking on the synchronize buttons in either iManager
    or NRM?
    Craig Johnson
    Novell Support Connection SysOp
    *** For a current patch list, tips, handy files and books on
    BorderManager, go to http://www.craigjconsulting.com ***

  • Time Characteristics not become active gives error in BW 7.4

    Hi Experts
    We have imported IO's in BW 7.4. Some info Objects are active but some are not getting active specially Time Char.
    It gives error while activating. I am attaching the error image. I am looking forward experts input how these Time Info objects can activate.
    Thanks
    Sweta

    There may be inconsistencies with table entries for table 'RSDCHATHJ'. Please check them.
    Regards,
    Jagan

  • Firefox does not become active from the Dock when I click on a email link

    In OS 10.5, I can temporarily put the Firefox window off to the Dock by clicking on the yellow button in the upper left of the Firefox menu bar. In earlier versions of Firefox, the window would become active again if I clicked on a web link in an email address or document. Firefox 3.6.3 will open a tab for the web link, but stays inactive on the Dock. Why the change?
    == This happened ==
    Every time Firefox opened
    == I upgraded to 3.6.3, I think

    Thank you, thank you thank you. This has been driving me crazy forever. I have looked for answers online but never knew to write or that anyone would answer my post so never tried. Whoever you are may lots of good things happen for you because your good deed. Know good karma is coming your way. Just changed the firefox default setting in mailto in applications to my regular email. saves tons of time and much swearing.

  • Setup Project installs but does not become active

    Hello all,
    My task for my work was to transfer over a macro that I made that would process and delete incoming emails to a specified mailbox in Outlook into a Visual Studio project. This is required because we want to be able to give out the code to clients, which
    is quite cumbersome with a macro. I want to be able to use Visual Studio's Setup and Deployment to create an installer for the Add In.
    I have spent hours trying to figure out how to get the installer to work. From everything that I have read and all of the youtube videos that I've watched, I just cannot for the life of me figure out what I'm missing.
    My problem is that when I build the setup project and move it over to a machine I want to install it on, it installs just fine. I even check the windows event logs and it displays no errors, stating the installation was successful. The files are even placed
    where I wanted them to be. But when I open Outlook expecting the add in to run, it's not there. Not under active, disabled, or otherwise. When I debug the project, it runs just fine and Outlook has the add in as active. Thus, I even tried moving over the literal
    vsto file with the installer (because that was the file location shown in Outlook during debug), and still the installer runs successfully but it doesn't affect Outlook. When I double click the vsto file though, poof, Outlook has the add in. But that doesn't
    appear to be the setup doing anything, I'm just installing the add in from the VSTO directly, I believe.
    Apparently I cannot add images to the body text, which might have made this easier.
    I'm creating my project (Outlook add in) and copying my macro code over. When I debug the project, it's shown as an active add in and works fine. I then add the setup and deployment project (Visual Studio Installer -> Setup Project). From the videos that
    I've watched, I haven't noticed anyone do anything more than add the Primary Output and then alter the Deployment Project Properties (company name and etc.).
    As I said previously, running the debug does just fine at causing the add in to be active and seen by Outlook, but no such similar thing appears when I run the setup installer on the other machine. Nor when I run the installer on the same machine as I was
    running the debug.
    I'm at a complete loss as to what I need to do to fix this and would appreciate any help you can give me.

    Hi Brady Schwandt,
    >>I want to be able to use Visual Studio's Setup and Deployment to create an installer for the Add In.
    Which VS version did you use? So you use the InstallShield LE, am I right?
    I found some blogs which shared some information about it here:
    http://blogs.msdn.com/b/emeamsgdev/archive/2013/11/21/outlook-deploying-an-outlook-2013-add-in-using-installshield-le.aspx
    http://blogs.msdn.com/b/mcsuksoldev/archive/2010/10/01/building-and-deploying-an-outlook-2010-add-in-part-1-of-2.aspx
    http://blogs.msdn.com/b/mcsuksoldev/archive/2010/10/01/building-and-deploying-an-outlook-2010-add-in-part-2-of-2.aspx
    As you said that the project has no any issue, so the real issue is related to "how to create the setup project with InstallShield LE for outlook add-in".
    You know that actually we didn't support the InstallShield LE, it has his own third party supported site now, if above blogs no help, I suggest you post this issue to this site:
    http://community.flexerasoftware.com/forumdisplay.php?133-InstallShield
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Checkbox selected : row not rendering

    I am not able to set colors for the row that has checked checkboxes. I want to set red color for the row having
    checked checkboxes and green for unchecked.
    table.getColumnModel().getColumn(3).setCellEditor(new CustomTableCellRenderer(new JCheckBox(),Name));
    table.getColumnModel().getColumn(3).setCellRenderer(new CustomTableCellRenderer3());
    setcellEditor:
    package moxaclient;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.event.ItemEvent;
    import java.awt.event.ItemListener;
    import javax.swing.DefaultCellEditor;
    import javax.swing.JCheckBox;
    import javax.swing.JTable;
    public class CustomTableCellRenderer extends DefaultCellEditor implements ItemListener{
    private static final long serialVersionUID = 1L;
    private JCheckBox checkBox;
    private JTable table1;
    private int row;
    private int column;
    Object abc="null";
    private String Name;
    Component comm=null;
    public CustomTableCellRenderer(JCheckBox checkBox,String name2) {
        super(checkBox);
        this.checkBox = checkBox;
        this.checkBox.addItemListener(this);
        this.Name=name2;  
    public Component getTableCellEditorComponent(JTable table, Object value,
            boolean isSelected,int row, int column)
        Component comp = super.getTableCellEditorComponent(table, value, isSelected, row, column);
        this.row = row;
        this.table1=table;
        this.column = column;
        checkBox.setSelected((Boolean)value);
        return super.getTableCellEditorComponent(table, value, isSelected,row, column);
    public void itemStateChanged(ItemEvent e)
       this.fireEditingStopped();
        //System.out.println("Item Changed " + row + " value is: " + checkBox.isSelected());
         //System.out.println("Item Changed " + column + " value is: " + checkBox.isSelected());
          String Sensor =(String) table1.getValueAt(row, 0);
          Double Value =(Double) table1.getValueAt(row, 1);
          String Date =(String) table1.getValueAt(row, 2);
          Boolean select=(Boolean) table1.getValueAt(row,3);
           if (Boolean.TRUE.equals(select))
            abc += Sensor+"\t"+Value+"\t"+Name+"\t"+Date+"\t";
            // table1.set Background(Color.black);
            //  checkBox.setBackground(Color.red);
              // comm.setBackground(Color.red);
        Clientthread ct=new Clientthread(abc);
    package moxaclient;
    import java.awt.Component;
    import java.util.EventObject;
    import javax.swing.DefaultCellEditor;
    import javax.swing.JTable;
    import javax.swing.event.CellEditorListener;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableCellEditor;
    import javax.swing.table.TableCellRenderer;
    public class CustomTableCellRenderer3 extends DefaultTableCellRenderer {
    JTable table1=null;
    DefaultTableModel model;
        public CustomTableCellRenderer3() {
            // TODO Auto-generated constructor stub
        public CustomTableCellRenderer3(JTable table,DefaultTableModel model1) {
            this.table1=table;
            this.model=model1;
        @Override
        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col)
             Component comp = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);
             Boolean last=(Boolean)model.getValueAt(row,3);
                       if(last)
                             //setcolor dosent work here
                    return null;
    }Edited by: 1000637 on Apr 17, 2013 5:29 AM

    I suggest first trying to get cell renderers to work as expected before going onto cell editors. See Using Custom Renderers in the Swing tutorial for basic information on how to use cell renderers. That said, subclassing DefaultTableCellRenderer won't do if you want to display a check box, because DTCR is a JLabel but you need to return a JCheckBox as cell renderer component. To get you startet, here is a simple demo for a custom JCheckBox based renderer:import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.EventQueue;
    import javax.swing.JCheckBox;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.table.TableCellRenderer;
    * Demonstrates how to create a custom boolean table cell renderer.
    public class BooleanRendererDemo {
       * Creates and displays a sample {@link JTable} with a customized boolean
       * table cell renderer.
      private void start() {
        // create a table with sample data
        final JTable jt = new JTable(new MyTableModel());
        // configure the renderer for boolean values
        jt.setDefaultRenderer(Boolean.class, new MyBooleanRenderer());
        // boiler plate code necessary for displaying a Swing GUI
        final JScrollPane jsp = new JScrollPane(jt);
        jsp.setPreferredSize(new Dimension(480, 320));
        final JFrame frame = new JFrame(BooleanRendererDemo.class.getName());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.getContentPane().add(jsp);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      public static void main( String[] args ) {
        EventQueue.invokeLater(new Runnable() {
          public void run() {
            (new BooleanRendererDemo()).start();
       * A customized table cell renderer for boolean values.
      private static final class MyBooleanRenderer implements TableCellRenderer {
        private final JCheckBox jcb;
        MyBooleanRenderer() {
          jcb = new JCheckBox();
          jcb.setHorizontalAlignment(JCheckBox.CENTER);
        public Component getTableCellRendererComponent(
                final JTable table,
                final Object value,
                final boolean isSelected,
                final boolean hasFocus,
                final int row,
                final int column
          final boolean state = value != null && ((Boolean) value).booleanValue();
          if (isSelected) {
            jcb.setForeground(table.getSelectionForeground());
            jcb.setBackground(table.getSelectionBackground());
          } else {
            jcb.setForeground(table.getForeground());
            // check if the renderer should display the last column
            // if so, use custom background colors depending on the cell value
            final boolean last = table.getModel().getColumnCount() == column + 1;
            if (last) {
              jcb.setBackground(state ? Color.GREEN : Color.RED);
            } else {
              jcb.setBackground(table.getBackground());
          jcb.setSelected(state);
          return jcb;
       * Dummy table model with nonsense sample data.
      private static final class MyTableModel extends AbstractTableModel {
        public Class getColumnClass( final int columnIndex ) {
          return columnIndex < 2 ? String.class : Boolean.class;
        public int getColumnCount() {
          return 4;
        public int getRowCount() {
          return 4;
        public Object getValueAt( final int rowIndex, final int columnIndex ) {
          if (columnIndex == 3) {
            return (rowIndex % 2) == 1 ? Boolean.TRUE : Boolean.FALSE;
          } else if (columnIndex == 2) {
            return (rowIndex % 2) == 0 ? Boolean.TRUE : Boolean.FALSE;
          } else {
            return "Dummy";
    }To customize cell editors, work through the JTable tutorial (and maybe take a quick look at DefaultCellEditor's OpenJDK sources).

  • Getting selected row for command link in af:table

    Hi
    I have a h:commandLink in a column of my af:table. When it is clicked, I need to get the selected row data.
    I know the documentation says use setCurrentRowValue method, but I am not using the Data Control Palette - I get the data fromt the database using code in the BackingBean.
    Is there any other way? Pls help.

    Yes, I got it. But my method gets the data in the selected row, not the rowKey
    First I used af:commandLink instead of h:commandLink and then used af:setActionListener based on an example in the jDeveloper Help. I had to change it a bit since I am not using DCP or bindings.
    This is the sample from Help, hope it helps!
    SF Page Code for a Command Link Using a setActionListener Component <af:commandLink actionListener="#{bindings.setCurrentRowWithKey.execute}"
    action="edit"
    text="#{row.svrId}"
    disabled="#{!bindings.setCurrentRowWithKey.enabled}"
    id="commandLink1">
    <af:setActionListener from="#{row.svrId}"
    to="#{userState.currentSvrId}">
    </af:commandLink>

  • Im trying to set up icloud on iphone 4s. when i select icloud in settings it says "account not verified" then a box becomes active saying check mail. I check my mail inbox but theres no activation email?

    im trying to set up icloud on my iphone 4s. when i select icloud in settings it says "account not verified" then a box becomes active saying check mail. I check my mail inbox but theres no activation email? any ideas?

    Welcome to the Apple Community.
    Put in a request for another verification e-mail to be sent to you.
    Start here, change your country if necessary and go to manage your account.

  • SimpleButton has become active in symbol editor and won't let me select or delete it

    Hello all,
    After weeks of editing symbols without any trouble, I'm suddenly having trouble with a movie clip in the symbol editor of Flash CS4: the simpleButton in there that I want to delete has somehow become active inside the editor--meaning it's roll over state is active, lighting up when I mouse over it--and it only animates  and shows me its mouse down animation when I mouse over and click on it, instead of letting me select the button so I can just delete it.
    Note that only this one button type is now active in all versions of it in symbol editor, the other simpleButtons are still normal and editable in the symbol editor.
    Does anyone know why Flash is doing this?  Is there a way to deactivate active buttons in symbol editing mode so I can edit them?
    ~Ethan

    thanks for responding!
    I'm afraid my flash file is 26 megabytes in size.. is there a way to make it smaller in size for when I rename it as a swf file? (I turned most all my graphics into vector graphics with trace bitmap, yet strangely, my file size just got heinously larger instead of modestly larger..)

  • Select row button not getting displayed in alv grid.

    Hi ,
    As per my requirement I am using tab strip in module pool.
    Each tab strip is containing one ALV.
    And user can change delete or create one record when the alv is displayed.
    The same should be saved in the database and ALV should be refreshed.
    When I am displaying the ALV the left most option of the ALV with which I can select the whole row is not coming.
    Because of which I am unable to call the method to get the selected row and delete or change accordingly.
    Why this button is not coming?
    I am using set_table_for_first_display in my program.
    Please help.

    Hi,
    In the method SET_TABLE_FOR_FIRST_DISPLAY, you will have to change the Selection Mode to 'A'. I guess you are not passing any values to the Layout parameters.
    Once you do that, you will find what your are looking for.
    Data : LA_LAYO type LVC_S_LAYO.
    LS_LAYO_SEL_MODE = 'A'.
    and pass this to the method's layout parameter.
    Cheers,
    SKC,

  • Delete operation is not working to delete selected row from ADF table

    Hi All,
    We are working on jdev 11.1.1.5.3. We have one ADF table as shown below. My requirement is to delete a selected row from table, but it is deleting the first row only.
    <af:table value="#{bindings.EventCalendarVO.collectionModel}" var="row"
    rows="#{bindings.EventCalendarVO.rangeSize}"
    emptyText="#{bindings.EventCalendarVO.viewable ? applcoreBundle.TABLE_EMPTY_TEXT_NO_ROWS_YET : applcoreBundle.TABLE_EMPTY_TEXT_ACCESS_DENIED}"
    fetchSize="#{bindings.EventCalendarVO.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.EventCalendarVO.collectionModel.selectedRow}"
    selectionListener="#{bindings.EventCalendarVO.collectionModel.makeCurrent}"
    rowSelection="single" id="t2" partialTriggers="::ctb1 ::ctb3"
    >
    To perform delete operation i have one delete button.
    <af:commandToolbarButton
    text="Delete"
    disabled="#{!bindings.Delete.enabled}"
    id="ctb3" accessKey="d"
    actionListener="#{AddNewEventBean. *deleteCurrentRow* }"/>
    As normal delete operation is not working i am using programatic approach from bean method. This approach works with jdev 11.1.1.5.0 but fails on ver 11.1.1.5.3
    public void deleteCurrentRow (ActionEvent actionEvent) *{*               DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcItteratorBindings =
    bindings.findIteratorBinding("EventCalendarVOIterator");
    // Get an object representing the table and what may be selected within it
    ViewObject eventCalVO = dcItteratorBindings.getViewObject();
    // Remove selected row
    eventCalVO.removeCurrentRow();
    it is removing first row from table still. Main problem is not giving the selected row as current row. Any one point out where is the mistake?
    We have tried the below code as well in deleteCurrentRow() method
    RowKeySet rowKeySet = (RowKeySet)this.getT1().getSelectedRowKeys();
    CollectionModel cm = (CollectionModel)this.getT1().ggetValue();
    for (Object facesTreeRowKey : rowKeySet) {
    cm.setRowKey(facesTreeRowKey);
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding)cm.getRowData();
    rowData.getRow().remove();
    The same behavior still.
    Thanks in advance.
    Rechin
    Edited by: 900997 on Mar 7, 2012 3:56 AM
    Edited by: 900997 on Mar 7, 2012 4:01 AM
    Edited by: 900997 on Mar 7, 2012 4:03 AM

    JDev 11.1.1.5.3 sounds like you are using oracle apps as this not a normal jdev version.
    as it works in 11.1.1.5.0 you probably hit a bug which you should file with support.oracle.com...
    Somehow you get the first row instead of the current row (i guess). You should debug your code and make sure you get the current selected row in your bean code and not the first row.
    This might be a problem with the bean scope too. Do you have the button (or table) inside a region? Wich scope does the bean have?
    Anyway you can try to remove the iterator row you get
    public void deleteCurrentRow (ActionEvent actionEvent) { DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding dcItteratorBindings =
    bindings.findIteratorBinding("EventCalendarVOIterator");
    dcItteratorBindings.removeCurrentRow();Timo

  • A selected row in af:table does not get sorted.

    Hi,
    When a table supports single selection and the table contains quantity of rows gt it can fit into its viewport, then, on sorting, selected row gets out of the sorting process. But when you move to the end of the table, select a row there and then sort the table, then all rows sorted correctly. The selected row, after sorting, always set as a first row in the current viewport, doesn't matter whether it is in the order or out of it.
    Noteworthy, when number of rows is lt the viewport allows:
    1. sorting works as it should to;
    2. on sorting/PPR'ing, as it gets some time, one can see how the viewport updates in two steps and in the first step the first row is the selected one.
    JDev's version is 11.1.1.3.0.
    VO, iterator and tree bindings, af:table all the props related to data retrieving, fetching and row displaying have default values.
    What can cause that?
    Thx,
    Y.

    Hi,
    so what you are saying is that the selected table row is not sorted but added on top. I tried to reproduce this with 11.1.1.3 but can't see the issue. I tried with editable and read-only tables
    Frank

  • HT201407 I have a new device. When selecting the language and country I am trying to connect to a wifi connection and getting the error 'Your Iphone could not be activated because the activation server cannot be reached. Try connecting to your Iphone to i

    I have a new device. When selecting the language and country I am trying to connect to a wifi connection and getting the error 'Your Iphone could not be activated because the activation server cannot be reached. Try connecting to your Iphone to iTunes to activate it, or try again in a few minutes.

    Where exactly did you get this phone?
    Do you have a SIM in the phone?
    There are 2 primary causes for this.
    Either you don't have a SIM in the phone, which is REQUIRED to activate it, or the phone was hacked to unlock it.

  • SALV - ALV selected row Index - Not getting in second time

    I am having a ALV grid using CL_SALV_TABLE class. and its have PF-status button "Display" and user select a line and press "Display" button system will display a PDF document from content server.
    The following is the code i am using for getting index of selected row.
    My problem is user select a line for the first time i am getting the index, but user select second time i am not getting the index
    module user_command_0300 input.
      call method cl_gui_cfw=>dispatch.
      case ok_code.
        when c_hist.
          perform f_show_history.
        when others.
      endcase.
      clear ok_code.
    endmodule.                            
    then
    form f_show_history.
      data : p_wa_rows    type int4.
      data : p_i_rows     type salv_t_row.
      gr_table->get_metadata( ).
      p_i_rows = gr_selections->get_selected_rows( )." Here Its failing in second time. P_I_ROWS showing blank second time
      clear: wa_output.
      read table p_i_rows into p_wa_rows index 1.
      if sy-subrc eq 0.
        read table i_output into wa_output index p_wa_rows.
        if sy-subrc eq 0.
          perform f_display_document.
        endif..
      endif.
      refresh : p_i_rows. clear : p_i_rows.
      gr_selections = gr_table->get_selections( ).
      gr_selections->set_selected_rows( p_i_rows ).
      gr_table->refresh( ).
      call method cl_gui_cfw=>set_new_ok_code( new_code = 'REFR' ).
    endform.                                 " F_show_history
    PS : I don't want to place the button in the ALV application toolbar

    Hi Dear,
    I have some clue regarding your problem but that is in simple Alv not in oops.
    declare a first field of your internal table i.e. you are passing to alv as cell type c.
    then in layout
    add
    gs_layout-box_fieldname     =   'SEL'.
    pass this layout to alv.
    then you are able to get exact row number.
    LOOP AT gt_gi INTO gs_gi WHERE sel = 'X'.
            gs_gi-sel = ' '.
            APPEND gs_gi TO gt_gi.
            CLEAR gs_gi.
          ENDLOOP.
    Hope this clue will help you.
    Regards,
    Vijay

  • [ADF-11.1.2] Link on adf tabel does not select row before navigation

    Hi,
    I have a List of Contries displayed in table with a view button on panel collection toolbar. User Select the country row, which makes changes current row of country View Iterator binding on page, and click on view button, which navigates to detail page of selected country. This works fine.
    But I want to reduce the number for clicks made by user. So I converted one of column of county table to link with the same action as view button. So now... User Selects the row, click on link button of selected row, navigation works fine. But when user directly clicks on link, without selecting row, it navigates to last selected row (or probabily the first row when user open the table for first time).
    I was under impression that when link is there under af|column, adf would internally selects the row before any action happens otherwise what's the use of having link in column ?.
    Please correct me, if I am worng.

    Ahh sorry... My bad.
    I am using firefox 10 which seems not supported yet.
    I tried on IE 9 and chrome and it's working fine there.
    I will try with firefox 4 and post here in case if I find any issue.

Maybe you are looking for