Can this be done? Call subforms based on dropdown linked to database

I am hoping to make a dynamic form and I'm wondering if it's possible.
I have a database with about 300 entries - pieces of farm property and a few bits of info about each of those properties. I want to create a form where users can choose the applicable piece of property from a dropdown list. Based on the property they select, another dropdown would populate with the crops associated with that property. Then based on the selection made in that dropdown, a specific form will be brought up.
For instance, someone selects property #102 from the dropdown. In the database, property #102 is associated with wheat, barley and corn, so the next dropdown would populate with those three crops. The user selects wheat from the dropdown and the wheat form would be called. 
I hope I explained that well enough.
Is that possible? And if it is possible, how complicated is it to do? Assuming I already have the database and subforms, would this be a weeks-long process to script, or would it be fairly straightforward?

Yes, in a way you can put the data as part of the script. In the above form :
<script contentType="application/x-javascript" name="courtScript">// This script object controls the interaction between the court and PO Drop-down lists.
// The array contains the court and the corresponding PO.
var myCourts = new Array(new Array (7), new Array (6), new Array (8), new Array ());
// Create a two-dimensional array.
                                                                            // For each court, add a 'new Array(number of PO +1)'.
// Define the court and the corresponding PO.
// The array syntax is arrayName[index][index].
// The first index number represents the court,
// the second index number is the actual data value.
myCourts[0][0] = " ";        // The first items in the Drop-dowm Lists should be blank.
myCourts[0][1] = " ";
myCourts[1][0] = "Barnstable";    // The first data value is the court name,
myCourts[1][1] = "";  
myCourts[1][2] = "Smith";      // the rest are PO names.
myCourts[1][3] = "Brown";
myCourts[1][4] = "Jones";
myCourts[1][5] = "Green";
myCourts[1][6] = "Holiday";
myCourts[1][7] = "Nobody";
myCourts[2][0] = "Berkshire";
myCourts[2][1] = "";
myCourts[2][2] = "Green";
myCourts[2][3] = "Red";
myCourts[2][4] = "Yellow";
myCourts[2][5] = "Purple";
myCourts[2][6] = "Pink";
myCourts[3][0] = "Bristol";
myCourts[3][1] = "";
myCourts[3][2] = "Long";
myCourts[3][3] = "Short";
myCourts[3][4] = "Tall";
myCourts[3][5] = "Portly";
myCourts[3][6] = "Wide";
myCourts[3][7] = "Stout";
myCourts[3][8] = "Frail";
// This function will populate the court Drop-down List.
// This function is called from the initialize event of the court Drop-down List.
function getCourts(dropdownField)
   dropdownField.clearItems();
   for (var i=0; i &lt; myCourts.length; i++)
      dropdownField.addItem(myCourts[i][0]);
// This function will populate the PO Drop-down List for any event EXCEPT the change event.
// This function is called by the initialize event of the PO Drop-down List.
function getPOs(courtField, dropdownField)
   dropdownField.clearItems();                             // Clear the items of the Drop-down List.
   for (var i=0; i &lt; myCourts.length; i++)             // Look through all the courts until we find the one that matches the court selected.
      if(myCourts[i][0] == courtField.rawValue)     // Check to see if they match.
         for (var j=1; j &lt; myCourts[i].length; j++)     // When they match, add the POs to the Drop-down List.
            dropdownField.addItem(myCourts[i][j]);
         dropdownField.rawValue = myCourts[i][1];    // Display the first item in the list.
// This function will populate the PO Drop-down List for the change event.
// This function is called by the change event of the court Drop-down List.
// The first parameter is simply a pointer to the xfa object model.
function getPOOther(myXfa, dropdownField)
   dropdownField.clearItems();                            // Clear the items of the Drop-down list.
   for (var i=0; i &lt; myCourts.length; i++)            // Look through all the courts until we find the one that matches the court selected.
      if(myCourts[i][0] == myXfa.event.newText)        // Check to see if they match. Note: we have to use the event.newText in this case because
      {                                                    // the change hasn't been committed yet.
         for (var j=1; j &lt; myCourts[i].length; j++)     // When they match, add the states/provinces to the Drop-down List.
            dropdownField.addItem(myCourts[i][j]);
         dropdownField.rawValue = myCourts[i][1];    // Display the first item in the list.
}</script>
-Wasil
P.S.  For the form to be interactive in Adobe Reader, it must be Reader Extended

