Display Record Based on Combo Box Selection

Hi
Using Flash Builder 4.6.
I have a combo box that lists names stored in a mysql database. Once the user selects a name from the combo box, I would like to have the complete record display on a form.  Can you please point me in the right direction to accomplish this task?
Thanks

Hi
Using Flash Builder 4.6.
I have a combo box that lists names stored in a mysql database. Once the user selects a name from the combo box, I would like to have the complete record display on a form.  Can you please point me in the right direction to accomplish this task?
Thanks

Similar Messages

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

  • 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

  • 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

  • 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

  • How to view the records in datagrid using Combo Box Selection

    hi friends,
    i having one combo box,that combo box having 10 students name in list format.
    If i click any one of the students name it will only show the Particular student record in datagrid with respective fields(student name,rollnumber,percentage);
    how i will do this
    please give any suggession or show snippet demo.
    it will be more helpful to do this,
    Thanks in advance
    B.Venktesan.

    Hi,
    As your requirement , i think you will have to use selectedItem or selectedIndex property of combobox. And accordingly fetch data and provide it to dataprovider of datagrid.Following code can help you.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application 
    xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="
    library://ns.adobe.com/flex/spark" xmlns:mx="
    library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection; 
    import mx.controls.Alert; 
    import spark.components.List;[
    Bindable] 
    var array:ArrayCollection = new ArrayCollection(); 
    public function insert():void{ 
    array.addItem(Combo1.selectedItem
    as String);DG1.dataProvider=array;
    ]]>
    </fx:Script>
    <s:ComboBox x="118" y="64" id="Combo1" change="insert()" >
    <s:dataProvider>
    <s:ArrayList>
    <fx:String>AAA</fx:String>
    <fx:String>BBB</fx:String>
    <fx:String>CCC</fx:String>
    </s:ArrayList>
    </s:dataProvider>
    </s:ComboBox>
    <mx:DataGrid x="118" y="154" id="DG1" >
    <mx:columns>
    <mx:DataGridColumn>
    </mx:DataGridColumn>
    </mx:columns>
    </mx:DataGrid></s:Application>
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

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

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

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

  • 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

  • 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

  • Iterating throw UDO records by using combo box

    Hi all
    i have a form with a matrix which is connected to UDO with master data and master data lines tables.  i have a combo box which contains the Code values of the master data table.
    when selecting a code value from the combo box i want the matrix to display the master data lines data which relates to the code value which was chosen in the combo box. i want to use the UDO mechanism for displaying the data so i don't want to query the dbdatasource which is bounded to the matrix.
    question is how can i activate the UDO to display the relevant data to the code value which i chose in the combo box?
    appreciate the help
    Yoav

    move the combo to the header level.
    if the document is in find mode with correct data in the code field and u click find it will bring up the relevant data.

  • 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

  • Need to change the LOV field based on checked box selection in OAF page

    Dear ALL,
    I have a requirement as below:
    I have a custom OAF page having a lov  field which is mandatory, a check box and a two text fields.
    So based on LOV value selection i am defaulting two text field value automatically.
    So my requirement is when user selects the check box automatically the LOV field should be non mandatory and user can insert in values to the lov field and text field and submit it.
    SO basically based on check box field selection i need to make the lov field in such a way it should accept all the values what user enters instead of check the query added in VO behind the LOV.
    Please suggest me some pointers to achieve this requirement.
    Thanks
    Deb

    hi,
    in PFR use:
    if ("checkevent".equals(pageContext.getParameter(EVENT_PARAM))) 
                     HashMap hashMap = new HashMap();
                     String checkboxval=pageContext.getParameter("item2");
                  hashMap.put("checkboxval",checkboxval);
                    pageContext.setForwardURLToCurrentPage(hashMap ,
                    true, // retain the AM
                    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
                    OAWebBeanConstants.IGNORE_MESSAGES);
    and in PR use:
    if((pageContext.getParameter("checkboxval'))!=null)
    OAMessageLovInputBean lovInputBean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("item3");
          lovInputBean.setRequired("false");
    try it
    Regards
    Mahesh

Maybe you are looking for

  • How to calculate the Processing time for material based on its route ?

    Hello experts, I would like to calculate the Scheduled in-house production time based on route. Actually this is done in the prod. route in tcode CA02. (via menu Extras => scheduling => schedule). After getting the schedule table press the 'schedulin

  • Front End Service is not starting

    Hi , Any one can help me to resolve this issue. I have one enterprise edition front end server .if i try to start the front end service it give the following error Server startup is being delayed because fabric pool manager is initializing. Cause: Th

  • Unable to create any files under '/' and /export/home as root user

    Dear Forum, Please help me on this problem. In my server I cant create any files under / and /export/home . But I can save files under /var, /tmp ,/opt #cd / #touch tempfile touch: tempfile cannot create #cd /export/ # ls -lp total 2 drwxr-xr-x   9 r

  • Business rules for Adhoc

    Hi All, I have created a web form and I want to do the Adhoc analysis on it , when right click the form and go to Adhoc session , I see the "Business rules for Adhoc" is coming as "calculate Currencies" and "calculate Form". But I want to add my Busi

  • The "Poster" function option is disabled or greyed out.  What's the fix?

    I have a PDF that is at 8x11.  I want to enlarge and print across multiple pages (4 pages by 4 pages) but the Poster button is greyed out and won't let me select it.  I've even tried enlarging the page size but that doesn't fix the issue.