Working with 2 list boxes in a tableview

Hai Friends,
I have a table view in which the first column is a dropdown listbox and second column is also another dropdown list box.
Case1: I am working with first row of the tableview
I am selecting a value say 'Q' in the the first dropdown and its corresponding values say (Q1,Q2,Q3.....) which has to be populated in the second dropdown of the same row.
Case2: I am working with second row of the tableview.
I am selecting another value say 'D' in the the first dropdown and its corresponding values say (D1,D2,D3.....) which has to be populated in the second dropdown of the same row.
I am now coming to the problem that i am facing now.
Note: i have selected Q in the first row and its corresponding values is Q1,Q2....!
When i am selecting 'D' in the second row ( D1,D2,D3...) i am getting D1,D2,D3 in the second dropdown <b>in both rows</b>.
Actually i have to keep Q and corresponding values Q1,Q2... in the first row as i have selected 'Q' in the first row allready. when i am selecting another value value D in second row , first row values should be kept as such with Q and corresponding values Q1,Q2....., and second row should be D with D1,D2,D3.....
Now i am getting
Q                              D1,D2,D3
D                              D1,D2,D3
Actually it should be
Q                               Q1,Q2,Q3
D                               D1,D2,D3
Problem i am facing is in the iterator class method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START
when 'secondfield'.
Here i am getting values from cookie that i have set in the do_handle_event of the controller.
Given, code that i have written in iterator class method.
WHEN 'ETYSHT'.
**************dropdownlist box**************************************
IF p_edit_mode IS not INITIAL.
        DATA: etysht TYPE string.
        etysht = m_row_ref->etysht.
        p_replacement_bee = cl_htmlb_textview=>factory( text = etysht ).
        dropdownlistbox = cl_htmlb_dropdownlistbox=>factory( id = p_cell_id ).
        CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
          EXPORTING
            name                  = 'COURSEGROUP_TO_COURSETYPE'
            application_namespace = application_namespace
            application_name      = application_name
            username              = sy-uname
            session_id            = session_id
            data_name             = 'COURSEGROUP_TO_COURSETYPE'
          CHANGING
            data_value            = itl_cstypenew.
        GET REFERENCE OF itl_cstypenew INTO m_locid_ref.
        dropdownlistbox->table     = m_locid_ref.
        dropdownlistbox->nameofkeycolumn   = 'ETYID'.
        dropdownlistbox->nameofvaluecolumn = 'ETYSHT'.
        dropdownlistbox->selection = m_row_ref->etyid.
        dropdownlistbox->onselect          = 'click'.
        p_replacement_bee = dropdownlistbox.
      ENDIF.
Looking forward for your valuable suggestion.
Thanks & Regards,
Renju.

Hi Renju,
I see that you retrieving your drop down values from a cookie but I do not see any code where you are actually selecting the data that you need for second drop down box...
I mean when Q is selected in the first row...you should be reading only values related to Q in the firs dropdown and then popualte them. Similarly when user is on the second row and selecting D - the you should read values realting to D only (in this case D1, D2, D3). This should help you in keeping the values of the first row and second row as expected. Let me know if this works.
Cheers