Similar Messages

  • UCCX 9.0-Customer wants only ziptone in headset for new call to agent, no ringing on Phone. Can this be done?

    UCCX 9.0- My customer wants only ziptone in headset for new call to agent, no ringing on Phone.
    Can this be done? I can't seem to find a way to do this natively.

    Yes, I looked into that option. They don't want that because some agents have been known to walk away from their desk without going not ready.
    Thanks for the quick response!
    Dave

  • Demo & Video - Can this be done?

    My client would like to have a captivate demo of their
    software on the right side of the screen, while on the left there
    is video of a manager explaining the demo.
    It would look like this:
    link
    Can this be done with just Captivate? From what I can tell
    your recording has to be the full size of your project. If not,
    anyone know what tools could be used to do this? I assume Flash,
    but would imagine the difficulty would be getting the demo and the
    video to be in sync.
    Any suggestions/thoughts are very appreciated.
    Edit: I think I should have put this post in General. Anyone
    know how to have it moved? I don't want to create multiple posts of
    the same topic.
    Thanks!
    Choksi

    Welcome to our community, Choksi
    I'm pretty sure you can do this with Captivate, some
    imagination and another little Adobe product called Visual
    Communicator.
    Click here
    for the Visual Communicator site)
    Basically, you would record the demonstration at the smaller
    size. Then you would create a larger Captivate presentation that
    would hold the whole thing. You would then have the basic
    demonstration occurring in the left side of the screen as your
    image shows. Now for the fun part. You would use Visual
    Communicator to record many smaller video segments that describe
    what is occurring over on the left side of the screen. Once
    recorded, you would produce them as .FLV files and insert them onto
    the Captivate slides as needed.
    I suppose you may be able to also work the other way around.
    Create the Captivate projects and insert them into Visual
    Communicator. Not sure if it supports that quite yet, but may be
    interesting.
    Hopefully that helps... Rick

  • Can this be done with css rollovers?

    Hi,
       I'm using Dreamweaver CS4 on a Windows PC. I understand the basics of css rollovers where you change the background image position up or down but the text used will still end up being a common font that will suit every pc. What I'd like to do is use an uncommon font in my navigation bar. I made an image in photoshop that had two versions of a word like home for example one on top of the other like you would for a css rollover but once I created a link I had the link color border around the image, so it didn't work. Here is a link to a website that is similar to what I'm trying to do http://www.inksmithtattoo.com/. Look at the navigation, can this be done using css rollovers? If not how do you think it was done? Is there a way to use uncommon fonts in a navigation bar? I even did some research on using Dreamweavers hotspot function but found that there were issues in using it for navigation. I'm getting pretty familar with Dreamweaver but I'm not that good at coding so if anyone does have any ideas please include some keywords that I can google and read more about what your trying to say, links to the info would be even better but I realize that if your as busy as I am you can't take that kind of time.
    Any ideas or help will be greatly appreciated.
    Thank you to all,  dluthier

    That site is using images only. It is not a text based link:
    here is the css they are using:
    #navAbout a {
    -moz-background-clip:border;
    -moz-background-inline-policy:continuous;
    -moz-background-origin:padding;
    background:transparent url(../_img/navAbout-Home.gif) no-repeat scroll 0 0;
    left:473px;
    top:318px;
    As you can see it is an image only. See the attachment with this post. Also since it is a background image it won't show up if you right click on the so seemed text
    Please install firebug or webdeveloper plugin if on Firefox and you will be able to inspect the elements and know what exactly they are.
    Hope it helps
    Regards,
    Vinay

  • Can this be done somehow? I would like to see an App or Apple guidance were I can identify my name or number to certain phone contacts that I can choose from within my address book?

    Can this be done somehow? I would like to see an App or Apple guidance where I can identify my name or telephone number to certain phone contacts that I can choose from with my address book. As it stands now, it all or nothing. Thanks

    Not sure what they offer in Canada, but I use Google Voice. It provides a phone number that will ring through to your phone (or multiple phones if you want). There is a free app you can use to place calls so they appear from your Google Voice # instead of your 'real' number.
    I use the Google # for business calls/texts and only use "my" number for personal stuff.  Google gives you control over things like call screening and allows you te set timers for when it is permitted to ring through to your normal number, which is great for business calls. If I'm not on call, I keep the timer set to shut it down except during business hours.
    Might be worth looking into.

  • Need to upgrade to version 11.1. can this be done remotely or do I have to tac my imac to the apple store?

    Need to upgrade my Mac OS 10.5.8 to 11.1 or higher. I cannot access icloud, iphone updates, flashplayer, can't watch movies, or use itunes (I'm sure there are other options I can't access but haven't found them all) unless I upgrade.  Can this be done remotely or do I have to take my PC to an apple dealer?

    Version 11.1 of what? There is no version of OS X with that number so presumably you are referring to iTunes, which requires an Intel Mac running Snow Leopard or better:
    Start by checking if you can run Snow Leopard:
    Requirements for OS X 10.6 'Snow Leopard'
    http://support.apple.com/kb/SP575
    The OS 10.6 Snow Leopard install DVD is available for $19.99 from the Apple Store:
    http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
    and in the UK:
    http://store.apple.com/uk/product/MC573/mac-os-x-106-snow-leopard
    but nobody knows for how long it will be available.
    When you have installed it, run Software Update to download and install the latest updates for Snow Leopard to bring it up to 10.6.8, or download the combo update from here:
    http://support.apple.com/kb/DL1399
    Check via Software Update whether further updates are required.
    You should now see the App Store icon in iTunes, and you now need to set up your account:
    http://support.apple.com/kb/HT4479
    To use iCloud you have to upgrade at least to Lion, but some functions are only available in Mountain Lion:
    http://support.apple.com/kb/HT4759
    You can also purchase the code to use to download Lion (Lion requires an Intel-based Mac with a Core 2 Duo, i3, i5, i7 or Xeon processor and 2GB of RAM, running the latest version of Snow Leopard), or you can purchase Mountain Lion from the App Store - if you can run that:
    http://www.apple.com/osx/specs/

  • Can this be done with flash

    I need to generate a chart using flash or flex (im not sure
    which) on the
    server side and output it as a jpg?
    can this be done? can somebody point me to the right
    direction
    Thanks,
    Tem

    You mean using data from the server? Flash, and Flex, run
    client side, but
    can pull data from a server - and make a graph. I don't know
    Flex, but it
    wouldn't be too hard in Flash. AS3 is better for outputting
    as a JPEG, but
    it can be done in AS2 as well.
    There are many tutorials for loading data into Flash, just
    Google things
    like 'Flash XML' or 'Flash Database'. I'd also recommend
    looking at AMFPHP
    http://www.amfphp.org/) an
    alternative to Flash remoting that makes calling
    server-side functions, and passing data, a snap.
    For image export, search on 'Flash image output' - here's one
    to get you
    going:
    http://www.quasimondo.com/archives/000645.php
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • I want to Connect my Mac Mini as a Slave to a Mac pro Server while at the same time using the Mac mini's thunderbolt ports peripherals ( ie monitor, Sound Card, Hard drives) Creating a poor man's new mac Pro. Can this be Done?

    I want to Connect my Mac Mini as a Slave to a Mac pro Server while at the same time using the Mac mini's thunderbolt ports peripherals ( ie monitor, Sound Card, Hard drives) Creating a poor man's new mac Pro. Can this be Done?

    Well, I really would love the new unreleased mac pro however , I'm not sure of the expected cost , Everyone speculates from $3,000 to $8,000, in which I may have to wait a while to purchase.
    To the point .... I want fully functional thunderbolt ports to be on the current mac pro's .... wonder if anyone had workarounds yet?...  or could I chain the the current mac pro to a mac mini to make that happen?

  • I AM TRYING TO FORWARD TX MESSAGES TO MY COMPUTER, CAN THIS BE DONE?

    I AM TRYING TO FORWARD TX MESSAGES TO MY COMPUTER, CAN THIS BE DONE?

    You should be able to forward them to your e-mail, or you could use a text backup app from Google Play that will backup your texts and e-mail them to you (SMS Backup and Restore is an example).

  • In Mail with Snow Leopard you could number your e-mails. Can this be done with Lion?

    In Mail with Snow Leopard you could number your e-mails. Can this be done with Lion?

    If you're referring to desktop icons, right click on the desktop > Show view options > check "show item information".

  • How do I set up two separate iTunes accounts on one MacBook Pro in order to manage the wife's iPhone and my iPhone? Can this be done?

    How do I set up two separate iTunes accounts on one MacBook Pro in order to manage the wife's iPhone and my iPhone (with separate info on each of course) ? Can this be done? A little step by step would be greatly appreciated; just short step by step though, I can follow fairly well.
    Kindest Regards,
    Phil T.

    You would each need to use your own user account on the Mac, you can do this at system preferences > users & groups.

  • I would like to transfer the balance from one Apple ID to another how can this be done??

    I want to transfer the account ballance from my account to my son's. I unintentionally redeemed one of his gift cards to my account. how can this be done?

    Sorry, but balances can't be transferred from one iTunes Store account to another. You'll either have to make his purchases through your account, or buy another prepaid card and redeem that in his account.
    BTW, for future questions, this forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help if you ask in the general iTunes forums.
    Regards.

  • I want to shoot a movie on my iPhone and edit it on my iPad using the iMovie app. How can this be done via iTunes on my computer?

    I want to shoot a movie on my iPhone and edit it on my iPad using the iMovie app. How can this be done via iTunes on my computer?

    You can't drag video into the filesharing pane of iTunes, you can only transfer projects.
    Videos need to come in via the photos tab of iTunes.
    The easiest way to get videos from the iPhone to the iPad is via the project export import.
    Projects can be exported from the iPhone, then imported to the iPad like this:
    iPhone Send a project or trailer to iTunes
    If the marquee screen isn’t showing, tap the My Projects button .
    Scroll to center the project or trailer you want to share.
    Tap the Share button at the bottom of the screen, and then tap iTunes; tap OK when iMovie indicates that export is complete.
    Connect your device to your computer, and then open iTunes on your computer.After a moment, your device appears in iTunes, below Devices on the left.
    Select the device, and then click Apps at the top of the iTunes window.
    Select iMovie in the Apps list below File Sharing. (You may need to scroll to see it.)
    In the iMovie Documents pane, select the file you just shared, and then click the “Save to” button; save the file to your computer in a place where you can find it easily.You can also save the file by dragging it to the desired location on your computer.
    Disconnect the device from your computer.
    iPad Import a project or trailer from iTunes
    Connect your device to your computer, and open iTunes on your computer.After a moment, your device appears in iTunes, below Devices on the left.
    Select the device, and click Apps at the top of the iTunes window.
    Select iMovie in the Apps list below File Sharing. (You may need to scroll to see it.)
    Click Add below the iMovie Documents pane; in the window that appears, navigate to the file you want to add.
    Select the file, and then click Open to copy the file to your device.The file appears in the iMovie Documents pane when copying is complete.
    Open iMovie on your device; if the marquee screen isn’t showing, tap the My Projects button in the upper-left corner above the viewer.
    Tap the Import button at the bottom of the screen, and then tap the name of the project you want to import.When the import is complete, the project opens and can be edited like any other project.

  • I want to have 2 seperate libraries with content in different locations, can this be done?

    Hi there, I have 2 uses for itunes, one is for my mobile DJ business and for this I store all of my music on a 2TB external firewire 800 HDD I use Traktor Pro to mix, but find itunes very good for creating playlists.  I would however like to be able to store seperate content on my internal drive in a different library for personal use as a great deal of the stuff in my DJ collection I personally have no time for, and do not want the inconvenience of needing to connect my external HDD to be able to listen to my own collection.  I have a SSD installed and have tried depressing the CMD button during startup of the application although no option for creating a new library presents its self, it may be that the start up is too quick for me to be able out this.  Any ideas guys? Many thanks.

    Trying2loveMac wrote:
    Can this be done? If so, how?
    there may be other (better) ways out there but all i can think of is this:
    1) make one iTunes library the main one and "consolidate" files that aren't in it, but in the other computer's libraries, to it.
    you can use home sharing for this but home sharing won't copy ratings, playcounts, and original "date added". a 3rd party tool such as PowerTunes would be very useful if those details are important to you.
    2) once the "main" library is created, copy the entire iTunes folder (not just the iTunes music or media folder) to the media server, launch iTunes while holding the option(⌥) key, click on choose library when prompted, and select the iTunes folder you copied to the new location.
    3) repeat with the other Macs.
    with a setup such as this, be aware that only one iTunes at a time can access the library. if your intention is to enable multiple machines to access the library simultaneously, you will probably have look into a NAS with a built-in iTunes server.

  • I need to read data from a text file and display it in a datagrid.how can this be done..please help

    hey ppl
    i have a datagrid in my form.i need to read input(fields..sort of a database) from a text file and display its contents in the datagrid.
    how can this  be done.. and also after every few seconds reading event should be re executed.. and that the contents of the datagrid will keep changing as per the changes in the file...
    please help as this is urgent and important.. if possible please provide me with an example code as i am completely new to flex... 
    thanks.....  

    It's not possible to read from a file without using classes from the core API*. You'll have to get clarification from your instructor as to which classes are and are not allowed.
    [http://java.sun.com/docs/books/tutorial/essential/io/]
    *Unless you write a bunch of JNI code to replicate what the java.io classes are doing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Report help

    Hi folks, Its basically a HR ABAP report. i hav a table having 2 fields . family dependant type is the fst field and subtype is another field. suppose 03 ---> signifies dependant type child.         01 ---> spouse         14.... like this we hav othe

  • How to get physical file path from logical file path

    Hi there is a immediate requirement , I have logical file path but I need to get physical file path from it. So is there any FM which providesthis functionality. Points will be rewarded. Thanks

  • Why there are differences in error table definitions?

    Why there are differences in error table definitions? We are using OWB repository 10.2.0.3.0 and OWB client 10.2.0.3.33. The Oracle version is 10 G (10.2.0.3.0). OWB is installed on Linux. I created a error table using DBMS_ERRLOG.CREATE_ERROR_LOG in

  • Best way to map CLOB database fields?

    I ran into a problem mapping CLOB fields a couple of months ago and couldn't find an easy answer to the problem. I got sidetracked and now find myself back at the same point... What is the best practice for mapping CLOB database fields in the mapping

  • Aironet 1130ag GUI problem

    i can't have access into Cisco Aironet 1130ag via GUI. Meanwhile, i could ping it. Kindly assist