Get clicked column header not working

Here's what I'm trying to do:
Have a multi-column listbox of elements.  Allow the user to select a few rows he is interrested in (and the become highlighted).  Allow sorting of the listbox by clicking on the column headers.
I've got the listbox populating fine, if nothing is selected, the sorting works fine (event structure based on mouseup event of the multi-column listbox, calling to the "get clicked column header" invoke node method sorts the data.  The part that is not working is that If the user has elements selected, sorts the listbox, the same elements are selected (not the same rows, but those same elements in whatever row they ended up after being sorted). 
What happens is if I select a few rows in the listbox (listbox configured for 0-N elements selectable, highlight entire row), and then click on the column header, the event structure fires off a value change event for the listbox and changes to no elements selected.  if I then click the column header again, it fires off the mouse up event and I get the sorting, but now none of the rows are selected.  Weird thing is that first time I click the column header and it fires the value change event, a call into get clickced column header returns negative value so it won't tell me which column header the user clicked to "empty" the selection.
Bugger!!!!  doesn't work how I want it to.
Funny thing is if I change the listbox over to a 1-N elements selectable, and then select a few rows, and then click on the column header, the event structure fires off the mouse up event and I get the sorting and re-selecting exactly as I would expect. 
What's the deal here?? is this a bug, or expected behavior.  If it's expected, it would be nice if it were a little more consistent between the different types of listboxes.  Also, any good suggestions as to how to allow users to have 0-N selected elements, and be able to sort the listbox and keep the selected rows selected?

Sounds annoying.  Here is a variation of my goto method for these types of problems:
Use the MouseDown? event to catch important info like the old value.
Restore the old value at the end of the Mouse Up event.
Some details, like making sure that the down and up clicks are in the same cell.
Use Defer Updates to prevent flashing.
One of many kluges I have around for the MC Listbox....
Attachments:
MCListboxKluge.vi ‏20 KB

