Combo box, ring and event to modify them runtime

Hi,
I attached a picture of the block diagram. Using LV 8.2.1, win XP.
What I want : User should select from Main Selection, and that brings up new values for strings in the other menus (tried both combo box and menu ring items).
Teh problem : This block doesn't do that. Why? Looking with probe, I see the event captured and data are ok until the property node. They are not writed and on the front panel I see no difference.
Thanx
Attachments:
double box test.jpg ‏97 KB
Test doppio ring.vi ‏21 KB

Slyfer wrote:
I thought that the code inside the while loop but outside the event structure wasn't care.
So if I want to do something continuosly (for example continuosly comparing two integer values to have a real-time boolean led indicator on front panel), do I put the code in the middle? This is a bit confusing thinking about the "timeout event"....
Use the timeout event or put in the middle (=outside event structure but inside while loop.... at which CPU rate is executed?? too fast?) ??
Just a suggestion. The timeout event for the Event Structure [ES] is equivalent to that of providing a small delay inside the while loop.
But it is not mandatory. If you dont wire some value to the timeout terminal, but still want to something, like comparison, you can very well put that code outside the ES but inside the while loop. It ll execute.
Else you can wire a value like 50 or 100 to the timeout terminal [ this gives enough time for the execution of the various codes inside the various events configured for the ES], so that the ES times out for every 50 or 100 ms when none of the other events occurs. If you put your comparison code here, it ll be doing the comparison all the time or whenever the ES waits and crosses the specified ms after an event has happened.
I hope this gives you a clear idea about eventstructures.
See the below links for more details on Event Structures.
http://zone.ni.com/devzone/cda/tut/p/id/3331
http://zone.ni.com:80/reference/en-XX/help/371361B-01/lvconcepts/using_events_in_labview/
http://zone.ni.com/reference/en-XX/help/371361B-01/lvhowto/caveatsrecmndtnsevnts/
- Partha
LabVIEW - Wires that catch bugs!

