Selects a line in a ListField

I have a ListField in my application and I want to allow the user to select several lines that are not necessarily side by side.  Selection of lines 0, 3, 5, 9 and 10 for example.  How can I allow this behavior with a ListField?

Thank you.

It is not supported, but you can implement it yourself (as selected by hand, paint lines create a method getSelected etc.)

Tags: BlackBerry Developers

Similar Questions

  • Just updated to Sierra and updated Pages at the same time. Now when I try to select a line of text I find myself with an insertion point where I stopped by selecting

    Today, I updated for Sierra and updated to the latest version of the Pages. Now I find that I am more able to select a line of text. When I try to do, I find myself with an insertion point where I stopped by selecting, but nothing is selected. This is a bug in the new version of pages or get my wrong settings?

    You use a Wacom tablet by chance?

    Solution: Press the shift key, just before stop selection. And Yes, that sounds like trouble in the Sierra.

  • How to select multiple lines of text (without selecting all the text) within a title? (Holding Cmd does not work)

    I need to select several lines of text (in the various sections of the text) within a title without selecting any text. Holding Cmd like you would in other applications does not work, and now Shift selects all. Does anyone have a solution?

    Thank you.

    YYou cannot select several segments of text in a text block.

  • In Windows 7 we select several lines of data that are in a different location on the page (no continuous lines) through the mouse or keyboard and also can we copy all lines of these different at the same time to paste somewhere else in one fell swoop.

    > Now I'm unlable to select more number of lines that are not a sequence in a single page to copy the data rows and paste somewhere in one fell swoop.
    > Is this concept implemented in Windows 7. ?
    > Is there a provision (method) to select several lines that are not continuous across the keyboard or the mouse in windows 7?

    Byagaris,
    It depends on what program you are trying to copy and paste into.  You are able to select continuous, multiple lines, by using the Ctrl Key and clicking, or by highlighting the desired line.  For example, I held the Ctrl key and then, using the mouse, has highlighted several different phrases in the various paragraphs, and could then copy them.  This feature is available for several versions of windows.
    If you are not able to perform this action then post what happens when you try and what program you try it.
    Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can disable us the selection of lines under condition

    Hi Experts,

    JDEV version 12.1.3.0

    How can disable us the selection of lines under certain conditions.

    As the lines newly unregistered should be allowing the selection of lines.

    Saved lines should be disabled from the selection.

    Can achieve us.

    Please me advice accrdingly

    Thank you

    Roy

    You are implementing a generic selection as shown here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/23-generic-table-selection-listener-169162.pdf Manager in this handler, you check and validate the selection of our not.

    Timo

  • Selection of lines with the range Paging VO

    Hello

    JDev 11.1.2.4

    I created a VO based on an OA. I added a transitional attribute in the original Version, this attribute is named Selelected of type Boolean initialized to false (default value Expression: false-Expression of Refresh value: false). That VO appears as an af:table. The attribute is displayed as selectBooleanCheckbox. The VO is set with an access mode of range Paging and a size of 28.

    < af:selectBooleanCheckbox value = "#{row.bindings.Selected.inputValue} '"

    label = "#{bindings." VwRhdPortfolioTranWrkSend11.hints.Selected.label}.

    required = "#{bindings." VwRhdPortfolioTranWrkSend11.hints.Selected.mandatory}.

    shortDesc = "#{bindings." VwRhdPortfolioTranWrkSend11.hints.Selected.tooltip}"id ="it1' autoSubmit = 'true '.

    valueChangeListener = "#{pageFlowScope.portfolioTransferBean.onWorkSelection}" >

    < f: validator binding="#{row.bindings.Selected.validator}"/ >

    < / af:selectBooleanCheckbox >

    The table shows the 25 lines. The user clicks one of the checkbox to select a line. The valueChangeListener is called with the new value (auto submit = true) as expected. Then the user scroll down for another "page" in the table, new lines are displayed. Then it scrolls to the first page. The previous selected checkbox is reset as not selected. The selection is lost.

    Is this expected behavior? If so how do you get a selection of lines with a VO of range paging.

    Thank you

    Try to create the transitional attribute in OT instead of VO.

    See you soon

    AJ

  • Selecting a line to &lt; af:table &gt; triggers continuously refresh the page

    Hello

    I have a table that reflects the State of some data. When loading the page view fills correctly and sets the initial value on a detail panel.

    When I select a line the page goes into a constant loop (post). The detail panel updates with the selection, but the loop continues.

    We are doing something wrong or that someone has encountered this problem?

    Thank you.

    -Bill

    Env: Build JDEVADF_11.1.2.4.0_GENERIC_130421.1600.6436.1


    EDIT - cut any additional data that were not relevant to the response.

    Hello

    on the link layer (PageDef) go to the iterator and set the property "ChangeEventPolicy" to "PPR" 'None '.

    Frabnk

  • refresh the html region when the selection list or selected ir line chang

    Apex 4.2

    Hello

    I made a simple page for test actions.

    I have

    -an interactive report and a selection in my first area list.

    -a field of text (P5000_indid) to keep the selected indid

    -region of html where the source is:

    DECLARE

    CURSOR c_ind IS

    SELECT indid, ind, industry

    IND

    WHEN indid as: P5000_INDID;

    BEGIN

    FOR a c_ind IN LOOP

    HTP.p ("< style b =" white-space: nowrap;) "> Indid: ' |" a.indid |' ---> ' || a.Industry: '< /b > < br / >');

    END LOOP;

    END;

    I'm sorry, but I m a bit confused with all the things I read before and do not know what is possible or not and what is the best practice to:

    1. select in the selectList (is it also possible to retrieve the selected (highlighted) or line in the IR)

    2 update the P5000_INDID

    3. refresh the html box according to the value of P5000_INDID (I was able to refresh an IR according to value, but there was the possibility to say what variable to present, but I have no

    see for the region of html)

    I m doing this test, because in the end, I would like to be able to regresh a small chart according to the selected line of the IR.  Do you think that it is possible to s?

    Sorry for my newbie question

    Thanks for your help

    L.

    OK, I finally found everything that I needed,

    You can test it on:

    http://Apex.Oracle.com/pls/Apex/f?p=53793

    Demo/demo

    the content of the output area now is the result of an application process, according to a parameter.

    It is called with javascript onChange and response replace the contents of the region

    and you can also see that I can now select a line and show it by changing the color of the line, and then update the output.

    and when a line is selected, it resets the selection on the selectList to avoid triggering the event on the selection list.

  • Selection of lines and striking Ctrl z BLOB Brush tool

    I did research for this response, but I'm afraid it's too specific.  Basically, in Illustrator Windows 7 is now the CTRL key is a shortcut to the selection tool when a person is using the blob Brush tool. (among others also)  This means that if my cursor never flat on a line when I hit undo (ctrl + z) he also selects the line because I hit the CTRL key.  That is to say after the initial cancellation, I also have my cursor to another place where there is no line and press the control key to deselect the line that this is highlighted when I hit ctrl + z.

    I know this isn't a big deal, but having to move your cursor whenever you want to undo a mistake is really boring.  By selecting the shape is not perform my drawing, but I prefer not to have a set of highlighted lines while I paint.

    Is it possible to select line segments when you hold the CTRL key, can I stop Illustrator?

    I think my formulation was weird and I think that's why I couldn't find the answer.  Only by highlighting the lines, not selecting them and I was able to extinguish under view > guides.

    This problem is solved.

    Although for reference, if anyone is curious, this was my problem.

  • Select the line with the smallest Beach

    Hello
    I am trying to build a complex query...
    He must select the line with the inner range...

    I'll explain for example:
    Location of poolsize ID value
    1 32 8
    2 40 6
    3 42 8
    4-36-3

    I want to select the line where the fork between value and value + poolsize is shared also with the other location...
    so:
    1 is 32-40 (in A place)
    2 is 40-46 (in place)
    3 is 42-48 (location B)
    4 is 36-39 (at location B)

    4 is located at 1 (and there are different places...) so sql must return to the fourth line.

    Any help will be appreciated!

    Thank you
    fcbman

    Hello

    fcbman1899 wrote:
    Hello
    I am trying to build a complex query...
    He must select the line with the inner range...

    I'll explain for example:
    Location of poolsize ID value
    1 32 8
    2 40 6
    3 42 8
    4-36-3

    Whenever you have a problem, please post CREATE TABLE and INSERT statements for your sample data, in order to let the people who want to help you re-Ridge the problem and test their ideas.
    See the FAQ forum {message identifier: = 9360002}

    I want to select the line where the fork between value and value + poolsize is shared also with the other location...
    so:
    1 is 32-40 (in A place)
    2 is 40-46 (in place)
    3 is 42-48 (location B)
    4 is 36-39 (at location B)

    4 is located at 1 (and there are different places...) so sql must return to the fourth line.

    To find all the rows that are within the range of at least one other line with another location:

    SELECT     *
    FROM     table_x  m
    WHERE     EXISTS (
                 SELECT  1
                 FROM        table_x
                 WHERE   location          != m.location
                 AND        value          <= m.value
                 AND        value + poolsize     >= m.value + m.poolsize
                )
    ;
    

    When you talk of the "" * most * inner range ", do you mean that you might have another line, such as"

    INSERT INTO table_x (id, vlue, poolsize, location) VALUES (5, 37, 1, 'C');
    

    which is inside the range of id - 4, and that's why you wouldn't have id = 4? If so, include examples in the results and data sample yout. You can do this with a query CONNECT BY, or, depending on your version of Oracle, a WITH recursive clause.

  • Do not select the line concerned

    Hello

    I have a problem a few weeks ago, I was using Jdeveloper 11.1.1.4.0 and our server has WLS 10.3.4 and there has not been a problem
    Now server have 10.3.6 and I use 11.1.1.6.0 and I have a problem with the line incorect.

    When I select a line and you want to browse this line always I got the first row data in the list, which can be a problem?


    ID

    Edited by: 1D10T 26 September 2012 02:43

    Edited by: 1D10T October 4, 2012 01:56

    Edited by: 1D10T October 4, 2012 01:57

    do you mean like this, so that am switch to this version, you stumbled upon problem. are the benefits?

  • selection of lines AF:table after sorting

    Hello

    If I select a line to an af:table and then to sort a column, the first line in the sorted table is selected.
    Is there a way to keep the selection while sorting?

    jdev versions:
    -11.1.1.4.
    -11.1.2.0.

    Edited by: Fortega January 25, 2012 0:47

    Please mention your version jdev 11g being ambiguous...

    A sorting table normally means that the query is executed again with the selected sorting criteria. It also means that the current line that you checked before disappeared and the first line is marked as the current line.
    You can save the key to the current line before the sort and place after sorting (using a managed bean).
    However, you should be aware of the impact:
    lets assume your table has 1000 rows and is sorted by Crescent after the default name column. Now select you the first line and click Descending in the same column. In this case the selected line will now be the last line. This line is not visible, then you need to scroll in the view with the effect that all the lines are read into memory. If you have 100000 lines that get worse (more memory and more time).

    Timo

  • Dynamic action - set a value of element based on the selection of lines of report

    Hi people,

    Does anyone have an example how to set up a dynamic action, which could fill an element with the selected ID based on the selection of line of the report on the same page?

    Demo:
    http://Apex.Oracle.com/pls/Apex/f?p=19543:2

    If I select an item in the report, then I would fill in 'Selected ID' element with the value of the selected report EMPNO line.


    Later, I would use it for the display of parts of master / detail on the same page.

    Thank you very much
    Tomas

    For this sample page, add the following JS code to run when the page is loaded.

    $('.highlight-row td').click( function(){
      //fetch record id from the cell contents of first column in row
      id = $(this).parent().children('td:eq(0)').text();
      //set page item to selected id
      $('#P2_SELECTED_ROW').val(id);
    });
    
  • Selection of lines JTable

    Hello

    I need a JTable where selection of lines is allowed, but not only with the entire line, but individual cells in a single line interval.
    When the user has pressed the mouse button and move the mouse inside the line cells get added or released to the selection.
    When he leaves the current line and releases the mouse button outside the line, that nothing is selected.
    In addition, it would be when the user leaves the line with the mouse button down and enters the line again, select the cell containing the user started
    is highlighted again.
    import javax.swing.*;
    import javax.swing.event.*;
    
    
    public class TestTable extends JPanel{
    
         private JTable table;
         private JFrame frame;
         /**
          * @param args
          */
         public TestTable(JFrame frame)
         {
              this.frame = frame;
              this.table = new JTable(10, 10);
              this.table.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
              //this.table.setRowSelectionAllowed( false );
              //this.table.setColumnSelectionAllowed( true );
              this.table.setCellSelectionEnabled(true);
              
              ListSelectionModel rowSelMod = this.table.getSelectionModel();
              rowSelMod.addListSelectionListener( (new ListSelectionListener() {
    
                   @Override
                   public void valueChanged(ListSelectionEvent e) {
                        ListSelectionModel lsm = (ListSelectionModel)e.getSource();
                        System.out.println(lsm.getAnchorSelectionIndex());     
                   
                   }
              }));
              this.add(this.table);
              
         }
         
         public static void main(String[] args) 
         {
              TableView.setMetalLookAndFeel();
              javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
                }
            });
         }
         
         private static void createAndShowGUI() 
         {
            JFrame frame = new JFrame("Example");
            //frame.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            TestTable newContentPane = new TestTable(frame);
            
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
    
            frame.pack();
            frame.setVisible(true);
            frame.setLocation(10, 20);
        }
    
    }
    I tried a lot of things with the SelectionModel, the JTable.rowSelectionAllowed () and the JTable.columnSelectionAllowed (), but I do not have the behavior that I want to have.
    The ListSelectionModel model in the valueChanged method has just information about the index of the current column, but no information on the row index.

    Kind regards
    Chang

    Hi Chang,

    This allows you to select cells in a row and a single row:

    import javax.swing.*;
    import javax.swing.event.*;
    
    public class TestTable extends JPanel {
    
        private JTable table;
        private JFrame frame;
        private int selectedRow = -1;
        private final ListSelectionListener columnSelectionListener;
    
        public TestTable(JFrame frame) {
            this.frame = frame;
            this.table = new JTable(10, 10);
            this.table.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
            this.table.setCellSelectionEnabled(true);
            this.add(this.table);
            //row selection listener:
            ListSelectionListener rowSelectionListener = new ListSelectionListener() {
    
                @Override
                public void valueChanged(final ListSelectionEvent e) {
                    if (!e.getValueIsAdjusting()) {
                        ListSelectionModel lsm = (ListSelectionModel) e.getSource();
                        selectedRow = lsm.getAnchorSelectionIndex();
                    }
                }
            };
            table.getSelectionModel().addListSelectionListener(rowSelectionListener);
            //column selection listener:
            columnSelectionListener = new ListSelectionListener() {
    
                @Override
                public void valueChanged(final ListSelectionEvent e) {
                    if (!e.getValueIsAdjusting()) {
                        final int row = selectedRow;
                        ListSelectionModel lsm = (ListSelectionModel) e.getSource();
                        int anchorSelectionIndex = lsm.getAnchorSelectionIndex();
                        int leadSelectionIndex = lsm.getLeadSelectionIndex();
                        lsm.removeListSelectionListener(columnSelectionListener);
                        table.changeSelection(row, anchorSelectionIndex, false, false);
                        table.changeSelection(row, leadSelectionIndex, false, true);
                        lsm.addListSelectionListener(columnSelectionListener);
                    }
                }
            };
            table.getColumnModel().getSelectionModel().addListSelectionListener(columnSelectionListener);
        }
    
        public static void main(final String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
    
                @Override
                public void run() {
                    createAndShowGUI();
                }
            });
        }
    
        private static void createAndShowGUI() {
            JFrame frame = new JFrame("Example");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            TestTable newContentPane = new TestTable(frame);
            newContentPane.setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane);
            frame.pack();
            frame.setVisible(true);
            frame.setLocation(10, 20);
        }
    }
    

    It will be useful.

    See you soon,.
    André

  • How to use the checkbox to select several lines of af: table

    Hi all
    I want to use the checkbox to select several lines of af: table

    Kind regards
    Tom

    Hello

    look at this link
    http://Sameh-Nassar.blogspot.com/2009/12/use-checkbox-for-selecting-multiple.html

    Kind regards
    Felix

Maybe you are looking for