Similar Messages

  • ALV - set_text in column header not working (or I'm doing something wrong)

    In the WDDOINIT module of my view that contains the ALV, I have the code:
    method wddoinit .
      data: l_ref_cmp_usage type ref to if_wd_component_usage,
            lr_column        type ref to cl_salv_wd_column,
            lr_column_header type ref to cl_salv_wd_column_header.
      l_ref_cmp_usage = wd_this->wd_cpuse_alv( ).
      if l_ref_cmp_usage->has_active_component( ) is initial.
        l_ref_cmp_usage->create_component( ).
      endif.
      data: l_ref_interfacecontroller type ref to iwci_salv_wd_table .
      l_ref_interfacecontroller =   wd_this->wd_cpifc_alv( ).
      data: l_value type ref to cl_salv_wd_config_table.
      l_value = l_ref_interfacecontroller->get_model( ).
      lr_column = l_value->if_salv_wd_column_settings~get_column( 'LASTDATE' ).
      lr_column_header = lr_column->get_header( ).
      data: l_column_text type string.
      l_column_text = 'Must Change By'.
      lr_column_header->set_text( l_column_text ).
    endmethod.
    The text in the column header does not change.  It uses what is in the dictionary.

    Try setting the set_ddic_binding_field( '00' ).

  • Checkbox in a datagrid column header not working properly

    Hi,
    I have rendered a checkbox in the header of a datagrid column
    using headerRenderer property. That column also has all entries as
    checkboxes. What I want to do is that on checking the header
    checkbox, all checkboxes should get checked. Though I am able to do
    this BUT the header checkbox remains uncheched in the whole
    process! Whereas, if I remove this eventHandler from it, then the
    header checkbox shows the correct state i.e., show checked on
    checking & unchecked on unchecking!
    Any input?
    Thanks in advance,
    Cheree

    hi many thanks for looking at my problem
    what i am trying to do is show a column if the proc_id is greater than 2
    it just looks a bit silly when a user configures the file (but not submitted it for loading)
    the file cnt is null or zero - i had hoped not to show this - the proc_id is found from the report query !

  • In SSRS , after exporting report in excel,wrap text property for cell and freeze column for SSRS table header not working in Excel

    I am working no one SSRS my table headers are freeze cangrow property is false and my report is working perfect while rendering data on RDL and i want same report after exporting in Excel also , i want my table header to be freeze and wrap text property
    to work after exporting in my report in excel but its not working ,is there any solution ? any patch ? any other XML code for different rendering ? 

    Hi Amol,
    According to your description, you find the wrap text property and fix column is not working after exporting into Excel. Right?
    In Reporting Services, when exporting to excel file, it has limitation for textbox.
    Text boxes are rendered within one Excel cell. Font size, font face, decoration, and font style are the only formatting that is supported on individual text within an Excel cell.
    Excel adds a default padding of approximately 3.75 points to the left and right sides of cells. If a text box’s padding settings are less than 3.75 points and is just barely wide enough to accommodate the text, the text may wrap in Excel.
    In this scenario, it supposed to be wrap text unless you merge cells. If cells are merged, word-wrap does not work correctly. If any merged cells exist on a row where a text box is rendered with the
    AutoSize property, autosize will not work. For the Fix Data Property, it can't be working in Excel. These are features when exporting to Excel. We can't change it because it's by design.
    Reference:
    Exporting to Microsoft Excel (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • My ipod nano click wheel will not work - Ipod works when docked on mobile speakers from remote control

    My ipos Nano click wheel will not work, however when it is docked on mobile speakers it will work from the remote control.

    If it continues to malfunction after a restore, it's probably bad hardware.
    I'd recommend making a Genius Bar appointment. They'll probably give you a couple options: Replace it with an identical model for a discounted price, or trade it in for recycling and get 10% off a new iPod.

  • 20GB click wheel iPod not working- or showing up on computer

    My wife's late-2003 20GB click wheel is not working or appearing on either of our Mac computers (either in iTunes or Disk Utility) when attached.
    It's making a rather worrying sound (as if trying to engage a hard drive maybe?) and will briefly flash the Exclamation Point/Folder icon, then say Disk Mode and a checkmark and ready to disconnect.
    Since it's impossible to find the iPod Updater software how do I restore this iPod- or even just get it out of disk mode? I've tried resetting it and had it plugged into a wall outlet for a day or so to make sure it wasn't a dead battery... any thoughts?
    It had been working fine (and regularly connected to the computer to update).

    You could try to format the iPod in Windows. It does the same thing as restoring and you would need to restore the iPod as normal (using the iPod updater) afterward. This can work when the iPod is recognized by the computer, but not by the updater.
    First, put the iPod into forced disk mode.
    See: How to put the iPod into disk mode.
    On your PC, go "my computer" and right click on the iPod, then choose "format". Ensure the settings are at "default" and that "quick format" is not checked. Now select "format". When that's finished, restore the iPod using the updater.

  • Formula Columns are not working in Reports 10g

    Hi,
    We converted the reports developed in Reports 6i to Reports 10g. When we run the report in Reports 10g Builder everything works fine. But when we deploy the same report in Oracle Application Server and invoking the report the formula columns are not working ie., the fields/ placeholder columns which are based on the formula column are not displaying any values in the report.
    Please, someone help us in this regard.
    Thanks & Rgds,
    M T

    What version of Reports do you use..???
    Greetings...

  • I-pod nano click wheel does not work help!

    Hi,
    My i-pod nano 1st gen click wheel will not work i have tried restoring,restarting and all the 5 r's but still nothing has happened... there has to be a solution out there somewhere o yea i have also tried taking out the gunk in the click wheel but nothing HELP!

    Version in the nano is 1.1; iTunes is 6.0.4.2.
    This silly thing "healed itself" the next morning (?!), worked fine for two days, and decided to show the same symptoms this evening, then began working fine again.
    Whether it is working or not I can feel the click of the wheel but unit shows no response when the problem is manifesting. So if I am having the problem I can press the wheel any which way for as long as I like and nothing happens -- screen does not light up, unit doesn't scroll, play/pause gives no response, etc.
    HP laptop Windows XP

  • Click wheel is not working

    My click wheel is not working, but the menu, play/pause, arrows and select (center) buttons are working. I've done everything this website says to correct, and it's not working. Can anyone help?? I use this Ipod at work, and I am in deep trouble if I don't have a working one right now.

    I've done everything this website says to correct, and it's not working.
    Then it's time to call iPod tech support - U.S. iPod and Mac technical support: 1-800-APL-CARE (1-800-275-2273) or try some of the suggestions mentioned in the iPod Nano 5th Gen. User Manual (direct PDF download)

  • The click wheel is not working

    my click wheel is not working, i cannot select my music because i cant change it..... can you guys help me !!!!!!!!!!

    hey and whops about dropping your ipod...
    heres what i think but im not an ipod know it all so what i say might not help but any way...
    And it connected and updated and everything was okay, instead of the Click wheel control!
    well this sound okay so it probly isnt anything to do with the hard drive if it is updating ect...
    I think it would have to do with the fact that the hold lock was on... have you tried jigling the hold switch back and forward a bit? that often helps...other wise i think you should take it to an apple store and see what they can do.
    Hope it fixes

  • Send to bluetooth right click option DOES NOT WORK

    hi guys can you help me send to bluetooth right click option does not work!when i am going to send something it says windows cannot access the specified device,path or file you may not have the appropriate permissions to access the item please help me!i
    have windows 8

    this is how we send file using Bluetooth
    http://superuser.com/questions/540498/open-bluetooth-file-transfer-wizard-in-windows-8
    Did you pair this 2 device before?
    May I know the destination device? its comes with WIFI?
    tips: rather than Bluetooth, I suggest you using file sharing with WIFI, its more faster

  • I am getting frustrated with Apple not working with Flash player on some of my favorite web sites. Is there any alternative that will work on I-pad instead of flash?

    I am getting frustrated with Apple not working with Flash Player on some of my favorite web sites! Is there another alternative to watching these site options on my I-pad?

    Flash is not, and probably never will be, supported on the iPad : http://www.apple.com/hotnews/thoughts-on-flash/ . Plus it would be up to Adobe to make a version of their flash player that works on iOS devices - something which they have never managed to do and which they have now given up on trying to do.
    Browser apps such as Skyfire, iSwifter and Puffin 'work' on some sites, but judging by their reviews not all sites. Also some websites, especially news sites, have their own apps in the App Store, so your could try checking there for your sites (and there is the built-in YouTube app).

  • Click to call not working with Firefox 31 in Windo...

    Hello All,
    I have a problem with Click to Call in my new computer.
    Windows 8.1
    Skype 6.20.0.104
    Click to call 7.3.16540.9015
    Firefox 31
    Click to Call not working with Firefox.
    With IE11 it ok.
    When I directly copy the URL "skype:+48xxxxxxxxx?call"  into address field of my Firefox, then automatically opening Skype with only 1 window- contacts, but not opened window with call phone, and not started to call.
    When I do this same in IE11 , Skype opened 2 windows ( contacts and call phone) and start call to phone number.
    I don't know why. because in my second computer ( this same Firefox, Skype, click to call) but Windows 7, Click to Call working with Firefox.
    Please help me.
    Maybe someone have a solution ?
    Best Regards
    Jarek
    ps. Sorry for my english

    Sounds that you have installed a Firefox Beta release and thus are on the beta update channel, see Help > About.<br />
    The Beta update channel receives an update twice a week.
    You need to install the current release to switch the update channel to release.
    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 27: http://www.mozilla.org/en-US/firefox/all.html
    If possible uninstall your current Firefox version to cleanup the Windows registry and settings in security software.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you lose personal data like bookmarks and passwords from profiles of other Firefox versions.
    Your bookmarks and other personal data are stored in the Firefox profile folder and won't be affected by an uninstall and (re)install, but make sure that "remove personal data" is NOT selected when you uninstall Firefox.

  • Link Action in datatable header not working!!!

    hi all
    i want to sort the datatable rows when link in the header of a column in datatable is clicked. I am using Sun Creator but it doesnot provide functinality to directly add link action in header. So i changed the jsp page to add the following code
    <h:dataTable binding="#{SearchResults.dataTable1}" headerClass="list-header" id="dataTable1" rowClasses="list-row-even,list-row-odd" style="left: 24px; top: 24px; position: absolute" value="#{SearchPage.searchResultsDataModel}" var="currentRow">
    <h:column binding="#{SearchResults.column1}" id="column1">
    <f:facet name="header">
    <h:commandLink action="#SearchResults.linkActionApplicantIDHeader_action}"
    binding="#{SearchResults.linkActionApplicantIDHeader}" id="linkActionApplicantIDHeader">
    <h:outputText binding="#{SearchResults.linkActionApplicantIDHeaderText}" id="linkActionApplicantIDHeaderText" value="Applicant ID"/>
    </h:commandLink>
    </f:facet>
    </h:column>................... other columns of table(bold is what i added )
    if i check through the IDE application outline window that which action handler is associated with my header link action, it takes me to proper method. but while running it doesnot go to the proper method and hence doennot fire the event.
    what should i do??
    plz help
    thanks

    hi all
    i want to sort the datatable rows when link in the
    header of a column in datatable is clicked. I am
    using Sun Creator but it doesnot provide functinality
    to directly add link action in header. So i changed
    the jsp page to add the following code
    <h:dataTable binding="#{SearchResults.dataTable1}"
    " headerClass="list-header" id="dataTable1"
    rowClasses="list-row-even,list-row-odd" style="left:
    24px; top: 24px; position: absolute"
    value="#{SearchPage.searchResultsDataModel}"
    var="currentRow">
    <h:column binding="#{SearchResults.column1}"
    id="column1">
    <f:facet name="header">
    <h:commandLink
    action="#SearchResults.linkActionApplicantIDHeader_act
    ion}"
    binding="#{SearchResults.linkActionApplicantIDHeader}
    " id="linkActionApplicantIDHeader">
    <h:outputText
    binding="#{SearchResults.linkActionApplicantIDHeaderTe
    xt}" id="linkActionApplicantIDHeaderText"
    value="Applicant ID"/>
    </h:commandLink>
    </f:facet>
    </h:column>................... other columns of table(bold is
    what i added )
    if i check through the IDE application outline window
    that which action handler is associated with my
    header link action, it takes me to proper method. but
    while running it doesnot go to the proper method and
    hence doennot fire the event.
    what should i do??
    plz help
    thanksI had a similar problem w/ links in a datatable that didn't work. I had to do two things:
    1. Initialize the SearchPage.searchResultsDataModel property in the constructor of the bean (this is because I use request scope).
    2. Remove the rendered property from the surround h:panelGroup tag that I have around my table. I haven't been able to get the rendered property to work with the datatable links.
    Hope this helps!

  • BUG: Dynamic report column headings not working with some templates

    Using Apex 2.0, we are trying to create a vertical report with dynamic labels like &P26_REF_RECEIVED_DATE_L. based on items populated by PL/SQL.
    This seems to work fine for some templates but not for others. With a horizontal report template we get output like:
    <th class="t4ReportHeader" id="REF_RECEIVED_DATE">Received</th>
    <td  headers="Received" class="t4data">29-MAR-2007</td>But with the vertical template we get:
    <th>&P26_REF_RECEIVED_DATE_L.</th><td>29-MAR-2007</td>Also, if we use "default: vertical report, look 1" we see "&P26_REF_RECEIVED_DATE_L." in the output, but with "default: vertical report, look 2" we see "Received".
    Message was edited by:
    Tony Andrews

    have you checked that your report template has a
    valid value for the "Column Heading Template"
    property?This template has nothing in the "Column Heading Template" because it is designed to show the data in this form:
    Heading1 - Value1
    Heading2 - Value2
    Heading3 - Value3
    Hence both the heading and the data appear in the "Column Template 1" property as follows:
    <tr><th class="t3header">#COLUMN_HEADER#</th><td class="t3data">#COLUMN_VALUE#</td></tr>
    Maybe it is an Apex limitation that the #COLUMN_HEADER# value can't be accessed from this subtemplate? Yet somehow it works with "default: vertical report, look 2" (which I realise isn't a template as such).

Maybe you are looking for