Catching COMBO BOX item changed in VALIDATE event

Hi expert,
I need to catch the item changed event for a combo box.
below the code:
<B1Listener(BoEventTypes.et_VALIDATE, False)> _
Public Overridable Sub OnAfterValidate(ByVal pVal As ItemEvent)
            Dim form As Form = B1Connections.theAppl.Forms().Item(pVal.FormUID)
            Dim mt As Matrix = Form.Items.Item("Matrix_0").Specific
if (pVal.ColUID.Equals("TipoList") And pVal.ItemChanged) Then
end if
but pVal.ItemChanged is always equal to false even if I change the value selected in combo box.
can anyone help me?
Thanks in advance.
Best regards
Andrea

Hi Andrea,
you can also catch the Event through
pVal.EventType =SAPbouiCOM.BoEventTypes.et_COMBO_SELECT
through this event, you can perform you're reuqirement.
regards
shiva

Similar Messages

  • Calling a bean method on select of Combo box item

    Hi
    On select of Combo box item in a form, text fields in the same form should be populated
    dynamically.Is it possible to call a bean method which does this,by calling onSelect() method
    of combo box ?
    Thanks in advance,
    Sridevi

    Uff, sorry!
    I ment that you write some code for the "onSelect" event which sends a request to the server with the selected value: onSelect="self.location.href='<%= request.getRequestURI()%>?selectedVal= ' + this.selectedIndex;"

  • I have to combo box content change based on the selection on the other

    I have huge unsolve problem where by I have to combo box change content of the combo box based on the selection in the first combo box . The problem is The value changes do not have effect on the second combo box. Below is the content of the coding used for both the combo box.
    function setReasonCode(obj){
                         <%String sql_query3 = "SELECT DISTINCT (ir_tran_typ) "+
                                              "  FROM intrcd ";
                               System.out.println("trans type"+sql_query3 );           
                                try{
                                    rset = db.execSQL(sql_query3);
                                catch(SQLException e) {
                                    System.err.println("Error in query - intrcd - transaction_main.jsp " +e +" sql " +sql_query3);
                                while(rset.next()){
                                    tran_cde = rset.getString("ir_tran_typ");
                                            tran_typ.addElement(rset.getString("ir_tran_typ"));
                                            System.out.println("trans type 34 "+tran_typ );%>
                                            <% }%>
                                          alert(obj.value);
                                  <%for(int i=0 ;i<tran_typ.size();i++){
                                     System.out.println("trans type 222  "+ tran_typ.size());
                                       tran_cde =tran_typ.elementAt(index).toString();%>
                                       <%System.out.println("trans type before "+ tran_cde);%> 
                                        eval(document.all.tran_cde.option
                                      if(D == <%=tran_cde%> ){
                                       <%System.out.println("trans type D"+ tran_cde);%>     
                                       <%String sql_query2 = "SELECT ir_rea_cde,ir_rea_desc"+
                                              "  FROM intrcd"+
                                              " WHERE ir_tran_typ = 'D' " +
                                                        " ORDER BY ir_rea_cde ";
                               System.out.println("query"+ sql_query2);           
                                try{
                                    rset = db.execSQL(sql_query2);
                                catch(SQLException e) {
                                    System.err.println("Error in query - emmast2 - transaction_main.jsp " +e +" sql " +sql_query2);
                                        index = 1;
                                while(rset.next()){
                                        rea_cde = rset.getString("ir_rea_cde");
                                        rea_desc =  rset.getString("ir_rea_desc");
                                       tran_typ.removeAllElements();
                                       }%>
                                  if( R == obj.value){
                                       alert(R)
                                      if(R== <%=tran_cde%> ){
                                       <%System.out.println("trans type R"+ tran_cde);%>     
                                       <% sql_query2 = "SELECT ir_rea_cde,ir_rea_desc"+
                                              "  FROM intrcd"+
                                              " WHERE ir_tran_typ = 'R' " +
                                                        " ORDER BY ir_rea_cde ";
                               System.out.println("query 2"+ sql_query2 );           
                                try{
                                    rset = db.execSQL(sql_query2);
                                catch(SQLException e) {
                                    System.err.println("Error in query - intrcd - transaction_main.jsp " +e +" sql " +sql_query2);
                                        index = 1;
                                while(rset.next()){
                                        rea_cde = rset.getString("ir_rea_cde");
                                        rea_desc =  rset.getString("ir_rea_desc");
                                       }%>
              <%}%>
                }

    Not unless you know which file in the app sets the choices. I've been through it pretty thoroughly and can't find the one.

  • Creating a combo box to change graph type

    Hello Gurus,
    I need to create a combo box in a web page to change the graph type used. How would I go about to achieve this?
    Thanks.

    ceate the second combo box , at the palce where i will create the first combo boxAs i see .. u dont require two comboboxes in u r case just have to set the combobox with different ComboBoxModel each time u make a selection.
    in listener event of the combobox change the model with setModel function. You can create new model by
    combo1.setModel(new JComboBox(new Object[]{"opt1","opt2","opt3","opt4"}).getModel());

  • Combo Box Items

    I am setting up a fillable form using adobe.  I am trying to set a combo box values/items based on multiple fields within the form.  For example, the first part of the form will have a user list employee names.  I am trying to have the names entered appear as the options in the combo box.  Any suggestions would be greatly appreciated.

    Thanks for the info.  Using the link, I was able to set the items by typing text in the script.  I'm getting stuck on how to set the items to existing fields in the form.  For example, I have a list of text fields "Name1","Name2",etc up to "Name10".  I want to set the combo box to show the values intered in these fields but can't seem to get it to work.  Any suggestions?
    Thanks Again

  • Combo Box items missing

    Hi,
    I'm new to ADF and have a few basic questions.
    1)From a View Object in the Data Control Palette I dragged and dropped an attribute as Combo Box. When I run the panel no items are shown, although data is available at the database. I actually expected that ADF handels the item adding in a combo box. Is some coding really needed or what is the standard way of doing that?
    2) How can one handle dynamic displaying in combo boxes (one item selected in one box defines the items of the next one).
    Thanks.

    Hello Frank,
    thank you for your replay. Problem 1) is solved, I just had to pick the View Object and drop it as a combo box instead of the attribute itself.
    Regarding 2) I did it as follows:
    - In a JClient application I created Entity Object from two tables with 1:n relationship
    - Generated views from these EO's
    - Added those vews to my application module
    - Dragged and droppped both views in a JPanel as combo boxes
    Now what has to be reached is that by selecting one item from the first (master) combo box the items shown on the following one are only those that correspond to the Foreign Key relation.
    Thanks again
    Jan

  • How can i make 2 combo boxes as the same data source and group by each combo box items separately?

    I have 2 combo boxes  If I have data table like below
    TableA
    ID  NAME
    1     A
    2     B
    3     C
    4     A
    I make "TableA" as data source of "combobbox1" and "combobox2" like
    combobox1.datasource = TableA
    combobox1.displaymember = "ID"
    combobox2.datasource = TableA
    combobox2.displaymember = "Name"
    I want when combobox2 select index at "A"  , Combobox1 show only the items at ID = 1 And ID = 4
    Thanks 

    This is not actually a question to be posted in SQL Server. Here is a link for ASP.NET forum.
    http://forums.asp.net/
    It looks like there is a filter that can be applied in .NET dataset and populate the results in your combobox1. You may get better help from .NET forums for this question.

  • How do you add a combo box item in Forte?

    Okay how do I add items to a JComboBox using the Forte form editor.

    String stuff = new String{"1", "2", "3", "4" };
    I think you ment to make stuff an array of String.
    In component inspector under Code Gneration
    select post creation, select the ... box and type in
    new JComboBox(stuff); or = new JComboBox(stuff);
    might have to put the equal sign in there I forgetI did this and I am not getting any items dropped down.
    >
    >
    Hope that helps
    Jim

  • When i change the value of a combo box using a property node it displays the value not the item label

    I am using a combo box as a select list for text serial commands.  I have items like "engineering", "GUI", and "Scan" for the commands "MDE", "MDN", and MDS respectively which i have input as the corresponding value in the combo box.  so for example the label "engineering" has the value "MDE" in the combo box items list.  when the Vi starts it needs to read the current value MDE, MDN, or MDS and then i want it to display on the front panel the item text corresponding to that command value.
    To do this i have tried to read the serial command, ie MDS and then wire that to a "value" property of a property node of the combo-box, but instead of displaying the corresponding item label, "Scan", it displays the value "MDS" on the front panel instead.  i want the front panel to use the label text when choosing and displaying but the block diagram to use the serial commands.  Can this be done with a combo box?  I'm trying to use a combo box so i can keep it all text and avoid having to build a case statement to convert enums or rings from a numerical value to the text command.
    The correct text value is wired to the value property and it does exist in the combo-box.  I have unchecked "values match items" and selected to not allow undefined values.

    Don't use the value property node.  Use the Text.Text property node.  When creating the property node, select Text, then in the next pop-up box, select Text.
    - tbob
    Inventor of the WORM Global

  • Action event automatically triggered for combo box

    Hi all,
    I am facing a typical event handling problem for combo box in Swing(Using Net Beans 5.0, jdk 1.4.2)
    While adding items to combo box it is firing action event twice instead of once irrespective of no. of items added to it.
    For eg if there are 1 or more than 1 item added to combo box it is triggerring action event twice(one just after when first item is added and one again when rest all items are added)
    and if there is no item then also it is triggering once.
    Can you please help me out.
    Thanks

    post the SSCCE code, then only it is easy to find the problem

  • Displaying text in a combo box.

    Hi, i was wondering if anyone could help me finish an application i am working on. I have two forms, one inputs dat to a text file and another retrieves it. i want to display the text in a combo box and then click an event in the combo box and a description
    of the event will appear in a text  box, also if i select a date on the second form the events in the combo box change for that date if there is events for it. the first form is working fine , i was looking for help with the second one please. my code
    so far is:
    namespace TicketInformation
       public partial class TicketInformationForm : Form
          public TicketInformationForm()
             InitializeComponent();
          //creating the community events list.
          List<Community_Event> CommnunityEvents;
          //create the Create Event list method.
          private void CreateEventList()
             CommnunityEvents = new List<Community_Event>();
             // call the extract Data method.
             ExtractData();
             //Clear any events from the combo box before proceeding.
             eventComboBox.Items.Clear();
             //for each event item in the Commuity event list,add it to the eventComboBox.
             foreach (Community_Event item in CommnunityEvents)
                eventComboBox.Items.Add(item.Description);
             //if the events count is greater then 0, display the following
             if (CommnunityEvents.Count > 0)
                //if there are no events for the date selected display the following
                eventComboBox.Text = " -Events- ";
                descriptionTextBox.Text = "Pick an event";
             }//end if
             else
                //if there are no events for the date selected display the following
                eventComboBox.Text = " No Events ";
                descriptionTextBox.Text = "No events today.";
             }//end else
          //Creating the Method ExtractData
          private void ExtractData()
             CommnunityEvents.Clear();
             // load the data from the file
             List<Community_Event> tempList = new List<Community_Event>();
             //string[] fileLines = File.ReadLines(@"C:\Users\IAN\Documents\calendar.txt");
             foreach(string line in File.ReadLines("calendar.txt"))
                string[] items = line.Split(",".ToCharArray());
                if (items.Length >= 5)
                   Community_Event newEvent = new Community_Event();
                   newEvent.Day = Convert.ToInt32(items[0]);//Converting the Integer to a string.
                   newEvent.Time = items[1];
                   newEvent.Price = Convert.ToDecimal(items[2]);//Converting the decimal to a string.
                   newEvent.Event = items[3];
                   newEvent.Description = items[4];
                   //add the new events to the Comminity Events list.
                   CommnunityEvents.Add(newEvent);
             CommnunityEvents = (from ev in tempList
                                          where ev.Day == 1
                                          select ev).ToList();
          private void dateMonthCalendar_DateChanged(object sender, DateRangeEventArgs e)
             //calling the create event list method to display any events in the eventscombo box.
             CreateEventList();
          private void eventComboBox_SelectedIndexChanged(object sender, EventArgs e)
          private void descriptionTextBox_TextChanged(object sender, EventArgs e)
          private void TicketInformationForm_Load(object sender, EventArgs e)
             //calling the create event list to open the form with today's events displayed if any.
             CreateEventList();
     public class Community_Event
          //Declare a DayValue property of type int
          private int DayValue;//day of the event
          public int Day// Name of the Property
             get
                return DayValue;
             set
                DayValue = value;
          //Declare a TimeValue property of type string
          private string timeValue;//time of the event
          public string Time// Name of the Property
             get
                return timeValue;
             set
                timeValue = value;
          //Declare a priceValue property of type Decimal
          private decimal priceValue;//price of the event
          public decimal Price// Name of the Property
             get
                return priceValue;
             set
                priceValue = value;
          //Declare a eventNameValue property of type string
          private string eventNameValue;//name of the event
          public string Event// Name of the Property
             get
                return eventNameValue;
             set
                eventNameValue = value;
          //Declare a DescriptionValue of type string
          private string DescriptionValue;//description of the event
          public string Description// Name of the Property
             get
                return DescriptionValue;
             set
                DescriptionValue = value;
    Thanks
    D

    Hi Dylan2412,
    According to your description, you'd like to pass the ComboBox.Text to the second form's TextBox.
    In Form1:
    private void button1_Click(object sender, EventArgs e)
    Form2 f2 = new Form2(this.comboBox1.Text); //pass the comboBox1.Text
    f2.Show();
    In Form2:
    public Form2(string s) //get the string;
    InitializeComponent();
    this.textBox1.Text = s;
    You could get the comBoBox refer to this sample above.
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    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.

  • Layer/OCG Visibility based on Combo Box Selection

    Hello,
    I'm VERY new to javascript, so please bear with me.  I have a combo box with multiple selections.  For some selections, I would like a separate OCG layer to appear, and with other selections that same layer to disappear.
    For example:
    ComboBox1: A, B, C
    Layer 1 default: hidden
    A - toggle layer 1: hidden
    B - toggle layer 2: hidden
    C - toggle layer 3: visible
    I have seen the javascripting involved turning layers on/off with buttons, but I'm having some difficultly with the combo box. 
    Thanks!
    Mike

    The code would be much the same as with buttons. Use the Validate event of the combo box to get the selected value (event.value) and show/hide the appropriate OCGs. If the combo box items have export values, you'd use the Keystroke event so you can get the export value of the selected item via the event.changeEx property: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.607.html

  • Problem with combo box in a Matrix column

    hi every one, i  have a user form with a matrix(uid = 37) with some columns and one column is combo box. in that combo box i have to get values  from OSTC table (Code)...i have written this code ..i dont know how to access the combo box so that i can get values to combo box when i execute the prg....
    oitem = oForm.Items.Item("37")  37 is uid of omatrix2
                oMatrix2 = oitem.Specific
                oColumns = oMatrix2.Columns
                oForm.DataSources.UserDataSources.Add("CSR1", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
                oColumn = oColumns.Item("V_6")                      ''for accessing the combo box item [V_6 is col uid ]
                oCombo = oColumn.Cells.Item(omatrix2.row).Specific            ''''''''problem line
                oCombo.DataBind.SetBound(True, "", "CSR1")
                rset = oDICompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                query = "select Code from OSTC"
                rset.DoQuery(query)
                Dim tc As String
                rset.MoveFirst()
                For row = 0 To rset.RecordCount - 1
                    tc = rset.Fields.Item("Code").Value
                    oCombo.ValidValues.Add(tc, row)
                    rset.MoveNext()
                Next
                oMatrix2.Columns.Item("V_6").DataBind.SetBound(True, "@SALE_CHILD", "U_Tax")

    Call objMain.objUtilities.LoadComboValuesForMatrix(FormUID, "27", "SELECT Code,Name FROM OSTC Order by Code", "V_19", objMatrix.RowCount)
    Public Sub LoadComboValuesForMatrix(ByVal FormUID As String, ByVal ItemUID As String, ByVal strQuery As String, ByVal MtrxColId As String, ByVal Rowcount As Integer)
            Dim inti As Integer
            objRecSet = objMain.objUtilities.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            Try
                Dim objmatrix As SAPbouiCOM.Matrix
                Dim objCombo As SAPbouiCOM.ComboBox
                objForm = objMain.objApplication.Forms.Item(FormUID)
                objItem = objForm.Items.Item(ItemUID)
                objmatrix = objItem.Specific
                objCombo = objmatrix.Columns.Item(MtrxColId).Cells.Item(Rowcount).Specific
                objItem.DisplayDesc = True
                objRecSet.DoQuery(strQuery)
                If objRecSet.RecordCount > 0 Then
                    If (objCombo.ValidValues.Count > 0) Then
                        For inti = 0 To objRecSet.RecordCount - 1
                            objRecSet.MoveNext()
                        Next
                    End If
                    If (objCombo.ValidValues.Count <= 0) Then
                        objCombo.ValidValues.Add("", "")
                        For inti = 0 To objRecSet.RecordCount - 1
                            objCombo.ValidValues.Add(Convert.ToString(objRecSet.Fields.Item(0).Value), Convert.ToString(objRecSet.Fields.Item(1).Value))
                            objRecSet.MoveNext()
                        Next
                    End If
                End If
            Catch ex As Exception
                Throw ex
            Finally
                System.Runtime.InteropServices.Marshal.ReleaseComObject(objRecSet)
                GC.WaitForPendingFinalizers()
                GC.Collect()
            End Try
        End Sub

  • Combo box help

    ok i have 3 combo boxs - name, id, pic
    the first combo box name determines the values of the other comboboxes. the id combo box value changes successfully
    but when i try and change the value of the pic combobox i get
    an out of bounds error. can anyone suggest some advice?
    String name = namecombo.getSelectedItem().toString();
    nametextfield.setText(name);
    idcombo.setSelectedIndex(namecombo.getSelectedIndex());
    // piccombo.setSelectedIndex(namecombo.getSelectedIndex());
    //the line above produces the error

    no unfortunately they have the same number of items.
    i have tried everythingNo, they don't, if they did, then there wouldn't be an OOB error. Try this:
    String name = namecombo.getSelectedItem().toString();
    nametextfield.setText(name);
    idcombo.setSelectedIndex(namecombo.getSelectedIndex());
    System.out.println(namecombo.getItemCount());
    System.out.println(idcombo.getItemCount());
    System.out.println(piccombo.getItemCount());
    // piccombo.setSelectedIndex(namecombo.getSelectedIndex());
    //the line above produces the error

  • Combo Box Selected Data

    I have a combo box called class_cb, I am trying to use the
    combo box in a maths formula.
    I am trying to set that if the active selected combo box data
    = 1 then a text area = given number, if data = 2 then ....
    I can get flash to recognise the change i just can't seem to
    get the statement
    "if selected combo box data = 1 then text area = 5" to work,
    the text area defaults to the first value and changing the
    combo box item and pressing calculate doesn't change the
    value of the text box.
    Any help would be appreciated, thanks
    // COMBO BOX
    // Add Items to List.
    class_cb.addItem({data:1, label:"Normal"});
    class_cb.addItem({data:2, label:"Free"});
    class_cb.addItem({data:3, label:"Close & Interference"});
    // Update Upon Change Listener Object
    // Create Listener Object.
    var cbListener:Object = new Object();
    // Assign function to Listener Object.
    cbListener.change = function(event_obj:Object) {
    trace("Value changed to:
    "+event_obj.target.selectedItem.data);
    // Add Listener.
    class_cb.addEventListener("change", cbListener);
    // CALCULATE
    shaft_ta.text = "nul";
    //On calculate_btn release
    //Math functions
    calculate_btn.onRelease = function(){
    //If combo box = data no. then change label
    if (class_cb.selectedItem.data = 1) {
    shaft_ta.text = "6";
    } else {
    if (class_cb.target.selectedItem.data = 2){
    shaft_ta.text = "7";
    } else {
    if (class_cb.selectedItem.data = 3){
    shaft_ta.text = "9";
    }

    can any one help?, I have tried many different things and
    still can't get it to work.

Maybe you are looking for

  • [SOLVED] Can't get network to work (realtek NIC)

    Hi there! I found Arch a couple of weeks ago and I got pretty excited with the possibility of taking my old Athlon 750MHz out of inactivity. Unfortunately, I can't seem to get the network to work. * I installed the system using Archlinux-i686-2007.08

  • Installing Java in Windows7 with JapaneseLang showing ???? Question Marks

    Hi Team, Installing Oracle Java in Windows 7 with Japanese Language showing Question Marks silmilar as below in the Installation wizard instead of Japanese/English Characters, Java(TM) ????? ???????? Java ??????? ??? OK ???? Java.com ????? Is this an

  • PO Item Text Not Printing correctly

    Hello, Per the config settings, the PR Item Text is transferred to the PO Item text while creation of a PO. When the PO is created, one can see the PO Item Text maintained in ME23N, but when you do the print preview / print output, it is not displaye

  • Error "Cannot be resolved to a type" on OwnerPIN, APDU, ISO7816

    The error I'm reffering to might clearify the fact that I'm new at Java/javaCard-development. To learn how it all works I've downloaded an example and try to understand what happens. I opened the source in Eclipse and get errors "Cannot be resolved t

  • Can't install ML, simply reboots to login panel???

    I'm running a year-old iMac (27-inch, Mid 2011, OSX 10.7.5). When I run the Mountain Lion installer, everything appears normal up to the reboot phase. It then proceeds to reboot the machine back to the regular 10.7.5 login panel. The ML installer nev