Form reset problem

Hi all,
I have a cfform containing 3 related cfselects (i.e. bind
parameters connecting them), and it all works fine. However, I just
noticed one problem: the form contains a Reset button to clear all
of the form fields, which it does, but when the first cfselect is
reset to it's first option, the bindings are not re-triggered so
the other two cfselects do not contain the correct options. I tried
adding an onreset="document.myform.firstselectid.onchange();" to
the cfform tag, but that didn't work (throws a js error). BTW, I'm
testing all of this in IE7 since that's what my client uses.
Anyone know how I can get the bindings to update when the
form is reset?
Thanks,
Russ

Clearly I have not explained the problem well enough, since
the fact that I'm binding to cfcs has nothing to do with the
problem. Here's a simplified version of the relevant code:
<cfselect name="Type" id="Type"
bind="cfc:MyCFC.GetTypes()" bindonload="yes" />
<cfselect name="Manu" id="Manu"
bind="cfc:MyCFC.GetManus({Type})" />
<cfselect name="Model" id="Model"
bind="cfc:MyCFC.GetModels({Type@none},{Manu})" />
When the user selects a Type from the first list, the Manu
list uses it's binding to get the associated manufacturers and then
the Model list uses it's binding to get the models for that type
and manufacturer. It works just fine (has for a long time).
The cfform has a reset button (<input name="Reset"
type="reset" value="Clear Form">), and when you click it to
reset the form, it does just that, setting each cfselect to it's
first option. However, the fact that the Type cfselect got reset to
it's first option does not cause the Manu and then Models cfselects
to refresh from their bindings like they would if the user had
selected the first Type option. That is the problem.
I had hoped that simply following the reset with a js call to
document.myform.Type.onchange(); would initiate the refresh, but
document.myform.Type.onchange turns out to be null, so no go.
I'm aware of an undocumented js function
ColdFusion.Bind.assignValue that I've seen used for refreshing a
cfselect that binds to a js function, but I have not seen any use
of it when binding to a cfc.
Your thoughts?
Thanks,
Russ

