Fill many Combos

I'm new to Flex, getting just get wet feet. So I have a single form, I thought that would be a good dry run for to learn a little.

The form includes 53 dropdown comboboxes. Most combos have fewer than 10 values and all values for all the combos are stored in the 1 table (Oracle) differentiated by a "CODE".

Thus, for example, a drop-down list can be between the sexes, and in the database, it looks like:

[code]
CODE VALUE
Male SEX
Female SEX
etc.
[/ code]

I have a database procedure that kicks on XML for the databind - that works very well it accepts just the 'CODE' as a param... and I have some Flex code in order to use a < mx:HTTPService > more event 'result' (databind) populate combos, but should I have HTTPService definitions/functions for every Combo/CODE I need to fill!

I know that there is to be a more easy + dynamic way... ideas?

Note the structure of my data, and how I am assigning to various ComboBox data providers. You owe me a bud... :-)




Cake
Cookies
Ice cream


Meat
Fish
Chicken


Water
Juice of
Milk


-----------------------------------------------------------------------------

http://www.Adobe.com/2006/mxml '.
creationComplete = "dataRequest.send (); » >

Import mx.collections.XMLListCollection;
Import mx.rpc.events.ResultEvent;

[Bindable] private var allColl:XMLListCollection;
[Bindable] private var cbx1Coll:XMLListCollection;
[Bindable] private var cbx2Coll:XMLListCollection;
[Bindable] private var cbx3Coll:XMLListCollection;

public void httpResult(event:ResultEvent):void {}
var result: XMLList = event.result.comboBoxData as XMLList;
allColl = new XMLListCollection (result);
cbx1Coll = new XMLListCollection (allColl.getItemAt (0) .cbxItem);
cbx2Coll = new XMLListCollection (allColl.getItemAt (1) .cbxItem);
cbx3Coll = new XMLListCollection (allColl.getItemAt (2) .cbxItem);
}
]]>


result = "httpResult (Event)" url = "myXML1.xml" / > "





Tags: Adobe LiveCycle