Similar Messages

  • Tooltips don't work with list items?

    Hi
    I have a list item (I've tried with both combo and poplist), I've set the tooltip and the tooltip doesn't get displayed. I tried setting the tooltip on a normal text item control for comparison and that displays the tooltip. Do tooltips not work on list items?
    Marc

    It's work in 10gR2.
    It's not work with Combo Box!
    Could be a problem about what JRE you are working? Jinitiator or Sun JRE.
    Try your test on it
    Regards

  • UI not getting change update when working with LIST and INotifyPropertyChanged

    i was trying to know two way data binding. i have simple car class which extend INotifyPropertyChanged for notify the change to update UI. bind List object to few textboxes and notice when one textbox value change then other textbox value not updated. all
    textboxes bind to same property. so one's value change should propagate to other textboxes.
    this is my code
    public class Car : INotifyPropertyChanged
    private string _make;
    private string _model;
    private int _year;
    public event PropertyChangedEventHandler PropertyChanged;
    public Car(string make, string model, int year)
    _make = make;
    _model = model;
    _year = year;
    public string Make
    get { return _make; }
    set
    _make = value;
    this.NotifyPropertyChanged("Make");
    public string Model
    get { return _model; }
    set
    _model = value;
    this.NotifyPropertyChanged("Model");
    public int Year
    get { return _year; }
    set
    _year = value;
    this.NotifyPropertyChanged("Year");
    private void NotifyPropertyChanged(string name)
    if (PropertyChanged != null)
    PropertyChanged(this, new PropertyChangedEventArgs(name));
    This way i bind
    Car carTest;
    private void Form1_Load(object sender, EventArgs e)
    carTest = new Car("Ford", "Mustang", 1967);
    List<Car> ol = new List<Car>();
    ol.Add(carTest);
    this.textBox1.DataBindings.Add("Text", ol, "Make", true, DataSourceUpdateMode.OnPropertyChanged);
    this.textBox2.DataBindings.Add("Text", ol, "Make", true, DataSourceUpdateMode.OnPropertyChanged);
    this.textBox3.DataBindings.Add("Text", ol, "Make");
    when run the code then Ford was showing as make name but when change value in any textbox then that change is not shown in other textboxes.
    the moment i change this line List<Car> ol = new List<Car>(); to
    BindingList<Car> ol = new BindingList<Car>(); then code started to work fine.
    My Question
    1) what is the difference between List and BindingList class ?
    2) can't we use List<> for my situation instead of BindingList
    3)
    this.textBox2.DataBindings.Add("Text", ol, "Make", true, DataSourceUpdateMode.OnPropertyChanged);
    this.textBox3.DataBindings.Add("Text", ol, "Make");
    see the above code and tell me what is the advantage of using DataSourceUpdateMode.OnPropertyChanged because i have seen if we do not use this code
    DataSourceUpdateMode.OnPropertyChanged then also data change is propagated to other textbox when cursor focus change.

    I would have thought that'd work with List<t>, in fact I think there must be something wrong in your code there.  I can't spot it though.
    I recommend use of ObservableCollection rather than BindingList.
    The default on bindings is that changes are propagated from the target ( view ) to source ( vm ) when the control loses focus.
    If you want to do the equivalent to a keydown event handler in a viewmodel then onpropertychanged is the way to go.
    You want to avoid creating bindings in code unless you really really have to, it's way easier to put them in xaml.
    Even if your ui is dynamic, you can build xaml and use that to create the ui objects:
    http://social.technet.microsoft.com/wiki/contents/articles/28797.aspx
    The difference between BindingList and List is, literally, iBindingList.
    See
    https://msdn.microsoft.com/en-us/library/system.componentmodel.ibindinglist%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
    What probably isn't very obvious is that BindingList fires an event - iirc  itemchanged when properties on objects in it change.
    Maybe you did something wrong in your implementation of inotifypropertychanged.  I must admit, I can't see anything there though.
    You don't really need those magic strings since .net4.5 and you also don't need to explicitly implement inotifypropertychanged you could use:
    public event PropertyChangedEventHandler PropertyChanged;
    public void RaisePropertyChanged([CallerMemberName] String propertyName = "")
    if (PropertyChanged != null)
    PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
    As used in this:
    https://gallery.technet.microsoft.com/WPF-Dynamic-Fonts-ad3741ca
    If you try that sample you can have:
    public class FontDetails : INotifyPropertyChanged
    or
    public class FontDetails
    And you can see it still notifies change successfully to both windows.
    Most wpf devs will use observablecollection rather than List or bindinglist.
    Observablecollection notifies addition or removal of entries.  It can be used to notify an entry has changed, but does not detect change of property.  You would have to raise the event in code if you want to tell it an item changed.
    Hope that helps.
    Technet articles: Uneventful MVVM;
    All my Technet Articles

  • Need help getting Apple Extreme to work with Be box

    Anyone able to give an idiots guide to getting Apple Extreme to work with Be Box wireless modem?
    Used to have Orange (Wanadoo) broadband with Livebox wireless router, which i had my AE wired up to and it worked fine. Signed up with Be* and managed to get their wireless router working and communicating with my Mac OK. When i hooked up AE the green light came on but i can't manage to get my Mac to find it.
    Any help would be very appreciated.
    Thanks.

    Hello Orang Hutan. Welcome to the Apple Discussions!
    What is your connectivity goal for the 802.11n AirPort Extreme Base Station (AEBSn)?
    o Connect it directly to the Be Box wireless router via Ethernet, or
    o Connect it wirelessly to the Be Box's wireless network?
    If it is to go the wireless route, do you want the AEBSn to extend the wireless range of the Be Box?

  • Process on value request doesn't work with drop box

    Hi all,
    I'm trying using a drop box.
    It's possible using a POV module with this field?
    I try but it isn't work.
    I try with another field (simple input field) and it works correctly.
    Thanks
    enzo

    F4 does not work for a Drop down list.
        The attribute "Dropdown" is only relevant for intput/output fields. It
        defines whether the input/output is displayed as a box, and in what form
        it is displayed.
        The following values are possible:
        o   SPACE    No box
                Display as normal input/output field
        o   L        List box
                Display as a list box that shows a short description text.
                No direct inputs allowed; only selection through a dropdown list is possible.
        o   K        List box with key
                Display as a list box that shows both the keys and the description texts.
                No direct inputs allowed; only selection through a dropdown list is possible.
    Regards
    - Gopi
    Message was edited by: Gopi Narendra

  • Update db with list box

    I am using JDeveloper 10.1.2 with jsp/struts/adf.
    I am using the table (repair) used contains a column(rOrder) that is used for ordering the records sequentially.
    Created a jsp page containing a data bound list box displaying 10 items from the repair table and sorted by the rOrder column.
    Need to reorder the items in the list box and then update the db with the new order.
    Is there an example or how to that would provide assistance or a better method to accomplish the task.
    Thanks
    jeb

    hi.
    just check like this.
    select f1 f2 from ztable into corresponding field of itab
    where condition.
    loop at itab into wa_itab where f1 ne 0. " suppose f1 is field which u want to modify
      wa_itab-f1 = 0.
    modify itab from wa_itab index sy-tabix.
    endloop.
    Edited by: tahir naqqash on Feb 11, 2009 6:53 PM
    Edited by: tahir naqqash on Feb 11, 2009 6:53 PM

  • Zoom Area Doesnt Work with Highlight Boxes, Etc...

    Hi,
    I recently upgraded to Captivate 6 from version 5. I've noticed the the Zoom Area does not work in the Preview Mode with video recordings or with Highlight Boxes. The area will zoom, but any actions that are happening behind the Zoom Area box will not show. The Hihglight Boxes will appear but will not exit. Is this a known bug? It makes the Zoom Area worthless.
    Any assistance is appreciated.
    PC Specs:
    Windows 7 (32 bit) - SP1
    Dell Optiplex 780
    Processor- Intel Duo E7500 @ 2.93 GHz/ 2.93Ghz
    4 GB RAM
    Thanks

    Are you looking for Zoom Area to display the action you showcased while recording?
    I thing it would zoom the static content from the stage that you plan to zoom.
    Can you check the Highlight box properties and their palcement, do they not work standalone or in co-ordination with Zoom?

  • Problem with list box in table control (Module pool) .

    Hi,
    I'm facing a problem while populating values in List Box..
    While I'm clicking a value from the list box it is not being hold in that box...box got blanked.
    Please help me to solve this.

    process before output.
    module pop_drop_down.
    module pop_drop_down output.
      name1 = 'IO5'.
      REFRESH list1.
      LOOP AT it_zpoitshead INTO wa_zpoitshead.
        value1-key = wa_zpoitshead-createdt.
        value1-key = wa_zpoitshead-its_ebeln.
        APPEND value1 to list1.
      ENDLOOP.
      CLEAR value1.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id                    = name1
          values                = list1
       EXCEPTIONS
         ID_ILLEGAL_NAME       = 1
         OTHERS                = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    endmodule.                 " pop_drop_down  OUTPUT

  • Re: XR2 remote stops working with X1 Box - getting beyond "reset the box" a

    Having the same issue. Doesn't appear that there has been a fix. I tried to pair it with my box, per the instructions on the back of the remote, and nothing happened on the screen. After a hard reboot of the box, the remote works fine once again.

    cdtravers wrote:
    Having the same issue. Doesn't appear that there has been a fix. I tried to pair it with my box, per the instructions on the back of the remote, and nothing happened on the screen. After a hard reboot of the box, the remote works fine once again.Is the remote paired? http://customer.comcast.com/help-and-support/cable-tv/remote-program-the-xr2-or-xr5-to-aim-anywhere/

  • Multiple Selection not working on List Box Properties/Option Screen

    When I select multiple selection on the List Box Properties/Options tab, I get no difference from the single selection default. It still highlights only the last of the multiple entries (like a single selection) and displays only the last entry. Is there something else I need to do?
    Thanks for your help.

    To select multiple items, you need to hold down the Ctrl key when clicking additional items.

  • Newby would appreciate help with List Box

    HI all,
    In the process of designing a simple form that has a list box containing multiple salary designations.
    For each of those designations eg Accountant, Accounts Payable supervisor, I have specified an item value in the Binding tab which happens to be the salary of the position
    What I would like to happen is that when a selection is made in the list box i.e. operator selects say Accountant, the item value (in this case the salary) populates another field which is used later for costing calculations.
    Help unfortunately is not all that helpfull so would appreciate any assistance you might be able to provide and thanks in anticipation  

    For example to populate a NumericField1 on the form when the selection was made in ListBox1, you need to use some thing like this.
    Place the code in the Exit event of the ListBox. Language is JavaScript.
         NumericField1.rawValue = ListBox1.rawValue;
    rawValue will give the value that was assigned in the Binding tab.
    Hope this helps.
    Thanks
    Srini

  • 1820M digital inputs don't work with cable box, receiver digital outputs?

    I just installed an 1820M on an XP-Pro machine (AMD 3800+ X2). Downloaded the optical and coax loopback tests and they work fine. But I can't get it to take digital input from either my Comcast HD-DVR or my Denon AVR-1907 receiver. I know the Comcast DVR digital outputs work - they worked with my receiver and with my old Logitech 5300s.
    I've tried everything I can think of:
    - take external sync from S/PDIF
    - set the optical to ADAT so it doesn't mess up the coax s/pdif input
    This seems like such an obvious application. Has anyone gotten it to work?
    Thanks

    This is my point - the currently active channel does not produce sound through its multiple outputs unless Logic is playing.
    So, for example, if I am auditioning different drum grooves from RMX through the multiple outputs (for the purpose of putting effects/processors on the outputs in Logic) this only works when Logic is playing.
    Or if, in BFD, I have the direct Snare coming out of one output into an aux, and then a direct Kick coming out and output into another aux, I cannot hear them unless Logic is playing - I can only hear the ambient mic's as these are mapped to Outputs 1-2 which are the initial track you set the multiple output AU up on.
    If none of this is something you tend to do, I guess it's hard to understand!
    Thanks,
    Alex.

  • Working with List, Collection or Map

    Hello everyone,
    I have the following situation: I must add some values to a List, Collection or Map, and then retrieve them do put them in a combo box. My doubt is: which of them I should use?
    I wanna add a string working as an index and another working as a description. Like this:
    - "First string", "Hey here's my first string"
    - "String 2", "number 2 now"
    So, when I add it to the combo (which is actually a html:select), I wanna show the description and get the value.
    Which of them should I use?

    public Map getAtributosColecao(){
    Map mapa = null;
    mapa.put("colecao","Cole��o");
    mapa.put("descricao","Descri��o");
    return mapa;
    }is it correct? 'cause when I call it from another
    class, I get a nullPointerException...Of course you get that exception.
    Map mapa = null;Ok, mapa is null here.
    mapa.put("colecao","Cole��o");Duh?

  • HDMI switch doesn't work with X1 box but fine with DVD player

    I bought a HDMI switch and with both cable box and dvd plugged in, the Dvd player works fine but the X1 DVR box doesn't work at all, only a bright orange screen comes up, not even a messge that says no signal. Any suggestions?

    greatbuys4less wrote:
    I bought a HDMI switch and with both cable box and dvd plugged in, the Dvd player works fine but the X1 DVR box doesn't work at all, only a bright orange screen comes up, not even a messge that says no signal. Any suggestions?X1 is highly dependant on the HDMI signal ....   what is the make/model of the HDMI switch you are using?

  • I want to toggle Movie Symbols with List boxes

    For some reason I cant seem to use remove.clip to turn off a
    movie symbol. I dont think I am setting this up correctly, it is an
    easy task I am trying to acomplish. basically I have 3 movie
    symbols of hair and 3 radio buttons I want to attatch them to. I am
    reading the radio buttons correctly. I created an animating ball
    and put the stop / play command to them to make sure this was so.
    but all of the hair (long hair on top) are displayed at once.
    here is my code....
    I take it remove clip does not work the way I am expecting it
    to? any advise for a very simple end result? I dont want to use
    Gotoframe because I want to animate the background with other stuff
    later, And I dont want the page flip look.
    here is the file ...
    http://www.erickinkead.com/flash/Fasion2.swf

    oh also I dont know if i needed to reference the component
    name or the linkage name for the movie symbol so as you can see I
    tried a variety of both.

Maybe you are looking for

  • How to turn a Macbook Pro into a second display for another Macbook Pro

    So my school just gave me a Macbook Pro and I already have a Macbook Pro. I would like to know if I could turn my school Macbook Pro into a second display for my regular Macbook Pro. Thank You! Both Macs are running Mavericks 10.9.4

  • Can't change the day, week, month display in Google Calendar

    For the past week I haven't been able to change the display of Google Calendar. My default display is a month and that loads just fine. The buttons to change it to the next month, or to one day or one week don't work. Everything else works fine. I ca

  • Buffer Overrun Detected

    Hi Apologies of this has been asked before. When running an QT movie created in Flash CS3 I get the 'buffer overrun detected' error message. I am using a PC with Windows XP Home Edition SP2 - any help and advice would be much appreciated. Thanks Geor

  • Multiplexing error

    Has anyone discovered a way to solve this problem? I have never had issues using iDVD and suddenly this problem has popped up. I have tried what others suggested but they have not worked. My project is 77 mins long and exported from FCP. I keep getti

  • Converting a Server Back to a Regular Computer

    Greetings! I have an apple desktop that was being used as a server. I'm looking to convert it back to a regular computer but am not sure how to go about doing this. Any suggestions? Thanks so much!