Similar Messages

  • Automatic reset problem (Palm Centro)

    Recently, my phone begins to have a new problem.
    When I use the phone, it automatically resets if I touch the screen during the conversation.
    It disrupt my conversation.
    I had done hard reset; but, the problem came up again.
    What can I do?

    Did the problem immediately return when you finished the Hard Reset, or after doing a HotSync?  If the latter, then the problem is software-related and saved on your computer.
    Did the phone get damaged in any way?  Get wet?
    Here's my normal help file for clearing out reset problems:
    As with most problems that occur on a Palm phone or PDA, it is either software or hardware related and we have to determine which one.
    Best method is to first make a complete backup of your unit to your SD card using the free "NVBackup" (available from http://www.freewarepalm.com) After the backup is complete, Hard Reset the unit, then test to see if full functionality returns.
    Perform a Hard Reset as described in this Palm KB article: http://kb.palm.com/wps/portal/kb/common/article/45050_en.html
    DO NOT HOTSYNC YET! Test the unit before reinstalling any software. If the unit works correctly, your problem is being caused by a "drug interaction" of software - maybe one rogue program, or a combination of several. You'll have to reinstall the third-party programs one or a few at a time to find the problem one. To avoid re-installing a software issue, rename your /Backup directory in your Palm folder (on a PC it's found here: C/Program Files/Palm(One)/"your HotSync ID name truncated"/Backup) to something like "/BackupOLD". Now perform the HotSync, choose your HotSync name you've been using, and all your PIM data will return, but not the third-party programs. Test for functionality again. If all is good, start installing the old programs from your /BackupOLD directory one (or a few if brave) at a time.
    If the unit does not work after a Hard Reset is performed correctly, then it may be Hardware-related. (If it's a connection problem via either BlueTooth or Wifi, be sure nothing has changed on the unit you're trying to connect to!)
    Hope this has helped,
    Wyrenut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • PDF form reset to blank after hitting  send button

    How can I make the PDF form reset back to the original after someone hits the "Send by email" button?

    You can try to use the following on a 'click' event of the button.
    It will reset the form after you email.
    var myDoc = event.target;
    myDoc.mailDoc(
    false,
    "[email protected]", "", "",
    "Subject goes here.",
    "Body message goes here."
    xfa.host.resetData();

  • Why is the form resetting?

    Hi I'm making this form and when i enter a company name and
    then choose a Business type the form resets all the text fields.
    Any idea why and how i can fix this?
    I have a <cfparam> tag at the top defining a default.
    Thanks

    one more thing. that thing is JS cause i found this in the
    head tag..
    <script type="text/JavaScript">
    <!--
    function MM_jumpMenu(targ,selObj,restore){ //v3.0
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    if (restore) selObj.selectedIndex=0;
    //-->
    </script>

  • Multi Block Form Navigation Problem

    Hiii
    i have got a multi block form the problem that am facing now is that when running the FORM and when am over one of the my canvases then if i tried to press any of :
    (Tab button,Down arrow ) the canvas changes to ANOTHER Datablock ...
    i dont know what is the problem ....
    ANY SUGGESTIONS
    OMD

    Make the datablock you want to show on top as the first block in the object navigator.
    HTH.
    Regards,
    Arun

  • RE: freezing and resetting problems when syncing a large music library

    Hi there,
    I got a new ipod classic 160gb for christmas. I updated the firmware to 1.0.3 and synced it for the first time. When I tried to play any music it locked up and went into a loop of resetting itself which I could only break by forcing the ipod into disk mode.
    I restored the ipod and tried again syncing the music in chunks. This worked until the ipod was about 50% full then it started to freeze and reset again. I took this ipod back to the store but the new one had the exact same problem!
    Through a lot of trial and error I have managed to get the ipod working with only part of my library synced. By syncing music a few albums at a time I have managed to get about 86gb (of 120gb) onto it, but surely this is not how it is supposed to be! I have a dual boot system and have the same problems using windows XP or vista.
    I know that I'm not the only person experiencing resetting problems with the ipod classic. Are the users who are experiencing these endless resetting problems with the ipod classic those who have large music libraries (i.e over 80gb)? Can the ipod classic simply not handle the large volumes of music it was designed to hold?
    The only features I was looking forward to in the new ipod were a) larger capacity hard drive and b) the ability to organise playlists into folders on the ipod for easier browsing. As it stands I cannot sync my full library and navigating through my playlists is so slow it is hardly worth bothering. I never had a minutes trouble with my 5th gen.
    Have I been unlucky and the ipod classics I have recieved have been duds? In which case should I arrange another replacement? Or is this typical of the ipod classic user experience when the user has a large music library and many playlists? Should I await a firmware update that might remedy my problems?
    Lastly am I doing something wrong? Any help or workarounds would be gratefully appreciated.

    best thing to do is use Playlist and Smart Playliss to fill your iPod. Just so you know, since your post seemed to indicate you thought the playlists have to be tailored to what is already on the iPod, when you sync to playlists, any songs needed for those playlists are automatically moved onto the iPod. And any songs NOT in the playlists get removed.
    Patrick

  • K8NGM2-FID warm reboot/reset problems

    Hi everybody:
    The system:
    MSI K8NGM2-FID Bios V 3.4
    RAM - G.SKILL 2GB F1-3200PHU2
    Processor Athlon X2 3800+
    Drive WD2500YD 250GB 7200 RPM SATA150
    DVD R/W Pioneer DVR-111D
    DVD-R ASUS DVD-E616AG
    Case Antec Sonata II w/ Antec 450 W PSU 3.3 V/32A 12V1/15A 12V2/17A
    OS WinXP SP2 w/auto update set
    The Problem:
    When the system runs for more than 1-2 minutes and I do a restart under Windows OR hit the reset button it hangs with the HDD light on steady and no video output.
    If I try a warm restart or reset button push immediately (10-30 seconds) after windows comes up the system restarts OK.
    When the system is 'hung' repeated hits (short or 5-10 seconds) on the Reset button have no effect besides causing the DVD lights to blink (i.e., they seem to be getting a reset signal) but HDD light is still steady. 
    If I power the system down and restart it reboots OK - this means power down from the 'hung' state OR power down from Windows via 'Start' --> 'Turn off computer' or momentary push of power switch. 
    Looking at the Windows system log I see that warm boots done before many system processes load are successful, those afterwards are not.  I have tried disabling these processes (i.e., App layer gateway, SSDP discovery, Norton protected storage) w/o any change in behavior.
    This looks like a hardware problem to me, but I want to be sure it's one before I R&R the mobo w/ a spare. 
    Has anybody else seen this problem?
    Thanks,
    ss

    Update:
    It was the mobo - R&R w/new one: warm boot/reset problem gone. Plugged in drives w/o doing any software reinstall and unit came right up (and down and up and down....).
    This is the second K8NGM2-FID that has gone south on me since March.
    Both have been Ver 2.0 builds; the other one has a problem with onboard video but continues to function with an add-in video card (yah, it's better video too, but that's not the point).  The warm boot problem described in the original post isn't a show stopper, either, but I can't use these boards in a system for sale (unless I sell it to my brother-in-law).
    I have built eight systems since March using the K8NGM2-FID.  Six were for customers and are still under my personal six month no-questions-asked warranty (the extended 12 month lots-of-questions-asked starts after six months).  I have had to eat two at this point and am not too happy with the board.  Since MSI no longer makes this board I am having to use another vendor's mATX-6150 unit, perhaps for the better, I don't know.
    IMHO MSI is the best board maker in the consumer/office sector.  I hope they can stay that way.
    ss

  • Combo Box in Portal Form resets after query

    Hello all,
    I have a portal form based on Stored Procedure. In it I have a Location combo box and Query button in addition to few text items. Users can select location from the drop down list and hit Query button to view the values in for the text items. The query part is working fine. But after query the Location resets to Null (as the LOV which feeds the combo box can have Null). We would like to keep the location they chose to query up even after the query results. Any help is appreciated.
    The Location item is in the parameters of the Stored Procedure. Initially it was IN, later I changed to IN OUT but there is no change in functionality.
    I also removed the ability to accept NULL for the LOV which feeds Location Combo box but now it is displaying the first location on the list after the query, which is even worse.
    Thanks in advance,
    Manohar

    You're catching Exceptions in empty catch() blocks. There might have been an exception, but you won't know if the catch block doesn't do anything.
    Try something like this:
    catch(SQLException e){
        System.err.println( "Problem with db query"+e.getMessage() );
        e.printStackTrace( System.err );
    }in order to see what's going wrong with your code.

  • Form Reset Button.. works in Pro., Doesn't in Reader

    I created a form in MS Word 2007 and converted to Actobat Pro 9.2.0 and included a reset and print button. 
    When opening the document in Reader 8.1.3, the reset button only resets some of the fields, although all of the fields are checkmarked in the reset dialog.  Also, when I click the print button, nothing happens.  I've created dozens of Acrobat forms with reset and print buttons and this is the first time I've noticed that they aren't working in Reader.
    Both functions work fine in Pro.  Yes, I am sure that the button behavior is linked to a specific action such as >File>Print for the Print Button.  This happens on more than one computer, so I don't think the problem lies with just my machine.
    Any ideas?

    As a test, what happens if you replace the Reset Form action with the following JavaScript?
    // Reset all form fields
    resetForm();

  • Add row to tabular form pagination problem when sorted

    Hi,
    I have a problem with a tabular form that has various sortable columns. If the user tries to add a row when the sort order is set to something where possibly the nulls are appearing first in the list, then the user cannot enter any data (since the last page of results is always shown after clicking the add row button).
    I know the empty record is in the list somewhere since the pagination page count is increased by 1, but there is no way for the user to enter data into that record since traversing back pages then removes the empty record. How can I fix this? Is it possible to programatically reset all column sorting?
    Cheers!

    Hi,
    Sort orders in reports are stored as user preferences - these can be removed using PL/SQL. Have a look at: Need to do column SORTING only when I click the column heading and Re: Default sort and pagination placement not working in reports
    Or, you could try adding a blank row in your SQL statement itself: Problems With "Add A Row"
    Andy

  • Bind and form reset

    I've got a set of radio buttons bound to a cfdiv. None of them are initially selected. As expected, once you click one, the cfdiv shows the value of the radio button that was selected.
    The problem is if I reset the form that contains the radio buttons. The radio buttons clear, but the cfdiv still shows the value of the last radio button that was selected. How can I clear the cfdiv value when the form is reset?

    jquery to the rescue:
    $('#myButton').click(function () {
        $('#myDiv').empty();

  • Router Setup Web form display problem

    When I open Internet Explorer 6 to my router setup page (192.168.1.1), the menus and control discriptions are missing. Internet explorer reports an error with processing some of the web scripts. I'm using: WRT54G V8. I have tried reseting the router but it does not fix the problem. I have tried using the Opera Browser but it has the same problem. Unfortunately, I can't attach a screen capture to this post. Any help would be greatly appreciated. Thanks, mm

    I did some playing around and found that in "Save Mode" the setup web form displays properly. So I upgraded the router firmware in Save Mode, rebooted and now the setup form displays fine in regular mode. I should note that I also re-installed ZoneAlarms (firewall application). Thanks, mm

  • LC/Acro 8.0 dynamic form resetting entered data

    I have a dynamic form originally created using LC 7.1. The form was Saved As... using LC 8.0. The form has a table (in the Body Page) which adds rows via an addInstance button. The rows expand to fit the text. Two master pages are used as the second is a continuation sheet.
    Using Acro Pro 8, I distributed it so that it could be completed and saved by a user with just Adobe Reader (7.08). Whilst completing the form, adding rows, entering data and regularly saving, I reached the bottom of the page and added an additional row (to spill over onto the continuation sheet), however all the data disappeared from the completed fields (all the fields except check boxes). The same happens when the table row expands to accommodate the text, thereby spilling over onto the continuation sheet (2nd master page). It also looks as though the RemoveInstance manager resets the form data when I delete a row and there is no script telling it to do this.
    Even purging the cache, closing down, and reopening the Saved form doesn't recover the lost data!
    So am I misunderstanding the licence limitations of this upgrade or is it a bug with the InstanceManager? If you are supposed to be able to complete/edit and save the form, what am I doing wrong?
    Any help, greatly appreciated.

    Where is some documentation on this bug? I am having the same problem (disappearing data EXCEPT radio buttons and check boxes). I do not manipulate instances in my form, but I do update the layout (it is dynamic) and allow users to save data.
    I suspect that my end users are using earlier versions of Reader, but would like some documentation on the subject, as I do not have access to the users' computers. I can't recreate because I have Reader 8.

  • Validation simple form. (if) problem

    I am trying to create a simple validate on my input form. The form reloads itself when the submit button is pressed and then checks that first the submit has been pressed then if so check each feild if so redirect, if not reload the page with an error message.:
    <%@ page import="java.sql.*,mybookmark.*,java.sql.Date.*,java.text.*,java.util.*" %>
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>untitled</title>
      </head>
      <body>
    <%
      String Name = request.getParameter("name");
      String Username = request.getParameter("user");
      String Password = request.getParameter("passA");
      String Validate= request.getParameter("sent");
      String valid="false";
      String error="";
      if (Validate == "Register"){  //HERES MY PROBLEM ITS NOT RUNNING THIS CODE
      valid="true";
        if (Name =="" ||Name == null){
        error="Please Enter a Name";
        valid="false";
        } else if (Username =="" ||Username == null){
        error="Please Enter a Username";
        valid="false";
        } else  if (Password=="" ||Password == null){
        error="Please Enter a Password";
        valid="false";
        if (valid =="true"){
           }else {
            out.println(error);
            response.sendRedirect("newuser2.jsp");
    %> 
      Please conplete the Registry Form.
      <form method="post" action="newuser.jsp">
      <p>Please enter your Full Name</p>
      <input type="text" name="name" value=""/>
      <p>Please enter a User Name</p>
      <input type="text" name="user" vaule=""/>
      <p>Please enter a Password:( between 6 and 10 characters)</p>
      <input type="password" name="passA" vaule=""/>
      <p>Please re-enter your Password:</p>
      <input type="password" name="passB" vaule=""/>
      <br/><br/>
      <input type="submit" name="sent" value="Register"/>
      <input type="reset" name="reset" value="Reset"/>
      </form>
      </body>
    </html>the whole thing runs but it is not running the IF statement:
    if (Validate == "Register"){it just by passes this completely.
    any ideas.

    thanks for that, not offended, my java is limited, tried that as we speak and got the following error:
    500 Internal Server Error
    java.lang.NullPointerException
         at newuser.jspService(newuser.jsp:19)
         [newuser.jsp]
         at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:552)

  • Simple form validation problem

    hello,
    i would like to validate the user input and in the case of an invalid input show an error message and return form containing the values previously entered.
    this works fine using the code below.......but
    if i fill the email or any field with an eroneous value eg ERROR
    then delete the value and submit a blank value
    the previous value ERROR is submitted ????
    problem: how to ensure that the blank value is submitted instead of the value retained in the bean
    <jsp:useBean id="customer_data" scope="session" class="Logic.CustomerData" />
    <jsp:setProperty name="customer_data" property="*" />
    <input type=Text name="email" size=22
    value= <%= (customer_data.getEmail() != null) ? customer_data.getEmail() : "" %>
    >

    If a parameter is not present in the request (because the FORM parm is blank), then no coorresponding bean method will be called and the existing value will be retained. Either use request scope for your validation bean or call a reset method to clear the fields before invoking <jsp:setProperty.../>

Maybe you are looking for

  • [Solved] Avidemux-git fails to compile

    I looked for a fresh update to the latest avidemux compilation. I got this while attempting to make the package: [ 80%] Building CXX object ADM_coreVideoCodec/ADM_hwAccel/ADM_coreLibVA/src/CMakeFiles/ADM_coreLibVA6.dir/ADM_coreLibVA.cpp.o /tmp/yaourt

  • Wildcards in the class definition

    I have a class which extends java.util.Hashtable. The Key is String and value is a HttpClient object, but in future I can have Values as objects other than HttpClient. I was thinking to use a wildcard for storing the value, but the syntax isn't right

  • How to get Latest Status of Bid invitation

    Hi Experts, I am new in SRM. I need some class method or Fuction Module , which can give latest status of Bid invitation no. Thanks & Regards Prashant Gupta

  • Slow Editing Respone Time

    Hi--read thru iMovie discussions and am still a bit stumped. Have edited a few movies on iMovie and it seems that the more transitions and material I have, the LONGER it takes for the program to respond. Is this normal? I seem to have quite a bit of

  • Lens correction 6.3 -- automatic vs manual

    Installed 6.3 RC -- yay! worked like a charm, automatic lens correction identified my kit lens for D5000 and made the changes. Love it. Refresh my memory: for images where I had made manual adjustments (chromatic aberration etc) but now there is a le