Save All button for dynamic form

Hi All,
I haven't used coldfusion for a while and I am a little stuck getting my head around a problem I have occured.  I have taken a project over from one of my colleagues so the coding is not my own. See code below....
<cfif isdefined("btnSubmit")>
     <!--- DO INDIVIDUAL UPDATE CODE HERE --->
</cfif>
<cfoutput query="getList">
     <cfform name="fmUpdList99_#applicationid#" action="list99.cfm">
          Clear:       <cfinput type="Radio" name="result" checked="No" value="CLEAR">
          Match:     <cfinput type="Radio" name="result" checked="No" value="MATCH">
          N/A:         <cfinput type="Radio" name="result" checked="No" value="NA">
          <input type="submit" name="btnSubmit" value="Save" />
     </cfform>
</cfoutput>
Now this works perfectly if I want to click on a submit button per row and save each row individually.... But what the user wants is the option to have a save all button which loops through each row and does the update code for all rows (rather than individually) depending on what is selected in the radio buttons.
Sorry if I haven't described my problem to well, its just I haven't used CF for a while now and trying my best to get back into it.
All apprciate all the help you can give.
Thanks,
George

How would I syntax it to use my variable:  #form["result"&ilist99id]# to use in conjuction with the method StructKeyExists ???
What did you try, and what were the results?
Did you have a look @ the docs:
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7f bb.html
Did they not make sense?
This is the key text from the docs:
Function syntax
StructKeyExists(structure, "key")
Parameters
Parameter Description
structure
Name of structure to test
key
Key to test
Usage
This function can sometimes be used in place of the IsDefined function, when working with the URL and Form scopes, which are structures. The following pieces of code are equivalent:
cfif IsDefined("Form.JediMaster")>
<cfif StructKeyExists(Form,"JediMaster")>
I suspect Ray Camden wrote this part of the docs... ;-)
So given all that... how would you use structKeyExists()?
The chief questions are:
* which part of your variable is the structure?
* which part of your variable is the key?
Adam