Similar Messages

  • Response to mouse click by combo box list and underlying clickable label

    Hello,
    we developed a label responding to a mouse click by opening and thereby displaying an associated help text. The label extends a project specific hierarchy of labels and thus implements MouseListener, of course. Now we encountered a strange problem: It occurs when a combo box is placed above such a label in a panel. By clicking the combo box a selective list drops down and covers the label. As soon as a mouse click is performed on a list item directly covering (i.e., right in front of) the clickable label not only this item is selected but the help screen associated with the underlying label is displayed, too. So the mouse click is processed twice: as proposed by the combo box and unwantedly by the label. This behaviour could not be reproduced on other components being placed below a combobox. So the label itself seems to be the cause but we cannot imagine what could exactly be the reason for this double reaction. Perhaps anyone heard of something like that?
    We are currently working with IBM Visual Age for Java 2.0 (Java version 1.1.8 with the according Swing version). The clickable label reflectively calls methods of a model to determine whether help is available and if so later on to open this help text.
    Any help is appreciated!
    Danilo

    Thank you for your response. I tried both to check the focus and to consume the event. But I had to learn that labels are not able to catch the focus. I also was not able to consume an appropriate event of the combobox. So I finally solved the problem by extending JButton and implementing ActionListener. Thus my labels are actually buttons but I changed their appearance and behaviour so one cannot distinguish them from labels.

  • Combo box visible and loaded but cant interact with it

    I have two swf files onSiteSearch and onSiteReg. Both work as
    expected when used alone but when onSiteReg is loaded from onSite
    Search the comboBox on onSiteReg cannot be interacted with. It is
    visible and has the correct data in it but there is no ability to
    drop down the comboBox. I have tried many suggestions I have found
    here including making sure there is an instance of the comboBox in
    the onSiteSearch but nothing seems to change.
    The onSiteSearch brings up a dataGrid and when a list item
    from the grid is click it loads the onSiteReg (see code below).
    Everything works as it should including checkBoxs and actionScript
    but I can change the selected choice in the comboBox.
    Thanks in Advance for any insight and/or help.
    var dgListener:Object = new Object();
    dgListener.cellPress = function(event) {
    txtTalentEventID.text =
    dgResults.getItemAt(event.itemIndex).TalentEventID;
    _global.thisTalentEventID =
    dgResults.getItemAt(event.itemIndex).TalentEventID;
    loadMovie("onSiteReg.swf",_level0);
    dgResults.addEventListener("cellPress",dgListener);

    Ok. I changed the code to use loadMovieNum like this:
    var dgListener:Object = new Object();
    dgListener.cellPress = function(event) {
    txtTalentEventID.text =
    dgResults.getItemAt(event.itemIndex).TalentEventID;
    _global.thisTalentEventID =
    dgResults.getItemAt(event.itemIndex).TalentEventID;
    //loadMovie("onSiteReg.swf",_level0);
    loadMovieNum("onSiteReg.swf", 2);
    dgResults.addEventListener("cellPress",dgListener);
    and now the onSiteReg comboBox works fine but now i have both
    movies on the screen at the same time and can't figure out how to
    get rid of onSiteSearch.
    Yes, I am new to this flash stuff. Have been doing CF since
    v2.0 but flash is kicking my ***!

  • Combo Box navigation and update

    i need a frame which will popup up the value from database into comboBoxControl and using the navigationBar to navigate the data. But when i click the insert , it will allow me to select the same data from the database. Which item in the property should i set in the conboBoxControl.

    ya Ad,
              This is my code ..........
    oCmb1 = frm.Items.Item("cmb_dept").Specific
                oCmb2 = frm.Items.Item("cmb_mno").Specific
                oCmb3 = frm.Items.Item("cmb_ename").Specific
                oCmb4 = frm.Items.Item("cmb_mtype").Specific
                oCmb5 = frm.Items.Item("cmb_chk").Specific
                oCmb6 = frm.Items.Item("cmb_agy").Specific
                oTxt = frm.Items.Item("t_docno").Specific
                oTxt1 = frm.Items.Item("t_date").Specific
                oTxt2 = frm.Items.Item("t_desc").Specific
                frm.DataSources.UserDataSources.Item("DS_dept").Value = rec.Fields.Item("U_Dept").Value
                frm.DataSources.UserDataSources.Item("DS_mtype").Value = rec.Fields.Item("U_MType").Value
                frm.DataSources.UserDataSources.Item("DS_agy").Value = rec.Fields.Item("U_CAgency").Value
                frm.DataSources.UserDataSources.Item("DS_mno").Value = rec.Fields.Item("U_Mno").Value
                frm.DataSources.UserDataSources.Item("DS_ename").Value = rec.Fields.Item("U_Ename").Value
                frm.DataSources.UserDataSources.Item("DS_chk").Value = rec.Fields.Item("U_Chklst").Value
                frm.DataSources.UserDataSources.Item("DS_dno").Value = rec.Fields.Item("U_DocNo").Value
                frm.DataSources.UserDataSources.Item("DS_date").Value = rec.Fields.Item("U_Date").Value
                frm.DataSources.UserDataSources.Item("DS_desc").Value = rec.Fields.Item("U_Desc").Value
    Regards,
    Anitha

  • Question abt. combo box and database

    Hi. I have two combo boxes, A and B. Items in A is obtained from table X, Items in B is obtained from table Y. But, the problem is that whatever appears in combo box B should not contain those in combo box A. How do i go about doing this? Note that values in table X come from values in table Y.Here's an example:
    (this is I currently have)
    Combo X             Combo Y
    Apple            Mango
    Orange           Kiwi Fruit
    Pineapple        Apple
    Kiwi Fruit        
    Mango          (this is I WANT)
    Combo X                  Combo Y
    Orange                  Mango
    Pineapple               Kiwi Fruit
                            ApplePlease help and thanks in advance.

    hi....
    First of all, I've designed the two combo boxes with Add/Delete buttons in the GUI. I'm using JSP to retrieve values from database table into my combo boxes.
    Actually, I have the two combo boxes already. I have already got the items inserted into combo A from table X using JSP. I am thinking of getting all the values in combo box B from the table Y first, then maybe store them in an array or something, b4 comparing those values with that from combo box A, eliminate those existing in combo box A, and the rest will be stored in combo B.
    I do not know exactly how to store values i obtained from table to an array and how to compare arrays.
    hope u understand what i'm trying to say, please help if possible, thanks.

  • Is it possible to have a combo box change an image on a form?  How do you do it?

    I would like to have an area in one of my PDF forms where a combo box with 8 items changes an image near the combo box.  8 items 8 images.  if you select item 3 in the list then image 3 is displayed in the image area or field. 
    Is this possible?  Might someone guide me as to what steps are necessary.  I can make this happen with web, asp, c++ etc.  I just don't know how to do it in adobe if it's possible.
    example below.
    Any help or guidence is appreciated.

    Here's a sample that demonstrates what you want: https://acrobat.com/#d=It35dD4zaX5QM--Pv36F-Q
    The buttons on the right hand side would normally be hidden and you can use anything you want for their icon, even though in this case it's just text. You'll have to study the JavaScript to see how it works. There are two functions in a document-level JavaScript, one of which is called from the combo box's Keystroke event. Also, note the export values of the items in the list and how the script uses them.

  • I have NO scripting experience but am attempting to create "cascading combo box" with two boxes.

    I have copied and edited to the best of my ability several options but keep getting errors, mostly illegal character on line...
    I do not have LifeCycle, merely Adobe Acrobat IX (and a trial version of Acrobat XI PRO) and the extent of my knowledge ends at placing fields, text, etc. . .
    The scenario is as follows:
    On the document, there are two combo boxes
    1- "DeptName"
    2- "Position"
    The goal is to be able to select one of 15 different departments, and based on that selection, choose from between 2 to 15 different positions for that corresponding department.
    Below is what I was hopeful would work, but alas - FAIL!!
    If anyone could assist it would be GREATLY APPRECIATED!
    myDeptNameValues =
    "ADMINISTRATION – RSADMN (8171)",
    "BEVERAGE – RSBEV (8174)",
    "CATERING – RCCAT (8959)",
    "CLUB – RSCLB (8174)",
    "CONCESSIONS – RCCON (8961)",
    "CONCESSIONS – RSCON (8173)",
    "CULINARY – RSKIT (8177)",
    "FACILITIES – RSFAC (6925)",
    "RETAIL – RSRET (8175)",
    "SUITES – RSSTE (8177)",
    "VENDING – RSVND (8173)",
    "WAREHOUSE – RSWHS (8173)"
    this.getField("DeptName").setItems(myDeptNameValues);
    var DeptData =
    ADMINISTRATION – RSADMN (8171):["Teller","Security"],
    BEVERAGE – RSBEV (8174):["Bartender","Barback"],
    CATERING – RCCAT (8959):["Banquet Server",”Banquet Captain"],
    CLUB – RSCLB (8174):["Cashier","Counter","Cook","In Seat Server","Runner","Stand Manager"],
    CONCESSIONS – RCCON (8961):["Counter","Cashier","Cook","Runner","Beer Attendant/SMC","Stand Lead","Supervisor"],
    CONCESSIONS – RSCON (8173):["Counter","Cashier","Cook","Runner","Beer Attendant/SMC","Stand Lead","Supervisor"],
    CULINARY – RSKIT (8177):["Cook 1 – Entry Level","Cook 2 – Advanced Level","Cook 3 – Lead Cook","Kitchen Supervisor","Steward"],
    FACILITIES – RSFAC (6925):["Lead – Blower/Press","Cleaning Services Worker"],
    RETAIL – RSRET (8175):["Warehouse","Supervisor","Warehouse Supervisor","Vendors/Hawkers","Senior Supervisor","Associates"],
    SUITES – RSSTE (8177):["Suite Attendant","Ice Cream Cart Attendant","Runner","ReOrder Clerk","Suite Captain","Pantry Supervisor"],
    VENDING – RSVND (8173):["Vendor","Vendor Filler","Alcohol Compliance Supervisor","Auditor","Level Supervisor","Senior Supervisor"],
    WAREHOUSE – RSWHS (8173):["Runner","Supervisor"]
    function SetFieldValues(cDeptName)
    this.getField("Position").setItems(DeptData[cDeptName]);
    The above code was placed in the document script.  Within the format area of the "DeptName" box, I have the following code placed in the keystroke script.
    if( event.willCommit )
    if(event.value == "")
    this.getField("box2").clearItems();
    else
    SetFieldValues(event.value);
    I have spent the past four days, more than 18 hours in the last two alone trying to nail this down and I can't explain how completely defeated I feel, not to mention frustrated.
    Again, thanks for your help!!

    I suppose I am not meant to figure this out.  I am trying my absolute hardest to accomplish compiling this document without having to resort to asking someone to do it for me as I have noticed in a few other threads, but it just seems to get more frustrating.  I have accomplished the first thing I set out to do and I completely appreciate your assistance with that.  My issue now is that i have other text fields I want to automatically fill based on the selection of the very same DeptName combo box.  I can make the cascading/dependent box work with the initial DeptName box, or all the additional text fields with the DeptName box, but cannot seem to accomplish having them work together.  I have been working daily, reading blogs/forums, watching videos all in an effort to complete this before it's needed on Feb. 2. 
    Is it possible to make 7 text fields and a combo box(B) fill based on the selection of a separate combo box (A), and then have 5 more text fields automatically fill based on the selection from the secondary box (B)?  I can make it all happen individually, meaning only the text fields for one box or the combo box (A to b) but not in conjunction.
    http://1drv.ms/1GDpESS
    This is the file, if it helps to see what I'm hoping to accomplish

  • Combo box not behaving like it should

    I have a form in which I have 4 combo boxes that have more or less the same choices, however there is one that is common to all 4 (E078).
    When "E078" is selected in any of the combo box, a new combo box will appear (and a white rectangle will be hidden so that the new combo box title can be seen). It works when I select that in one or more combo box, however to make it disappear I have to select some other choice in the same combo box twice!!! If I select anything only once, it will not make the new combo box hidden, but if re-select something (same or another choice) then the combo box will disappear!
    I am at lost, and would be very thankful if someone could make it work seamlessly. I mean it works, nut it is just inconvenient and I cannot tell the user to make select something else twice if they want the field to disappear.
    Here is my form:
    https://workspaces.acrobat.com/?d=WjF6aV8IUuBX2w8iZN3k0g

    When you use event.value in a combo box's Validate event it does not give you the export value, which is what you want. It is easier to use place the code in a custom Keystroke script where you can use the event.changeEx property to retrieve the export value of the selected item. See the documentation for more information: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.607.html

  • VBA Userforms – Getting errors when item from combo box is not selected

    Hi there
    Thank you in advance for taking the time to check this out.
    Objective:
    I have 2 combo boxes, one is dependent on what has been selected in the first combo box (dynamic named range), they work fine except for an irritating error when the user accidentally clicks in the empty
    Cmbox_IncCategory and it won’t allow the user to go back to the
    cmbx_Category_Type box if the user forgot he had to make a selection from that first before selecting the
    Cmbox_IncCategory.
    The error that pops up is “Invalid property value”.
    I tried having text in there to say “please select from Cmbox_IncCategory first, but that didn’t fix it.
    I tried to ‘If error resume next’ but that didn’t like it either. Now I am stumped.
    Main combo box= cmbx_Category_Type
    2nd combo box (displaying a list dependent on what was selected in Main combo box)= Cmbox_IncCategory
    I know there must be a way to fix it so that if a user clicks on the combo box, but doesn’t make a selection it won’t lock up the form.
    Yes, it is a mandatory field, and I was considering using a message box to advise the user that this must be completed, but I am not sure how to do it (and avoid the errors
    Here’s the current code I have for the combo boxes.
    Me.Cmbox_IncCategory = "" 'Clears the contents of the 2nd combobox when another category is chosen
    On Error Resume Next
    'I can't seem to have the Incident Category combobox to be empty when the form is open _
    I have tried Cmbox_IncCategory.Value = "", but I get an error. I then tried Cmbox_IncCategory.text = "" _
    but also get the error. I don't know how else to get it to work .. I tried both codes in the _
    form_initialize, but get an error ... I'm stumped !
    Select Case Me.cmbx_Category_Type
    Case "Crime"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_CRIME"
    Case "Property Damage - Minor - NS"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_PROPRTY_NS"
    Case "Property Damage - Significant - S"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_Proprty_S"
    Case "Safety"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_SAFETY"
    Case "Security Breach"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_BREACH_S"
    Case "Support"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_SUPPORT"
    Case "Vehicle"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_VEHICLE_S"
    End Select
    End Sub
    I’d be really grateful if someone could help me out, or perhaps direct me to where I might find some coding that will achieve the result I am seeking.
    This links to
    My Sample form
    With much gratitude,
    TheShyButterfly
    Hope you have a terrific day, theShyButterfly

    Hi Peter,
    Thank you for your quick response :) Brave man! :)
    Both combo boxes are blank to start with (because nothing has been selected). If I click on the first combo box (cmbx_Category_Type) which lists the main events/category types, but I don't select any thing, and I click in the secondary box
    (Cmbox_IncCategory) and then click on any other control, I get an “Invalid property value” error. When I click OK on the error (a few times) and I return to the code window, it gives no indication where/what is breaking
    the code/causing the error. I have no choice but to exit the form by stopping in the code window.
    If I click on the first textbox, (cmbx_Category_Type), and then do the right thing and make a selection, then I have no problems with the secondary textbox (Cmbox_IncCategory).
    As I am not that up on VBA I am trying to follow your instructions... I have changed the code as follows, removed and replaced the rowsource name, but I encounter the very same problem.
    When I changed my code from Me.Cmbox_IncCategory="" to yours myCombo.ListIndex = -1  (changing the combo box name to reflect my combo box name) and adding the second line of code ...
    Me.Cmbox_IncCategory.ListIndex = 0 I still got the same behaviour and error.
    I even tried moving each row of the named rows down one row (so that there would be a 'blank' row which could be selected to get out of trouble, but it wasn't very successful either.
    Have you opened my form to see what happens, I included the link so whoever was looking at my problem (and yes, I have many I know), could see for themselves what it is doing/not doing.
    The code now reads as below (is this what you meant?) - the results were as I mentioned above.
    Me.Cmbox_IncCategory.ListIndex = -1 'Clears the contents of the 2nd combobox when another category is chosen
    Me.Cmbox_IncCategory.ListIndex = 0
    ' On Error Resume Next
    'I can't seem to have the Incident Category combobox to be empty when the form is open _
    I have tried Cmbox_IncCategory.Value = "", but I get an error. I then tried Cmbox_IncCategory.text = "" _
    but also get the error. I don't know how else to get it to work .. I tried both codes in the _
    form_initialize, but get an error ... I'm stumped !
    Select Case Me.cmbx_Category_Type
    Case "Crime"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_CRIME"
    Case "Property Damage - Minor - NS"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_PROPRTY_NS"
    Case "Property Damage - Significant - S"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_Proprty_S"
    Case "Safety"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_SAFETY"
    Case "Security Breach"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_BREACH_S"
    Case "Support"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_SUPPORT"
    Case "Vehicle"
    Me.Cmbox_IncCategory.RowSource = "Inc_Cat_VEHICLE_S"
    End Select
    End Sub
    I appreciate your patience :) I am growing in knowledge, but its a slow process. Please let me know if there is anything else I can help clarify for you :)
    This links to
    My Sample form
    Thanking you again
    TheShyButterfly
    Hope you have a terrific day, theShyButterfly

  • Populate 2nd combo box based on value selected in 1st combo box

    I am still using Acrobat 6 though I may be upgrading soon to Acrobat 8. I have a form with two combo boxes, the first "state" has values of MN and WI. Based on which value the user picks I would like to populate a "county" combo box with lists of counties that we deal with.
    Thanks,
    Gene

    One can set the option and export value using an arry:<br /><br />// document level script<br />// Master List of Lists <br />// Each entry in this object listeral is the name of a State <br />//Manually enter the State Names into the state field combo box <br />// The associated value is the item list, where each item is a name value pair, [<County> and [county code, zip code]] <br /><br />// state: ["county name", ["county code", "zip code"]]<br />var oStateNames = {MN: [["-", ["", ""] ], <br />                       ["St. Louis", ["MNStl", "55001"] ], <br />                       ["Carlton", ["MNSCrl", "55002"] ], <br />                       ["Pine", ["MNPin", "55003"] ],<br />                       ["Cook", ["MNCok", "55004"] ] <br />                       ], <br />                   WI: [["-", [" ", " "] ],<br />                        ["Douglas", ["WIDou", "55005"] ] ,<br />                        ["Bayfield", ["WIBay", "55006"] ],<br />                        ["Burnette", ["WIBur", "55007"] ],<br />                        ["Ashland", ["WIAsh", "55008"] ]<br />                       ]<br />                     }; <br /><br />//SetCountyEntries() on keystroke entry in state field <br />function SetCountyEntries() <br />{ <br />   if(event.willCommit) <br />   { <br />      // Get the new counties list from the Master List <br />      // Since the selection is being committed, <br />      // event.value contains the State name <br />      var lst = oStateNames[event.value]; <br />      // Clear the county list if there are no counties for the selected state <br />      this.getField("ee.address.county").clearItems();<br />      this.resetForm(["ee.address.code", "ee.address.zip"]);<br />      if( (lst != null) && (lst.length > 0) )<br />           this.getField("ee.address.county").setItems(lst); // set opiton and export value<br />   } <br />} <br />//  end document level script<br /><br />For the combo box "ee.address.county" one can create an array from the export value to populate the county code and zip code<br /><br />// custom keystroke for county combo box<br />if(event.willCommit & event.value != "") {<br />// split county and zip codes<br />var aCodes = this.getField(event.target.name).value.split(",");<br />this.getField("ee.address.code").value = aCodes[0];<br />this.getField("ee.address.zip").value = aCodes[1];<br />}<br />// end custom key stroke code

  • Need to detect when an item is clicked in a combo box in flex 3

    Hello
    I am having a check box and a combo box whenever any selection is made in combo box (current selection may be same as previous selection), I need to select the check box.
    By default the 1st item in combo box is selected and check box is unselected. Now I want that while 1st item is clicked in combo box (although it is selected) , the check box must be selected.
    I have currently used the change event of combo box to do my task. But it is not working if I click on same item as selected item in combo box.
    Also, I thought to use close event of combo box, but that event dispatches in 4 situations out of which I can distinguish only 1 situation from DropDownEvent(for close).
    Please help me regarding this.
    I am using flex sdk 3.5
    Thanks in advance.

    You can use the Close Event to distinguish it.
    To pull out which item has been selected in the combo box, you use the code (in as3)
    ComboBox(event.target).selectedItem.label
    and through the the use of an if statement
    if (ComboBox(event.target).selectedItem.label == "labelName")
    you can distinguish the single situation from the others.

  • AS3 - Combo Box making a hint for each item

    Hi Guys,
    I'm stumped. It might be something simple I'm doing wrong.
    I have an array populated by XML in a function by doing the following inside the function:
    first_special.addItem({label: xmlMenuFile.item.headers[i],data:
    xmlMenuFile.item.descriptions[i],data2: xmlMenuFile.item.hints[i]});
    The problem I'm having is trying to figure out a way so that the "data2" will fill the text field "hint_txt" on ROLL_OVER of that items name in the list.
    I've tried to placing an event listener into the function that populates the combo box but nothing helps
    // this populates the combo box label and data with the Loaded XML File. This works
    function changeHandler(ev:Event):void
         menuText_mc.heading1_txt.text = ev.currentTarget.selectedItem.label;
         menuText_mc.description1_txt.text = ev.currentTarget.selectedItem.data;
         heading1 = ev.currentTarget.selectedItem.label;
         includePrice1_mc.visible=true;
    // trying to figure out how to activate the 'hinting' function when you ROLL_OVER EACH ITEM in the 'first_special" combo box
    // and when rolling over it trace 'hello'. This DOES NOT WORK.
    first_special.addEventListener(MouseEvent.ROLL_OVER, hinting);
    function hinting(e:MouseEvent):void{
    // Should trace "hello" everytime I Roll_OVER an item in the Combo Box.     
         trace("hello");
    // calls the changeHandler function and works correctly
          first_special.addEventListener(Event.CHANGE, changeHandler);
    Any help with this would be great.
    Thanks

    For the hinting functionality, I think what you want to set up would be...
    import fl.events.ListEvent;
    function hinting(e:ListEvent):void{   
             var rowIdx:uint = e.rowIndex as uint;
             hint_txt.text = first_special.getItemAt(rowIdx).data2;
    first_special.addEventListener(ListEvent.ITEM_ROLL_OVER, hinting);
    What you had would only react to rolling over the main component, not the items, and that rollover wouldn't begin to happen until you selected an item since you buried the listener inside the change function.  Keep the listener out in the open.

  • Combo box internationalization

    I'm trying to brainstorm ways that I can design my application so that I have the benefits of a drop down / combo box list and free form text entry while at the same time being as globalization ready as possible.
    I like the feature in some combo boxs where the end user may select a choice from a list but may also type in entry values that doesn't exist in the predefined list. On the other hand, I would like the predefined list to be properly localized for different target audiences - for example, if the combo contains a list of cities, I'd want the same entry to refer to the city Venice in English as Venice but as Venezia in Italian and Venise in French.
    One way of approaching this problem is two have two fields: a combo box that prohibits users from free form entry (but has a list of most choices) and a second text field that a user types in if they can't find the desired value in the combo box. The combo box entries would be stored in an locale-independent or consistent way in the data store while the display would change depending on the user's selected locale. (Unfortunately, the contents of the text box would not be in any way localized).
    Can anyone think of other ways to accomodate the goal of having a list of some sort (not necessarily a combo box) that allows user entry while at the same time most entries are stored in a locale independent way (so that they can be easily localized)?

    That's true - I didn't specify what type of combo box it is. That was intentional, as I'm open to anything that will get the job done. I have to admit to not knowing a lot about the JComboBox control but I've read the Java Swing Component Tutorial on Combo Boxes (and specifically the JComboBox) and I can see what you're talking about. It's a good suggestion that you've made.
    Part of what I need to do (and not stated in my original goal) is to be able to save the combo box's (or whatever control -- I'll call it combo box for simplicity ) value to a database (solution must work in both Oracle and SQL Server) field and then later retrieve these values to display them in a form and in a list. Issues that I'll need to deal with are sorting based on the combo field value, comparing records for equality (and specifically their combo box field values), and searching for a record based on a value in a combo box field.
    A bit more information on my requirements may help people with their suggestions - as noted, localization is a priority, data must be saved to an Oracle or SQL Server database and I need to deal with sorting, comparison, and searching based on the combo field. I will be working with a three tier architecture and a rich client tier, but would like to do as much as possible in terms of sorting, comparison, and searching at the database level for performance reasons. I'll likely need to do some work in the middle tier - what kind of support does Java give for comparing, sorting, and searching a bulk set of records, w.r.t respect to the combo box problem as I've described it so far?

  • Glitch with combo boxes

    Hi all,
    In flash I have about 5 frames, each which have 7 combo boxes
    on them. The user selects the answers for each combo box and then
    clicks 'check' if they are correct they move on to the next frame.
    The only frame that is different is frame 3 which has combo boxes 4
    and 5 missing because they do not apply for that particular
    question.
    Once the user moves on past frame 3, some of the combo boxes
    show up blank (they are there but the default Index 0 "select" does
    not show up. If you click on the combo box it opens and you can
    choose one of the 5 choices in it, but once you select one it won't
    show up either.
    Does anyone know the cause of this problem or a solution?
    P.S. The combo boxes all have the same instance name
    throughout the whole file of 'cbo1' through 'cbo7' and are reset to
    index 0 at the beginning of each new frame.

    You do this by combining JSPs with a central servlet. I don't know how to do it with just one JSP on its own.
    The JSP does a <form> POST to the servlet. The servlet fetches the combo box values into a List, puts it into request scope, and forwards the response back to the JSP. The JSP gets the List out of request scope and populates the drop-down. You do the same thing when there's a selection in the drop-down: onChange does a POST back to the servlet, which gets the selected value as a parameter, takes the appropriate action, and forwards the response with new data in request scope back to the JSP.
    The trick is to have the data in request scope so the JSP can get it. I think you need a servlet to do that.

  • [svn:osmf:] 13083: Updated MASTAdapter class with new trait names and events.

    Revision: 13083
    Revision: 13083
    Author:   [email protected]
    Date:     2009-12-17 16:10:05 -0800 (Thu, 17 Dec 2009)
    Log Message:
    Updated MASTAdapter class with new trait names and events.
    Modified Paths:
        osmf/trunk/plugins/MASTPlugin/org/osmf/mast/adapter/MASTAdapter.as
        osmf/trunk/plugins/MASTPluginIntegrationTest/src/org/osmf/test/mast/TestMASTPluginInfo.as
        osmf/trunk/plugins/MASTPluginIntegrationTest/src/org/osmf/test/mast/adapter/TestMASTAdapt er.as

    Silviu!
    I'm really sorry, but as all the office is trying to fix the problem, someone replaced the url content with the stuff that was pointing to the local machine.
    I've fix it, and the video player is available here again: http://pp.player.webtv.flumotion.com/params/apiKey/5PzLR2ULL3z2rumJ/videoId/60
    If there are other references to the localhost, please do not bother with them, as they do not affect player functionality.
    The stream that it uses is an RTMPE, so i'm afraid it will only works with this player. Anyway, the stream url is as follows: rtmpe://87.248.205.81/a4349/e2/veo7/ondemandrtmpe/mp4/med/first-person-mario-4d8741aa.mp4
    I really appreciate your help!
    Thank you!

Maybe you are looking for

  • Return of customer consignment stock

    Dear all, If, in the standard SAP system, a return delivery from customer consignment stock is done (sales doc: KA, Mvt: 632) the goods are moved to the unrestricted stock. This isn't a very good solution, as the users often forget to move the goods

  • ISync works for iCal but not for Address Book

    Another lost soul. Can anybody suggest where I should start looking for the problem. I've just successfully modified my iSync so that it sees my brand new Nokia 6300. I have got the phone and my iMac to sync my calendar, but absolutely zero activity

  • ORA-07445: exception encountered: core dump [kkodsel()+1220] [SIGSEGV] [Add

    I got this error and i raised a SR in metalink, and metalink suggest to make "_complex_view_merging" = false, but its already set to false. So what to do for this resolution of this error. Internal error : ORA-07445: exception encountered: core dump

  • [svn:fx-trunk] 12379: Add [ExcludeClass] metadata to new utils file.

    Revision: 12379 Revision: 12379 Author:   [email protected] Date:     2009-12-02 10:33:56 -0800 (Wed, 02 Dec 2009) Log Message: Add metadata to new utils file. QE notes: Doc notes: Bugs: SDK-23930 Reviewer: Deepa Tests run: checkintests Is noteworthy

  • Any way to map the remotes volume buttons to iTunes' volume slider?

    The reason I ask is I feed a USB audio device (DAC) and the volume buttons on the remote controls the volume to the iMac's internal speakers. I've got all audio outputs set to the USB device. I'd like the volume buttons to control the volume level to