Wrong values submitted when submitting a form with javascript

Hi guys, I know this aint a struts forum, but I did not know where else to go. So here goes..
I have the following code in my jsp
<logic:iterate id="ex" name="myForm" property="users">
<html:multibox property="deleteUsers">
<bean:write name="ex" property="userId"/>
</html:multibox>
</logic:iterate>
I have about 10 users of which 5 have already been marked for deletion from another action. So basically, the above tag renders 10 rows with a checkbox in the beginning to select users to delete. Also 5 of them have been checked already, I mean when the form is loaded. So checkboxes 1, 4, 5, 8, 10 have already been checked. Now I have a link on which goes like this
Select None. On this I call a javascript which does the following
function uncheckAll() {
for (i = 0; i < 10; i++) {
document.myForm.deleteUsers.checked = false;
This unchecks all my checkboxes.
Now comes the problem. I am submitting the form using a javascript which is invoked on clicking on the submit link using document.myForm.submit(); The problem is the deleteUsers property in myForm still retains the old values. If the checkboxes are unchecked no values should be submitted for this and the deleteUsers array should be empty. Can anyone help me out on this.
Thanks.

Checkboxes only submit a value when they are "on"
They submit nothing if they are not selected.
The problem comes - do you interpret no checkbox values as "clear all values" or "leave the values alone"? Struts assumes the latter.
Your form is probably being kept in session?
Try implementing the reset() method of your action form and set its property to be equivalent to no checkboxes selected.

Similar Messages

  • When I inherit Form with binding DataSet why then designer find mdb file in 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\'

    When I inherit Form with binding DataSet why then designer find mdb file in 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\' 
    Do I have to anything to change in my application settings or what I am doing wrong?
    When I inherit a plain Form with no binding DataSet then is all ok.

    I finally saw my longingly expected inherited window containing binding dataset.
    But only by way that I put mdb file right in to the this damn path.
    "c:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Zdrojove Data\ISMS2003.mdb" 
    In addition mdb file shall be clear too of password.
    We have many windows in our application and we have to work strongly good with inheritance of Form Classes.
    But how I will explain to my Boss if he click on that inherited window and will see this break window?
    Though I will advice to my Boss that hi have to copy too that MDB files to this damn path,
    but the best way could be to find what I need to change that this inherited windows shows without copy this MDB files to
    'C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\'
    When I check the settings for DataDirectory every paths looks good.
    Even if I set password for the mdb file I almost see only broken designer window.
    Only by copy this MDB file without his password to this path
    'C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\'
     I can see this inherited window right. 

  • Test inside  the table is truncated when integrating Adobe forms with WD4A

    Hi All,
    I am facing issue in table when integrating adobe forms with web dynpro for ABAP.
    Whenever the pagination happens the text in the table row cells is truncated and it starts from next row in next page. Is there any properrty of table in Form builder which I can use to allow the test to go to the next page?
    Best Regards,
    Arti.

    Hi. You should place your question in "SAP Interactive Forms by Adobe" forum. You will get advice quicker there.

  • I accidentally in put the wrong email address when attempting to register with iCloud. As such, I can't verify the account with that email address because it does not exist. What should I do?

    I accidentally input the wrong email address when attempting to register with iCloud. Therefore, I can't verify the account because the email address that I accidentally used does not exist. Can someone help me figure a way out of this because there does not appear to be a way to edit the email address?

    try https://appleid.apple.com... enter the new icloud id, and try to edit the email address assocaited.

  • Can I auto submit a WebApp Search form (with javascript) so the results show up automatically?

    Can I automatically submit a WebApp Search form (with javascript) so the results show up automatically?

    yes. I also interested in how to do it.

  • F4 Value Help on Adobe Interactive Form with Web Dynpro ABAP

    Hello,
    I have created an Interactive Form with ZCI type.
    I placed a text field MATNR on the form.
    Then I placed a Native WD UI element 'Value Help' as mentioned in the below link: http://help.sap.com/saphelp_nw70/helpdata/EN/42/fb2fe500553ee4e10000000a1553f7/frameset.htm
    This form was then embeded into Web Dynpro ABAP view.
    The problem is that when I click on the F4 button, nothing happens.
    Is anything else needs to be done?
    Thanks
    Sagar

    Hi Amol,
    After binding the Context variable in the view, and in the Adobe Layout Designer from the Library go to WebDynpro Native Tab and drag and drop the Value Help and for this automatically JavaScript is being generated, go that script and edit the line
    Var fieldname = "yourfieldname";
    Note: Don't forget to link the context attribute to search help. ie. in the context properties of the attributes select the input help mode as dictionary search help and specify the name of the search help present in data dictionary.
    And now go to Utilities and click on u201CInsert Web Dynpro Scriptu201D.
    Also make sure that you specify the Layout as ZCI Layout in the Propertioes of the Adobe Form.
    Ragards,
    Amol Patil.

  • Need to raise an error if Users puts wrong value for date datatype in Forms

    Hi all,
    I've created a new form using Template.fmb in forms 10g having some text item with data type as DATE.
    and now i wanted to raise an error if users inputs any wrong data rather than DATE format.
    Please help me if anyone knows how to do this...

    b_kapsy wrote:
    As of now i am not looking for validation, i know the validation will automatically done but if you see by default it will not raise any error message if you fill any wrong value in text item with date data type. It will freeze the cursor to the text item.That is NOT the default. The default is to issue various FRM-nnnnn messages, between 50002 and 50026. From notes I have:
    -- 50002: Month must be between 1 and 12.
    -- 50003: Year must be 00-99 or 1000-4712
    -- 50004: Day must be between 1 and last of month.
    -- 50012: Date must be entered in a format like <fxMMDDRR>
    -- 50017,18,19: Hour,Min,Sec must be between 0 and 23,59,59.
    -- 50025: Date/time must be entered in a format like <xxyytttt>
    -- 50026: same as 50012 and 50025 with <yyyy> year.
    And from my old, dusty copy of the Oracle Developer/2000 "Messages and Codes Manual", those messages have an error level = 15.
    If you are not seeing those messages, then you have done one of two things:
    1. Set your System.Message_Level to a value of 15 or higher. You should NEVER set it above zero, since all that does is hides error messages like these. If you want to bypass or prevent an error message, it should be handled in the Re: FRM-40735:Pre_Insert trigger raised unhandled exception ORA-20011.
    2. You have some bad code in an On-Error trigger that fails to handle errors correctly.

  • FRM-18108 Error when opening a form with subclassed objects

    Dear Group,
    I have 2 forms in Oracle Forms 6i. One of the forms contains an object group. The other form contains the object that I subclassed it to.
    When I open the form that contains the subclassed object group, I get the FRM-18108 error.
    If I open the form with the original object group, then open the subclassed form, there is no error.
    Does this mean I must always open the original form in order to work on the one with the subclassed object group?
    I hope there is an simple solution to what is something I am missing in my Oracle Forms setup.
    Thank you in advance.
    Emad

    Hi Duncan.
    Your suggestion worked.
    Thank you for the fast response!
    Truly,
    Emad

  • Problem when creating a Form with Launch Task Form Wizard

    Hi all,
    I'm using jdeveloper 11.1.1.6 over Windows 7 64bits for my BPM project.
    I'm a new with BPM and i have a problem when trying to create a task's Form with the "Launch Task Form Wizard". I'm trying to create my Form based on a custom template, i already have imported the template as a library, now after i have selected the template i follow the wizard and i reach the wizard's rowX-columnX where i should choose the field i want in my form, but the problem is that i don't see any fields in that part of the wizard, the window is empty :(
    I have created a business object based on a XSD, then i created a process data object based on the previous created business object and finally i used this data object as a parameter to the human task.
    What could be my problem ?? :( :(
    Regards
    Carlos

    I have also faced this issue few times. There could be a namespace issue / schema issue. Please check if you are able to see task:task in the schema section anywhere in the .task file you created. If that is not shown, the fields will not appear while creating human task form.
    Thanks
    Ashwini

  • Scrollbars problem when running a form with Sun Java instead of Jinitiator

    Hi All;
    Our forms are configured to run with the Sun Java instead of
    Jinitiator; functionality wise everything works fine, but when running
    the forms on the web there are 2 extra scrollbars
    (one vertical and one horizontal) in addition of the browser scrollbar.
    Note: This is does not happen when running the same form with Jinitiator (same configurations)
    Anyone encountered this situation or has an idea how to to get ride of the extra scrollbars ???
    Thanks.

    Thanks for your replay.
    I was able to make all forms working without scrollbars when running form developer at the desktop (windows os) without scrollbars
    but when I run them at the application server (Linux Red Hat 3 Enterprise), scrollbars are still there.
    I tried your suggestion but did not help
    here is the formsweb configuration
    [jdk15]
    baseHTML=base.htm
    jpi_classid=clsid:CAFEEFAC-0015-0000-FFFF-ABCDEFFEDCBA
    jpi_codebase=http://server_name:port/forms/jinitiator/jre15012.exe#Version=1,5,0,12
    jpi_mimetype=application/x-java-applet;jpi-version=1.5.0_12
    jpi_download_page=http://server_name:port/forms/jinitiator/jdk_download.htm
    baseHTMLJInitiator=basejpi_with_disableMDIScrollbars_param.htm
    archive=frmall.jar
    separateFrame=False
    splashScreen=no
    background=no
    width=975
    height=575
    form=xxxxx.fmx
    lookandfeel=Generic
    logo=no
    otherparams=useSDI=yes
    The window get maximized at when-new-form-instance.
    Does it has to do with the canvas or window height and width at the design time????
    Thanks.

  • Intermittent APPCRASH when opening a form with CrystalReportViewer

    We have an application that, as part of the functionality, allows users to generate and preview a report. It uses CR for VS 2010. The report preview dialog is a Windows Form that includes a CrystalReportViewer.
    This functionality works, most of the time, but we are observing intermittent APPCRASH/Stackhash crashes when this form is opened of this nature:
    Problem signature:
      Problem Event Name:  APPCRASH
      Application Name:      ****
      Application Version:    ****
      Application Timestamp:           4dd40fa4
      Fault Module Name:    StackHash_7698
      Fault Module Version:  6.1.7600.16385
      Fault Module Timestamp:         4a5be02b
      Exception Code:         c0000374
      Exception Offset:        00000000000c6cd2
      OS Version:    6.1.7600.2.0.0.256.48
      Locale ID:       1033
      Additional Information 1:          7698
      Additional Information 2:          7698c42b9ee8da1ebad3b3c9521cacfd
      Additional Information 3:          ad41
      Additional Information 4:          ad418ba72161d4cd11d7688fd368f113
    This crash occurs intermittently. We have an automated script that tests the GUI and it may run for 5 minutes or several hours before encountering this error, with a handful, to tens, perhaps over a hundred report generated successfully.
    As we understand it, the error code c0000374 means:
    // MessageId: STATUS_HEAP_CORRUPTION
    // MessageText:
    // A heap has been corrupted.
    CR is not the only part of our application that uses unmanaged memory, but this crash consistently happens when opening the dialog with a CR component in it (which renders a report).
    I realize I've left out a lot of potential information, but will add more upon request. This problem is causing us quite some headaches and I just wanted to see if anyone else has experienced something similar.
    Any ideas?

    Hello Zamir.
    Many thanks for the great answers (I wish I could post this thread as an example to all ).
    Same to you. Debugging issues like this is never fun, but I know from experience that clarity from both sides helps us get to a resolution
    Let's start with SP1. You may already be using it. Check the version of the crpe32.dll (C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64). It should be 13.0.1.220, if it is, we're on SP1. If it is not, understanding your concerns, going to SP1 will still be the DE thing to do. E.g.; I will not do any testing unless you are on SP1 (sounds bad I know, but just laying the cards on the table - face up )...
    I checked both my development machine and a production system that I have access to in-house (which is able to reproduce the problem via a script). Luckily for me, both are at version 13.0.1.220.
    The fact that you are not able to reproduce the issue on your development system my actually be quite encouraging and perhaps a starting place for us (given the SP1 conundrum). It will be interesting to compare the dlls (both Crystal and database client). Normally the Modules utility is very useful for comparing dlls loading on a computer that works and one that does not. As this is a 64 bit app, it will be a bit trickier. Modules works really well on 32 bit apps. On 64 bit apps it does not save the log. You can still see it, but not save it. Anyhow, I am attaching a 64 bit version of Modules. You will have to check the versions of the CR DLLs and database client DLLs by looking at the logs and writing the info down
    I'm having a bit of trouble with the Modules utility. I launched it and when I get it to generate a list, I cannot see the process for our application in the list. It is running and appears in the task manager, but it is not listed under the list of processes, nor do I see any of it's loaded DLLs. Any ideas?
    Re. apps compiled as "Any CPU". These should work - as long as only the correct "bitness" CR runtime is deployed. E.g.; On a 64 bit OS, do not deploy both a 32 bit and a 64 bit runtime. This may cause issues. My recommendation in the previous post was a rather blanket recommendation that quickly eliminates all kinds of confusions for many people.
    Thanks for the clarification. I am going to stick with 'Any CPU' because I know that we only deploy the x64 runtime and if I switch to explicit x64 compilation, Visual Studio reports some false-positive warnings that I'd rather not have (it's a bug in Visual Studio).
    Re. the database - SQL Server CE v3.5 SP2, OLE DB. Make absolutely sure the db client is the same on the problem computer as it is on your development computer. Use Modules for that. If htere is a later SP, apply that. I can not overstate the importance of this.
    As above, I could not use modules, but I did confirm the DLL versions in their respective Program Files location on both machines and they were the same (3.5.8080.0).
    It will be important for these users to let us have screen shots of the issue as they get it. I realize this may be an inconvenience to the customer, but what is essentially a hearsay evidence from what is typically a non technical user is always something to take with a grain of salt.
    I just talked to one of our field engineers and he has seen screenshots to confirm it is the same issue as the one we can reproduce in-house.
    One thing to be absolutely sure of is that you are using .Close and .Dispose on the report objects as the user is done with them.
    We do, in general, make these calls and recently have gone through our code for memory leak possibilities, so this was recently checked for by developers.
    One other possible source of issues; printer drivers. Specifically printer drivers not designed for the particular OS. Ensure that the printer driver(s) used by the customer on that WIN 7 are designed for WIN 7 - even if they are only viewing and or exporting. CR has a large dependency on printer drivers.
    We use the Samsung CLP-320 and the driver package it installs are "Win 2000/XP/2003/Vista/2008/Win 7(32,64bit)", so I assume the correct version gets installed on our Win 7 x64 system.

  • Rearrange pages when printing adobe form with multiple master pages

    Hello!
    Good day to you all.
    I have an issue in regards with printing my adobe form with multiple Master pages. I have 4 master pages:
    1st master page: a
    2nd master page: b
    3rd master page: c
    4th master page: d
    all with different headers and footers all having the same contents (items). I don't have issue with one page content (it just prints 4 pages with different headers and footers). The issue comes out once the items exceed 1 page.
    What happens is that the preview/print shows (example: 3-page item)
    a1-a2-a3-b1-b2-b3-c1-c2-c3-d1-d2-d3.
    What i need is to print these such that all 1st pages of the 4 master page to be printed first, then all the 2nd pages, then all 3rd pages. Please see below:
    a1-b1-c1-d1-a2-b2-c2-d2-a3-b3-c3-d3
    This is because we will be using carbonless copy paper during printing and it's possible that it would be printed on batch jobs. Please suggest ways to do this.
    Thanks a lot in advance!
    Best Regards,
    abap_peer_dangs

    Hi,
    Is that requirement of multiple pages as groups only at the time of print or at print preview also...?
    Can you have a Print button on this screen or you should be using the Abobe toolbar's Print button..?
    Well if this on a click of a button in the form and the requirement is only at the time of print and not on print prieview I can have a JS script which does this...
    Let me know if this suffice, I can try with a local file and send you the script.
    @ Chris: I didn't understand what do you mean by reported, I was eager to hear and learn a solution from you may be a new approach which I am not aware of ...?
    Cheers,
    Sai.

  • How do I redirect a secure zone login form with javascript?

    I would like to redirect what page a user goes to after filling out the secure log in form. I would change the landing page of the secure zone, but I need a log in form to go to a different page of the site. I would also create a seperate secure zone, but I have almost 3000 subscribers and it would be very time consuming to add all those users to this new zone.
    I would like to redirect the user (using the form from a secure zone) to a different page other than the landing page of the log in form. How do I do this with javascript?
    I saw this page: http://kb.worldsecuresystems.com/598/bc_598.html#main_Logging_into_different_Secure_Zones_ according_to_ID_number but couldn't make sense of it for my current situation. (I don't need multiple zones, just the form to redirect to a different page after submission)
    <form action="https://redlakewalleye.worldsecuresystems.com/ZoneProcess.aspx?ZoneID=12369&Referrer={module_siteUrl,true,true}&amp;OID={module_oid}&amp;OTYPE={module_otype}" method="post" onSubmit="return checkWholeForm52938(this)" name="catseczoneform52938">
                <div class="form">
                <div class="item"><label for="SZUsername">Username</label><br />
                <input type="text" maxlength="255" id="SZUsername" name="Username" class="cat_textbox_small" /></div>
                <div class="item"><label for="SZPassword">Password</label><br />
                <input type="password" autocomplete="off" maxlength="255" id="SZPassword" name="Password" class="cat_textbox_small" /></div>
                <div class="item"><input type="checkbox" id="RememberMe" name="RememberMe" /><label for="RememberMe">Remember Me</label></div>
                <div class="item"><input type="submit" value="Log in" class="cat_button" /> <a href="/_System/SystemPages/PasswordRetrieveRequest">Lost password?</a></div>
                </div>
                <script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js"></script>
                <script type="text/javascript">
                    //<![CDATA[
                    function checkWholeForm52938(theForm){
                        var why = "";
                            if (theForm.Username) why += isEmpty(theForm.Username.value, "Username");
                            if (theForm.Password) why += isEmpty(theForm.Password.value, "Password");
                            if (why != ""){alert(why);
                                return false;
                       // Add the redirect code here?
                        theForm.submit();
                        return false;
                    //]]>
                </script>
            </form>

    I've been working on the same thing and have nearly solved it with these tutorials:
    http://www.bcgurus.com/tutorials/re-directing-users-to-the-correct-secure-zone
    http://www.bcgurus.com/tutorials/building-a-better-secure-zone-login-page
    The first tutorial will let a person continue on to the page he/she was attempting to access. For example, if your site offers learning lessons in a secure zone... A visitor could click on a lesson, get prompted to login and then be redirected to that particular lesson instead of the landing page for the secure zone.  The script in the tutorial also accommodates general logging in: "if the person wasn't going somewhere specific then send him/her here (landing page, user account, whatever).
    Might be worth checking out the free BCGurus trial or joining for a month.
    Brian

  • Can you tell within the form with javascript if the file has reader rights.

    Hi
    I have an issue where I need to know at runtime if the current file has reader rights so that a link will directed them to one place or another.
    I was hoping with javascript I could check if the form has reader rights
    or
    the file name will be different for the version with reader rights so the other option is with javascript can it tell me filename of itself.
    Thanks
    Brad

    Hi,
    there is indeed a method to check usage rights.
    Here is a folder level script to check those rights.
    You should be able to use this also in a script in your form.
    LiveCycle Blog: Dateien auf Verwendungsrechte hin überprüfen//Check files for Usage Rights
    Hope this helps.

  • Numeric or value error when submitting form

    I have a form based of a stored procedure. The form has about 20 fields on it. For some reason the form only allows data entry on only about 10 of them. If I put data in any of the other 10, I get: "An unexpected error occurred: ORA-06502: PL/SQL: numeric or value error (WWV-16016)"
    I have looked everywhere to see what's going on. I checked the procedure to make sure its parameters are good. It takes takes all VARCHAR2's, so thats OK. I checked the fields in the form editor for validation, and none are being validated, so thats OK. I made sure all the fields are updatable and they are. I even checked the table to make sure that the data can go into the fields, even though I know that the error returned there would be through the procedure, not Portal. I am stumped. What am I missing?
    Rich

    Follow Up: While troubleshooting this, I filled in all the fields with one character each and the form submitted. I added characters little by little to each field until I got the error. It seems like Portal has a problem when I pass X amount of characters from a form. I say "Portal" because I thought this might be an OS parameter, but I get the same error in both Win2000 and Solaris.
    Any ideas where this setting is? Or how to change it?
    Rich

Maybe you are looking for

  • Help syncing multiple Ipods

    I have several questions I need to get answered before I have a war on Christmas morning. 1. I bought 2 kids new Ipods for Christmas which will be used on the same PC. How do I sync 2 Ipods on the same PC with out the chance of them deleting each oth

  • Photo Gallery w/ Images adjusting size based on Browser size.

    I'm new to web design but I'm trying to create a photo gallery with images that dynamically size based on the size of the browser window. Similar to this http://pageduke.com/#/Residential/Colonial%20Revival-Nashville1/1. I know th is a flsh site, but

  • I cant get into Mail, Contacts

    My calendars on my MacBook and iPhone do not sync with each other so after looking a this forum someone suggested opening the Mail, Contacts & Calendars and sync from there but every time I open it I get an error as it keeps crashing. Is this a new p

  • Signature field

    Hi, I´m new working with liveCycle, and I would like to know how it works at technical level. I have read documentation but I can not understand the procedure to generate the digital signature, I think that i need to put a signature field in my form

  • Cordless mouse not working

    G5 using OSX 10.4.11 I have a Microsoft cordless mouse that was working but stopped. Arrow freezes on screen. A few times I removed battery and mouse worked until mouse was lifted from pad then stopped working at all. I have a Logitech cordless mouse