Help CFSELECT

Hi,
I am trying to use flash forms to create a drop box(CFSELECT)
but I haven't used this before and I am running into problems. I am
attaching my code for help. My syntax is probably the problem as I
am used to SELECT instead.
I will appreciate help on how to get the query results
populated into the the field.TIA

<cfselect
name="CourseList"
id="CourseList"
query="getCourseList"
display="CourseName"
value="CourseID">
</cfselect>
Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.com
"Abdlah" <[email protected]> wrote in
message
news:foisr2$k58$[email protected]..
> Hi,
> I am trying to use flash forms to create a drop
box(CFSELECT) but I
> haven't
> used this before and I am running into problems. I am
attaching my code
> for
> help. My syntax is probably the problem as I am used to
SELECT instead.
>
> I will appreciate help on how to get the query results
populated into the
> the
> field.TIA
>
> the query:
>
> <!--- get courses list --->
> <cfquery name="getCourseList"
datasource="#request.datasource#">
>
> Select CourseID, CourseName
> From Course
>
> </cfquery>
>
>
>
> How I am using the results from the query
>
> <cfselect name="CourseList"
> label="Select Course"
> query="getCourseList"
> <option
value="#CurrentRow#">#CourseName#</option>
> </cfselect>
>

Similar Messages

  • Help with OnChange in cfselect

    Hello
    I'm hoping somebody can help me.
    I am using cfform with "flash" format and what I am trying to
    do is open an edit form and requery the cfselect box onChange.
    Basically the form has a cfselect field at the top and when the
    cfselect field is changed I want the other fields on the form to be
    updated with the correct information.
    <cfformgroup type="horizontal" label="Catchment ID:">
    <cfselect enabled="yes" name="CatchmentID" tooltip="Enter
    Catchment ID" required="yes" message="Enter Catchment ID"
    multiple="no" query="getCMTQry" value="CatchmentID"
    selected="#getCMTQry.CatchmentID#">
    <option value="#getCMTQry.CatchmentID#"
    <cfif (isDefined("getCMTQry.CatchmentID")
    AND getCMTQry.CatchmentID
    EQ getCMTQry.CatchmentID)>
    </cfif>>
    </option>
    </cfselect>
    <cfinput type="text" name="CatchmentName"
    label="CatchmentName:" message="Enter Catchment Name" size="37"
    required="yes" tooltip="Enter Catchment Name">
    <cfinput type="text" name="CatchmentCostCentre"
    label="Cost Code:" value="#getCMTQry.CatchmentCostCentre#"
    tooltip="Enter Cost Code" size="10">
    </cfformgroup>
    Thank you in advance for any help.
    Diane

    What modem do you have?
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • CFSELECT Help!!

    Hi,
    I am working on a project that has a cfform and in this form
    I have 2 cfselect drop downs. What I would like to do is depending
    upon the selected value of the first cfselect I only want to
    populate the second cfselect with a certain few values. So if I
    have a combo box that has a list of countries and when you select
    that country the second combo box populates the states for that
    country only with out reloading the page. Also my combo box are
    populated from a database and not hard coded. I do have all the
    needed primary keys and foreign keys.
    Any assistance would be greatly appreciated or pointing me in
    the right direction.

    There's a custom tag out there that some people use. I had to
    do it once, and it went something like this:
    http://www.pathcom.com/~bracuk/code/RelatedSelects.htm
    This is a frequently asked question, hence the re-useable
    answer.

  • Cfselect and cfloop help

    I am working on an event calender application. What I am
    trying to achieve is to have 2 drop down lists with the months of
    the year in them. I want the selection from the first list field to
    define the starting point for the second list field. For example.
    The first choice from the 12 months is March. So I want the second
    box, located on the same page, to have from March to December as
    options. Then there is a submit button.
    Then, below, on the same page, I would like to have a dynamic
    calender generated for the events between the months selected from
    the form. I have the calender section completed using a db query to
    populate the table with the events.
    I can get this to mostly work by having the form on one page
    submit to the calender on another page though I cannot get the
    second list field to update based on the value passed from the
    first list field, I would really like this to work on a single page
    so that the user can resubmit different date combinatons on the
    fly.
    Any help anyone can provide me with would be greatly
    appreciated. Thanks in advance.

    Ok..i have the page working almost completely right now.
    I used IsDefined("Form.Submit"> in a <CFIF>
    <CFELSE> statement to get the form to submit the results to
    the same page, then i added a second copy of the form to the top of
    the reselts section of the calender so that the form is always
    present for use on the page.
    The only thing I need help with now is making the second list
    box update it's choices from the selection of the first list box in
    the same form. Any ideas?
    I can post code iff it will help any, but it is getting
    rather lengthy.

  • Problem with bind in a CFSELECT

    I am trying to get a CFSELECT to populate using bind.  If I use:
    <CFSELECT bind="http://www.myDomain.com/CFC/file.cfc?method=getSizes({materialColor})">
    </CFSELECT>
    my bind works... somewhat. 
    But if I use:
    <CFSELECT bind="cfc:myCFC.file.getSizes({materialColor})">
    </CFSELECT>
    I get:
    "The specified CFC myCFC.file could not be found.  The path to the CFC must be specified as a full path, or as a relative path from the current template, without the use of mappings."
    The Coldfusion exception log says the same.  myCFC is setup as a mapping to the D:/wwwroot/CFC directory in Coldfusion Administrator.  I've tried putting the .cfc file in the same directory as the .cfm that calls it but I get the same error.  It seems no matter where I put it and tell Coldfusion to look for it, unless I use http: I get that error. 
    I've tried using the cfdebug parameter on the page after enabling debugging in Administrator but it doesn't seem to do anything.
    I'm using Coldfusion 9 Developer with Apache 2.2.14 and PHP 5.2.11. 
    Thanks for the help.

    What you describe should work. I only have doubts about D:/wwwroot/CFC.
    I successfully tested with something like this:
    1) Component: c:\Coldfusion9\wwwroot\CFC\file.cfc
    2) In the mappings page Administrator
    Logical path: /myCFC
    Directory path: c:\Coldfusion9\wwwroot\CFC
    3) <CFSELECT bind="cfc:myCFC.file.getSizes({materialColor})"></CFSELECT

  • Bound CFSelect not working (with or without search box)

    Hello,
    I'm on WS2008 (64-bit) with IIS and CF9.0.1 (32 bit) and can't seem to get a bound CFSelect to work at all. CFGrid and other AJAX contriols work great. The code (shown below) appears to run without errors but the option tags are never generated.The binding CFC method returns a query with the data I want (I can see it on a dump) but is dropped by CF somehow.
    Ideally I want to use this approach on several complex forms but need to get something working first. Removing the lookup doesn't help either. I'm pulling this Oracle data via the 10G Client's ODBC driver.
    I've been working on CF forever (4-9) and never was stumped like this. Otherwise CF 9 On this server is running without a hitch.
    Long term I'm trying to move away from our Flash/Actionscript equivilants and move toward AJAX. But I'm stuck. Please help!
    Thanks
    Tim
    Index.cfm
    <cfparam name="form.lookup" type="string" default="A">
    <cfform preservedata="Yes">
        Search: <input type="text" name="lookup" id="lookup"><br />
        <cfselect name="Emp" bind="cfc:application.getEmpList({lookup})" value="EMPL_NBR" display="EMPL_NM">
            <option value="00000000">--- No Employees ---</option>
        </cfselect>
    </cfform><br>
    <!--- Just for Testing --->
    <cfinvoke component="Application" method="getemplist" returnVariable="qRead">
    <cfinvokeargument name="likename" value="#form.lookup#">
    </cfinvoke>
    <cfdump var="#qRead#" output="browser">
    Application.cfc
    <cffunction name="getEmpList" access="remote" returntype="query" output="yes">
        <cfargument name="LikeName" type="string" required="yes"> 
        <cfquery name="Emps" datasource="#application.dsn#" maxrows=50>
            Select EMPL_NBR, EMPL_NM from MNDOT_EMPLOYEE
            Where EMPL_STAT_CD = 'A'  <cfif isdefined("LikeName")> and upper(Empl_Nm) like '%#ucase(likename)#%'</cfif>
            Order By Empl_NM</cfquery>
        <cfreturn emps>
    </cffunction>
    Message was edited by: CFTim1965
    Message was edited by: CFTim1965

    Turns out that bound (used for the CF AJAX tags) CFCs are processed by the Application.cfc event methods like CFMs are and will have any HTML tags added in. When my method returned the query it had all my template code at the top (and some on the bottom). I used the code (in the Application.cfc) below to only write the HTML when the CFM pages are processed. Hope this helps! There a lot of misleading half truths out the about this issue.
    <cffunction name="onRequestStart">
        <cfargument name="targetpage" type="string" required="true">
        <cfset var isCFM  =  (lcase(ListLast(arguments.targetPage, '.')) eq 'cfm') />
        <cfif isCFM>
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
            <html xmlns="http://www.w3.org/1999/xhtml">
            <body>
            <cfset AppHeader() /><!---  Create the Template Header --->
        </cfif>
    </cffunction>

  • CFselect onchange doesn't work on flash Form

    Hello :
    I have looked for more than a week to find out answer  but couldn't fine anything.
    I have cform with tye="Flash" and cfselect with query to populate the values.
    I want use onchange="" after I select any value on cfselect to submit the pages and select next cfselect. But doesn't work.
    Some help me
    When I used onchange="submitform();" the form doesn't display.
    I used geturl() and page reload but doesn't submit the page.
    I use this code that i found on Adobe web page and still doesn't work.
    <cfsavecontent variable="
    showSelectedCheckbox">
    var checkboxCount = 3;
    for(var i = 1; i <= checkboxCount; i++)
         var thisItem = 'check' + i;
         if(i == itemSelect.value)
              this[thisName].enabled = true;
         else
              this[thisName].enabled = false;
    </cfsavecontent>
    <cfform format="flash" width="300" height="500">
         <cfinput name="check1" type="checkbox"
              label="Feed?" enabled="true" />
         <cfinput name="check2" type="checkbox"
              label="Mine?" enabled="false"/>
         <cfinput name="check3" type="checkbox"
              label="Eat?" enabled="false"/>
         <cfselect name="itemSelect" label="Select Item"
              onchange="#showSelectedCheckbox#">
              <option value="1">Animal</option>
              <option value="2">Mineral</option>
              <option value="3">Vegetable</option>
         </cfselect>
    </cfform>
    I read about cffromitem or cfformgroup but i don't know how used it .
    Somebody Can help me to result this problem.

    I did everything written ''it solved'' but nothing solved. I think I'll begin to use chrome :(

  • Cfselect (format="flash") doesn't render with addition of "onChange" attribute

    The following code renders fine without the "onChange"
    attribute, but when I add the "onChange" attribute it no longer
    appears on the screen. I'm new to <cfform>, so any help would
    be appreciated!
    <cfselect name="select_project"
    label="Select Project"
    query="qMenuWrProject"
    value="work_rqst_nbr"
    display="display_desc"
    required="yes"
    multiple="no"
    width="500"
    onChange="this.form.submit();"
    />

    Let me put it another way.
    open the page in FF
    right-click within the document and choose View Page Source
    in the pop-up window, click ../SpryAssets/SpryAccordion.js
    You will see
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <HTML><HEAD>
    <TITLE>404 Not Found</TITLE>
    </HEAD><BODY>
    <H1>Not Found</H1>
    The requested URL /SpryAssets/SpryAccordion.js was not found on this server.<P>
    <HR>
    <ADDRESS>Apache/1.3.37 Server at www.tc.umn.edu Port 80</ADDRESS>
    </BODY></HTML>
    This means that the document cannot be found.
    I could also put it another way by translating ../SpryAssets/SpryAccordion.js as http://www.tc.umn.edu/SpryAssets/SpryAccordion.js
    click on the latter and see what happens
    now click on http://www.tc.umn.edu/~aias/SpryAssets/SpryAccordion.js
    Gramps

  • Linked fields not working correctly- PLEASE HELP DEADLINE LOOMING!

    I have two tables. The first is called Orders and contains a autonumber field named ID. This field is linked to a field named OrderID in another table named ProductOrders. I am using a submission form with a cfinclude to submit to both tables. There should only be one Orders.ID and numerous ProductOrders.OrderID (but they should be the same number). When I submit the form there are no error messages but the ProductOrders.OrderID is blank and therefore not linked to Orders.ID. What should I be looking for? I have linked the fields in Access in properties and relationships. What else?

    Perhaps this will help, here is my code:
    This is the input form (I stripped out the unecessary stuff and yes I realize the cfinclude appears after the submit button but it is within cfform tag and is submitting everything but the ID number):
    <cfform action="mp_order_form2.cfm" method="post">
    <cfoutput query="CheckUser">
    <input type="hidden" name="UserID" value="#UserID#">
    </cfoutput>
    <p align="center"><img src="../images/mp_order_header.jpg" width="308" height="91" /></p>
    <table width="650" border="0" align="center">
      <tr>
        <td align="left" bgcolor="#FFFFFF"><font face="Tahoma"><strong>Sale Date*:</strong></font></td>
        <td align="left"><cfoutput>
          <input name="SaleDate" readonly="readonly" value="#DateFormat(Now(), "mm/dd/yyyy")#" />
          </cfoutput></td>
      </tr>
      <tr>
        <td align="left"><font face="Tahoma"><strong>TM Name*: </strong></font></td>
        <td align="left">
                            <cfoutput query="CheckUser">
                            <cfinput name="TerritoryManager" readonly="readonly" type="text" id="TerritoryManager" value="#UserFirstName# #UserLastName#" />
                            </cfoutput></td>
      </tr>
      <tr>
        <td align="left"><font face="Tahoma"><strong>Distributor*:</strong></font></td>
        <td align="left"><cfselect size="1" name="Distributor" required="Yes" message="Please select a distributor">
    <cfoutput query="distributors">
      <option value="#distributors.Field2#">
       #distributors.Field2#  </option>
    </cfoutput>
    </cfselect></td>
      </tr>
      <tr>
         <td align="left"><font face="Tahoma"><strong>Dealer:</strong></font></td>
        <td align="left"> </td>
      </tr>
      <tr>
        <td align="left"><cfoutput query="dealer_info"><input type="hidden" name="DealerID" value="#dealer_info.ID#"></td></tr>
      <tr>
        <td colspan="2" align="center" bgcolor="##CCCCCC"><font face="Tahoma" size="+1"><strong>#DealerName#</strong></font><br>
              <font face="Tahoma">#DealerAddress#</font><br>
              <font face="Tahoma">#DealerCity#, #DealerState# #DealerZIPCode#</font><br>
    <br><br>
    <font face="Tahoma">(#Left(DealerPhone,3)#) #Mid(DealerPhone,4,3)#-#Right(DealerPhone,4)#</font></td></tr></cfoutput>
      <tr>
        <td align="left" class="style8"> </td>
        <td align="left"> </td>
      </tr>
      <tr>
        <td align="left"><font face="Tahoma"><strong>PO Number: </strong></font></td>
        <td align="left"><cfinput type="text" name="PONumber" /></td>
      </tr>
      <tr>
        <td align="left"><font face="Tahoma"><strong>Promotion:</strong></font></td>
        <td align="left">
          <cfselect name="Variable" size="1" id="Variable">
            <option value="No promotion" selected="selected">No promotion</option>
            <option value="A+ Promotion (Send Kit)">A+ Promotion (Send Kit)</option>
            <option value="A+ Promotion (Do Not Send Kit)">A+ Promotion (Do Not Send Kit)</option>
            <option value="Chick Days Pre-book">Chick Days Pre-book</option>
      <option value="Fly Spray Pre-book">Fly Spray Pre-book</option>
      <option value="ISO Program">ISO Program</option>
      <option value="Promotion plus additional products">Promotion plus additional products</option>
          </cfselect></td>
      </tr>
      <tr>
        <td align="left"> </td>
        <td align="left"></td>
      </tr>
      <tr>
        <td align="left"><font face="Tahoma"><strong>ISO Check: </strong></font></td>
        <td align="left">
          <cfselect name="ISOCheck">
            <option value="Retail ISO Placement">Retail ISO Placement</option>
            <option value="DSR Spiff Check">DSR Spiff Check</option>
          </cfselect>
        </td>
      </tr>
      <tr>
        <td align="left"><font face="Tahoma"><strong>ISO Check Number: </strong></font></td>
        <td align="left"><cfinput type="text" name="ISOCheckNumber" /></td>
      </tr>
      <tr>
        <td align="left"><font face="Tahoma"><strong>ISO Check Amount: </strong></font></td>
        <td align="left">
          <cfinput type="text" name="ISOCheckAmount" />    </td>
      </tr>
      <tr>
        <td align="left"> </td>
        <td align="left"> </td>
      </tr>
      <tr>
        <td align="left"><font face="Tahoma"><strong>Customer Service Call Back: </strong></font></td>
        <td align="left">
          <cfselect name="CallBack">
       <option value=" " selected="selected"> </option>
       <option value="Yes">Yes</option>
       <option value="No">No</option>
          </cfselect>    </td>
      </tr>
      <tr>
        <td align="left"> </td>
        <td align="left"> </td>
      </tr>
    </table>
      <hr align="center" width="65%" color="#999999">
       <table width="677" align="center">
      <tr>
        <td height="22" colspan="4"><font face="Tahoma"><strong>Product Orders:</strong> </font></td>
      </tr>
      <tr>
        <td width="314" bgcolor="#CCCCCC"><div align="center"><font face="Tahoma" size="-1"><strong>Product</strong></font></div></td>
        <td width="62" bgcolor="#CCCCCC"><div align="center"><font face="Tahoma" size="-1"><strong>Qty</strong></font></div></td>
        <td width="124" bgcolor="#CCCCCC"><div align="center"><font face="Tahoma" size="-1"><strong>Size</strong></font></div></td>
        <td width="157" bgcolor="#CCCCCC"><div align="center"><font face="Tahoma" size="-1"><strong>New or Existing at Dealer</strong></font></div></td>
      </tr>
       <tr>
         <td> </td>
         <td> </td>
         <td> </td>
         <td> </td>
       </tr>
      <tr>
        <td colspan="4"><font face="Tahoma" size="+1"><strong>Comments:</strong></font></td>
        </tr>
      <tr>
        <td colspan="4"> </td>
      </tr>
      <tr>
        <td colspan="4"><font face="Tahoma">* - indicates a required field that must be filled in to submit form</font> </td>
        </tr>
      <tr>
        <td colspan="4">
          <div align="center">
            <input type="submit" value="Submit">
      <input type="reset" value="Reset">    
          </div>    </td>
      </tr>
    </table>
    <cfinclude template="product_input.cfm" >
    </cfform>
    </table>
    Here is the cfinclude template:
    <table width="579">
    <tr>
        <td>
          <cfselect name="Product">
         <option value="" selected="selected"> </option>
       <cfoutput query="products">
      <option value="#products.Product#">#products.Product#</option>
       </cfoutput>
          </cfselect>   
        </td>
        <td>
          <cfselect name="Quantity">
         <option value="" selected="selected"> </option>
       <cfoutput query="quantity"> 
            <option value="#quantity.Quantity#">#quantity.Quantity#</option>
       </cfoutput>
          </cfselect>   
        </td>
        <td>
          <cfselect name="BagsCases" id="BagsCases">
        <option value=" " selected="selected"> </option>
           <option value="Bags / Eaches">Bags / Eaches</option>
           <option value="Cases">Cases</option>
        <option value="Pallet">Pallet</option>
          </cfselect>   
        </td>
        <td>
         <cfselect name="NewExisting" id="NewExisting">
          <option value=" " selected="selected"> </option>
          <option value="New">New</option>
          <option value="Existing">Existing</option>
        </cfselect>   
        </td>
    <td><label>
       <input type="text" name="OrderComments" />
    </label>  </tr>
    </table>
    And finally, the action page:
    <cftransaction>
    <cfinsert datasource="manna_premier" formfields="SaleDate,TerritoryManager,Distributor,DealerID,PONumber,Variable,ISOCheck,ISO CheckNumber,ISOCheckAmount,CallBack,Comments,UserID" tablename="Orders">
    <cfinsert datasource="manna_premier" formfields="OrderID,Product,Quantity,BagsCases,NewExisting,OrderComments" tablename="ProductOrders">
    </cftransaction>
    <cflocation url="mp_order_form3.cfm?ID=#FORM.DealerID#">

  • Can the delimiter in a CFSELECT-multiple be changed before using the list it creates?

    I am using a CFSELECT which allows multiple selections, and I
    am feeding the results into a query which returns information about
    all of the selections. However, some of the values being returned
    contain commas because the values are company names (Acme, Inc.)
    and this conflicts with the comma-delimiting being looked for by
    the ListQualify I am using in the query to look up the information
    based upon the selections.
    Is there a way to change the delimiter of either the CFSELECT
    or the list it generates? I have tried ListChangeDelims before the
    query, but it changes both the delimiter commas and the value
    commas, obviously. I don't believe there is a way to change the
    delimiter commas between creating the list in the CFSELECT and
    using it in the ListQualify, but there are so many of you CF
    geniuses out there, one of you has to know how to do this.
    I am happy to provide more information or attempt to clarify
    a point upon request.
    My thanks in advance for your consideration and help,
    Jim

    Thank you for the suggestion, Dan. I wish it was that simple.
    I am working with a table in which the company name is entered for
    each record and has no link to any other table, there is no company
    table. I could create a company table and switch-out the company
    name with it's new id, but I'd rather not have to change several
    thousand records. Plus, with new records being added all the time,
    how would the users enter company names if the names aren't already
    in this new table?
    The point may be moot, in addition, as there are numerous
    scenarios in which one may have a field that contains commas for a
    number of reasons. Regardless of why the commas are used, the fact
    that they can be used is important and what needs to be addressed.
    Is there a way to leave the commas in the records and change the
    delimiter put in the list?
    Thanks again,
    Jim

  • Outputting one cfselect fine now two

    Hi all,
    I am using coldfusion cfform in flash format -maybe this is
    the place to come for an actionscript question. The cfgrid tag
    works fine for one field the "state" field output with cfselect
    with the following onchange actionscript:
    <cfform format="Flash" skin="haloblue">
    <cfgrid name="UsersGrid" format="Flash"
    query="qNames" rowheaders="No"
    onchange="for (var i:Number = 0; i<state.length; i++) {if
    (state.getItemAt(
    ).data == UsersGrid.selectedItem.state) state.selectedIndex =
    i}">
    What I want to get is
    onchange="for (var i:Number = 0; i<state.length; i++) {if
    (state.getItemAt().data == UsersGrid.selectedItem.state)
    state.selectedIndex = i}"
    AND
    onchange="for (var i:Number = 0; i<meetingtime.length;
    i++) {if (meetingtime.getItemAt(
    ).data == UsersGrid.selectedItem.meetingtime)
    meetingtime.selectedIndex = i}">
    so I can connect to my meetingtime field and db field. I just
    don´t know how , thank you for any help.
    <cfgridcolumn name="FIRSTNAME" header="Contact Name">
    <cfgridcolumn name="ENTID" display="FALSE">
    <cfgridcolumn name="state" header="Next Step">
    </cfgrid>
    <cfformgroup type="tabnavigator">
    <cfformgroup type="page" label="Details:
    #dateFormat(now(), 'mmm dd, yyyy')#">
    <cfformgroup type="horizontal">
    <cfinput type="text" name="FIRSTNAME" label="First Name"
    bind="{UsersGrid.dataProvider[UsersGrid.selectedIndex]['FIRSTNAME']}"
    onChange="UsersGrid.dataProvider.editField(UsersGrid.selectedIndex,
    'FIRSTNAME', FIRSTNAME.text);">
    <cfselect name="state" width="200" size="1" label="Next
    Step"
    onchange="UsersGrid.dataProvider.editField(UsersGrid.selectedIndex,
    'state', state.selectedItem.data);">
    <option value="nulo">None</OPTION>
    <option value="SEND STUDY">SEND STUDY</OPTION>
    <option value="SEND PROPOSAL">SEND
    PROPOSAL</OPTION>
    <option value="CALL AND EMAIL">CALL AND
    EMAIL</OPTION>
    <option value="CALL">CALL</OPTION>
    <option value="SEND PRESENTATION">SEND
    PRESENTATION</OPTION>
    <option value="MEETING">MEETING</OPTION>
    </cfselect>
    <cfinput type="hidden" name="ENTID" label="ENTID"
    bind="{UsersGrid.dataProvider[UsersGrid.selectedIndex]['ENTID']}"
    onChange="UsersGrid.dataProvider.editField(UsersGrid.selectedIndex,
    'ENTID', ENTID.text);">
    </cfformgroup>
    </cfform>

    A similar thing happened to me. My MacBook went in two weeks ago because the built-in iSight was failing intermittently. It spent some time at the repair depot waiting for a main logic board.
    I got the call this morning that it was back at the local Apple Store.
    The clerk brought it out from the storeroom, I pressed the power button, and was treated to a weird display of multi-colored vertical lines.
    Now, the MacBook is on its way back to the repair depot to see what's wrong now.
    The only small consolation is that I've learned Apple's term for such not-quite-repaired machines. I'm the proud owner of a "looper."
    MacBook 2.0GHz SuperDrive "the looper"   Mac OS X (10.4.7)   My MacBook's getting more vacation this summer than I am!

  • Bind CfSelect

    So I have a cfgrid that is based on a query, in that query
    there is a FK for stateID, I can get all my other test fields to
    bind to the selected item, everything but the cfselect for the
    state, the state cfselect is populated by a different query. I have
    tried to do a bind and selected. but no joy. ANy help would be very
    much appreciated. I have attached the code.

    While I would not call this a solution, it is fixed - for
    now.
    I noticed that in the other areas of my application that also
    use this cfselect bind feature they had also stopped functioning,
    even though the CFCs could be successfully invoked and data
    returned and all looked ok. While I would love to find out what
    exactly that "Internal Server Error" message is, I simply copied
    the /CFIDE folder from one of my boxes that works to the troubled
    server, restarted and it now works. I thought if all of the
    cfselect binds were failing then maybe it was a supporting .js file
    that possibly got corrupted or deleted.
    Anyway, back in business. Like I said, not a true fix, but
    we're moving forward again.
    Rich

  • Select in cfselect from cfgrid

    Form is flash CF 7.01
    Is there a way to have a cfselect "selected" option chosen by
    a cfgrid
    selection either by binding or flash remote?
    Here is my form. Thanks for any help you can give...
    The binding on the second cfselect does not work.
    <cfform action="maina.cfm" method="post" name="usermaint"
    preservedata="true" preloader="yes" format="flash"
    height="500" width="400"
    skin="haloblue">
    <cfformgroup type="tabnavigator" visible="yes"
    enabled="yes"
    name="mytab" id="mytab" onchange="#getdata#"
    style="backgroundAlpha: 0;"
    wmode="transparent">
    <cfformgroup type="page" label="New User"
    selectedindex="1"
    visible="yes" enabled="yes">
    <cfinput type="text" name="uName" message="A user name is
    required"
    label="User Name" required="yes">
    <cfinput type="password" name="password" message="A
    password is
    required" label="Password" required="yes">
    <cfinput type="password" name="password1" message="A
    confirming
    password is required" label="Confirming password"
    required="yes">
    <cfselect name="SecLevel" size="1" label="Security"
    query="secl"
    value="level" display="level" selected="User"
    width="75"></cfselect>
    <cfinput type="button" name="Submit" value="Submit"
    onclick="#adduser#">
    </cfformgroup>
    <cfformgroup type="page" label="Edit User"
    selectedindex="1"
    visible="yes" enabled="yes">
    <cfgrid name="userslist" height="165" width="250"
    query="listusers"
    selectmode="edit" format="flash" autowidth="true">
    <cfgridcolumn name="uName" header="User Name"
    headeralign="left"
    dataalign="left" width="86" bold="no" italic="no" select="no"
    display="yes"
    headerbold="no" headeritalic="no" />
    <cfgridcolumn name="SecLevel" header="Admin"
    headeralign="left"
    dataalign="left" width="46" bold="no" italic="no" select="no"
    display="yes"
    headerbold="no" headeritalic="no" />
    </cfgrid>
    <cfinput type="text" name="uNameA" message="A user name
    is required"
    bind="{userslist.selectedItem.uName}" label="User Name"
    required="yes">
    <cfinput type="password" name="passwordA" message="A
    password is
    required" bind="{userslist.selectedItem.password}"
    label="Password"
    required="yes">
    <cfinput type="password" name="password1A" message="A
    confirming
    password is required"
    bind="{userslist.selectedItem.password}"
    label="Confirming password" required="yes">
    <cfselect name="SecLevelA" size="1" label="Security"
    query="secl"
    value="level" display="level"
    selected="{userslist.selectedItem.SecLevel}"
    width="75"></cfselect> <cfinput type="button"
    name="SubmitA"
    value="Update" onclick="#edituser#">
    </cfformgroup>
    </cfformgroup>
    </cfform>

    Never mind figured it out using remoting.
    myService.getselect(gridname.selectedItem.fieldname);
    "Rick" <[email protected]> wrote in message
    news:[email protected]...
    > Form is flash CF 7.01
    >
    > Is there a way to have a cfselect "selected" option
    chosen by a cfgrid
    > selection either by binding or flash remote?
    >
    > Here is my form. Thanks for any help you can give...
    >
    > The binding on the second cfselect does not work.
    >
    > <cfform action="maina.cfm" method="post"
    name="usermaint"
    > preservedata="true" preloader="yes" format="flash"
    height="500"
    > width="400" skin="haloblue">
    > <cfformgroup type="tabnavigator" visible="yes"
    enabled="yes"
    > name="mytab" id="mytab" onchange="#getdata#"
    style="backgroundAlpha: 0;"
    > wmode="transparent">
    > <cfformgroup type="page" label="New User"
    selectedindex="1"
    > visible="yes" enabled="yes">
    >
    > <cfinput type="text" name="uName" message="A user
    name is required"
    > label="User Name" required="yes">
    > <cfinput type="password" name="password" message="A
    password is
    > required" label="Password" required="yes">
    > <cfinput type="password" name="password1" message="A
    confirming
    > password is required" label="Confirming password"
    required="yes">
    > <cfselect name="SecLevel" size="1" label="Security"
    query="secl"
    > value="level" display="level" selected="User"
    width="75"></cfselect>
    > <cfinput type="button" name="Submit" value="Submit"
    > onclick="#adduser#">
    > </cfformgroup>
    > <cfformgroup type="page" label="Edit User"
    selectedindex="1"
    > visible="yes" enabled="yes">
    > <cfgrid name="userslist" height="165" width="250"
    query="listusers"
    > selectmode="edit" format="flash" autowidth="true">
    > <cfgridcolumn name="uName" header="User Name"
    headeralign="left"
    > dataalign="left" width="86" bold="no" italic="no"
    select="no"
    > display="yes" headerbold="no" headeritalic="no" />
    > <cfgridcolumn name="SecLevel" header="Admin"
    headeralign="left"
    > dataalign="left" width="46" bold="no" italic="no"
    select="no"
    > display="yes" headerbold="no" headeritalic="no" />
    > </cfgrid>
    > <cfinput type="text" name="uNameA" message="A user
    name is
    > required" bind="{userslist.selectedItem.uName}"
    label="User Name"
    > required="yes">
    > <cfinput type="password" name="passwordA" message="A
    password is
    > required" bind="{userslist.selectedItem.password}"
    label="Password"
    > required="yes">
    > <cfinput type="password" name="password1A" message="A
    confirming
    > password is required"
    bind="{userslist.selectedItem.password}"
    > label="Confirming password" required="yes">
    > <cfselect name="SecLevelA" size="1" label="Security"
    query="secl"
    > value="level" display="level"
    selected="{userslist.selectedItem.SecLevel}"
    > width="75"></cfselect> <cfinput
    type="button" name="SubmitA"
    > value="Update" onclick="#edituser#">
    > </cfformgroup>
    > </cfformgroup>
    > </cfform>
    >

  • CF11 - CFGRID & CFSELECT binding issue

    We just upgraded to CF11 and one of our apps had pieces stop functioning. We have figured out most of it, however one of our cfgrids is having issues. When the page is loaded the cfgrid hits the CFC that is specified in the bind settings (passes in the default employee ID of 0 and returns no data). When we select an employee name from the dropdown menu, we receive a 400 error saying the page can't be found. When the select is changed, it looks like it reverts to the root path instead of the cfc specific in the bind argument. Does anyone have any idea on the direction we should go to fix this? The exact same code works on CF8... but is completely broken on CF11.
    Thanks for your help.

    BKBK Sorry for the confusion... we set an array for the arguments, below is the full block of code.
    <cfform id="evaluation" name="evaluation">
    <div style="height:30px; margin-top:10px;">
    <div style=" margin-right:10px; float:left;">
    <cfselect name="employee" query="EmployeeList" value="affiliateID" display="empName" queryPosition="below">
    <option value="0" selected="selected">--- Select an employee ---</option>
    </cfselect>
    </div>
    </div>
        <cfset args = structNew()>
    <cfset args.name = "ExistingEvals">
    <cfset args.format = "html">
    <cfset args.bindOnLoad = "true">
    <cfset args.bind = "cfc:empEval.getCompletedEvals({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridso rtdirection},{employee})">
    <cfset args.stripeRows = true>
    <cfset args.selectColor = "##D9E8FB">
    <cfset args.selectmode = "row">
    <cfset args.selectOnLoad = "false">
    <cfset args.autowidth = "no">
    <cfset args.width = "335px">
        <cfset args.pageSize = "6">
    <cfset args.height = "200px">
    <div style=" margin-top:5px;">
    <cfgrid name="employeeEvals" attributeCollection="#args#">
    <cfgridcolumn name="empAffiliateID" display="no">
    <cfgridcolumn name="FY" display="no">
    <cfgridcolumn name="evaluationID" display="no">
    <cfgridcolumn name="typeID" header="Eval Type" display="yes" width="75">
    <cfgridcolumn name="FY" header="Fiscal Year" display="yes" width="90">
    <cfgridcolumn name="Status" header="Status" display="yes" width="125">
    <!---<cfgridcolumn name="Date" header="Date" display="yes">--->
    </cfgrid>

  • Cfselect in cfgrid

    Does anyone know how to place a cfselect element in a cfgrid
    or if it is even possible? I need an editable grid. It would be
    ideal if one of the columns was a select list. The same select list
    would be present in each row, that is, it would repeat all the way
    down the column. I am a total noob with ColdFusion. Any help or
    links to good info will be greatly appreciated.

    As far as I can tell this is a known issue with flash forms,
    but can be accomplished with the applet version.
    http://www.houseoffusion.com/groups/CF-Talk/thread.cfm/threadid:38871
    Does anyone know when this fix will be released?

Maybe you are looking for

  • How to delete 1 file from CD?

    If I only want to delete one file from a cd that contains many files, how do I do this? I don't want to erase the whole cd!

  • Audio output not working after installing 10.8.2

    i have updated my os x lion from 10.8.1 to 10.8.2 but when i have done that my audio output is stop working completely....!! pllease help me to resolve this problem i have macbook late 2008 edesion aluminum..!!

  • I wanted to know how much is it going to be to change type battery of an iPod touch

    I wanted to know how much is it going to be to change the battery of an iPod touch

  • Document set and list

    Hi, I need to add a list to a document set or link it somehow. I tried on the document set page to add webpart a list which works but dont know how to filter only list items related to the particular document set. Has anyone done something similiar?

  • Cannot download or run firefox

    Firefox updated to 6.02, but pages would not load. Tried to revert to old version. Would not open. Tried to update to newest version. Will not complete download. Says, "Your computer must be restarted to complete a previous uninstall of Firefox. Do y