Populating 2nd drop down list based on the selection of the first using Access DB...

I have a form that I would like to have the user select the first drop-down list as populated from a data source, but them have the subsequent selection choice dependent on the first. For instance, if they select "administration" for their division, the department numbers shown in the second box would only contain those with "Administration" listed as their division. I have all of this information in my Access table.
I've seen this possible by storing all of the information in a script. i.e.- listing each division and department. The only problem is that we have over 300 departments and making any changes would be very tedious in an in-form script. Is there any way to have this automatically reference a table in Access?
Thank you,
Mike

In the current version of the portal, it is not possible as you cannot do code-behind on postbacks. If you want more flexibility, you need to write your own front-end that uses the FIM Service webservices...
Regards, Soren Granfeldt
blog is at http://blog.goverco.com | facebook https://www.facebook.com/TheIdentityManagementExplorer | twitter at https://twitter.com/#!/MrGranfeldt

Similar Messages

  • Populate updatable drop down list based on files in the folder path

    Hi, 
    I am a beginner in labview. I am stuggling on where to start.
    Here's what I need to do. 
    I want to create an updatable drop down list. It can be automatic upon opening the program or manually update by clicking an update button. The drop down list will list all the filenames that are in .cvs format. These files are stored in a folder path.  Insider the folder, they are stored in different subfolders, the drop box should be able to find those files inside the subfolders. Once the user select a filename from the list, the program will read the data inside that file and import into an array so I can display the data. 
    I have an idea on how to display the data, but I don't how to populate the drop down list based on the files in the folder, make it updatable and then import that user selected file's data into the the array. 
    Can anyone help me with this? 
    Thanks, Ruth

    Yup, ListFolder with a pattern of *.csv.  Then use a property node on a combo box or ring to set the items in the drop down.  Here is some free training if you are interested in learning more general LabVIEW tools.
    NI Learning Center
    NI Getting Started
    -Hardware Basics
    -LabVEW Basics
    -DAQ Application Tutorials
    3 Hour LabVIEW Introduction
    6 Hour LabVIEW Introduction
    Self Paced training for students
    Self Paced training beginner to advanced, SSP Required
    LabVIEW Wiki on Training
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Drop down list based on log in username - php mysql

    I have a drop down list of client names on a php page that filters a second drop down list of site names.
    At the moment, any user who logs in can see the entire list of clients, however I want to filter the list based on their username log in.
    This is the entire page code, the section in bold is the drop down list in question:
    <?php
    if (!isset($_SESSION)) {
      session_start();
    $MM_authorizedUsers = "asguser,admin,member";
    $MM_donotCheckaccess = "false";
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
      // For security, start by assuming the visitor is NOT authorized.
      $isValid = False;
      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
      // Therefore, we know that a user is NOT logged in if that Session variable is blank.
      if (!empty($UserName)) {
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
        // Parse the strings into arrays.
        $arrUsers = Explode(",", $strUsers);
        $arrGroups = Explode(",", $strGroups);
        if (in_array($UserName, $arrUsers)) {
          $isValid = true;
        // Or, you may restrict access to only certain users based on their username.
        if (in_array($UserGroup, $arrGroups)) {
          $isValid = true;
        if (($strUsers == "") && false) {
          $isValid = true;
      return $isValid;
    $MM_restrictGoTo = "accessdenied.html";
    if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {  
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
      $MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo);
      exit;
    ?>
    <html>
    <body>
    <script type="text/javascript">
    function AjaxFunction(client_UID)
    var httpxml;
    try
      // Firefox, Opera 8.0+, Safari
      httpxml=new XMLHttpRequest();
    catch (e)
      // Internet Explorer
              try
                        httpxml=new ActiveXObject("Msxml2.XMLHTTP");
                  catch (e)
                    try
                  httpxml=new ActiveXObject("Microsoft.XMLHTTP");
                    catch (e)
                  alert("Your browser does not support AJAX!");
                  return false;
    function stateck()
        if(httpxml.readyState==4)
    var myarray=eval(httpxml.responseText);
    // Before adding new we must remove previously loaded elements
    for(j=document.testform.subcat.options.length-1;j>=0;j--)
    document.testform.subcat.remove(j);
    for (i=0;i<myarray.length;i++)
    var optn = document.createElement("OPTION");
    optn.text = myarray[i];
    optn.value = myarray[i];
    document.testform.subcat.options.add(optn);
        var url="dd.php";
    url=url+"?client_UID="+client_UID;
    url=url+"&sid="+Math.random();
    httpxml.onreadystatechange=stateck;
    httpxml.open("GET",url,true);
    httpxml.send(null);
    </script>
    <form name="testform" method='POST' action='mainck.php'>
    Select first one
      <select name=cat onChange="AjaxFunction(this.value);">
      <option value=''>Select One</option>
    <?
    require "config.php";// connection to database
    $q=mysql_query("SELECT DISTINCT * FROM qry_test GROUP BY client_name ASC");
    while($n=mysql_fetch_array($q)){
    echo "<option value=$n[client_UID]>$n[client_name]</option>";
    ?>
    </select>
    <select name=subcat>
    </select><input type=submit value=submit>
    </form>
    </body>
    </html>
    I think I need to amend the sql statement to something like this - but I haven't quite got it right:
    SELECT DISTINCT * FROM qry_test WHERE username = colname GROUP BY client_name ASC
    Where do I drop the code for the colname info?
    name:colname
    type: text
    default value: -1
    run time value: $_SESSION['MM_Username']
    Thanks!

    I don't do PHP but it would be something like:
    $sql = sprintf (SELECT DISTINCT * FROM qry_test WHERE username = %s GROUP BY client_name ASC, $_SESSION['MM_Username'] );
    or you can just embed the session variable into the sql string.
    But why are you using the GROUP BY clause? If you just need a distinct list of names, use the DISTINCT keyword and reduce your select list to only the needed column.

  • Help needed with populating a drop-down list from an Access Database

    Topic
    data drop-down list
    Jason Murthy - 11:39am Feb 14, 2005 Pacific
    Hello,
    I am trying to use the data drop-down list from the custom library. I enter the name of my data connection and the other 2 variables in quotes when they are initialized, just like the example says to, but it still doesn't work. Anyone have any thoughts?
    Thanks,
    Jason
    Reply To This Discussion | Back to Topic List | Bookmark | Change Subscription
    To start a NEW discussion click on the Back to Topic List link and select Add Topic.
    If you are in an archive forum please go up to the main topic list (archives are read only).
    Messages 11 messages. Displaying 10 through 11.
    First Previous Next Last Show All Messages
    Denzil White - 5:46am Jul 28, 05 PST (#10 of 11)
    Oh and before you say anything more I have also tried changing it from Javascript to the FormCalc, and no diff, maybe I am more stupid than I realised, heh,heh
    Post Reply | Bookmark
    Henk Pisuisse - 12:06am Aug 9, 05 PST (#11 of 11)
    I am having trouble (sleepless nights) with populating a drop-down list from an Access Database. The result is: I only get the first record from the data connection. So the connection works but I cannot go through the other records. Maybe there is an other way to do this.
    I am trying to selectively fill a form with data from an MS-access database.
    I hope someone can help me.
    [email protected]
    The Netherlands (small country in Europe)

    If you email the access DB and the form to [email protected], I will try to take a look at it for you.

  • How can I print a drop down list of favorites I have on the favorites bar?

    How can I print a drop down list of favorites i have on the favorites bar?

    Make a screen shot and print that.

  • How to add Check box to a static Drop down list (bases on a selection list) and allow mulity select in it?

    Dear All,
    I created a text field in my project (Light switch 201, C#), this text field has a static list which I filled manually. when I click in this text box I get a dropp down list which allow me to chose only one value from it.
    Now what I want to do is to add a check box in this drop down list and allow mulity selection from this list. My list looks as follow:
    Can anyone help me :) ? 
    Thanks all,
    Zayed

    Something like this:
    http://www.codeproject.com/Tips/452756/Add-checkbox-inside-combobox-in-Silverlight

  • Populateing a drop down list in a repeating sub form

    I have been using the scripts from the Purchase Order sample that work with the Country and States/Provinces drop down lists and have modified them to fit my needs. The scripts work great. However I have a drop down list that is in a repeating sub form and the only the drop down list in the first occurance of the sub form works. The others don't.
    I put this line of code in a field called drpOrderedByTeam.
    JobsScript.getJobsOther(xfa, xfa.resolveNode("form1.TimeSheetSF.DetailsSF[*].DetailsTable.DetailsRow.ItemNumber"));
    I thought I just needed to add an "[*]" to the name of the sub form and it would work with all occurances but it doesn't seem so and I'm not sure what else to do.

    Based on your explanations, I've attempted to re-create your form and I think I've got it working the way you'd like it to.
    There are some difficulties with using fields in table headers which are replicated on subsequent pages because while new instances of the header subform and the fields it contains are created, you don't have access to these instances using the header's Instance Manager (I think this is a bug but I'm not sure). This means that you can't iterate through the instances of the header in order to populate the task lists depending on the selection in the team list. One solution for this is to make all header fields Global (select each field and, in the Object palette's Binding tab, set the
    Default Binding property to
    Global). This means that all instances of these fields will share the same value. The effect is that when you change the value of a field on an instance of a header on any page, the change will be replicated on all instances on all pages. The catch, though, is when you use lists in the header. Making list fields global doesn't mean that their item lists are global -- which causes other headaches.
    In the end, because of the problems I've described, I had to resort to cheating a little but if you think about it, it's not really cheating. What the form does is whenever the team list value changes, it removes all instances of the DetailsSF rows. This has the effect of also removing all instances of the DetailTitlesSF headers accross the current page set (and removes all pages but the first one). Then 6 new instances of the DetailsSF row are generated and the DetailTitlesSF header is re-populated using the new selection in the team list. After that, if a new page gets generated because of the number of instances of the DetailsSF rows, the new instances of the task lists in the new instances of the DetailTitlesSF header will have the correct list of items based on the current value of the team list. In the end, even though I'm cheating by removing all instances of the DetailsSF row in order to reset the lists in the DetailTitlesSF header, it's not really cheating because if you change teams, then it should be assumed that all data entered doesn't apply anymore because the tasks change as well... Convinced?
    The best way to understand this is to check-out the sample form.
    Let me know if you have any questions.
    Stefan
    Adobe Systems

  • The drop-down list that appears when typing in the Google search bar doesn't work. Clicking on an item on that list does nothing. This very useful feature is broken.

    I just installed FireFox 4. In previous versions typing in the Google search box automatically created a drop-down list of items. One could click on an item on the list and proceed to a Google results page. In FireFox 4, the list appears but clicking on an item on the drop-down menu does nothing. It's broken and it was a very useful feature in previous versions.

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Purchase order sample - drop down list populating another drop down list

    hello, when i use this sample script, it works fine. but when i add additional arrays to it, it doesn't work at all. please let me know what i need to change in this script in order to add additional items into the drop down lists. here is the script that works (displays 3 options in first drop down list (blank, option, another option)):
    // This script object controls the interaction between the carrier and plan Drop-down lists.
    // The array contains the carriers and the corresponding plans.
    var myCarriers = new Array(new Array(2), new Array(14), new Array(17)); // Create a two-dimensional array.
    // For each carrier, add a 'new Array(number of plan +1)'.
    // Define the carrier and the corresponding plans.
    // The array syntax is arrayName[index][index].
    // The first index number represents the carrier,
    // the second index number is the actual data value.
    myCarriers[0][0] = " "; // The first items in the Drop-dowm Lists should be blank.
    myCarriers[0][1] = " ";
    myCarriers[1][0] = "ANERT"; // The first data value is the carrier name,
    myCarriers[1][1] = "MC250"; // the rest are plans.
    myCarriers[1][2] = "MC2501";
    myCarriers[1][3] = "MC5002";
    myCarriers[1][4] = "MC5003";
    myCarriers[1][5] = "MC1000";
    myCarriers[1][6] = "MC2000";
    myCarriers[1][7] = "MCHC2300";
    myCarriers[1][8] = "MCHC3000";
    myCarriers[1][9] = "MC2500";
    myCarriers[1][10] = "MB";
    myCarriers[1][11] = "P500";
    myCarriers[1][12] = "MHH3000";
    myCarriers[1][13] = "MHH5000";
    myCarriers[2][0] = "BCCA"; // This is a new carrier, see how the first number is now [1].
    myCarriers[2][1] = "S Plan";
    myCarriers[2][2] = "BPlan";
    myCarriers[2][3] = "P40";
    myCarriers[2][4] = "P30";
    myCarriers[2][5] = "P35*";
    myCarriers[2][6] = "P45*";
    myCarriers[2][7] = "Ad25*";
    myCarriers[2][8] = "Pr20";
    myCarriers[2][9] = "Pr10";
    myCarriers[2][10] = "PH750*";
    myCarriers[2][11] = "PH500*";
    myCarriers[2][12] = "2400HD";
    myCarriers[2][13] = "3500HD";
    myCarriers[2][14] = "2000HD";
    myCarriers[2][15] = "LH1500";
    myCarriers[2][16] = "LH3000";
    // This function will populate the carrier Drop-down List.
    // This function is called from the initialize event of the carrier Drop-down List.
    function getCarriers(dropdownField)
    dropdownField.clearItems();
    for (var i=0; i < myCarriers.length; i++)
    dropdownField.addItem(myCarriers[i][0]);
    // This function will populate the plans Drop-down List for any event EXCEPT the change event.
    // This function is called by the initialize event of the plan Drop-down List.
    function getPlans(carrierField, dropdownField)
    dropdownField.clearItems(); // Clear the items of the Drop-down List.
    for (var i=0; i < myCarriers.length; i++) // Look through all the carriers until we find the one that matches the carrier selected.
    if(myCarriers[i][0] == carrierField.rawValue) // Check to see if they match.
    for (var j=1; j < myCarriers[i].length; j++) // When they match, add the plans to the Drop-down List.
    dropdownField.addItem(myCarriers[i][j]);
    dropdownField.rawValue = myCarriers[i][1]; // Display the first item in the list.
    // This function will populate the plans Drop-down List for the change event.
    // This function is called by the change event of the carrier Drop-down List.
    // The first parameter is simply a pointer to the xfa object model.
    function getPlansOther(myXfa, dropdownField)
    dropdownField.clearItems(); // Clear the items of the Drop-down list.
    for (var i=0; i < myCarriers.length; i++) // Look through all the carriers until we find the one that matches the carrier selected.
    if(myCarriers[i][0] == myXfa.event.newText) // Check to see if they match. Note: we have to use the event.newText in this case because
    { // the ch

    continued...
    change hasn't been committed yet.
    for (var j=1; j < myCarriers[i].length; j++) // When they match, add the states/provinces to the Drop-down List.
    dropdownField.addItem(myCarriers[i][j]);
    dropdownField.rawValue = myCarriers[i][1]; // Display the first item in the list.
    when i try to add 4 more arrays (add items to first drop down list and second drop down list), nothing displays in either drop down lists. please let me know the items that need to be changed - besides these items (i know i need to add arrays and add myCarriers[1][0],[2][0],[3][0] to [6][0] --- for 4 additional items in the first drop down):
    var myCarriers = new Array(new Array(2), new Array(14), new Array(17)); // Create a two-dimensional array.
    // For each carrier, add a 'new Array(number of plan +1)'.
    // Define the carrier and the corresponding plans.
    // The array syntax is arrayName[index][index].
    // The first index number represents the carrier,
    // the second index number is the actual data value.
    myCarriers[0][0] = " "; // The first items in the Drop-dowm Lists should be blank.
    myCarriers[0][1] = " ";
    myCarriers[1][0] = "ANERT"; // The first data value is the carrier name,
    myCarriers[1][1] = "MC250"; // the rest are plans.
    myCarriers[1][2] = "MC2501";
    myCarriers[1][3] = "MC5002";
    any help would be greatly appreciated. thank you!

  • Populating fields, drop down lists, etc... from external data

    Hi,
    I am trying to evolve my forms, and am interested in learning how to connect my forms to external data sources.  I assume using server solutions would work, but are complex and costly.  They are also likely beyond my scope of understanding.  What are the best practices for doing this?  Can it be done with a text file or spreadsheet?  I am really looking for a better way to create custom data in forms than to go into the script and change them manually.  Price is a good example.  I have some forms that generate a very basic quote for services.  When the price of part x changes I need to going into the from chance the script for those items, re-save it and hope I have not missed any items.  Evey time his happens it is a hassle.  Not to mention if more than one user needs it I have to make sure they are all using the right version (to be clear I am less worried about this part as it seems a complex task).
    Is there a better way of doing this?  What are the best practices for this?  What external sources can be used to hold the data.  I would be interested in any tutorials that may exist on the subject as well.
    Thanks in advance for any/all help. 
    Tom
    P.S. it is amazing what LCD can do, and that I really enjoy working in it, although I have little background in scripting.  Great product and resource!

    Thanks Paul,
    I have been able to solve the drop down list question, thanks to your help.
    I have another question that involves locking specific fields in a four page form which contains approximately 100 fields that need to be locked before the end user completes the remaining fields. How do I lock individual subforms so that the remaining fields remain open and editable?  The final version of the form, will have at least 200 fields in it that will also need to be locked in sections.
    I can lock all the fields using the lock all fields button, but have been unable to make it work for just part of the form.
    I've emailed the draft form.  It would be really helpful if I had one example of a locked subform on the form I'm struggling with.
    Thanks for your help.
    Nellie

  • Adobe LiveCycle Drop Down List which allows typing to filter the values in a Drop Down list

    I have a drop down list in my form with contains a lot of different numbers, text, countries, cities and states, etc.
    I would like the user to either have the option to only use the drop down list or they can type "Zapple" or any portion and have it populate the value.
    Is there a setting or code which I can use which will do this?
    Currently, if the user types the first letter or number it will take them to the beginning of the list (since I have them listed alphabetically/numerically), but I'd prefer they can type beyond the first character and pinpoint the option they're looking for.
    Thank you for any help

    The whole sample will need to be updated. As I said in the email it can be done but it will be complex. This particular sample requires an external xml file. You will need to pull this from data in the form.

  • How can I select from drop-down list and jumping to selected subform?

    I using LC Designer ES2 vers 9. Developing XDP. How can I Select from a drop-down list the appropriate selected subform (jumping to the selected subform on the page)?
    drop-down list...A (jump to subform1)
                             B (jump to subform2)
                             C (jump to subform3)
    subform1
    subform2
    subform3
    ....end of form

    Hi,
    you cannot set focus on a subform but on a field, as only interactive objects can be focussed.
    From a dropdowns exit event the script will look this way:
    switch (this.rawValue) {
              case "A" : xfa.host.setFocus("form1.page2.field1"); break;
              case "B" : xfa.host.setFocus("form1.page2.field1"); break;

  • Populate drop-down lists based on check box selections

    Hi. I'm creating a Service Work Order form. At the top, there are several check boxes for the various services we provide, under that , more text fields, drop downs and checkboxes to elaborate on those services, and then at the bottom, fields for pricing.
    I'd like the top half of the form to drive the pricing info that is available or that auto-populates at the bottom.
    Ideally, I'd like to make the pricing specific based on 3 things:
    the service checkbox
    the client
    and the details on that service
    For example:
    If Client XYZ wants Service A that includes subservice B
    $123 should show up on the bottom half in the field for that service
    If Client ABC wants Service B that includes subservice C
    $456 should show up on the bottom half in the field for that service
    Does that make sense?
    I've been unable to get code to work in either the calculate and pre-Open options
    I first tried calculate and used this code (which was just a guess on my part)
    if (CheckBox1 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 50
    elseif
    (CheckBox2 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 50
    elseif
    (CheckBox5 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 55
    elseif
    (CheckBox6 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 55
    elseif
    (CheckBox7 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 50
    elseif
    (CheckBox8 == 1) and if (CheckBox9 == 1) then
    $.rawValue = 50
    else
    $.rawValue = 0
    endif
    That didn't do anything but give me an error about "and"
    So I tried putting code in pre-Open:
    // clear the dropdown displayed value and items
    this.rawValue = null;
    this.clearItems();
    // repopulate the items based on the checkboxes
    if(offshore.rawValue == 1)
        this.addItem("$40.00", "offshore_001");
        this.addItem("$45.00", "offshore_002");
        this.addItem("$50.00", "offshore_003");
    if(inland.rawValue == 1)
        this.addItem("$40.00", "inland_001");
        this.addItem("$45.00", "inland_002");
        this.addItem("$50.00", "inland_003");
    I got no error but nothing populated and the drop-down was, in effect, disabled.
    Any help would be appreciated.
    Thanks!

    Gavin,
    This sounds like an issue that is not related to JHeadstart. To simplify the test case, you could create a simple drag-and-drop ADF application without JHeadstart and see if the same problem occurs there.
    Your suggestion that it is related to the where clause seems likely. Please find out what kind of object USER_ENV is, and how it is initialized. Maybe this initialization is skipped when bouncing the application.
    What happens if you perform the query in SQL*Plus, without doing anything about the USER_ENV?
    Maybe you should ask the Oracle Applications discussion forum...
    kind regards,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • Populating a drop down list of users using JSON from a REST call

    Hi guys,
    First post, have just started the mammoth project of turning us paperless.
    My first task has been to create a header template - this header to be used on any form we use. I got this done almost without issue, it seems the only complication is to attach the username to the document.
    Initially I tried to do this with a text field. I set this up with a calculation script to set this.rawValue = identity.username (also tried identity.name), however further reading taught me that that requires priviledged context (haven't figured out what that is or how to get it yet, but it seems like a 'no' for this method).
    My next step has been to attempt to let the user pick their username from a list. "Easy!" I thought, "I just set up a webscript last week to return a configurable list of user details. My web script (it runs off of Alfresco CMS, for the record) is accessed from an URL like https://docs.ourcompany.com:8443/alfresco/service/ourcompany/users?useGroup=[a user group]&filter=[a filter string] and returns JSON like this:
        "users" :
    "name" : "Chris O'Kelly", "userName" : "ChrisO"
    "filter" : "all",
    "error" : 0
    In the layout:ready script section for my dropdown I have used the following js
    function createRequest() {
      var result = null;
      if (window.XMLHttpRequest) {
        // FireFox, Safari, IE>6
        result = new XMLHttpRequest();
        if (typeof xmlhttp.overrideMimeType != 'undefined') {
          result.overrideMimeType('application/json');
      else if (window.ActiveXObject) {
        // IE <7
        alert("No available type");
        result = new ActiveXObject("Microsoft.XMLHTTP");
      else {
        alert("No available type");
        return;
      return result;
    var req = createRequest();
    req.onreadystatechange = function() {
      if (req.readyState != 4) return;
      if (req.status != 200) {
        alert("REST call failed");
        return;
      // Request successful, read the response
      var resp = req.responseText;
      this.addItem(resp.users.name, resp.users.userName);
    req.open("GET", "https://docs.ourcompany.com:8443/alfresco/service/ourcompany/users?useGroup=GROUP_EveryUser&filter=status", true);
    req.send();
    But when I preview the form I get nothing, no errors, no alerts, no filling of the dropdown. I've read a few conflicting forum posts on whether or not xmlHttpRequest works within liveCycle forms, so I suppose the guts of my question boils down to- does it?

    Hi!
    In the DropDownList set the labelField property to the name of the object property you want to appear.
    Ex:
    <s:DropDownList labelField="facilityNumber"
                    includeIn="NewInspection"
                    dataProvider="{ddFacNum}"
                    fontFamily="Arial" fontSize="16"
                    id="ddFacilityNumber"
                    prompt="Select facility number..."/>

  • Populating a Drop Down List

    I'm new to using Flash Builder 4, so we'll get that out of the way immediately!
    My project uses a local database to retrieve and store information.  I've successfully created the database & can query it.  The problem I have is taking the results of that query and populating a simple dropdown list control.  All of the examples and tutorials I've seen, watched and read use either 1) local XML files for sample data or 2) a web data service to return items.  I've gone through those tutorials and trying to accomplish what I want is a piece of cake.  The "Data/Services" has no such 'connector' for local databases, so those 'techniques' don't apply...
    I've tried numerous different solutions I've found and the result is I get all sorts of errors.  This is just my latest attempt and it throws an "Error #1034: Type Coercion failed: cannot convert flash.events::SQLEvent@437fe49 to mx.rpc.events.ResultEvent" at me.  I've tried to search for the different error numbers I get and frankly, the explainations and solutions seem totally out of whack.  I've tried to incorporate them with no success.
    Using Flash Builder 4, it inserts the Spark components.  Lots of errors complain because I don't have an "mx:" component.  Changing "s:DropDownList" to "mx:DropDownList" per examples then starts throwing it's own set of unique errors in the process.
    I have had code where it doesn't throw any errors, but the dropdown list just shows [object Object] for each item returned by the query.  This code throws the error I quote above:
    private var getFacNum:SQLStatement = new SQLStatement();
    [Bindable]
    private var ddFacNum:ArrayCollection = new ArrayCollection();
    private function populateFacilityNumber():void
    getFacNum.sqlConnection = connection;
    getFacNum.text = "SELECT id_facility, facilityNumber FROM facility ORDER BY facilityNumber";
    getFacNum.addEventListener(SQLEvent.RESULT,ongetFacNum);
    getFacNum.execute();
    connectionStatus.text = "Executed Query"; 
    // just show me a prompt that indicates I've gotten at least this far...
    private function ongetFacNum(e:ResultEvent):void
    ddFacNum = getFacNum.getResult().data as ArrayCollection;
    <s:DropDownList includeIn="NewInspection"
    dataProvider="{ddFacNum}"
    fontFamily="Arial" fontSize="16"
    id="ddFacilityNumber"
    prompt="Select facility number...">
    </s:DropDownList>
    I'm coming from a .NET developing environment and it seems that these two types of systems are vastly different.  Any and all assistance, links, pointers, whatever, would be greatly appreciated.

    http://www.adobe.com/devnet/flex/videotraining.html
    http://www.adobe.com/devnet/flex/flex_net.html
    I haven't used .NET for data access as yet but these 2 links should give you a start.
    If you were talking Coldfusion or PHP, I might be able to help but fortunately I haven't been forced to used .NET for a few years. ;o)

Maybe you are looking for

  • How to Configure the Buttons on the QAF for Mobile UI Screens...

    Hi Experts, I am in a serious need of help from the experts who already designed the Mobile UI screens. I have built a add-on where now we are looking this add-on to be available to use in mobile applications also. Now here what I did is I have devel

  • Creative Cloud - Download error - stubborn error

    This seems to be inconsistency quality assurance going on with Creative Cloud using Adobe Application Manager, I always get this stubborn - darn stubborn error message "Download error. Please contact customer support." In this case, I have no idea wh

  • How to change sub total value in ALV Grid.

    Hi All, Can u please explain how to change SUBTOTAL Value in ALV Grid display based on another field value. EX; F1 subtotal is  initial then we have to modify the F2 sub total to 9999.9. Thanks Radha.

  • Essbase and database in different server

    Hi, It is possible to put the ESSBASE in one server and database(oracle , SQL Server) in another server? It is possible, what are the things i want to do? Thanks, PC

  • Urgent: Error in PCUI

    Hi Forum, I am facing an error after I have applied SP10 for BBPCRM 400. When I am entering a account no, in the accounts transaction in PCUI and click on the "go" button, it says the Business Partner does not exist. Thouth the BP is existing in the