Select Drop Down Menu recordset query.

I'm looking to use a dynamic drop-down menu to query a Recordset... I use Colfusion to import a MS Access database that contains the following fields: 'Date template', 'Name', 'Points' and 'target '.  Whenever updates to the database, the field 'model' contains the date and time, the model has been run.  I figured out how to create a drop-down Dynamics using SELECT DISTINCT 'model date' and have also figured out how to create the dynamic recordset to display display the data 'Name', 'Points' and 'target '.

I want the user to select the "Date of model" in the drop-down menu, press "submit" button and then have the appropriate 'Name', 'Points' and 'Target' data surveyed and below.

The application must take the selection in the drop-down list of 'model date' and then query the fields 'name', 'points' and 'target' for this particular "date model.

I admit that my knowledge of SQL and Coldfusion is not the best, but it seems that it is a fairly simple task and miss me just one or two pieces of gear and put everything.

The database essentially looks like this:

Date pattern... Name... Points of... Goal

01/08/2010-08:00... DOE... 1, 250... 5.55%

01/08/2010-08:00... DOE... 850... 2.35%

01/08/2010-08:00... Bill Smith... 11, 832... -123,23%

2010-08-02 09:02... DOE... 1, 323... 6.67%

2010-08-02 09:02... DOE... 1: 001... 3.21%

2010-08-02 09:02... Bill Smith... 10, 235... -110.26%


The drop-down list shows only "model dates."

01/08/2010-08:00

02/08/2010 09:02

For example, if on 01/08/2010 08:00 has been selected in the drop-down list, I want the following text is displayed:

Name.................. Points of... Goal

John Doe... 1, 250... 5.55%

Jane Doe... 850.......................2.35%

Bill Smith... 11, 832... -123,23%

For any help or suggestion would be greatly appreciated!

Thank you

Mike

My second paragraph speaks only to display the filtered data, so I guess that's what you're looking for, but not yet quite sure based on what are the other answers.

But I'm on anyway-

On your first page, note the instance name of your drop down menu, for example "ModelDate".  Make sure that it is in a form and set the form action on the page where you want to display your data, set the form POST action.

On the results page, create a table with cells for each of the data items to display. Create a recordset that you can do in Simple mode. Allow to select all and the value of the fall of filter down to the database field that contains the Date of your model. In the box on the right, select "=". the next list dropdown selct "Variable form" and the name of the variable type in the name of the instance of falling down on the first page.

I may not have the terminology right it's memory.

On the data tab, expand your recordset and locate each of the database fields to display.  Drag each of them to the cell in the table on the page where you want it to display.  The cells in a table should be in a linear row.

Now select the table row buy by selecting the TR tag in the tags just above the properties panel.  In the server behaviors tab, select the region of repetition and "All Records"

Publish your pages and test!

Tags: Dreamweaver