Similar Messages

  • Making a "Save As" button on a form

    I need to make a "Save As" button on a form created in Designer 8.0.
    This will go on a form that will be enabled for Reader 8.0, so user can fill in form, save filled form, and submit via e-mail.
    I have tried to figure how to add a regular Button, and add a simple menu functionality like "Save As" but cannot.
    I need step-by-step instructions for this, please... and I do not know much about scripting at all.
    TIA,
    Glenn Cauley

    Have a look in the Help (index Script Editor => about). This should give you more insight into how the Script Editor is used.
    For this example, you'd just need to select your button, make sure the 'click' event is in the 'Show' drop-down, select 'JavaScript' from the 'Language' drop-down and then paste the script into the script editing field.
    Thanks,
    Mike
    Adobe Systems

  • Save All Button Issue

    Hi,
    Pressing the 'Save All' button on the JSC toolbar at the top does not make it disabled, like it used to before the second patch!
    Any particular reason for that, that somebody can highlight?
    Regards
    Haroon

    Also, everytime I save all on a project, and then try to close it, it brings me up a dialog box of items I want to save, only there are no items to choose from.
    This is happening only after the second patch.
    Not a big deal, but hopefully this can be acknowledged and addressed inh the future.
    Regards
    Haroon

  • How do I create a submit button for my form? I would like it to send the completed PDF to an email address

    Hi everyone,
    I recently upgraded to Adobe XI and I can't find a "submit by email" button for my form. I created a button and tried to set up some actions but, I can only get the button to direct the user to a URL. How do I make it send the completed PDF to our designated company email address? I'm not too familiar with JAVASCRIPTS so I haven't tried that plus I heard it may not work with users with adobe reader.
    Any help would be appreciated.
    Thanks,
    Matt

    Thanks for the input. I think you might have a different version of LiveCycle than the copy I have since it looks a little different. However, I found the answer in Adobe help. I had to type "mailto:" before the email address to indicate it's an email and not a URL. See below.
    To collect form data as attachments to email, type mailto: followed by the email address. For example, mailto:[email protected]

  • If I want to create a Listbox to run multple tests, how can I create a check all and clear all button for selection/​deselectio​n of all the tests

    create check all/clear all button for listbox

    Hi Arien,
    Parthabe is right, next time, try to create a new thread.
    So when others try to search for a topic, they can actually find it.
    I developed this example code that you can take a look at.
    It's using property nodes of the chart to control which plot to show and to force invisible
    Message Edited by Van_L on 03-06-2008 07:19 PM
    Van L
    NI Applications Engineer
    Attachments:
    choose plot.vi ‏25 KB

  • Modifying the appearance of the search box, the search button, and the submit button for web forms

    I'm trying to modify the appearance of the search box, the search button, and the submit button for web forms by modifying the CSS on Stylesheets. None of the tags I'm using (e.g. .webform .cat_button) seem to be working. What are the correct tags for those three elements?

    When you generate the help you can select / deselect the buttons that are displayed.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Broken Delete button in Dynamic Form. For the ADDT gurus!

    I have a feeling i may be at Günter's mercy on this one. Hope you have time to look at this; of course for any and all, the same applies!
    I have a dynamic list which i spent quite a lot of time with - rearranging elements within the ADDT generated KT_tng table. Just moving one recordset piece can take up to 30 seconds, so it takes QUITE a while with a lot of data to move.
    Anyways, i seem to have "broken" the delete button in mine. I hope someone can help me fix it, i really dont have time to redo all the changes i did to the dynamic list layout. (i did test as i went to make sure i didnt break it, but guess i just missed a piece..) I changed mainly the location of things, and CSS.
    I have an older version where the delete button works. I have compared but cannot find the answer. Both versions do everything else, live, with the database & their respective dynamic forms.
    I have all 4 files live, and unprotected, for now, and txt versions of all four. If you need to test anything with the live pages, its ok, most of the data is dummy data.
    Ive been saturated in ADDT dynamic lists, and dont have a background of hand coder, but am learning a lot, quick. so i have tried hard to understand this exact issue i created - im not looking for others to do my work. just my little disclaimer :)
    /* TEXT VERSIONS */
    /*Broken delete button*/
    http://www.aquatictrainingservice.com/admin/courses_list.txt
    http://www.aquatictrainingservice.com/admin/courses_form.txt
    /*Working delete button */
    http://www.aquatictrainingservice.com/admin/courses_list2_.txt
    http://www.aquatictrainingservice.com/admin/courses_list2_detailsl.txt
    /*LIVE PHP VERSIONS*/
    /*broken delete button*/
    http://www.aquatictrainingservice.com/admin/courses_list.php
    http://www.aquatictrainingservice.com/admin/courses_form.php
    /*working delete button*/
    http://www.aquatictrainingservice.com/admin/courses_list2_.php
    http://www.aquatictrainingservice.com/admin/courses_list2_detailsl.php
    best
    ben

    Include the following javascript code under the onClick event of the delete button.
    It works for me.
    onClick:
    var x=window.confirm('Are you sure ?')
    if (x)
    do_event(this.form,this.name,1,'ON_CLICK','');
    else
    return false

  • Page Number Disappesrs when click on Reset button in Dynamic Form

    Dear all,
    In dynamic forms I have taken Page n of m field outside the content area in master pages.I have added the reset button in body pages of the form.In the pdf When I click on Reset button the page nos are disappearing along with the other data.
    I want the page no should not disappear.How can I get rid of this problem. If any body can please help me.
    Thanks a bunch in advance
    Regards
    Rakesh

    Firefox checks on the server if the file has been modified if you use the back button.<br />
    If the page was requested by sending post data to the server then Firefox sends that post data and asks for confirmation.<br />
    You can try to use the tab history of the Back button skip sites that require sending post data.
    You can also try if it works if you set to never check the server by setting the browser.cache.check_doc_frequency pref to 2.
    *http://kb.mozillazine.org/browser.cache.check_doc_frequency

  • Allow Custom Text Entry for Drop down not working For Dynamic form

    Dear All,
    In drop down field Allow custom text entry is working fine if the form is save as a static pdf form file.But if the form is save as a Dynamic pdf form file it is not working.I can enter custom text in drop down field but after filling it up when I click on next field the text from the drop down is disappearing.
    If any body can please help me to solve this problem.
    Thanks a lot in advance
    Regards
    Rakesh

    Dear Jimmypham,
    Thanks a lot for your quick response.But it's not working for me.I have even tried with a form having only single field and save it as a dynamic pdf file.In that form also it's not working.The text which I have entered is disappearing when I click outside of this field.
    Can you please help me to find out the solution for this problem.
    Regards
    Rakesh

  • Usage of 'Select for all entries' for dynamic internal tables..

    Hi all,
    I have a situation where I need to use select for all entries for a dynamic internal table.
    select * from /BIC/AZHSD_O1500 into i_table for all entries in <b>Dynamic_table</b> where doc_number = <dynamic_table????????>
    here iam not knowing how to match the <dynamic_table????????> doc_number ?
    the dynamic_table contains the doc_number as one field.
    here dynaimc_table is the internal table which is dynamic.
    I have tried various options but couldnot find the solution.
    Please resolve.
    Sidhartha.

    data : i_dyn_where type char72 occurs 0.
    field-symbols : <fs> type table.
    assign itab[] to <fs>.
    i_dyn_where = 'docno = <fs>-docno'.
    append i_dyn_where.
    select *
    from   vbak
    into   table t_vbak
    for    all entries in <fs>
    where  (I_dyn_where).   "Populate this where condition dynamically too
    Hope this will solve ur prob.

  • How to Add A Javascript Confirm() on an Apex button for a form?

    Hi, how can I add a Javascript confirm() to a button in Apex for a form? Thanks.

    Hello:
    You could do the following
    1)In the 'Option URL Redirect' section of the Edit Button page set 'Target is a ' to 'URL'
    2)For URL Target enter javascript:{if (confirm('Your Question here')) doSubmit('<button name>');}Varad
    Edited by: varad acharya on Jul 15, 2009 3:47 PM

  • Submit All button for all text entry boxes at end of exam in Captivate 7

    Hi everyone,
    I am new to this forum, and I was hoping that someone could help me out with a problem that has been eating my lunch for the last week.
    I have a captivate 7 project that I am setting up as a virtual workbook, with text entry boxes asking true/false, yes/no, and short essay questions through out the most part of the workbook, and then at the end it has a series of multiple choice questions that are set up on question slides. Is there a way to have all of the text entered in the text entry boxes submited along with the quiz questions at the end, to my LMS? And if at all possible, still inform the user if there are any questions that have not been answered? Like I said, I am new to this forum, so if I forgot to include any important information, I apologise, but if anyone could help me ouot, I would be extreemly thankful!
    thanks,
    Luke

    thenks for the reply Lilybiri! As far as I have been able to find, there is no way to associate a submit all button with TEBs, so I am not sure if this is something that I am overlooking, or if I am misunderstanding the recomemendation.
    What I am trying to do is set up a bunch of TEBs to be answer entry boxes for questions throughout the workbook, which will lead up to an exam. The exam, I am good on, because it has the submit all button attached. But the TEBs that I am using as the answer entry boxes, I can't seem to find a way to link them all to the same submit button.
    I hope I am being pretty clear about it, but I've been pounding away at this for a while, so I fear it might come out a but rambly. So, please let me know if I need to clarify anything.
    Thanks!

  • SJS8EA: Save All button is not active

    Hello folks,
    Just a little bug on SJS8EA: the "save all" action (button in toolbar or item in File menu) never seems active. Files are marked as modified with the *, and if I try to close SJS I am notified of unsaved files.
    My config: WinXP Pro, java 1.5.0_03, working on java files in a Standard J2SE application.

    This issue was filed in netbeans.org issuzilla:
    http://www.netbeans.org/issues/show_bug.cgi?id=71248

  • A warning before delete all responses for your form.

    It would be nice if there was a warning that a person is going to delete all responses of there form..
    I had a person right click and left click and all responses were gone. I think he selected the upper left hand corner cell.
    He didn't know about the "redo" the could have save him loosing all response from form.

    You can recover your responses by clicking on the History widget in the bottom right corner of the View Responses Tab. Then just copy and paste the responses deleted into the latest version of the table.
    Hope this fixes your issue
    Gen

  • Why wont apple put a delete all button for your email?? i think that should be the next update.

    we need to be able to delete all messages at once, say someone has 1500 emails there not going to want to go 1 by 1, there should be a delete all button an except button and then another except to make sure if they really want to delete it they can.

    http://www.apple.com/feedback/ipad.html

Maybe you are looking for

  • Excise invoice is not saving and not showing datas

    in erxcise invoice i ve made settings as per the sap best practices then also the excise invoice is not saved and not generated also please help me to solve the problem the error is coming like this Error in allocating Excise invoice number Interval

  • Microsoft Word Scripts

    Okay, I'm trying to write some scripts to ease repetitive headings in word. All I want to do is have a script that types the word "Nonconformities:" in bold font. This is what I have so far... unfortunately it doesnt work at all. I'm very new to scri

  • How do I remove documents from my Pages list in my iTunes that I have deleted from my Ipad?

    How do I delete Pages documents from my Itunes under Pages list of documents that I have deleted from my Ipad, as they still show up under Itunes?

  • How do I make forms and reports to stay in the Portal Page?

    Hi, I have a report with a Link to a form on my Portal Page. When I click one of those Links, the form is opened on a separate Page, with just the basic template and no possibility to add extra portlets. Is there any way of controlling on which Page

  • Fonts missing from CS6 after restarting laptop

    I've installed (and reinstalled) open-type Stone fonts on a new laptop with Windows 7x64 and CS6.  After restarting the laptop, why are the fonts gone from the list of fonts available in CS6?  I have to reinstall them each time I turn the laptop on.