fill the drop-down list in a table - insert the value in another

Probably, this should be easy, but do not know if my problem is with my design of the database or with my query from CF, etc.. The drop-down list is filled correctly, but nothing is not subject to the table "order". It is an Access database and the appropriate reports are configured in the db. Let me know if you need more details on my installation of db. I'll do the same thing later on the page with USERS ("outers checker"). I put this up to people Records check equipment ("equipment"). A table has the equipment, the other is supposed to record checkout of the shares ("order"). Here is the code for the drop down menu on the first page and in the action page and the request:


Query = "qry_item."
value = "id".
display = "description" >


FORMFIELDS = "id, fname, lname, phone, electronic mail" >

It's pretty simple. You have a form called "Item" field
Do you see 'Point' in the setting your tag FORMFIELDS?

If you don't tell the tag to insert a field that's usually what you
tell him and does not insert the field.

Tags: ColdFusion

Similar Questions

  • How to use spawning with a drop-down list and a table area

    Hello

    I have a form that I need to build pages.  As it is now, I have a table in document and a drop-down list box.  When a selection is made in the drop-down list box, the StateAmt field is filled with the table.  This set works fine now, but I need to be able to make this code work with pages having engineered and need a bit of help.

    It's my javascript document:

    var gState = new Array //Create a reference to a new array

    load the table with quantities for each State

    gState ['AL'] = 40

    gState ['AK'] = 40

    gState ["AR"] = 40

    gState ["z"] = 25

    gState ['CA'] = 25

    .. .and so on, I deleted the most to make the shorter script here

    It's my script custom shot to a combo box "gstate" (FYI, I've added the initials of the State in the tab options in combo box)

    var stateamt = this.getField ("G876. StateAmt')

    If (event.changeEx to gState)

    stateamt. Value = gState [event.changeEx]

    This works very well for one page, but when I add another page (model laid) nothing happens after you make a selection in the drop-down list box.  I don't know I need to edit the script due to spawning change the domain names on each page, but I don't know how.  I tried to rename the combo gState1 and using this script (which does not work)

    Fna var = event.target.name.split(".");

    var fp = fna.length > 1? "fna [0] +". ' ' + fna [1] + ". » : » « ;"

    var stateamt = this.getField(fp_+_"G876_StateAmt").name / / (this is G876. StateAmt in the original formula)

    var = this.getField(fp_+_"gState1").name //(this is gState GST on the original form)

    If (event.changeEx in GST)

    stateamt. Value = gst [event.changeEx]

    If anyone can help me with this, I would be very grateful.

    Thank you

    Lisa

    I fugured it myself. It works:

    Fna var = event.target.name.split(".");

    "var fp = fna.length > 1? fna [0] +". ' ' + fna [1] + ". » : » « ;"

    var stateamt = this.getField (fp + "G876_StateAmt")

    If (event.changeEx to gState)

    stateamt. Value = gState [event.changeEx]

    I didn't totally understand the script and trying to change the wrong part.  It is still using the gState table and I needed to change the text box to get the information in the table.

  • drop-down list dataProvider and an object of value

    I am filling a dropdown menu with values that are stored in an object of value.   I'm pulling the values from the table of a database vai SQLite the SQLResult object and they come as an array of objects of value. This is exaclty what I want, so I refer to those within a property of my object model and shipping and the event carrying this table.   I place the array of objects of value in a collection of table as follows:

    var dropDownListValues:ArrayCollection = new ArrayCollection(event.foodCategoryList);
    

    Try to access it via a drop-down list lists dataProvider property as follows:

    foodCategory.FoodCategory_DropDown.dataProvider = dropDownListValues;
    

    My drop-down list then displays

    [object Object]
    [object Object]
    [object Object]
    [object Object]
    [object Object]
    [object Object]
    

    My dropDownListValues object has the following table:

    [0]
         Foodcatagory = "Grains"
         FoodCatagory_ID = 1
    
    [1]
         Foodcatagory = "Vegetables"
         FoodCatagory_ID = 2
    
    
    
    
    etc. all the way up to index 5
    
    
    

    How can I get the drop-down list to display only the Grains, vegetables... etc.?

    Thank you

    I had to search around for a few hours today on the same subject.

    Basically just set the labelField of the drop-down list the name of the field for its values

    foodCategory.FoodCategory_DropDown.labelField = "Foodcatagory";
    
  • no window drop-down list appears after you insert the music cd

    Running 32-bit XP Pro - Microsoft Techs after a virus problem, my computer did not recognize one of the 2 discs (CD & DVD/CD Burner) had fixed a problem, but the residue was that no window does not appear after inserting a disc in the drive of CD Play (D).  The window was the choice on what to do to move forward, for example to burn a cd; Open with MS Media Player, etc..  Now, I have to go to the Start button, right click then select Explorer, then scroll down to the CD drive (drive D on my box) and and then proceed from there to listen to a disc.  How can I get this DOS window?  Thank you.

    DMAN

    Hello

    I suggest you to follow the steps in this link and check if it helps:

    http://support.Microsoft.com/kb/330135

    It will be useful.

  • Use a 2d array to populate a drop-down list box and return a different value.

    I am very new to Labview. I tried to write a VI which reads in 3 columns of data from a spredsheet excel (.csv) as an array of strings. I was able to understand it and then isolated the 2nd and 3rd column to transform data in double format. I want to do is use a list box dropdown refrence the 2nd column of data and find the 3rd so that it can be multiplied by my waveform in post processing. I want to make it easy for the user to configure the sensitivity of the gauge. I enclose my VI and an example of data that I'm reading in. Please give me a helping hand.

    Thank you

    montoya51


  • Drop-down list on the entry of riding?

    Hello

    I'm developing an interactive form of VISITOR Adobe, I have Designer 8.1 and Reader 9.0 in my Windows 7 laptop. When I checked the menu EDIT-> properties-> compatibility, its form Adobe XML File (XDP)

    When I opened this interactive form to VISITORS in a browser, right click and PROPERTIES-shaped, then I saw the "PDF Version: 1.6 (Acrobat 7.x).

    I have a bunch of drop-down lists in my interactive form, done by drag dropiing the purpose of "combo", at the end I linked to a data source, works very well, say his list of COUNTRIES.

    Use open form, as soon as he saw the 'USA' pre-filled from the drop area, very well.

    Declined the user entries, he saw a couple, like the USA, Canada, UK, Spain, fine.

    But now the user want to enter / replace this entry USA with its own value, such as FRANCE, but my form does not allow her to behave like a field "readOnly"!

    Pls. Let me know more how to mount a seizure of values in drop-down list, according to eager users of value?

    If I understand your question correctly, then I think that you need to do is

    Check the box "Enable custom text entry" on the page of the SUBJECT FIELD

    palette. It is found in the area where you define list items in

    your drop-down list.

    I hope this helps

  • Question about the use of the feature drop-down list box!

    I have a form that I am creating for our company that will allow our field nurses choose what they need and print more effieciently.  The problem is that some parts are too long and I can't get the Combo box feature to allow them to be printed on several lines:

    Region Capture.jpg

    I talked to my supervisor to remake the shape to look like this:

    Region Capture3.jpg

    But so that we can meet the State's guidelines, it must be formatted like the first, because it is the form of the State given to us.  I want to be able to be:

    (A) that the automatic multi-line text of combo box size so it will get all the information in each box

    OR

    (B) create text boxes at the end of the automatic enteries selected data of the second picture form in boxes that look like the first photo.

    Is it possible to make one of these?

    (A) No.

    (B) Yes. Create a text box with the following code as the custom calculation

    script (assuming that the name of the drop-down list is "Combo Box1"):

    Event.Value = this.getField("Combo_Box1").value;

    For example, when the user makes a selection in the drop-down list box, the value will be

    also appear in the text box. Make sure to set the read-only text box

    and set the drop-down list box to apply the selection immediately.

  • Code JavaScript for buttons, drop-down lists, and text fields

    Hello, I currently have a form with a drop-down list field that fills a text field with something according to what is selected in the drop-down list via a custom script typo.

    I want to add a button that something will enter the field of text according to what is selected in the menu dropdown. Copy and paste the script of hitting into the button do not work and returns an undefined value.

    I would also like to add that I am new to coding and it would be more useful if someone can provide a script for it or let me know if this is not possible. Thank you.

    OK, the script of mouse upwards for the button might look like this:

    (function () {}

    var aQuotes = [];

    aQuotes [0] = this.getField("Batch").value = util.printd ("Rmmddyy-96", f);

    aQuotes [1] = this.getField("Batch").value = util.printd ("Rmmddyy-95", f);

    aQuotes [2] = this.getField("Batch").value = util.printd ("Rmmddyy-94", f);

    aQuotes [3] = this.getField("Batch").value = util.printd ("Rmmddyy-93", f);

    aQuotes [4] = this.getField("Batch").value = util.printd ("Rmmddyy-92", f);

    aQuotes [5] = this.getField("Batch").value = util.printd ("Rmmddyy-91", f);

    aQuotes [6] = this.getField("Batch").value = util.printd ("Rmmddyy-90", f);

    Get the value (export) of the element selected in the drop-down list

    var point = getField("dropdown1").value;

    Set the value of a text field

    getField("Batch").value is aQuotes [point];.

    })();

    Replace "ListeDéroulante1" in the code above with the actual name of the relevant drop-down list field.

  • Problem of editable drop-down list.

    Hi all

    • Here's the question. I have a list/menu editable drop-down list in a table. The table is hidden when the page is loaded. When the user clicks on the link to open the table, editable drop-down list is only 1 or 2 pixels wide. How can I get the editable drop down to open up the prescribed 300px?

    Here is the code:

    < select name = "CGSector1" id = "CGSector1" wdg:subtype = "DynamicInput" wdg:type = "widget" wdg:recordset = "rsCGSectors" wdg:displayfield = "CGSectors" wdg:valuefield = "CGSectors" wdg:norec = '150' wdg:singleclickselect = "yes" wdg:defaultoptiontext = "" wdg: don't restrict = "" wdg:ext = "php" style = ' width: 300px "wdg:fakeattribute =" <? " PHP WDG_registerRecordInsert ("connStr_xxxxxx", "rsCGSectors", "CGSectors", "CGSectors");? > "> < / select >"

    Thank you.

    Brian

    As this problem is not directly related to the MEASUREMENT, but assumingly rather to such aspects as defined (if any) width of the table initially hidden, please give a link to the page code in its entirety (or page) to help others to find the possible reason.

    However, it is worth mentioning "editable dropdown" ADDT´s is generated on-the-fly using AJAX features some owners as well (including rendering style), then maybe the style you setting defined here just gets ignored when the surrounding 'container' (aka table) becomes hidden - for example - using features from another library like JQuery AJAX that is certainly incompatible with that ADDT´s own implementation of AJAX.

    See you soon,.

    Günter

  • Hidden visible repeatable subform based on drop-down list selection.

    LiveCycle - hidden repeatable subform becomes visible when a "MO" is selected. However, if "MO" is replaced by "KS" or any other State in the expandable lines, visible subform should back to hidden.

    Hello

    to be able to do so, you should have your drop-down list in a repeatable subform which should be considered your main earthquakes Canada, so you can have 5 drop-down lists with each subform respectively 1 comes with it.

    So let's say that your drop-down list in a repeatable subform, and you have another subform linked to this drop-down list below

    in your drop down list exit event list, you should have if statements to determine what value is chosen, and then according to the selected value display you or hide the subform

    This.parent.index is the index of the subform you want to hide, if your combo is directly in the subform repeat you to the other subforms you hide / show

    If (this.getDisplayItem (this.selectedIndex) == "MO") {}

    Page1.resolveNode ("repeatSubform [" + This.parent.index.ToString () + "]"). Presence = "visible";

    } else {}

    Page1.resolveNode ("repeatSubform [" + This.parent.index.ToString () + "]"). Presence = "hidden";

    }

    I hope this helps!

  • question list drop-down list values

    I have successfully created a repeatable subform that calculates total fields. But to make the repeatable subform more user-friendly and to mark the shape itself, I want to insert a drop-down list in the repeatable subform. But in order to do so and have the calculations will work well the selections in the drop-down list would have to have numerical values (which are not visible or course). For example if it's a shopping list which took point milk, I would a value assigned to milk. So I guess my question is, can I add items to a menu drop-down using only javascript and assign values to these items at the same time, or I have the list print the number of value to a hidden text field in order to to use in a calculation script. Or would I need to make a connection of data from excel? Thank you

    You can have the display text and the value associated with the time using scripts.

    DropDownList1.addItem ("milk," "2.90");

    In the light of the foregoing, the addItem method accepts 2 parameters. First a display text and the second as value.

    If the user selects milk in the drop-down menu, then the "DropDownList1.rawValue" property will give value as "2,90"...

    I hope this helps.

    Thank you

    Srini

  • Fill the table drop-down lists?

    I read the discussion on this feature and created a sample form to test the code before implementing it in my main form, but I can't make it work.

    That's what I put in the "preOpen' from the drop-down list:

    Form1. DropTest.DropDownList3::preOpen - (JavaScript, client)

    First clear the items in the list

    this.rawValue = null;

    this.clearItems ();

    Build new items

    nRows var = xfa.resolveNodes ("form1. DropTest.Table1.Row1 [*]. Name');

    for (var i = 0; i < nRows.length; i ++) {}

    This.AddItem (nrows. Item (i). RawValue);

    }

    This is the hierarchy of the form

    I use a table with a repeating line (line 1). That's what the appearance of the shape as expected the names to display in the drop-down list but is not

    .

    I'd appreciate that somoene could tell me what I'm missing. Thank you

    Hello

    the preOpen event is raised on the preOpen the PDF file and not preOpen the dropDownList control.

    I think that you want to use in this case would be the event enter the dropdownlist control

    I hope this helps!

  • How the auto fill a field based on the drop-down list unless the specific item is selected

    Hi all

    My apologies if I posted this in in the wrong place, but I am new to these forums, JavaScript and Adobe LiveCycle.

    I am trying to build a form using LiveCycle Acrobat but have problems with the drop-down lists.

    Inititaly I just wanted to fill in the fields in a table based on a matching menu selection dropdown in another table.

    I used the following code and it worked fine:

    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)

    fFrom var = xfa.resolveNodes ("Workbook.Content.Table1.Row3.AppropriationDetails [*]. Row4.cell1');

    OTF var = xfa.resolveNodes ("Workbook.Content.Table2.Row3.AppropriationDetails [*]. Row4.cell1");

    for (var i = 0; i < = fFrom.length - 1; i ++) {}

    fTo.item (i) .rawValue = fFrom.item (i) .boundItem (xfa.event.newText);

    }

    The problem is that now I want the code above works UNLESS one of the items in the drop-down list is enabled specifically in this case, I want the text box in the other table to display a message such as "Details of the entry in the field below.

    I tried to create an If Else statement using the following code:

    Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)

    fFrom var = xfa.resolveNodes ("Workbook.Content.Table1.Row3.AppropriationDetails [*]. Row4.cell1');

    OTF var = xfa.resolveNodes ("Workbook.Content.Table2.Row3.AppropriationDetails [*]. Row4.cell1");

    for (var i = 0; i < = fFrom.length - 1; i ++) {}

    If (fFrom.item (i) .rawvalue = "Option 3") {}

    fTo.item (i) .rawValue = "enter the details in the field below.

    }

    else {}

    fTo.item (i) .rawValue = fFrom.item (i) .boundItem (xfa.event.newText);

    }

    }

    The code now filled the field with "Enter the details in the field below" any item I select in the drop-down list.

    Your help is greatly appreciated.

    See you soon,.

    ozzy_q

    Hello

    You use .rawValue in the change event. This will cause problems because the selection of the users has not received .rawValue from the drop-down list at the time when the change event is triggered.

    Move your script as it should to the output of the dropdown event.

    Hope that helps,

    Niall

  • Fill a textfield with the drop-down list selection

    Day of goo,

    I have a menu drop down and a textfield in a table with one line and an Add button.

    The line is repeatable, now, when I select a value in the drop-down list, say "23" and it fills the textfield say with "Jordan".

    Then I click the addButton to add a new line, now I select '7' in the new drop-down list and its supposed to fill the new textfield with "David Villa,"

    Instead, he replaces what was on the original textfield("Jordan") with David Villa, leaving the new empty textfield.

    Can someone help me please.

    Another thing, I have to select two times for the drop-down list to the fire, why is this?

    Hello

    First thing: I suspect that you have the script to the change event, but use .rawValue for the test. With the drop-down menus, I tend to use the exit and .rawValue event.

    With respect to the textfield, you probably use a too full reference, like "Row1.usersName". If you just use "usersName, for example the name of your textfield, then Acrobat/Reader uses the particular instance of the textfield in the same line as the drop-down list.

    Hope that helps,

    Niall

  • Select the string table drop-down list box.

    Hi all

    I want to select the combo box list based on a string in the entry, I don't know how to do this. I have a drop-down list box and the value comes from a database, what I want to do is I want to change the value of the selected box based on the existing value in the database drop-down list. for example, A, B, C D I strings in the drop-down list box, and then in my database, I have a field with the string C, I want to change the C to A. I can't enter the value of C in a string format, but I don't know how to be the first position of the drop-down list box in so the order of channels combo box will be C, A, B, d., the value of C

    Thank you

    Then just write a new array of strings, with the elements of the new agenda, to the "[] strings" - property.

    Either you must code something that allows you to create an array of strings with the elements in the order that you want them to be. If there is a reorganization only, you could do something like:

    -Get the array of strings [] from the drop-down list using a property node box.

    -Find the position of the element you want to place first and use "delete from table", which returns the new array and the element removed.

    -Build a new table 1 d of the deleted item and table remaining. Move to the second combobox Strings [] property of a node property.

Maybe you are looking for

  • pencil of Apple

    Is there a way to convert the pencil apple in text notes?

  • The system preference takes a long time to load

    As the title suggests, end of 2013 (10.11.4) System Preferences on my iMac takes a long time to load, even after a fresh reinstall and/or reboot (tried both). It takes about 20 seconds to one minute each time to open (except when I close it and immed

  • iBooks lost books on iMac after app upgrade

    I upgraded today, including ibooks. iBooks downloaded all my books to iCloud. I do not want continuous who and collapsed storage on iCloud. No, it is not possible to use ibooks on mac. books are not visible also new pff cannot be opened or stored. Ho

  • Satellite 1800-400: cannot run/install applications after installing XP

    I bought a Satellite 1800-400 for my daughter for her school work, formatted, installed XP pro, and when I tried to install the software for a wireless card (3Com) for internet access, he said only: "the application failed to start because the applic

  • HP Pavilion dv6-6c75ea Enterta: Recovery windows media 10

    Hello After a BIOS update the PC does not start correctly. When it starts it askes for recovery/repair windows media. How and where can I download that? BR Roger