Similar Questions

  • Label of the locale selection Drop Down Menu

    Hello everyone, I am trying to familiarize themselves with the location with flex, I created my own files in use, files (.properties) and a simple application that works.  It uses a dropdownlist control to allow the user to choose what language to see.

    Here is my code

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" viewSourceURL = "srcview/index.html" >
    < fx:Declarations >
    < fx:Date id = "currentDate" / >
    < mx:DateFormatter id = "df" / >
    < s:ArrayList id = "local" >
    en_US < fx:String > < / fx:String >
    < fx:String > en_US < / fx:String >
    < / s:ArrayList >
    < / fx:Declarations >
    < fx:Style >
    @namespace s "library://ns.adobe.com/flex/spark";
    s | Label {make-size: 18 ;}}
    < / fx:Style >
    < fx:Metadata >
    [ResourceBundle ("customStrings")]
    < / fx:Metadata >
    < fx:Script >
    <! [CDATA]
    Import spark.events.IndexChangeEvent;

    protected function dropdownlist1_changeHandler(event:IndexChangeEvent):void
    {
    resourceManager.localeChain = [(event.newIndex) locales.getItemAt];
    dateLabel.executeBindings ();
    }
    []] >
    < / fx:Script >
    < s:layout >
    < s:VerticalLayout horizontalAlign = "center" paddingTop = "20" / >
    < / s:layout >
    < s:DropDownList dataProvider = "{local}.
    change = "dropdownlist1_changeHandler (Event)" "
    selectedIndex = "0" / >
    < s:Label id = "dateLabel".
    Text = "{resourceManager.GetString ('customStrings', 'todayItIs')} {df.format (currentDate)}" / >
    < s:Label text = "{resourceManager.getString ('customStrings', 'helloWorld')}" / >
    < s:BitmapImage source = "{resourceManager.getClass ('customStrings', 'helloFlag')}" / >
    < / s:Application >

    The files used at present are "en_US" and "en_US".  The drop down menu filled with a table

    < s:ArrayList id = "local" >
    en_US < fx:String > < / fx:String >
    < fx:String > en_US < / fx:String >
    < / s:ArrayList >

    But in my drop-down list, it lists en_US and fr_FR, how do I change it to English and the French?  While retaining the ability to share files, the lang

    Thank you!

    You need to create something like that

    ARR:ArrayCollection = [{id: 'en_US', Label: 'English'}, {id: 'en_US', Label: 'French'}]

    so, you can use internally as locale en_US but dropdown will show English...

    I hope you got my point...

    If this post answers your question or assistance, please mark it as such.

  • Dynamically by selecting drop down menu option

    Im trying to build a page summarizing the choice of the user of the form on the previous page. That the user may need to change their choice, I show the form again, but with the answers provided. I want that my option of drop-down menu to show the users choice and my long < cfif form.region is "All UK" > for each option seems ineffective...

    OK, I think that Ive found an answer to my question...

  • Selection drop-down menu does not work on "display".

    33.1 Firefox latest and before that had the problem

    If I go to 'view' then 'zoom in' or 'sidebar' or 'toolbar' nothing shows.
    also can not copy or paste on / in the address bar.

    works fine in safe mode.

    But I can not disable add ons because
    those disable drop down menus do not work.
    so I can't turn them off.
    may have started in the last version
    SO I can't say which add on is a problem.

    BTW, I have windows 7

    Hello telebob, try turning off hardware accelerationand check again (in safe mode hardware, acceleration is disable).

    Thank you

  • Drop-down menu cannot be selected by clicking

    I'm under 20.2 FF on Mac OS X 10.8.3. I recently found this item in the drop-down menu cannot be selected by clicking, although it can be selected by pressing 'enter' on the keyboard. I don't have any add-ons installed, so that shouldn't be the problem. Like going to http://www.newegg.com/ and click on the search menu, I can't select all the options. Thank you for your help in advance.

    Update 22 FF and problem solvered.

  • I am trying to perform a static check on the model. When I double click the model and go to the tab control... There is nothing to select in the knowledge module. I want to use CKM here... but nothing appearing in the drop-down menu. The global KMs are no

    I am trying to perform a static check on the model. When I double click the model and go to the tab control... There is nothing to select in the knowledge module. I want to use CKM here... but nothing appearing in the drop-down menu. The global not supposed to KMs the listed here?

    Hello

    You have imported the whole CKM in modules of knowledge?

    If not, import ckm and do it.

    Kind regards

    Gangareddy.k

  • When exporting my image in LR I select my brand of water in the drop-down list. Then I need to select 'Edit watermark' since the same drop-down menu in order to replace it. When I do that and click 'done' the watermark disappears in the export me

    When exporting my image in LR I select my brand of water in the drop-down list. Then I need to select 'Edit watermark' since the same drop-down menu in order to replace it. When I do that and click 'done' the watermark disappears in the box menu to export. When I click on "Export" the image exports WITHOUT my watermark. Help, please. As I did about everything that has been suggested in this forum and I still have this problem.

    I saw that too. For now, the workaround is that if you select 'Edit watermark,' when you are done editing be sure to reselect the same watermark. If you do not, the watermark menu will be empty.

    It seems to be a known bug that occurs only in the current version. If all goes well, it can be fixed in the next update. There is a page for her on the Photoshop/Lightroom Feedback site. I've added my vote to the page:

    LIGHTROOM CC - watermark on the question of export

  • Drop-down menu auto-remplit but will not be updated if you change the selection?

    Hi all

    I'm having a problem with the auto fill to a text field based on the selection in a drop-down list. While the script is running in the first case, if I go back and change my selection as result calculations be updated based on the new selection.

    I used the following script Auto Fill a field of text (called "stndwatt") based on the drop-down menu selection. The drop-down field is called "ProductLineOne":

    var v = this.getField("ProductLineOne").value;

    If (v == "3000K T10 (Tube) '") event.value = "21";

    else if (v == "4000K T10 (Tube) '") event.value = "21";

    else if (v == "5000K T10 (Tube) '") event.value = "21";

    else if (v == "6000K T10 (Tube) '") event.value = "21";

    else if (v == "HBZ (100W Bay)") event.value = "100";

    else if (v == "HBZ (150W Bay)") event.value = '150 ';

    else if (v == "HBZ (200W Bay)") event.value = "200";


    The text field ("stndwatt") is actually hidden and is only required to be part of other subsequent calculations - I don't know if this is a factor?


    If you can please advise what I can do to make the field to update when a new selection is made in the drop-down box, it would be much appreciated!

    I'm just a beginner so please keep this in mind

    Thank you!!!

    You must make sure that the field calculation order is correct. See

    as it is a calculated field that is used in other calculations, you should

    Make sure it is higher on the list compared to the fields that use its value

    for their own calculation, that is to say that its calculated before them.

    You can set this order in form editing mode, via the game of - other - jobs

    Field calculation order.

  • How to Add Drop Down Menu selection of city?

    How is the best way to add a Drop Down Menu selection town on my website next MyCITY logo?  This page should be selection on Los Angeles (arrow icon w next to him), but I need 4 other choices in the city.  It must fall down, like RESTAURANTS, with an arrow.  Not sure what the best way to address the issue.

    http://www.tammyfarringtoncreative.com/test/index.html

    Thanks, Tammy

    Looking for a list of shape selection?

    http://www.w3schools.com/tags/tag_select.asp

    Nancy O.

  • Drop-down menu and report queries

    Hi all

    I have a report query that print Information on a given employee's salary (it works fine). It was printed on a letter head of companies and to get it stamped properly. The letter is addressed to a particular bank (depending on the choice of the employee)

    Scenario:
    I have 10 banks that this letter may be addressed to (one at a time). Each employee has a choice by drop-down menu to choose the Bank they want this letter to be sent to the. and when he chooses for example. BofA. I want to print in PDF format also with his statement of salary.

    Even if another employee wants his salary for Chase Bank statement, it should select Chase Bank of drop down and the letter would be printed address Chase Bank.

    I can do this thing by the static bank names. But it would create 10 similar models each different bank name. But I don't want to. I want a model and value automatically feeding WRT my drop-down list of choices.

    I hope I am clear. Thanks in advance. Your help is appreciated.

    Hello

    First of all, you must make sure that the selected page, employee and banking, the elements have been registered in the session, so that it is available for use in the report. This can be done by using a Select list that submits the page for the two elements.

    The query itself just needs to be able to recover both the banking information and employee information. This can be done in the SQL statement:

    SELECT B.NAME, B.ADDRESS1, B.ADDRESS2, etc
    S.NAME, S.SALARY, etc
    FROM BANK_TABLE B
    INNER JOIN SALARY_TABLE S ON 1 = 1
    WHERE B.BANK_ID = :P1_BANK_ID
    AND S.EMPLOYEE_ID = :P1_EMPLOYEE_ID
    

    Andy

  • The Drop Down Menu number of Excel spreadsheets?

    Trying to open an Excel file created by my boss in number. There a few in drop-down menus, (pictured below) and they will not display correctly. Many prefer using numbers than Excel, anyone know of any tricks to make this menu drop-down appear in numbers as in Excel?

    In numbers, they simply appear not at all. Help, please! Thank you

    In Excel, you can automatically fill a drop-down list with values within a specific range of cells through 'Data Validation '.

    Numbers have no drop-down menu, but it doesn't have a Menu called data format.  It is easy to populate a drop-down list with values manually; Select the cells that contain different values which you want to make a choice and format on the Shortcut Menu. The result will be something very similar to your screenshot.

    But in doing so fully automatic as in Excel is not currently possible in number.

    Numbers provides an attractive work environment, but if you frequently need to exchange documents with your boss and your boss uses Excel, then better use Excel.

    SG

  • Dictation commands drop-down menu is empty.

    MacBook Pro (mid-2012), El Capitan 10.11.6

    In the preferences of accessibility, dictation, dictated orders, all orders are selected.

    Dictation & speech preference, dictated, dictated increased use is selected.

    Dictation is 'On '.

    When I click on the microphone at the top of the screen icon and select "Show dictation commands" menu drop-down is empty.  Yesterday, the drop down menu list all orders of the dictation.

    How to fix and what did wrong?

    Tom TX

    -Try to reset memory NVRAM/PRAM and SMC

    MacIntel: Reset of the controller (SMC) system management

    https://support.Apple.com/en-us/HT201295

    Subject of memory NVRAM and PRAM

    https://support.Apple.com/en-us/HT204063

    -Try to start safe mode

    OS x: what is Safe Boot, Safe Mode?

    https://support.Apple.com/en-us/HT201262

    -Start to recovery and repair the startup disk

    OS X: on OS X Recovery - Apple Support

    https://support.Apple.com/en-us/HT201314

    -If it is repairable reinstall the OSX

    How to reinstall OS X on your Mac - Apple Support

    https://support.Apple.com/en-us/HT204904

    -If you do not have a backup using disk utility to restore the internal drive to an external drive, so that you can try to recover the data.

    Format the boot disk and then do a fresh install of Mac OS x

  • My drop down menu changed search bar

    Everything I see that I get help on the search bar in the upper right corner shows the emblem of a little search engine. I don't have much, and I can't get it back. Worse still, when I start typing, I search point that I must now address a long list of terms of indefinable query from nowhere!

    I don't know how I changed all form the way it had been forever. I want to just my little drop down menu with a few indicators of search engine to this topic, and I just want to see my previous research, not what is trendy!

    Hi relem, I have already explained the reasoning behind the change: it is now much faster and easier to use different search engines that your browser by one on a wide base. If you want to do in the old search bar, you must first define a different engine in the search bar, search & then switch back (because the default value is also used in the address/home/new tab bar). It's a simple click!

  • The drop down menu boxes that appear under the heading of Firefox do not fill. A form of box on the screen, but it is empty. Given zero no has not solved the problem.

    The file, editing, display and help tabs that were on the previous version of FireFox Menu bar top are apparently incorporated into the "FireFox" drop-down box in the latest version of the browser. I was unable to open those tabs earlier, so by the recommendation of the Support Forum, I have Firefox on my laptop. Now not only the tabs above are missing after this reset, but the drop down menu does not open in any submenus. What I see now is a box on the surrounded black screen, but sub menu selections such as save as, print, copy etc are not shown in the box. This is why the Navigator is not functional in its current state.
    Does anyone have a fix for this problem that will not delete my favorites and other content stored on Firefox? Please save me to return to Internet Explorer.
    AJJC

    Try disabling hardware acceleration in Firefox.

  • How can you change a menu drop-down menu in a case statement?

    Hello

    I'm trying a table find vi. This VI will be an existing xml file and once the user has selected access to its equipment, input, output and frequency it put all of these options in a string and search the XML for this exact table name and post it on one screen of output. The problem I have is my entry and exit selection must be a little different depending on the chosen equipment. I thought I could use an instruction box to change the options of selectable input and output, but I ran into snags a lot with it. For whenever I have to put a new drop of entry and exit in the drop-down menu in the case statement, he wants to put a new one in the front (I only want to enter and exit not only three I have two inputs and outputs hidden right now). I think I'm using the wrong case statement... Can someone help change my input and output, selectable options depending on the chosen equipment. Attached is my xml file, Array Find.vi (the original) and table Find_Test.vi (that's what I'm trying to change).

    Thank you

    dlovell

    Hi dlovell,

    A few changes in the attached VI:

    Requirements/possible Solutions

    • When the value of the equipment, do something
      • Add the cases to the value of equipment change event
    • Do something = decide what channels to write, to change the input and output strings
      • Read material value changed
      • Decision (case structure)
      • Channel (same method as the previous mod)

    Hope this helps

