Is this possible? Subforms appeal based on the drop-down list associated with the database

I'm hoping to make a dynamic shape and I wonder if it's possible.

I have a database with about 300 entries - pieces of agricultural goods and a few little bits of info on each of these properties. I want to create a form where users can choose the piece there rather than the property in a drop-down list. Based on the property they select, another menu drop down to fill with the cultures associated with this property. Then based on the selection made in this drop-down list, a specific form will be brought upward.

For example, a person selects property #102 in the drop-down list. In the database, property #102 is associated with wheat, barley and corn, so the next drop would be complete with these three cultures. The user selects the wheat in the drop-down list and the form of wheat would be called. 

I hope I explained that well enough.

Is this possible? And if it's possible, how complicated to do? Assuming that I already have the database and subforms, it would be a long process from weeks to the script, or it would be simple enough?

Yes, this could be done, here is an example that should help: Drop dependent dropdown (specimen attached)

On the basis of selection (change event of the second menu drop-down), you can show or hide a subform.

-Wasil

Tags: Adobe LiveCycle

Similar Questions

  • Can anyone help please if a drop-down list box with this dpdCategory.Items.Insert (0, "user")?

    can someone please help if a drop-down list box with this dpdCategory.Items.Insert (0, "user"); If I choose the user then after clicking the button, it will redirect to this page & also, others using if else statement

    Please ask this question in one of the Windows Apps development forums:

    http://social.msdn.Microsoft.com/forums/en-us/category/windowsapps

  • Create a secondary named calculation in a repeating subform based on a drop down list?

    Hi all

    I need a little crazy script. Not sure it is even possible.

    What I have:

    1. repeating subform SummarySub amounts
      1. calculation at the end of the form TotalOver field gives the total dollar amount of all iterations of SummarySub

        so far, so simple. but then:
    2. I need another, repeating the SubRow subform at the end of the form to give to other total:
      1. based on the drop-down list the name of the originator in SummarySub
      2. and break out the totals of all iterations of SummarySub based on payer such as chosen by the user names.

    Ideally, the subform (the principal totals) (B) at the end of the form would add instances as the user leaves the field name of the payer. I was not able to find a way to make and to keep the value in the field (name of the payer) of the additional instance.

    All this makes sense?

    I'll appreciate any help.  I'm trying to learn more about JavaScript in LC, but my bills just keep coming...

    Thank you very much

    Laura

    Dropbox - AFBS_OverpaymentReport_121914.pdf

    Hi Laura,

    Take a look at the modified version of your form, https://sites.google.com/site/livecycledesignercookbooks/home/AFBS_OverpaymentReport_01011 5.pdf? attredirects = 0 & d = 1.  I added a subform called PayerTotals, which has a summary of insurance created in his event to calculate.  The code looks like.

    var oFields = xfa.resolveNodes("SummarySub[*]"); 
    
    var nNodesLength = _SummarySub.count; 
    
    var nSum = 0; 
    
    var insuranceCompanies = {}
    
    for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++) { 
    
     var item = oFields.item(nNodeCount);
    
     if (!item.InsuranceCompany.isNull && !item.OverpaymentAmount.isNull) {
    
     if (insuranceCompanies[item.InsuranceCompany.rawValue]) {
    
     insuranceCompanies[item.InsuranceCompany.rawValue] += item.OverpaymentAmount.rawValue
    
     else {
    
     insuranceCompanies[item.InsuranceCompany.rawValue] = item.OverpaymentAmount.rawValue
    
      nSum += item.OverpaymentAmount.rawValue; 
    
    totalover.rawValue = nSum;
    
    _PayerTotal.setInstances(0);
    
    for (var insuranceCompany in insuranceCompanies) { 
    
     var payerTotal = _PayerTotal.addInstance();
    
     payerTotal.InsuranceCompany.rawValue = insuranceCompany;
    
     payerTotal.totalover.rawValue = insuranceCompanies[insuranceCompany]; 
    

    Hope this helps

    Bruce

  • Subforms appear depending on a drop-down list selection

    I need several subforms to appear in function which is selected from a drop-down list. I've specified 7 item values, if the person chooses the item 1, I would like to point 1 subform to appear.

    If the person chooses point 2 or 3 point as well. I would like to both subforms to appear.

    How can I do this?

    I also, for items for does not appear on the once selected drop-down list. I know that JavaScript will appear in the case of "change."

    I need help!

    Thank you

    Hello

    I have created an example of what can be found here

    Based on what you have asked, I made a simple example with 2 subforms. If the option of the subform drop 1 will be shown then if you select drop-down list will appear 2 2 subform

    I also added checkboxes as an alternative method.

    See the example in

    http://www.dubdubdubdesigns.co.UK/LiveCycle/show-hide_subform.html

    Concerning

    Graham

    DubDubDubDesigns.co.uk

  • Fill other fields based on a drop-down list box

    Hello

    I am completely new to LiveCycle and just starting to teach me how to use it.

    I want to speed up the filling of a purchase order by bringing them to fill based essentially on what is put in other areas.

    For example, I would like to than our usual suppliers to be included in a drop of water to the bottom of the box (I know not how, at least) and then have the address fields automatically filled.

    I know that I can do this using javascript, but it is rather annoying because I don't want to sit here put 276 suppliers in my script. In addition, I don't want to have to edit the script whenever we want to add a new provider.

    Is it possible to create a form that made it and can pull info on another file or database? Also, I would make it pretty fool-proof when it comes to adding new suppliers.

    Thank you

    Darryl

    The way to proceed is to hang on to the top of the drop-down list for a service web and that the web service returns a list of providers (in load of the form). Once the user selects a supplier a second web service would draw information and fill in the appropriate fields.  This technique is easier to configure on the client machines (as all the information is contained in the form). You will need to get another piece of software called LiveCycle Reader Extensions Server to allow the form make calls from web service of the player (assuming that the reader is used).

    The form can connect to a database directly, but this solution has drawbacks as well. You need to configure a dataconnection on each machine as the machine must be on the same network as the DB. It will work on Windows machines. You also punctuated by player to allow DB with Reader connections.

    Hope that helps

    Paul

  • Change an amount (that docks a calculation) based on a drop-down list

    Hi all.

    As I said in the title, I'm trying to dynamically change a field (called CostSalesforce) dynamically from the selection of the field drop-down list (salesforce_company) and have this indictment in a running total that I have form and quantity changes.

    2015-10-22_1343.png

    Fixed the amounts you want to use as the values of export for each of the items in the drop-down list field, and then use this field in your calculation as you would a text field.

  • Please help a poor beginner to open a text box based on a drop-down list

    Hello world

    I am quite new to the life cycle and my experience isn't in the lineup, so I hope that you will be kind to me. I designed a form that we use to send to our Bank to hire contractors. I need to make a text field become visible collection of some inscriptions on the drop-down list. for example, if an entry in the drop-down list "Holiday", I need another text field become visible to the user of maunally enter an extension number. If the user selects, say, "Study leave", I need the text box to stay invisible to the user.

    I hope this makes sense.

    Thank you guys & Gal

    Heavy E

    It is a java script placed on the drop-down list on the change event;

    If (xfa.event.newText is "Vacancy")
    TextField1.presence = "visible";

    else TextField1.presence = "hidden";

    Field1 text is defined as hidden

    To answer your second example, add in the same field:

    If (xfa.event.newText is ' Study/leave')
    TextField1.presence = "hidden";

    If it's confusing, let know us

  • drop-down list - work with the default

    Hello

    We have drop-down list is activated option "Text entry allows the custom" (combo box). We need to display a text default value: "- choose or type--

    After the dropdown list gets focus, we must make the empty field, if the user does not need to delete the text "- choose or type--

    Then, when the user cannot choose or type anything and exits the drop-down list, we must display '- choose or type -' again.

    If the only option is to have the value "- choose or type -" as one of the elements of list, we need, whether set to null, empty string, or false.

    Is there a way to do this?

    The best result I get is enter when an event has the value this.rawValue = "--> field becomes empty, but I have not background the way how to assign a value to '- choose or type -' again. Even the call xxx.selectedIndex = 0; or xxx.setItemState(0,true); output action does nothing.

    I know that it would work, if the '- choose or type -' has the value '000', but it is for example very big change for validation scripts, that we cannot accept in this phase of the project.

    Thanks for any advice.

    Hi, I have an example of the use of 'Ghost text', that might help.  http://cookbooks.adobe.com/post_Adding_Ghost_Text_to_LiveCycle_Designer_form-18436.html.  This will display a text with the help of the ' null' display model, so you get the text, but it does not affect the value of the field.»

    Bruce

  • How to fill a textfield based on a drop-down list and a checkbox control

    Hi guys,.

    I need help.
    first step: I have a drop down list, if I click in the dropdownlist control 'a' and place it in the digital field a number greater than 99, checkbox must be marked and second step: a textfield1 must be visible.

    the first stage works perfectly, but the second does not.
    This is my code for the second stage of the event: java script of change of

    If ((DropDownList1.rawValue == "a") & & (this.rawValue == 1))
    {
    TextField1.presence = "visible";
    }
    on the other
    TextField1.presence = 'hidden ';


    everyone has no idea why?

    Thank you!!

    Diana

    Hi Diana,

    You are on the right track. deleteItem is zero base; so if you want to remove the second point, it would be deleteItem (1).

    I would recommend a script similar to the output from the drop-down list, so that if the user goes back and changes the value, the same logic would apply. Also when you remove items from a drop-down list by using script, it is useful to addItem() again in the other part of the if statement. In this way, you can restore the list because the shape is changed.

    Also I would wrap the script in the numberField in another State to check for null first.

    Attached example.

    Good luck

    Niall

  • values of insertion to the db based on selected drop-down list

    Hello I am currently adding values to the database based on a selection in the menu dropdown.
    is all that I need.
    This does not work properly. Thanks for any help
    My goal is if they choose one of the following
    Toyo
    Hon
    Suba
    It will be inserted into the db.

    Thank you


    <!----------------
    Cardaddform.cfm

    has a list dropdown and based on the falling down of the selected list, it assumes that to fill the
    Car_dbTEST db
    Table of Car_tab
    car_make field
    with values
    Honda
    or
    Toyota
    or
    Subaru.
    This is the page: - >
    < html >
    < head >
    < title > car add brand < /title >
    < link rel = "stylesheet" href = "styles.css" >
    < / head >

    < body >

    < h1 > < / h1 >

    < table >
    < action = "CarAddAction.cfm cfform" method = "POST" > "

    < b >
    Car < td > < table >
    < td >
    < SELECT name = "CarMake" size = "1" >
    < OPTION Value = "Toyo" > please select < / OPTION >
    < OPTION Value = "Hon" < cfif Carmake is 'Honda' > selected < / cfif > > Honda < / OPTION >
    < OPTION Value = "Toyo" < cfif Carmake is 'Toyota' > selected < / cfif > > Toyota < / OPTION >
    < OPTION Value = "Suba" < cfif Carmake is "Subaru" > selected < / cfif > > Subaru < / OPTION >
    < / select >
    < table >
    < /tr >


    < b >
    < td > < table >
    < td >
    < input type is 'submit' value is "Take Add to database" >
    < table >
    < /tr >

    < / cfform >
    < /table >

    < / body >
    < / html >
    <!-then sends to the action of the CarAddAction.cfm page

    < name cfquery = "InsertCarInfo."
    DataSource = "#request. MainDSN #">"
    INSERT INTO Car_tab)
    car_Make

    )
    VALUES)

    "#Trim (Form.car_make) #
    )
    < / cfquery > -.


    The value you use for the name parameter in your SELECT becomes the name of the FORM variable that is sent to the action page, assuming a POST method. Goes same for tags of entry... the name you use becomes the name of the FORM variable.

    Phil

  • In the drop-down list box with header options.

    Well, I don't know if it is possible, but I'll ask anyway. Partially because I have limited real estate FP and also because I think it's a relatively easy way for the user to use, I came up with the following idea:

    I want something that looks like a ring of menu when the not selected, displays the text "plots". Then, when it is selected a list/menu opens downwards (as opposed to the default operation of the rings of menu). In this list/menu will be one element for each parcel of land that appears on a XY Chart. Each item contains a check box (control) and a string (indicator). Channels each displays the name of their respective field. The user can then click on the menu/list/thing to display the items in the plots and may check or uncheck however much they want. The idea is that regardless of the parcels are checked will be displayed on the XY graph.

    First of all, I've explained this well enough and on the other hand, is it possible?

    Thank you.

    James

    Similar to the menu Options Thread in these forums (look upward and to the left), when the mouse is hovered above / clicked, a menu appears with fields of string type. You could create something like this with boxes also. To do this (and maybe it's not the best way but just my first thought ) you might have a Subvi borderless modal appear positioned on the control that has controls and indicators to the breast that you need chains. It appears when you click on your 'Plots' control (which could be an indicator of simple string). It would disappear if the user moved the mouse outside the window of the Subvi for more than a few seconds (as for the menu Options Thread above).

    The Subvi should resize based on the number of details of XY graph curve that it should display, but it's not too difficult.

    There may be some drawbacks to that I thought not again but...

  • Can not get a text field to atuo fill based on a drop-down list selection

    I have a drop down box with 3 values that can be selected:

    Dropdown2 is 101-3 subd. A

    101-3 subd. B

    101-3 subd. C

    I'm trying to get a field of text automatically fill based on selection:

    If Dropdown2 = 101-3 subd. A Text4 then = 'a. '.

    If Dropdown2 = 101-3 subd. B then Text4 = 'b. '.

    If Dropdown2 = 101-3 subd. C then Text4 = 'ValueC.

    I tried to create a custom for Text4 calculation script:

    var v = getfiled("Dropdown2").value;

    If (v = "subd 101-3. A") event.value ="A."

    ElseIf (v = "subd 101-3. B") event.value ="B."

    ElseIf (v = "subd 101-3. C') event.value = "ValueC."

    else event.value = "";

    I walked into this script and syntax seems to be OK. (At least for Acrobat XI.  I'm not know programmer and have just enough knowledge to be dangerous).  When I select a value in Dropdown2 nothing happens.  No value appears in Text4.  I checked the "selected value immediately commit" in the Dropdown2 option by google'ing.  I don't understand why the values do not appear.  Any help would be appreciated.

    Thank you

    You made a mistake... The comparison operator is "is" (or ' = '), not of '=', which is used to assign a value.

    So replace all these:

    If (v = "subd 101-3. A")

    To do this:

    If (v is "subd 101-3. A")

  • Anyone can help solve this frustrating bug in Adobe Reader 8 drop-down list?

    Has anyone met the bottom of drop in their PDF form that do not work in Adobe Reader 8?

    A simple example is my form (stripped back) here:

    http://www.wikski.com/misc/test.PDF

    I built a form with 22 sections in this document, some 1800 of code lines, and now every drop down has decided to not work in Adobe Reader 8.

    The behavior is when you select a drop down, it immediately turns off itself and you cannot use the item at all.

    I've had this happen and by simply removing the element in LiveCycle ES2 of Designers (which is what I used to create the entire form) and recreate exactly the same thing; seemed to remedy. However, so far I passed the point of being able to recreate each drop of this time, I need to know actually what is the cause of the bug.

    Any help would be greatly appreciated!

    See you soon,.

    I don't know why you need the xfa.layout.relayout (); in your calls in your enter events (at least in the set_focus function).

    Seems to work without it.

    I had more problems with Reader 8.0 than any other version.

    Bruce

  • Part of the browser screen will flash intermittently and when trying to select a link out of my drop-down lists, click with the mouse selects the link above it.

    These problems occur only when you use Mozilla Firefox. I am using a Lenovo Thinkpad:
    1 site Web seem to flicker on the images, videos, maps, when the mouse moves around the screen.
    2 pointing the mouse over a link in the browser and a left click activating the link above (if it exists)

    Do not experience problems with google or ie. It started a few days ago.

    Thoughts?

    Hello paulo.eichelberger, try Disabling graphics hardware acceleration.

    You will have to perhaps restart Firefox for it to take effect, so save any work first (e.g. you compose mail, documents online that you are editing, etc.).

    Then perform the following steps:

    1. Open the Firefox Options window as follows:

      • Click the menu button

        then select Options.

    2. In the Options of Firefox window, click the Advanced tab, and then select general.
    3. You will find in the list of parameters, the checkbox use hardware acceleration when available . Clear this check box.
    4. Now restart Firefox and see if the problems persist.

    In addition, please check the updates for your graphics driver by following the steps in the following knowledge base articles:

    This solve your problems? Please report to us!

    Thank you.

  • How to filter the XML related to drop-down list data source?

    Dear all,

    I quiet new to LiveCycle designer ARE for a few weeks I am working on it.

    Right now I have problem with filering XML Datasource with the drop-down list.

    I have XML files which includes data for the States and the city. I have one of my drop-down list associated with the State. My requirement is that I chose the 'State' the corresponding city names must appear in the second drop-down list.

    I searched the net and got two or three samples on it. But I failed to do my job of form as a requirement. Even if I generated the XML file structure given in the examples.

    Please check the attached xml file that I created.

    I have struckup right away. So, help me do this.

    Very much thanks in advance.

    Kind regards

    Sree Harshavardhana.

    Hello

    Your xml structure is virtually identical to one the week last with a similar question, http://forums.adobe.com/thread/518731.

    I've renamed the fields required in the attached example.

    It will be useful.

    Bruce

Maybe you are looking for

  • ITunes and Windows 10 new facility

    Built it there a years of PC and until this new 10 Windows Installer, there everything worked beautifully - then I started to reinstall iTunes. Specifications: Intel i5 - 4690 k (quad core) @3.50 GHz 8.00 GB of Ram GPU GTX 770 Z97X Gaming 7 MoBo I me

  • HP Pavilion dv6 Notebook PC: hp simplepass 2012, do not configure Windows 10

    I recently installed the Windows 10 operating system, as many have, and I'm having a problem with SimplePass 2012. The reader will not be 'new' prints to access my account.  (I made a new admin ACCT, after having the issue "Critical Error" with the W

  • Roxio Easy CD & DVD Burner

    I bought roxio easy CD & DVD burning. and installed it on my laptop computer top! I couldn't find what I wanted to burn to DVD.  Then this EASY summer... YA RIGHT!  I don't see anything easy on the program, there, nobody knows! I mean "REALLY" know h

  • Sound Forge will not install

    I use Windows 7 RC customer. I'm trying to install Sound Forge Audio Studio. He repeats to me could not write to the temp directory in C:\Users\***\Appdata\local\temp. How can I work around this. I kinda need this program to run.

  • Problem with some tools of boot F8.

    When I try to use F8 Memory Diagnostic tools, system repair, they start but then the laptop just off halfway through it. Windows starts fine however. Any ideas please?