Similar Questions

  • Fill a combo box based on a different c/b to Acrobat 9 Pro

    Greetings,

    I followed the tutorials Parkers Thom and have tried several variations over the past two weeks, but all without success.

    I am building a small form to work.  The form has a combo box that, based on the choice, fills a second.  In this case, the form allows patients planners choose a 'currentDiagnosis' (' Brain_Seizure', 'Brain_Tumor', etc.).  Based on the selection of a second combo Box is filled with codes CPT, "currentCPT" (for example '151.2', "152.2", etc.).

    Document-level script

    Master list of lists
    Each entry of this listeral object is the name of a currentDiagnosis
    Select the currentDiagnosis from the drop-down list box
    The associated value is the list of the CPT, where each element is a code appropriate to the CPT, [< code >

    ]

    var ocurrentDiagnosis = {}
    Brain_Seizures: [["-"], ["150.1"], ["150,2"], ["150.3"], ["150,4"]],
    Brain_Tumor: [["-"], ["151.1"], ["151.2"], ["151.3"], ["151,4"]],
    Lung_nonSamllCell: [["-"], ["152,1"], ["152,2"], ["152.3"], ["152,4"]],
    Lung_SmallCell: [["-"], ["153,1"], ["153.2"], ["153.3"], ["153,4"]]
    };


    function SetcurrentCPT()
    {
    If (Event.willCommit)
    {
    The list of CPT in the main list
    Given that the selection is made,
    Event.value contains the currentDiagnosis
    var lst = ocurrentDiagnosis [event.value];


    Clear the list of parts, if there is no parts for selected Assembly
    If ((lst! = null) & & (lst.length > 0))


    this.getField("currentCPT").setItems (lst);


    on the other


    {


    this.getField("currentCPT").clearItems ();


    }


    }


    }

    Events of typing "currentDiagnosis".

    setcurrentCPT();

    The shape is complete with the exception of these two fields to cooperate (LOL).

    All wiould help greatly appreciated.

    Tim

    System:

    2.66 Intel Quad core

    Video 1 GB 5700

    8 GB Ram

    Windows 7 64 bit

    Adobe Acrobat 9 Professional

    According to the code you have posted, the line:

    setcurrentCPT();

    Need to replace:

    SetcurrentCPT();

    or you can also rename the function to: "setcurrentCPT".

    In addition, "Lung_nonSamllCell" is probably misspelled.

  • Fill the combo box list dynamically

    I have a drop-down list box that is filled from a cluster table which is unbundled element with that I want to fill the drop-down list box. There are several types with the same element such as

    1-60mm

    1-60mm

    1-60mm

    1-60mm

    3-60mm

    3-60mm

    What I want to do is just see one 1-60mm and a 3-60 mm and when selected will get the value of the index view with thos types only in a table?


  • Combo Box Manipulation of external file

    I looked and looked and looked at can not find much info on it. And I do not get the case. My ultimate goal was to load values from a text file called "data.txt" which would be stored with the pdf form. But I can not even understand how to fill the combo box list via code. Can someone help me or tell me if it is possible to load the values from a text file?

    I have a drop-down list named 'ItemCode' area, but still I can't understand how to add items to the box through code only.

    Combo1.gifCombo2.gif

    I did it on Page 1 open but it never works for me for some reason that I can't understand.

    //-------------------------------------------------------------

    -Do not change the tags XML-

    //-------------------------------------------------------------

    < Page Actions >

    < ACRO_source > Page1:Page Open: Action1 < / ACRO_source >

    < ACRO_script >

    / * belongs to: Page-stock: Page1:Page open: Action1 * /.

    var ItemCode = this.getField ("ItemCode");

    ItemCode.clearItems ();

    ItemCode.setItems ("Test");

    < / ACRO_script >

    < / Actions page >

    < AcroForm >

    < ACRO_source > CopyBillAddy:Annot1:MouseUp:Action1 < / ACRO_source >

    < ACRO_script >

    / * belongs to: AcroForm:CopyBillAddy:Annot1:MouseUp:Action1 * /.

    var ABC = this.getField ("CopyBillAddy");

    var ST = this.getField ("Ship_To");

    var BT = this.getField ("Bill_To");

    If (CBA.value == 'Yes') {}

    ST.value = three.value

    } Else if (CBA.value == 'Off') {}

    ST.value = ST.value

    }

    < / ACRO_script >

    < / AcroForm >

    < AcroForm >

    < ACRO_source > Invoice_Number2: calculate < / ACRO_source >

    < ACRO_script >

    / * belongs to: AcroForm:Invoice_Number2: calculate * /.

    (/ * BVCALC Invoice_Number1 EVCALC **/event.value=AFMakeNumber(getField("Invoice_Number1").value)

    < / ACRO_script >

    < / AcroForm >

    The argument for the setItems method must be an array, not a string:

    ItemCode.setItems (["Test1", "Test2"]);

    For more information, see: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.752.html

    And also this tutorial: http://acrobatusers.com/tutorials/2007/js_list_combo_livecycle/

  • channels drop-down list box

    I'm trying to get some combo boxes to have their entries populated by a text file. I have read many entries of forum on 'string []' property, but he refuses to work for me. I want the combo box is editable by changing the entries in a text file.

    Does anyone can beat this code into submission? I get this error message on a controller GPIB needing to be in charge.

    I've included the vi, the text file, I want to fill the combo box 'Version number' and that it should be.

    Tay

    You have several issues General, but here are the ones affecting your drop-down list box:

    1. In general, if you make copies of OR provided files, use new names.
    2. The VI you changed to read strings from the worksheet is bad DEFAULT.  You have the number of lines, by default 4 and start playback offset set by default to 132.  You get the error is because the file is not 132 bytes of data.  Definition of those to-1 and 0, repsectively will remove the error.  You should do this by opening the VI, change the value, then right-click and select "Data management"-> "Make current default value" for each of the two controls.
    3. Now, the VI you properly load the values in the file.
    4. There is no reason to replay the file whenever the user changes the value of the drop-down list box.  Read once at the beginning of the program.
  • When dynamically created variables are emptied in the sequential process template?

    I have a sequence TestStand 2014 in which I dynamically create and fill many FileGlobal variables in the installation section of my main sequence.  I have it using the TestStand API to read the data in an Excel file (the data consists mainly of thresholds, limits, etc.).  The methodology itself works flawlessy.

    However, there are differences in behavior when using entry points both execution of the sequential process model.  When you use the entry point of execution 'Single Pass', he has no problem in test a DUT after another.  However, when you use the entry point for execution "Test DUT", I encounter the following error after completing of DUT1 and DUT2 testing:

    An error occurred the call 'InsertSubProperty' in 'PropertyObject' of 'NI TestStand 2014 API.

    The name of the element "VariableName" is not valid because it is already in use.

    I interpret this error message means that the variable I am trying to dynamically create the DUT2 track is already present race of DUT1.  I have a few questions about this:

    1. at what point in the sequential process template are dynamically created variables flushed, such as run a further by using 'Single Pass' starts with a clean slate?

    2. is there a reminder that I can substitute such as variables to rinse after each HAD run, allowing me to dynamically create variables on each HAD, during execution using "Test UUT?

    3. better yet, is there a counter of TestStand I can query to determine if I already ran DUT1 when using "Test DUT", such as DUT2 uses the variables that were created dynamically on trail of DUT1?

    Or you can simply use the PropertyExists function as a precondition.

    PropertyExists ("Locals.Foo")

  • Update of list box strings [] programmatically in a table

    Hello

    I have an application that has several sites on the front where the user can select variables shared by using a shared variable control. I would like to replace these controls, which are heavy for the operator to select from variables published, to drop-down list boxes that list only the names of variables in a current published library. I have no problem cela providing you a shared list of variables and update the strings [] property in a drop-down list box. Then I can easily convert data types to use as shared variables elsewhere in my program.

    However, I have a few questions. First, in some cases, the shared variable controls are inside a table, and I do not know how to fill the combo box selections in the table. Perhaps there is an easy way that I'm missing...?

    Second, there are a lot of controls of shared variable that I will need to update the areas drop-down list, and in each case, I have to fill out of th drop-down list boxes programmatically. Is there an easier way to do it with the custom controls or type defs or something, so that I can just bring a control on the front panel that will always fill up with variables shared in my library?

    Thanks in advance for the help.

    Michael Hampson

    XL Automation, Inc.

    I rarely disagree with Ben, but a driving force seems to be overkill for a job you want to do it once when the application starts.  Simply create a first reference your comboboxes (shouldn't be too much work unless you have a large number of them), then loop through the array, as shown:

  • 32 bit OS and plug into the size of the memory of the Council

    Does anyone know how this works...  If I get a PC with a 32 bit OS (Windows XP 32-bit, etc.) and it has 4 GB of installed memory, how the OS accesses a plug in card memory or I/o memory mapped on it.  32-bit to address up to 4 GB and which is exhausted by the RAM installed.  Or, does not.  Or, it would require a 64-bit OS to work.

    The reason why I ask is that I'm looking at the slot 18 PXI express chassis for a new design, but it would be filled many cards that contain large amounts of memory on them that control would need access.  For example, if each card had 256 MB of memory and I put 10 of them on the chassis and installed the controller has 4 GB of RAM, it seems to me that I have run out of memory addresses.  The cards would be personalized using VISA advice to implement "the device drive" to access.

    I am also interested in my candidacy under WinXP vs under LabWindows in real-time.  I can't seem to find the details on LabWindows in real-time, but I guess it's a 32 bit OS.

    Thank you for your two answers.  Very useful.

  • Drop-down list in the file browser


    Use the properties 'Strings []' to fill the combo box programmatically.

    Kind regards

    André

  • Pavilion a6500f loses wireless Internet adapter

    I have a Cisco WUSB600N wireless adapter which loses the network and the Internet after several hours.  The only way to restore is to restart.  I get the error message Windows cannot automatically bind IP network protocols.  The computer has an NVIDIA chipset and I have the latest drivers (WIN7) for the NVIDIA GEOFORCE Board 7100/630i and the adapter.

    Need help my spouse continues to wonder why it has not bought a computer starting with a D based in Round Rock, Texas

    I simply disabled IPv6 on the adapter wireless through advanced properties (no need to box regedit or order > ipconfig/release).  Apparently, many combos of router/adapter (especially older routers) cannot deal w/ IPv6 under Windows 7.  I guess I could check for the firmware on my BELKIN 6 + router Mimo (model No. F5D9231 - v.41) but it seems to work now so I didn't try it.

    Funny, but it affects only one of the three HP computers.

  • Sensitive site does not

    Hello

    Im working on my portfolio (www.hansramzan.tk) and trying to get my site to be sensitive, so I can resize the browser what whether the content will adjust. I know how to make the rectangles and 100% width of the text boxes and, in a certain extent, my site is sensitive. However, when I resize the browser beyond a certain point (i.e. when I break the browser to the left side of the screen in windows 8) a scroll bar appears and the sit is therefore more responsive!

    You can see what I mean here;

    http://www.hansramzan.TK/index.html

    ID love it if one of you geniuses out there could help me.

    Thanks in advance,

    Hans R

    Muse is not suitable for really responsive web site designs. You can use certain methods to cheat it and display a sensitive site when it isn't really. Muse will allow you to generate mobile and Tablet versions of a web site for small resolution screens.

    You can also make your able HiDPI site, which will fill many more screens to resolution high-resolution "retina". But Muse fact that HiDPI between 1 x and 2 x resolution factor. Some sensitive websites will have HiDPI settings to 1. 5 x, 2 x and 3 x. They may even add 4 x to account for things like the display of 15 megapixels of the new iMac.

    For now, you can use tools like Adobe Edge fully sensitive reflow and Adobe Dreamweaver parallel between them to create web designs.

  • Qmail monitoring

    Hi people,

    Anyone watching qmail with AC?
    I played a bit around to do some basic followed by qmail, but are not very successful.
    One thing I did for checking if qmail is sending mail, was to check the process belonging to qmails (which is the 'sending' user).
    I also want to monitor the status of the other qmail services such as qmail-smtpd etc.
    At the command line, the thing in fact to do this is to run for example "svstat/service / *" which shows all the processes of daemontools and their State as well as their up-/ time to stop and PID.
    AFAIK daemontools do not write PID "real" files
    Another thing I want to do is a few stats about qmail mailqueue.
    At the command line, it's done by for example ' / var/qmail/bin/qmail-qstat "which shows for example" messages in the queue: 6803.
    messages in the queue, but not yet of pre-treatment: 997 "
    Generate graphs of these results would be nice, too.

    Checking if qmail sends mail (as above) was made by adding a service that checks the process and has 'CredName.User.eq = qmails' as process.query.

    Can anyone please help with answers or point me to the right way to do these things?

    See you soon

    Tobias

    I'm glad to hear it works from the command line, I added the
    steps to use the plugin to Headquarters:
    http://support.Hyperic.com/Confluence/display/DOCSHQ27/qmail+plugin#qmailPlugin-usage

    Also updated the plugin with 2 changes:
    -Add a configuration property 'hostname' for the services used in the
    metric models, default is "localhost".
    -Add metric "Outbound connections" to both services

    For more information on the filters:
    http://support.Hyperic.com/Confluence/display/DOCSHQ27/plugin+XML+descriptor#PluginXMLDescriptor-filtertag

    And metric models:
    http://support.Hyperic.com/Confluence/display/DOCSHQ27/measurement+plugin#MeasurementPlugin-metrictag

    Keep the comments and questions coming, this helps fill
    many of the blanks in the plugin docs.

    Post edited by: rmorgan

  • Import or copy of list in the drop-down list Excel

    Can someone help me with this?  I have a list of 115 departments that I will fill the drop-down list in an acrobat pdf form and do not have time to enter them one by one...  Is it possible to import this list or to copy / paste?  Help, please...  Thank you very much!

    Here is a link to a very simple PDF file that shows how you can fill a combo box (aka drop down) with a list of items that can be pasted into a text field, after copying the Excel (or another source): https://acrobat.com/#d=sIJoabh12oYOY19AuTZ9yw

    The idea is that once the drop-down list is populated after having clicked the "Populate combo box" button, you can copy & paste the field to your form. Don't forget to search for duplicates and empty lines.

  • How to list the APEX users/accounts?

    How can I get all registered users in the APEX (for example fill a combo box) using the APEX APEX 4.0 authentication scheme? I see the API functions to create, remove, or get information for a specific user, but if I don't know the name or id of users I can't get them.

    Thank you
    Ander

    Ander,

    Maybe I don't understand what you mean by

    any user table

    , why wouldn't one of the views as APEX, APEX_WORKSPACE_APEX_USERS, provide the information you are looking for?

    I did the user_name APEX an attribute of my application, person_tbl, that allows me to link this table to any display user APEX necessary. -What is the direction you need to go?

    Jeff

    Published by: jwellsnh on October 22, 2010 11:12

  • Distribute PDF forms to collect information and track their status†

    Hello

    Comparison of the versions of Acrobat (http://www.adobe.com/products/acrobat/matrix.html) there is:

    Distribute PDF forms to collect information and track their status†

    and on the bottom:

    For ad-hoc distribution and collection forms data for up to 500 people.

    This means that only 500 people can send the form to the server acrobat.com?

    Or only 500 Forms supports can be made? Only 500 lines in my tracking page?

    What happens if I check my answers?

    I need follow responses of 50 people, but they fill many many forms and I need track responses on their part so I need to know the limits.

    Thanks for the reply in advance.

    Kind regards

    Maciej elkam

    Captatio

    If you activate player rights, allowing the player uses ave files or related items, then you are limited to 500 uses for the presentation. For more details on this topic, read the article 15 of the LICENSE agreement. Otherwise, do not activate the player rights and collect data only, not complements in PDF format.

    For your 50 people, you should probably read the license carefully, but I think that you are covered. The EULA is downloadable from Adobe to review if you don't have Acrobat.

Maybe you are looking for

  • Want Phoenix 810: Firewire card HP Desktop tips want Phoenix 810-430QE

    Any advice if it is possible to add a Firewire card/port on the 810 running windows 10? Any thoughts on a map of appropriate model 1394 for better be compatible? I am trying to scan all my old camcorder tapes and my old rig with a firewire port is to

  • Re: Satellite P200 - error recovery

    No sound has take me the opportunity to use the Toshiba recovery disks.After that the 1st disk it has little at the end, the error message is displayed Preinst6.swmType: stormwater managementFile size: 644 MegUpdated: 27/06/2007 20:06 Three options a

  • HP Officejet 6000 a: after far right stuck paper jam

    HP Officejet 6000 a and Windows 10. After jam paper and jam, clearing printer turn on, goes through current transport parks, start right, flashing lites power and resume. Doctor says print "general Printer Error. Transport to open the lid does not co

  • HP Stream 11: Mute button light flow HP 11 does not not in Windows 10

    I bought 11 HP notebook PC flow two weeks back. It comes preinstalled with Windows 8.1 and the sound and mute button on the keyboard has a light (Amber) which worked perfectly. After the upgrade to Windows 10, muted light was not lit. Is it a hardwar

  • HP Pavilion dv7 - 6B 63: cadence slow webcam

    Finally got rid of the error CLScan.dll and Cyberlink PowerDVD and Youcam, reloaded Cam works well when I opened Youcam, but oh what a cadence ugly! Maybe 8-10? I guess that's maybe computer, but I've seen better on an old Pentium - at least 15. Any