cfgrid-flash- search

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default cfgrid-flash- search

    I would like to have 3 possible search fields that on submit it will search the
    database and display the results in the cfgrid in flash format. Is this
    possible. See my code below.



    <cfform name="Hardware" height="1000" width="900" format="Flash"
    skin="HaloGreen">
    <!--- The input area is a panel. Styles to specify panel characteristics.
    Child controls inherit the background color and font settings. --->
    <cfformgroup type="Panel" label="Hardware Search"
    style="marginTop:10; marginBottom:10; fontSize:14; fontStyle:italic;
    headerColors:##FFFF00, ##999900; backgroundColor:##FFFFEE;
    headerHeight:35; cornerRadius:12">

    <!--- This vbox sets the font size and style, and spacing between and
    around its child controls. --->
    <cfformgroup type="vbox" style="fontSize:12; fontStyle:normal;
    verticalGap:10; marginLeft:5; marginRight:5">


    <cfformgroup type="horizontal" style="horizontialalign:left">
    <cfinput type="text" name="part_number" label="Part Number" width="200">
    <cfinput type="text" name="description" label="Description" width="400">
    </cfformgroup>
    <cfformgroup type="horizontal" style="horizontialalign:left">
    <cfinput type="text" name="material_description" label="Mat'l Description"
    width="300">

    </cfformgroup>
    <!--- Horizontal rules surround the e-mail address.
    Styles specify the rule characteristics. --->
    <cfformitem type="hrule" style="color:##999900; shadowColor:##DDDD66;
    strokeWidth:4"/>
    <cfformitem type="HTML" Style="marginTop:0; marginBottom:0">

    </cfformitem>


    <cfgrid name="grid" format="flash" query="Hardware"
    selectmode="single" width="800" height="300">
    <cfgridcolumn name="part_number"
    width="120"
    header="Part Number">
    <cfgridcolumn name="procurement_document"
    width="120"
    header="Proc. Doc">
    <cfgridcolumn name="description"
    header="Description">
    <cfgridcolumn name="material_description"
    header="Mat'l Description"
    headeralign="center">
    </cfgrid>


    <!--- Styles control the colors of the current, selected, and
    rolled-over dates.
    <cfinput type="datefield" name="mydate1" label="Date" width="200"
    style="rollOverColor:##DDDDFF; selectionColor:##0000FF;
    todayColor:##AAAAFF">--->
    </cfformgroup> <!--- vbox --->
    </cfformgroup> <!--- panel --->
    <!--- A style centers the buttons at the bottom of the form. --->
    <cfformgroup type="horizontal"style="horizontalAlign:center">
    <cfinput type = "submit" name="submit" width="100" value = "Show Results">
    <cfinput type = "reset" name="reset" width="100" value = "Reset Fields">
    </cfformgroup>
    </cfform>
    </body>
    </html>

    lgschulz Guest

  2. Similar Questions and Discussions

    1. CFGRID and format=flash
      We have been testing CFGRID with format = flash . This works on our dev web server but not our live server. Both are running Wiondows Server 2000,...
    2. CFGrid in Flash Form
      I'm trying to display my data in a flash form in 2 rows, The first row to display the currenty month follow by the day 1-31. The second row is to...
    3. Display search results from Flash Form to CFGrid
      Yet another CF flash form question: I'm not sure if this is possible, but, I would like to display search results using flash forms and display...
    4. Flash CFGRID
      I'm unable to update a table when using the <cfgridupdate> tag. My <cfgrid> is correctly populated with a query and I can change information on the...
    5. Cfgrid to display search results
      I'm using Cfform format = flash. I have 2 search fields, and a button. When a user enters their search query, and hit submit, I want to populate my...
  3. #2

    Default Re: cfgrid-flash- search

    This should be. When you select the search criteria, the form will reload and
    post back to the server, you can then run a new 'Hardware' query, based on the
    form submission. And then when the form is reloaded the grid will be bound to
    the new query. hth, ---nimer

    nimer Guest

  4. #3

    Default Re: cfgrid-flash- search

    I'm also trying to do this, but, I have over 5000 records in my database. I do
    not want to query the entire the database before the page loads. Also, in your
    code, I can't see where you are quering the database, and where you're posting
    your form. Any help will be appreciated. Here's the code I have.... <cfform
    format='flash' name='studentSearch'> <cfinput type='text' name='lastname'
    label='Last Name' width='200'> <cfinput type='text' name='licenseID'
    label='License ID' width='200'> <cfinput type='submit' name='search' value='
    Get Student(s) '> <cfgrid name='students' query='getStudentsResults'
    selectmode='single'></cfgrid> </cfform>

    grice Guest

  5. #4

    Default Re: cfgrid-flash- search

    I found some code on the web at [url]http://asfusion.com/blog[/url]

    It had two downloadable versions of a search. See if that will help.
    lgschulz Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139