ListView.getSelectionModel().select( i) issue

This might be a minor issue however I spent already too much time on this to figure out:
Why does the the next item not getting selected, when pressing the button ? It gets focused but I does not get "blue", like it would get when I click on it ??
     final ListView<String> fileList = new ListView<String>();
     ObservableList<String> items =FXCollections.observableArrayList( "111", "222");
     fileList.setItems( items);
     fileList.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
     fileList.getSelectionModel().select(0);     
     borderPane.setCenter( fileList);
     Button b =new Button();
     b.setOnAction( new EventHandler<ActionEvent>() {
               @Override
               public void handle(ActionEvent arg0) {                    
                    fileList.getSelectionModel().select(1);                                   
     borderPane.Bottom( b);Edited by: Marcello on 07.02.2013 05:58

Hi. It is not an issue. It works as expected.
From Caspian.css document:
  /* When the ListView is _not_ focused, we show alternate selection colors */
.list-cell:filled:selected:focused, .list-cell:filled:selected, .list-view:horizontal .list-cell:filled:selected {
    -fx-background-color: lightgray;
    -fx-text-fill: -fx-selection-bar-text;
}You have 2 options:
1.     Add fileList.requestFocus() before selection:
        Button b = new Button();
        b.setOnAction(new EventHandler<ActionEvent>() {
            @Override
            public void handle(ActionEvent arg0) {
                fileList.requestFocus();
                fileList.getSelectionModel().select(1);
        });2. Create custom.css fie and override the Caspian.css settings.

Similar Messages

  • Sender JDBC Adapter Select/Update Issue

    Dear All,
    We have configured a Sender JDBC Adapter to Poll data from the DB2 tables. It is working fine and both the select and the update queries written are also getting properly executed and are changing the status of the flag from Y to N once read from database.
    In the communication channel ->
    select * from <table> where flag = 'N'.
    update <table> set flag = 'Y' where flag = 'N'.
    But I have one doubt after executing the select query some new data comes into the table of status flag 'N"., then will this unselected data will also be updated to 'Y' .
    The question is while we do a select and update from XI on the DB table and at the same time there is an insert happening into the table from the other end how will the adpater behave in this case.Will it result in missing of some records during next select/update transaction from XI..
    Your inputs will be appreciated.
    Regards
    Amit

    Amit
    Did you ever get a solution to your question ?
       Sender JDBC Adapter Select/Update Issue  
    Posted: Apr 24, 2008 2:29 PM           Reply 
    Dear All,
    We have configured a Sender JDBC Adapter to Poll data from the DB2 tables. It is working fine and both the select and the update queries written are also getting properly executed and are changing the status of the flag from Y to N once read from database.
    In the communication channel ->
    select * from <table> where flag = 'N'.
    update <table> set flag = 'Y' where flag = 'N'.
    But I have one doubt after executing the select query some new data comes into the table of status flag 'N"., then will this unselected data will also be updated to 'Y' .
    The question is while we do a select and update from XI on the DB table and at the same time there is an insert happening into the table from the other end how will the adpater behave in this case.Will it result in missing of some records during next select/update transaction from XI..
    Your inputs will be appreciated.
    Regards
    Amit

  • Stop auditing select statements issued against SYS objects

    Hi,
    My current client has a requirement to track destructive updates (i.e. insert, update, delete) issued by users who can connect directly to the database. At the moment though, SELECT statements issued against SYS-owned objects are also being captured to the Oracle audit trail. For the time being at least these need to be disabled.
    I've issued NOAUDIT SELECT TABLE/SEQUENCE and NOAUDIT SELECT ANY TABLE/SEQUENCE commands, as has a user with the SYSDBA privilege, and they're still being logged. Is there any way to switch these off? I don't know if it's significant (I'm not a DBA by trade) but the audit_sys_operations parameter is set to True.
    My client is currently running Oracle Database 10.2.0.5.0 standard edition.
    If anyone has any suggestions I'd be grateful.
    Thanks in advance,
    Steve

    Hi,
    Thanks for the input so far ...
    @Eduardo and KarK ...
    show parameter audit
    audit_file_dest string D:\ORACLE\PRODUCT\10.2.0\ADMIN\USSUPM2\ADUMP
    audit_sys_operations boolean TRUE
    audit_trail string DB, EXTENDED
    If we set audit_sys_operations to FALSE, won't that stop auditing of all actions carried out by, for example, someone who connects as SYSDBA? That is something that's still needed to be captured. Unfortunately they go to the WIndows Event Log but at least they're captured somewhere.
    @Hemant
    This auditing was in place before my client took me on, so I can't say what was used to initiate it unfortunately. What I can say though is that they absolutely don't want to turn off auditing by SYS- type users, just SELECT against SYS-owned objects.
    Thinking simplistically, could I just write a script which trawls dba_objects for sys-owned tables, views and sequences and explicitly issues a noaudit select against what's found, and get one of the sysdba-type people we have access to to run it?
    Thanks in advance (again)
    Steve

  • HP 2055 Printing from selected tray issue

    Hey all,
    This is my first time posting here but i need some serious help.
    We have a networked HP 2055 printer that 3 workstations are printing to.  We have the native drivers installed on the machines, and have it selected to print tp tray 3 (the bottom) tray only as it has plain letter paper in it.  When the plain letter paper runs out it will start printing to any other tray.  I know on other HP printers you can select the printer to use the requested tray only, but we dont see that on this printer.  How can we fix this issue?
    Thanks
    Rob

    When you print from "File", "Print," select Tray 3 specifically in the driver. You probably have the paper source set to 'Automatically Select" now, in the "Paper/Quality" tab.
    Although I am an HP employee, I am speaking for myself and not for HP.

  • ADF Table with CheckBox - Select/deselect issue

    I have seen couple of threads and blogs for ADF table with check box . but none of them exactly matching with my requirement . My Database table does not have any field for check box .
    Here is my DB Table
    tableA_
    A_Id
    A_Name
    tableB*
    B_Id
    Requirements :*
    1. Display the above tables data with Checkbox . ( if A_Id = B_Id then the checkbox will be checked , else unchecked ) .
    2. Select / deselect the check box and save the data . Saving the data , will update only tableB . i,e when a new check box is selected then A_Id value will be inserted to tableB . Similarly , deselecting a checked in data will remove the entry from tableB.
    Development :
    1. Created a VO where tableB has marked as updateable .
    2. Created a transient Boolean variable for checkBox . and modified the getter method of checkbox for returning true/false based on the below condition in the ViewRowImpl Class .
    if ( A_Id = B_Id )
    return true;
    else false ;
    3. I have not modified the setter method .
    Using the above concept i can view the data with selected checkbox . but the problem is to save the data . because , when I select a checkbox the above coding in the getter method will return false .
    Therefore , though i am selecting the checkbox but value of the checkbox has been set as false .
    While saving the Data , I am iterating through the VOIterator and observed that a newly selected checkbox value is false . and realized its because of the getter method condition .
    Can you please suggest how can I overcome this issue or shall I need to take any other approach ?
    Jdev version 11.1.1.5
    Regards,
    Amitava
    Edited by: Amitava on Mar 17, 2012 3:48 PM

    You need to go through the ADF page life cycle concepts. In simple words the boolean value in the model is not set while in valueChangeListener. Try adding valueChangeEvent.getComponent().processUpdates(FacesContext.getCurrentInstance()); on top in your listener method and see the effect.
    Reference:
    http://docs.oracle.com/cd/E15051_01/web.1111/b31974/adf_lifecycle.htm

  • Path Selection Tool issues

    After reading up on some of the problems people are having with the path/shape changes in CC 2014, I haven't seen an exact mention of the problem I am having so here I am.
    2 part problem really:
    1. When using the Path Selection Tool or Direct Selection Tool, sometimes I am unable to switch to any other tool using a keyboard shortcut, regardless of isolation mode or Active/All layers toggles. I press Z or B or whatever, and nothing happens. I have to click the tool icon to get it to work. This seems to happen randomly.
    2. When using the Path Selection or Direct Selection Tool, after a few operations of moving points around, when I move to another layer to work on another shape the shape outline and the handles are not visible. When in All Layers mode, the layer is switched to the new shape as expected and the Properties panel shows details of the shape path but I can't see the outline. The only way I have found to 'fix' this is to draw a new shape or reopen the document or Photoshop itself.
    Are these 'problems' just me missing some new way of working brought into the shape tools or is it as borked as it seems?
    Thanks

    No I have been using CC for about 8 months or so. I updated to CC 2014 a couple of days ago. I have been using the shapes with no issues up till now. The changes to the shape system seemed to bring it closer to illustrator, so it was logical. A change from the past, but I thought I was up to speed with it.
    As for keystrokes to reproduce the problems I am having - that is part of the problem it seems kind of random as to when it happens.
    When working on a shape, pressing return will turn the outline on and off as expected. Pressing esc will turn it off as expected, double clicking will take it into isolation mode as expected but then sometimes, the whole outline becomes unresponsive and it isn't visible. The shape layer is selected and the layer selection changes as expected when I have All Layers mode on and I click different shapes. The path is also selected in the Path panel. It shows up in the properties window too. Clicking/double clicking the shape, return and esc make no difference. I don't get it its all happening randomly though
    Then I have the 'unable to switch tools' problem where shortcuts for different tools stop working. I have to click the tool icon to switch. Drawing a new shape brings it all back As I said in my first post, it could just be me missing something but i'm stumped. At this point i'm going to try a reinstall but I don't think it'll make much difference with something like this.
    Thanks for the reply though.

  • Html select tag issue.

    Hi All,
    I created a new project using EB3 to develop a photoshop extension. In that panel, I added the drop down box as follows,
    <body onLoad="onLoaded()">
         <select>
                <option value="">1</option>
                <option value="">2</option>
                <option value="">3</option>
                <option value="">4</option>
         </select>
    </body>
    I am seeing an issue, following are the steps to reproduce it,
    - Open the panel.
    - Click on the drop down. (Drop down opens)
    - Now loose the focus from the panel by clicking outside the panel.
    - Now click on the drop down. (Here comes the issue)
    Drop down doesn't open but it comes into the focus and when I clicked second time it will open.
    So every time when focus loosed the panel and I clicked on the drop down nothing happens on first time.
    And the strange thing is that I am seeing this issue on windows only.
    Anyone have any idea why it behave like this or is it a select tag bug in html panel?
    Thanks for any help..

    Yep, I second that. Combos take two clicks to be activated. Seems like yet another bug from a long, long list of issues with this CEP.

  • Selected state issue with Menu Module V2

    OK so I am getting an issue with Menu Module V2. I have used this before with success but this time I have hit a wall. I possed this question to BC live chat and they bugged out real quick.
    The site in construction is http://www.urbanista.com.au
    What is happening is that in the top right tools nav with the headings Home, Services, People, Contact Us using Menu Module V2. The Heading Services has a drop down and this is where the issue resides. Roll over any of these nav devices and you will see they will highlight orange. Home is already auto activating its Selcted state. Click on Contact Us and it will do the same.  Roll over and click on Services and it appears to have worked. While in Services roll over the drop down again and you will see all links have activated the Selected state. This is the issue. If you view the code of the Services UL you will see only the Services state has been alocated the Slected state. See below:
    <li id="Services" class="selected">
    <a href="/services.htm">Services</a>
    <ul>
    <li id="tools-panningdev">
    <li id="tools-housing">
    <li id="tools-urban-renewal">
    <li id="tools-project-management">
    <li id="tools-feasibility-tools">
    <li id="tools-governance-systems">
    <li id="tools-communications">
    <li id="tools-projects">
    </ul>
    </li>
    The CSS that runs the nav is as follows:
    ul.dropdown {
        font-weight: normal;
        font-family: Arial, Helvetica, sans-serif;
        font-style: normal;
        text-decoration: none;
        ul.dropdown li {
        background-color: transparent;
        color: #999;
        padding-top: 5px;
        padding-right: 10px;
        padding-bottom: 5px;
        padding-left: 10px;
        font-size: 12px;
        ul.dropdown li.hover,
        ul.dropdown li:hover {
        background-color: transparent;
        color: #FFF;
        ul.dropdown a:link,
        ul.dropdown a:visited    {
        color: #FFF;
        text-decoration: none;
        ul.dropdown a:hover        { color: #ff871f; }
        ul.dropdown a:active    {
        color: #b33b00;
        /* -- level mark -- */
        ul.dropdown ul {
        width: 150px;
        margin-top: 1px;
        background-image: url(/images/nav-transparency.png);
        background-repeat: repeat;
        color: #FFF;
        ul.dropdown ul li {
        font-weight: normal;
    ul.dropdown li.selected a {
        color: #ff871f;
    The last entry 'ul.dropdown li.selected a {color: #ff871f;}' is required in order to allocate a Slected State. Without it not Selected state is active and the links al remian white.
    I have tried all manner of combinations and additonal tags with no success. Any suggestions greatly appreciated. I have not modified the default Javascript provided by BC in the system apart from allocating the required ulTagClass as specified. The Javascript in the supplied 'container.html' is as follows:
    <script type="text/javascript" >
        // ids need to be unique per page, use different ones if you are including multiple menus in the same page
        // id of the nav tag, used above
        var divTagId = "myMenu1";
        // desired id for 1st <ul> tag
        var ulTagId = "myMenu1List";
        // desired class for 1st <ul> tag
        var ulTagClass = "dropdown dropdown-vertical";
        if ((null !== ulTagId) && ("" !== ulTagId)) {
            document.getElementById(divTagId).getElementsByTagName("ul")[0].setAttribute("id",ulTagId );
        if ((null !== ulTagClass) && ("" !== ulTagClass)) {
            document.getElementById(divTagId).getElementsByTagName("ul")[0].className = ulTagClass;
        // this will set the selected state
        if ((null !== ulTagId) && ("" !== ulTagId)) {
            catSetSelectedCSSItem(ulTagId);
    </script>
    Lastly this is one of the recomended navs by BC at the following address: http://lwis.net/free-css-drop-down-menu/
    I have used these before with success but for the life of me this has stumped me big time.

    Hi Matthew,
    Having a super quick look at the code I'd say it's because of:
    ul.dropdown li.selected a {
        color: #ff871f;
    This affects all the child elements.
    To override this down the line you could do something like:
    ul.dropdown li.selected ul li a {
        color: #fff;
    This would override the parent link color when selected.
    You could probably then also add:
    ul.dropdown li.selected ul li.selected a {
        color: #ff871f;
    For the dropdown selected states.
    That's a quick look though so don't quote me too much

  • SELECT OPTIONS ISSUE

    Hi Experts,
    I am using a select options for one field on my screen with extension which gives me an Arrow right next to the Field , now the issue is when i click on the Arrow a search help opens up for multiple selection.
    In this search help there are "FROM" and ''TO" columns , i would like to disable or make that "TO" column invisible i know it is possible in ABAP through function modules but how can it be acheived in webdynpro.
    I have gone through the "if_wd_select_options" class but couldnt find a solution for this , please lead me to the
    right approach.
    Thanks In Advance,
    Chaitanya.

    Hello Chaitanya Raju,
    You must be resusing the Select-option component WDR_SELECT_OPTIONS
    Follow below steps to create a select-options without ranges.
    I think this is only possible with dynamic handling.
    1)Acess the method: remove_all_sel_screen_items to Removes All Elements in Selection Screen.
    2)build up new screen by calling the method: ADD_SELECTION_FIELD.
    Before calling the 2nd step --> you will have to populate all the information that is required to build a select-option.
    *add select options field
      CALL METHOD wd_comp_controller->mo_so_handler->add_selection_field
        EXPORTING
          i_id                         = is_sel_op-m_id
          i_within_block               = is_sel_op-m_within_block
          i_description                = is_sel_op-m_description
          it_result                    = is_sel_op-mt_range_table
          i_obligatory                 = is_sel_op-m_obligatory
          i_value_help_id              = is_sel_op-m_value_help_id
          i_no_extension               = is_sel_op-m_no_extension
          i_no_intervals               = is_sel_op-m_no_intervals
          i_no_complex_restrictions    = is_sel_op-m_no_complex_restrictions
          i_as_checkbox                = is_sel_op-m_as_checkbox
          i_as_dropdown                = is_sel_op-m_as_dropdown
          it_value_set                 = is_sel_op-mt_value_set
          i_read_only                  = is_sel_op-m_read_only
          i_tooltip                    = is_sel_op-m_tooltip   .
    You can refer to this link for more info.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdabap/multiple%252bdynamic%252bselection%252bblocks%252bin%252bwebdynpro-abap
    Thanks,
    Bharath.K

  • Product Variation Select Box Issue

    HI all! I'm having an issue with the production variations that I have out of stock and they're still showing in the select dropdown menu. I have tried to get support on this but they're telling me that it's something to do with my template. I haven't been able to find any issue with my template though. Upon inspection of the code, I can see that the select box is being set to "display: none" When I disable this, a second select box appears next to the first select box with the correct inventory available selections. Can anyone help me figure out this issue? Thanks in advance!
    {tag_attributes} has been changed to {tag_attributes, vertical, true, false} and all out of stock variations have been disabled.
    UPDATE: On CSS style: select, .selectBox - line 504 "style.css" I forced display: inline-block and now you can see the two select boxes upon page load.
    UPDATE: For the incorrect select box that showed all the product variations despite their disabled status -  i was able to force it to display: none !important --- and it solved this issue. I would still like to know why this was happening if anyone has ideas.
    Thanks!

    Hi mattkrae34,
    What version of SpryMenubar.js are you using? You can find
    the version on the first line of the file.
    Also, do you have a sample URL we can take a look at?
    --== Kin ==--

  • SAP Query selection screen issues after ECC upgrade

    Hi all
    We have a custom query created and assigned to a custom transaction code, which after upgrade to ECC 6.0 we find that the selection screen layout is different from what was available in 4.6C system.
    All the fields required are available.
    However, the sequence of the fields on the screen is different from the 4.6C after the upgrade.
    Can anyone help identify the issue so that the issue can be resolved?
    Thanks
    Vinodh S

    Hi N_niki
    There is no resolution as such.
    We had raised a Customer message with SAP and were informed that this was expected as the procedure to execute the reports was changed in ECC when compared to 4.6 (technical changes) and hence this issue shall remain for some queries wherein the old changes need to be brought back using an option in the SAP Query.
    Please refer to SAP Note # 723577 which could provide a better explanation for the issue.
    Hope this helps.
    Thanks
    Vinodh Sudhakaran

  • Variable Selection Screen Issue in WAD

    Hi Guru's,
    I have created a Query in 3.5 and having Variables for the same as Acutal Good's Issued Date & Plant. I am able to see the variable screen with selection option(Intervals) in Query level. But I am not able to see the Variable selection option as interval in Portal (WAD). The variable is showing only as single value.
    Please suggest to get the variable selection screen as interval's.
    Regards,
    Bandi

    Hi,
    I got your point.When you open that query in Analyzer,it shows the variable screen and the variable is shown as a interval variable.But if you open the same query in Web Analyzer,the variable shown as single value variable.
    This looks little weird because both Web and BEx Analyzer uses the same Query.Can you execute the query in RSRT Tcode and check how the variable shown(whether as a Single or interval variable).
    And also check the variable definition.Try to create a new variable with the same settings and check the behavior.
    Rgds,
    Murali

  • Dynamic Selection Button issue

    Hi All,
    I am working on a ZReport which has a requirement to be added with a dynamic selection button. This Button should be same as AR01 transaction.
    I have added the ADA logical database and also the NODES inside the program. I got the button on selection screen of ZReport.
    But its not behaving as required. Suppose I am selecting the Time-Dependent Data -> Tax Jurisdiction as 'NZ'. Then the report has to selection only for NZ(Newz ealand). But in my report it is not even pickingup this value (NZ) and it returns for all the countries.
    I tried to debug but couldnt find anything.  How can I track this field?
    Can you please tell me how can I fix this issue.
    Thanks.

    don't forget to put a GET event for each node used in dynamic selections
    and inside this event, put statement: CHECK SELECT-OPTIONS.

  • Table control: Line selection single issue

    Hi experts,
    I have created a table control and in the screen painter I have defined the line selection as "Single" for table control.
    The table control can display upto 20 lines in a screen and i can select a single record only which pertains to my requirement. if I try to select two records it will not allow.
    Issue: consider  i select a single record from the first 20 lines displayed in screen, then i scroll the records in the table control so that it displays the records from 21 to 40. if I select a single record now from line 21 to 40, the first record that i selected is not getting deselected. That is, totally two lines are getting selected.
    How to overcome this issue
    Thanks in advance
    Regards
    Anand

    Ok
    The "problem" is here:
    Types: Begin of ty_ic,
      ic(20),
      desc(20),
      sel(1)                                 <--------------------------------
    End of ty_ic.
    You've ha a field for selected line and that field is used in table control definition as you've written:
    "Note: wa_ic is the structure used in table control and wa_ic-sel is the mark field defined the table control attributes"
    So you're using the structure WA_IC as header line of internal table IT_IC and also as input/put field of your table control (I mean the screen fields of table control are based on WA_IC).
    You don't need any code in PBO to move the data from internal table to table control, because the headerline of IT_IC and field of table control are the same, infact you've implemented only the code in PAI to save the data from table control to IT_IC:
    Loop at it_ic.
    Modify it_ic from wa_ic index tc_ic-current_line
    Endloop
    t's a good solution if it needs to transfer all data to table control automatically: it doesn't need any code in PBO
    but, of course, there'll be a problem when you don't need to display something, in this case you have to think a solution, I mean you have to write a code in order to avoid to display those data.
    It's the case of the selected line: in your situation all selected lines keep the selection, because the code to clear IT_IC-SEL is missing: only the user can deselect a line, but if he doesn't do it, the line will remain selected after navigation.
    So you make to be sure to clear all selected lines are not displayed.
    You need to create a code in PAI out of the loop of table control where you clear the flag SEL, in order to do it you need to consider:
    - The index of the first record displayed in table control is stored in field TC_IC-TOP_LINE
    - The index of the last record displayed in table control can be calculated: the variable SY-LOOPC indicates how many rows can be displayed in table control, so the last record will be: TC_IC-TOP_LINE + SY-LOOPC.
    So you need to clear the field SEL for all records not displayed, a code like this:
    PROCESS PAI.
      LOOP AT IT_IC.
         MODULE GET_LOOPC.
      ENDLOOP.
      MODULE CLEAR_SEL.
      MODULE GET_LOOPC..
          TOT_LINE_DISPLAYED = SY-LOOPC.
      ENDMODULE
      MODULE CLEAR_SEL.
    * Here you need to clear the selection of the records before of TOP_LINE
           IF TC_IC-TOP_LINE > 1.
              LOOP AT IT_IC INTO WA_IC  TO TC_IC-TOP_LINE.
                 CLEAR WA_IC-SEL.
                 MODIFY IT_IC FROM WA_IC.
              ENDLOOP.
         ENDIF.
    * Here you need to clear the selection of the records after the last one:
          LAST_INDEX = TOT_LINE_DISPLAYED + TC_IC-TOP_LINE.
         DESCRIBE TABLE IT_IC LINES SY-TABIX,
         IF SY-TABIX > LAST_INDEX.
              LOOP AT IT_IC INTO WA_IC  FROM LAST_INDEX.
                 CLEAR WA_IC-SEL.
                 MODIFY IT_IC FROM WA_IC.
              ENDLOOP.
         ENDIF.
      ENDMODULE.

  • Multi selecter prompt issue

    Hi All,
    **Below issue i faced in OBIEE 10.1.3.2** but
    In my Dashboard page i have created a Multiselecter Prompt and i have selected more than one values in prompt.
    While exporting the dashboard page into PDF format the PDF showing only one value from Prompt instead of all values.
    Example:
    i have COUNTRY Prompt(multi Selested Prompt).
    User selected two countries country1,country2 while exporting dashboard page into PDF format.
    PDf showing only one value.
    Thanks Advance

    Now, i got your question...
    I had the same issue, in my previous project... i found that issue is because of: some special character values it's containing.
    I written Logical SQL for prompt: (try these SQLs)
    SELECT DISTINCT Table.ColumnName FROM SubjectArea WHERE Table.ColumnName not null
    OR
    SELECT DISTINCT Table.ColumnName FROM SubjectArea WHERE Table.ColumnName not in (' ')

Maybe you are looking for