Maybe you are looking for

  • Satellite Pro C660 - BIOS update error

    Hello Try to update one of my employees with bios 1.50 laptops (C660) and it displays an error message displaying 3 possible causes. Power adapter not connected not (it's) battery is less than 10% (it is not) and the BIOS is updated to the version 1.

  • After Bios Update satellite A10 had totally frozen and the display is blocked

    Hello Today, I tried to update my Bios of satellite A10 to 5.20.I downloaded the unziped file and executed, as recommended in the instructions.After restarting the system, the laptop completely froze and the display is blocked. So, I am unable to do

  • Portege 3440 ACPI BIOS under Windows XP errors

    Hello!There are error messages in the system log of my laptop under windows xp saying "AMLI:ACPI BIOS trying to read more... ». The Microsoft Knowledge base describes this problem as a behavior not secure the ACPI BIOS of the specifications. There is

  • Need help for plotter DesignJet 750 c

    We have problems with our plotter DesignJet 750 c.  When it is running until it begins its initialization routine, the print head moves back and position themselves.  After a couple minutes of inactivity, the screen displays ERROR SYSTEM 0000D 8 003E

  • When I get a video as an attachment to an e-mail, my Windows Media Player opens the attachment, but it will not play

    Original title: Windows Media Player When I receive a video as an attachment to an e-mail, my Windows Media Player opens the attachment, but it will not play.  However, if I go directly to the appropriate site (Youtube, for example), Windows Media Pl