Change combo box selection dynamically?

I would like to have a combo box change its selection dynamically according to what is selected in another selector.  As far as I can tell from reading the Help, this feature is available for List Boxes, List Views and List Builders only ("The Dynamic Selected Item functionality is available in list-based selectors") and based on the wording I assume that it is currently unavailable for other components.  Is this true?  If so I would like to formally request that other selectors - particularly combo boxes - be included.
The use case for me is this: After the user has already inputted information and digested some of the output, they eventually reach a section of the project that appears only under certain conditions.  This area is about 800 pixels to the right of the original combo box in the inputs area, and so in order to quickly change that selection they would have to go look for the original selector, which could easily discourage them from browsing that particular selection.  Hopefully this makes sense.
It would also be great to hear back that this kind of feature request can actually be made in this way.  I've submitted a few similar requests in the past and did not see an acknowledgment, and so I am still unclear as to whether or not feature requests are even possible.
(Edit: I thought about creating duplicate overlapping instances of the combo boxes in question and, using dynamic visibility, control which appears according to the current selection.  But this is only suitable for smaller lists).

>
Alan McClean wrote:
> To get around it I shuffled my selection list dynamically, so that the one I wanted appeared at the correct place. I did this using the source data component and some Excel logic. However, it is buggy and a lot of work.
Thanks, Alan.  I am currently working on a similar solution.  Seems to be the best for my situation, but it is far from elegant.
>
Charles Davies wrote:
> Just a thought, would the Filter component work for you?
The Filter component requires that the underlying Excel data be structured in a pretty specific way.  As far as I can tell, I would probably have to rip apart my XLS and redesign it in order to make use of that component.  Perhaps in a future generation I'll give it a go, but I've already gone through too many redesigns this time around.

Similar Messages

  • Combo box selected index is not working.

    Hi guys, I have a problem with changing the combo box selected index.
    I load a list of phone types(such as "Home","Office",...) using Remote Object and assign it as a data provider for a combo box.What I need is to select a specific index in the combo but combo.selectedIndex statement doesn't work for the first time, I mean the combo changes its index only if I load the view again.
    I checked different examples, solutions but none of them worked for me!! Can anyone here help me to figure out the problem?
    Here is my Code:
    <mx:Canvas creationComplete="init()"
                 xmlns:mx="http://www.adobe.com/2006/mxml">
         <mx:ComboBox id="comboPhone0"
                    prompt="Type"
                    dataProvider="{phoneTypeList}"
                    />
    <mx:Script>
         <![CDATA[
    [Bindable]
    private var phoneTypeList:ArrayCollection;
    private function init():void
         loadPhoneType();
    private function loadPhoneType():void
         phoneTypeLoaderService.getPhoneType(); //phoneTypeLoaderService is a remote Object to load the phone types
    private function handlephoneTypeLoadResult(ev:ResultEvent):void
         phoneTypeList=ev.result as ArrayCollection;
            comboPhone.selectedIndex = getComboSelectedIndex("HOME");
    private function getComboSelectedIndex(phoneType:String):int
    var index : int= -1;
    var result : int= -1;
         for each (var pt:PhoneType in phoneTypeList)
              if (pt.type == phoneType)
                        result = index;
                        break;
              else{
                   index++;
              return result;
         ]]>
         </mx:Script>
    </mx:Canvas>

    hi
    I think in getComboSelectedIndex() method index should initialized to zero. If that does not work use after assigning the data from result event.
    phoneTypeList.refresh();
    Hope this helps
    Rush-me

  • Combo Box Selection to Change Selection in another Combo Box

    I'm pretty familiar with excel and VBA, but when it comes to Adobe Acrobat, I am lost with Javascript.
    I am creating a form.
    My first field is a combo box named: Rent.booth
    My second field is also a combo box named: County.booth
    I need to know where and how I would implement a java command that states that if Rent.booth = Rent, then County.booth automatically = No.
    If No is selected for Rent.booth, then allow the user to choose any of the 3 values.
    Combo Box Options for Rent.booth:
    Select One
    Rent
    No
    Combo Box Options for County.booth:
    Select One
    Yes
    No
    Any leads would be appreciated.  So far I've only seen the Combo Box to Text box solutions, nothing for Combo box to Combo Box.

    You'll get the best help with Javascript in the Acrobat Scripting forum.

  • Changing xy graph scale using combo box selection

    Hello,
    I have a xy graph with x scale set to 10k and y scale set to 6 by default.
    I have a combo box which i use to select what the graph will display. For example in combo box i have 3 choices, A, B, C.
    If i select A, xy scale is set to 10k and 6. If i select B, xy scale is set to 2.5k and 8, if i select C, xy scale is set to 4k and 10 respectively. Is there some functions that i can use to do this?
    Thanks.
    Solved!
    Go to Solution.

    Like this (attached)?
    Of course, if the data actually follows these mins and maxes, you could just turn on auto scaling and it would do it automatically
    Tim Elsey
    LabVIEW 2010, 2012
    Certified LabVIEW Architect
    Attachments:
    Untitled 1.vi ‏14 KB

  • A text box should appear based on combo box selection in a jsp page.

    Hi,
    I have this problem. I ahve an option in the combo box"other". If other is selected then a text box shud appear . Can any one post a quick answer for me. may be a sample of how to do it will help me a lot.
    Thank You,
    Sagar.

    Hi Guys,
    Thnx all for ur replies. Let me explain u the scenario which i work in now. I have a combo box with 4 values "other " being the last of them. If i select "other" then a text box shud appear with the label. what happenes now is i have added onChange whn an option is changed . I have named that functiion refresh for which the code goes like this..
    function refresh()
    window.location.reload(true);
    whn i select an other option thn the whole page gets refreshed and the first value only appears. If i select other then the page refreshes and gets back again to the first value. These guys here use tags like <c: if> <C;choose> <c: otherwise> which am not familiar with. Do pls help me in retaining the option selected.. Thank You.

  • 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.

  • Help needed: triggering a combo box selection

    I'm new to creating forms in Acrobat (Acrobat 9 on Mac). I'm trying to create a form for my department where a student selects a faculty name from a combo box, and once the value is selected, another field is filled with an int value (course section number).
    Question: what is the correct trigger for executing the javascript for this? Mouse up seems to trigger too early and the others don't seem appropriate.
    I think my rudimentary JavaScript knowledge can get me far enough to check the value and the use a switch/if to prefill the int value in the other field, so the correct trigger is my current issue.
    Thanks in advance.

    I found where it's supposed to be stored, but I'm having some issues with missing ().  I'm using Acrobat X Pro for Windows Vista.  There was a post that I've spent the last 2 hours looking for that had a modified code that added in missing (), and now I can't find it   Any help would be greatly appreciated. Anyway, here's my code:
    function mater list for Alpha1()
    var oAlpha1 = {
    ACC: [
    ["-","None"], ["201",Intro to Financial Accounting], ["202",Intro to Managerial Accounting], ["-96",Selected Topics], ["-99",Directed Reading and Research]
    ANTH: [
    ["-","None"], ["151",Emerging Humanity], ["152",Culture and Humanity], ["210",Archaeology], ["215",Physical Anthropology], ["215L",Physical Anthropology Lab], ["310",Human Origins], ["313",Culture Through Film], ["321",World Archeology], ["342",Indigenous Peoples & Modernity], ["350",Pacific Islands Cultures], ["351",Culture Thought and Behavior], ["358",Myth, Symbol, and Ritual], ["362",Gender, Culture, and Society], "380",Field Archaeology], ["383",Museum Studies], ["384",Human Skeletal Biology], ["415",Human Ecological Adaptation], ["420",Culture & Communication], ["422",Magic Witchcraft & Supernatl], ["423",Social and Cultural Change], ["437",Pacific Archaeology], ["447",Polynesian Cultures], ["448",Micronesian Cultures], ["457",Okinawans Locally & Globally], ["458",Forensic Investigations], ["460",Adv Tech in Forensic Anth], ["474",Culture and Mental Illness], ["483",Archaeology of Hawaii], ["487",Philippine Culture], ["490",History & Theory Anthropology], ["495",Research Seminar], ["496",Selctd Tpcs:], ["499",Directed Reading & Research], ["296F",Intro to Field Archaeology], ["496A",Culture Through Film], ["496B",Phillipines Studies], ["496C",Museum Studies], ["496D",Okinawans Locally & Globally], ["496E",Pacific Island Cultures]
    APSC: [
    ["-","None"], ["486",Senior Project-Applied Sci], ["490",Senior Practicum], ["486C",Senior Project-CENT], ["486I",Senior Project-IT], ["486M",Senior Project-CULM], ["486R",Senior Project-RESP], ["490C",Admin Practicum-CENT], ["490I",Admin Practicum-IT], ["490M",Admin Practicum-CULM], ["490R",Admin Practicum-RESP]
    ASTR: [
    ["-","None"], ["110",Survey of Astronomy]
    It goes on like this through all our subjects.  I then modified the next bits of code in thomp's doc to reflect what I need to be pulled and populated:
    var nACCItems=oAlpha1["ACC"];
        var n201Title=ACCItems[1]; var n202Title=ACCItems[1]; var n-96Title=ACCItems[1]; var n-99Title=ACCItems[1];
    var nANTHItems=oAlpha1["ANTH"];
        var n151Title=ANTHItems[1]; var n152Title=ANTHItems[1]; var n210Title=ANTHItems[1]; var n215Title=ANTHItems[1]; var n215LTitle=ANTHItems[1]; var n310Title=ANTHItems[1]; var n313Title=ANTHItems[1]; var n321Title=ANTHItems[1]; var n342Title=ANTHItems[1]; var n350Title=ANTHItems[1]; var     n351Title=ANTHItems[1]; var n358Title=ANTHItems[1]; var n362Title=ANTHItems[1]; var n380Title=ANTHItems[1]; var n383Title=ANTHItems[1]; var n384Title=ANTHItems[1]; var n415Title=ANTHItems[1]; var n420Title=ANTHItems[1]; var n422Title=ANTHItems[1]; var n423Title=ANTHItems[1]; var n437Title=ANTHItems[1]; var n447Title=ANTHItems[1]; var n448Title=ANTHItems[1]; var n457Title=ANTHItems[1]; var n458Title=ANTHItems[1]; var n460Title=ANTHItems[1]; var n474Title=ANTHItems[1]; var n483Title=ANTHItems[1]; var n487Title=ANTHItems[1]; var n490Title=ANTHItems[1]; var n495Title=ANTHItems[1]; var n496Title=ANTHItems[1]; var n499Title=ANTHItems[1]; var n296FTitle=ANTHItems[1]; var n496ATitle=ANTHItems[1]; varn496BTitle=ANTHItems[1]; var n496CTitle=ANTHItems[1]; var n496DTitle=ANTHItems[1]; var n496ETitle=ANTHItems[1];
    var nAPSCItems=oAlpha1["APSC"];
    through all our subjects.  Do I need to leave the lists of var nSUBJItems and var nNUMTitle separate, or is the way I have them (subject followed by titles in each subject) okay?
    Then, I made the keystroke codes.  Do they go in the Document level as well, or do they go in the keystroke event or both?  Right now, I just have them as a doc level code because I can't save the document level code without fixing the () error.  I'd just like to know ahead of time.
    Number Keystroke Event
    function SetNumberEntries()
    if(event.willCommit)
    // Get the numbers list from the Master List
    // Since the selection is being committed,
    // event.value contains the Alpha1 name
    var lst = oAlpha1[event.value];
    // Clear the Number list if there are no numbers for the selected alpha
    if( (lst != null) && (lst.length > 0) )
    this.getField("NumberSelect").setItems(lst);
    else
    this.getField("NumberSelect").clearItems();
    // We have a new number list and the first entry is
    // is a non-selection, so clear the title field.
    this.getField("Title").value = 0;
    Uncommitted Keystroke Event
    function SetTitleValue()
    // In order to get easy access to the export value, i.e. Title. This
    // function needs to be run on the un-committed change event.
    // This field is set up for Commit on select so we know the value
    // will be committed anyway.
    if(!event.willCommit)
    // If the export value is Not written then
    // set the title to --.
    var nSelExp = --;
    if(!isNaN(event.changeEx))
    nSelExp = event.changeEx
    this.getField("Title").value = nSelExp;

  • Show text box from one combo box selection

    Total newb here and need help.  I tried searching for a javascript to copy/paste, but without any luck.  I am using Acrobat Pro 9.2.0.  If you could help me out with the javascript or with directions on how to make the following be accomplished, I would be greatly appreciative.
    I am creating a fillable PDF and currently have a combo box that is labeled "Internship Satisfied By" with the options of "TCoB PDP", "MRKTNG 4185", and "Other College".  I would like a hidden text box (where the end user can fill in to explain) to become visible only when the end user selects the "Other College" option, but stay hidden for the other selections.  The hidden text box is labeled "Internship Explained".
    Thanks in advance! Jarrod

    Use this code as the combo box's validation script:
    if (event.value == "Other College") {
    getField("Internship Explained").display = display.visible;
    } else {
    getField("Internship Explained").display = display.hidden;

  • Access 2010 - How to display data from a table into a text box upon combo box selection?

    Hi
    I have a a table with 5 columns: month, year, USD, SGD, BAHT.
    I created a form with a combo box for selection of the month and year, and I would like to set adjacent text boxes to show USD, SGD, BAHT information. How can i go about doing that?
    From the Q&A here, most of them uses the function similar to this "=[Combo0].[Column](1)" to show the data in the text box, but this would require the combo box to list a whole bunch of details if i were to add in more currency values to the
    table. Is it possible to not show this information in the combo box, but still populate data in the textboxes base on a selection on only the "month" and "year" in the combo box.

    Hi,
    According to your description, my understanding is that you want to show only the month/year in the combo box, we can choose the date, and it will display the value of USD/SGD/BAHT based on the month/year.
    If it is, I recommend you try the steps:
    Create a form based on your data source table>Add the combo box>combo box wizard>Find a record on my form based on the value I selected my combo box>Add mouth and year to selected fields
    http://office.microsoft.com/en-us/access-help/create-a-list-of-choices-by-using-a-list-box-or-combo-box-HA010113052.aspx
    If I misunderstand something, please let me know. We may upload some screenshots or a sample through OneDrive.
    Regards,
    George Zhao
    TechNet Community Support

  • Control the combo box select of COPY FROM in Delivery Order

    Dear all
    I have a requirement where in the user wants to restrict the "copy from" button on the delivery order. They want the delivery orders to be created only from Sales orders.
    So that would mean that i do a bubbleevent = false when any other row is selected in the combo box dropdown. But I am not able to get the control to the combobox.
    In the system information it says that the form is "-9876", but couldnt catch any event on it either.
    Any suggestions to control the selection of the "COPY FROM" combobox is most welcome.
    Thanks in advance
    Rashmi

    Hi Use This Ihave Checked This
    If pVal.Before_Action Then
                    If pVal.FormType = 140 And pVal.EventType = SAPbouiCOM.BoEventTypes.et_COMBO_SELECT And Not pVal.InnerEvent Then
                        If pVal.ItemUID = "10000330" Then
                            If pVal.PopUpIndicator = "2" Then
                                objAddOn.objApplication.SetStatusBarMessage("You Can Not Copy From Returns")
                                BubbleEvent = False
                                Exit Sub
                            ElseIf pVal.PopUpIndicator = "0" Then
                                objAddOn.objApplication.SetStatusBarMessage("You Can Not Copy From Sales Quotations")
                                BubbleEvent = False
                                Exit Sub
                            End If
                        End If
                    End If
                End If
    Mohamed Zubair

  • Adobe Acrobat 9: Javascript array populated combo box - Selected answer will not save

    I have a combo box on one of my forms that is populated using a Javascript array.  The combo box is populating just fine, but when an item is selected from that combo box, the selected item does not save when the user saves the document.  Any suggestions as to what the problem is and how it can be corrected?  I am a loss as to where to even begin looking.  Any help is greatly appreciated.
    Thank you.
    Lisa

    You might also want to check the Scripting forum
    http://forums.adobe.com/community/acrobat/acrobat_scripting

  • Combo box select default value.

    Hi,
    I am using Combo box to display the status of the document.
    my code is
    oForm = SBO_Application.Forms.Item("I8_BGU_")
                            Dim oCombo1 As SAPbouiCOM.ComboBox
                            oForm.DataSources.UserDataSources.Add("ComboSrc5", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
                            'oItem = oForm.Items.Item("21")  ''for accessing the combo box item
                            oCombo1 = oForm.Items.Item("21").Specific
                            '' to bind the combo box item to defined user data source
                            oCombo1.DataBind.SetBound(True, "", "ComboSrc5")
                            ''giving some static values to combobox
                            oCombo1.ValidValues.Add("Open", "Open")
                            oCombo1.ValidValues.Add("Closed", "Closed")
                            oCombo1.ValidValues.Add("Extended", "Extended")
                            ' oCombo.Select("Open")
                            oCombo1.Select("Open", SAPbouiCOM.BoSearchKey.psk_ByValue)
                            oForm.Items.Item("21").Specific.DataBInd.SetBound(True, "@I8_BGU", "U_STATUS")
                            oCombo1.Select("Open")
    In this code when it reaches last lineof line it is throwing  error.
    Object refertence not set to any instance..
    some time it is throwing
    error,,
    " Unble to cast COM object sbouiCom.itemeventClas to Interface Type IItemevent. This application Cal is failed.
    The same logic working form for another form..
    Is there any modification needed.
    Please.. get to me..
    mahi.

    Hi Mahendra,
    In case of selecting a default value in a combo, it has 2 parameters to be passed.  Its as below.
    objCombo.Select(0, SAPbouiCOM.BoSearchKey.psk_Index)
    Replace this with proper value (1st parameter).  It will work.
    I find that you have already used that line.  So you can remove your last line.
    Best Regards,
    satish. B.
    Edited by: satish b on Jan 12, 2010 8:35 AM

  • Programmatically Change Combo Box List

    Hello,
    I searched heavily on these forums and found answers that were close, but I cannot quite figure out the following:
    I have a large number of individual RF assemblies, most having the same test requirements.  My plan is to create a combo box (or similiar) from which the assembly number can be selected.  This box will then provide a numeric value to a case structure, which will then provide the need test parameters and what not.
    I know the combo box list can be populated with a property node and the property node fed by an array.  It is my hope to be able to put this info in a spreadsheet file that can be updated as necessary and then imported into the VI at run time.  Therein lies my problem.
    Using the strings and value[ ] property, I can make the combo box work correctly, but I cannot figure out how to import the spreadsheet into the proper format to feed the property node.  I've tried various spreadsheet import schemes offered on these forums, but none quite hit it.  I've tried to figure it out on my own, but I'm just spinning my wheels.
    Any help would be appreciated.
    Thanks.
    Attachments:
    PullDown_Module.vi ‏30 KB

    Hello,
    I've attached a VI that I think will help you.  I actually used the Index & Bundle Cluster Array function, which I don't think I've ever used before.    Anyway, this function gets the two arrays of strings from my tab-delimited text file and manipulates them into an array of clusters containing two strings each, which is the data type required by the StringsAndValues[] property of the Combo Box:
    I hope this gets you started in the right direction.  Good luck!
    -D
    Message Edited by Darren on 03-17-200602:18 PM
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    Combo_Box_Screenshot.jpg ‏100 KB
    Combo_Box.vi ‏27 KB
    data.txt ‏1 KB

  • I need a combo box with 4 values to choose from which will populate a text box on the form with text related to each combo box selection

    For example:
    Combo box choices:
    apple
    tomato
    squash
    Pumpkin
    The text box depending on the selection above would state the color:
    Green        (if Apple was chosen from the combo box
    Red           (if Tomato was chosen from the combo box
    Yellow       (if Squash was chosen from the combo box
    Orange      (if Pumpkin was chosen from the combo box
    I am very new at this and have spent hours looking for an answer.  Thank to anyone in advance who can help!

    Place each value as the export value of the options in the combo-box and then use this code as the text field's custom calculation script:
    event.value = this.getField("ComboBox Name").value;

  • 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

Maybe you are looking for

  • How can I get content of  xml elements?

    Hello everybody, here is my xml document and my code which parses xml. I want to print content of all elements from xml to console but result is only null. But names of all elements shows correctly. Where is problem? Thank you in advance XMLSample.ja

  • Error Opening Local Copy OPM

    Out of nowhere, my computer stopped allowing me to open OPM. I tried uninstalling and reinstalling (I am using version 10.2). I even tried downloading and installing 10.3. No matter what I do, I get a long error that says: There was an error as the a

  • Moving out and roommate wants new service in her name... 5 day wait?

    Phone/internet/DirectTV are in my name. I am moving out and my roommate would like to have new service in her name. She works a lot from home/is on call and can't be with out internet for any extended period of time. I thought I could schedule termin

  • I want to remove clips from the event browser. How?

    How can I remove clips from the event browser in iMovie 11 when I have finished using them - without deleting or rejecting them?

  • I get  a "Server error" when initializing my iphone

    iPhone 4S stoeln, trying to set up old 3GS.  When going through the initialization sequence after doing a hard reset, at the prompt for my iclouduserid and password, the result is "Could Not Sign In: Server Error"  The same id/password works on icoul