Insert multiple checkbox values

Hello,
I have a basic form with a number of areas that have multiple choice checkboxes. Checkboxes , meaning that one or 3 or none can be selected and they all share the same id/name but of course have differing values.
I can not find anywhere in the ADDT that allows me to select the checkbox name when I do my insert. I want all the values of each individual checkbox name to be inserted into their respective fields.
In the Insert transaction wizard I get three types of checkbox values (Yes or No, 1 or 0, or -1 or 0.
None of those seem to relate to the common occurance of checkboxes with string values, all to be inserting into one specific table field.
Is it possible or do I need to write some hand code to insert an array?
Thanks in advance for any help rendered,
Steve

Eeeeee.... Now that's an interesting widget.. You create a text field, but then need to create tables in your DB to pull the data to populate the checkbox fields that magically show up from the text field when rendered by the server.. Very interesting. Seems mine have formatting issues:
http://www.peninsulaequipment.com/phoneAddy.php
Only the "Screening Media" checkboxes are dynamically generated but for some reason they do not render left justified like the example shown here:
http://help.adobe.com/en_US/Dreamweaver/9.0_ADDT/help.html?content=ch5_form_controls_33.ht ml#1028650
Are there workarounds for the formatting problem or known reasons why it does not look like the example?

Similar Messages

  • I want to access multiple checkbox  value(its true or false when clicked)

    dear sir
    i want to access multiple checkbox value whether its true or not from one jsp to another jsp.how i can do this. because based upon checkboxes records are deleted and added.
    when i check on checkboxes and click on delete button the records are deleted onlybased upon checks.and these request forward to another jsp.so plz tell me about this.
    for example in gmail yahoomail or other mail various checkboxes are there. and if we check them and click on delete button then all checks mail are deleted.
    i will be very thankul to u sir..
    plz tell me.in this time i m in problem of this type.

    Disabled fields and unselected checkboxes/ radio buttons/ list elements are not tranmitted when a form is submitted. So when you try to getParameter() you'll only get the selected fields or you'll get a null if the field was disabled/ not selected.
    When you use this for a set of checkboxes/ radio button, you'll only get the selected ones. If nothing was selected, you'll get null. Work on your logic with this in mind.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Inserting multiple checkboxes into a table cell

    Hi all, new to Livecycle so I could use a little advice.
    I'm trying to insert multiple checkboxes into a single table cell, but as far as I can tell that seems impossible as one checkbox fills the entire cell. Now how do I go about splitting the table cell into 2 rows so that I can insert both of the checkboxes?
    I've also got to add a button to create new rows for the table on click so I don't know if that will factor into the answer.
    |        Header               |           Header2             |           Header3           |
    |                                  |                                      |__________________|
    |                                  |                                      |                                    |
    I hope this crappy ascii drawing comes out right, but that's what I need to happen.
    Thanks!

    Hi Chris,
    I think this should give you what you need: Working with a Multiple Select List Item
    --Jennifer                                                                                                                                                                                                                                                                                                                                                                                                   

  • Passing Multiple Checkbox Values Help

    Brand new to Coldfusion and I'm struggling to figure out how to pass values from multiple checkboxes on a form to a confirmation page and then an action page that inserts the data. The confirmation page will simply show their selections and allow them to go back and reselect, or submit to the action page.
    Form > Confirmation Page > Action
    I've found a couple of examples on the Web that mention looping, and one that said to use a WHERE IN clause but I'm lost on how to pass it through and insert at the end. Maybe the confirmation and action can be on the same page?
    Questions:
    1. Is it better to name all of the checkbox values the same or append some type of extra character and then evaluate at the end?
    2. Do I need to have hidden fields on the confirm page to transfer the data inbetween the form and action page?
    3. Can the confirmation and action be on the same page or should they be separated?
    4. What should the Query/Insert statement look like on the action page?
    I'm looking to see a basic example of code from start to finish, any help is greatly appreciated as I'm in learning mode.
    Thanks

    kittlez wrote:
    Ok so I know how to pass everything to the second page. I'm guessing I need hidden fields on that second page to go through to the last page where I insert the records...correct?
      That is one way to do it.  But one might also want to look into session variables if they have not been considered.
    When I've tried to do this I end up with something like this item1,item2,item3 all together which the database will not accept. How do I write the multiple values to the database so they are considered to be separate records.
    item1,item2,item3 is what you are supposed to get according to the HTTP protocol standard.  To insert that into a database you just need to recognize that you are getting a list and use ColdFusions list handling functions and tags to help you iterate through the list and do what you need to do with the data.
    This is a very hand code snippet for this type of work:
    <cfloop list="#listVariable#" index="aVar">
      #aVar# will equal one list item.
    </cfloop>

  • Multiple Checkbox Values Into One Field

    Hopefully someone can help me with this issue I'm having.
    I'm trying to save the values of multiple selected checkboxes into one field separated by commas through ADDT's Insert Transaction code. I can do this easily with DW's standard insert record wizard by using the PHP implode() function but I haven't been able to figure it out with ADDT's code.
    <form>
    <input type="checkbox" value="1" name="program[]" /> Program One
    <input type="checkbox" value="2" name="program[]" /> Program Two
    <input type="checkbox" value="3" name="program[]" /> Program Three
    <input type="checkbox" value="4" name="program[]" /> Program Four
    </form>
    THIS IS ADDT'S CODING
    $ins_quoteManager->addColumn("programs", "STRING_TYPE",  "POST", "programs");
    THIS WORKS VIA DREAMWEAVER'S INSERT RECORD WIZARD
    Original: GetSQLValueString($_POST['programs'], "text"),
    Modified: GetSQLValueString(implode(',',$_POST['programs']), "text"),
    Anyone know how to modify the ADDT code with the implode function to get this to work?

    Have you tried ADDT´s "comma-separated checkboxes" form control, which will also store the values into a field of your choice (and of course retrieve them from there on update record - pages) ? The only possible drawback might be, that the checkboxes can´t be defined statically, means that the array of value/label - pairs will be retrieved from another table by establishing an additional recordset.
    Cheers,
    Günter

  • Need help on inserting multiple selection values into database

    Hello every body,
    we are developing one small web application in that we have requirement like department is an combobox, services in multiple selection list box, suppose when i select IT as department & some services in multiple listbox on clicking map button selected services should be map with that department .Could u plz help me how i have to do..?
    Thanks & Regards,
    Anil.

    anilmekala.reddy wrote:
    Hello every body,
    we are developing one small web application in that we have requirement like department is an combobox, services in multiple selection list box, suppose when i select IT as department & some services in multiple listbox on clicking map button selected services should be map with that department .Could u plz help me how i have to do..?
    Thanks & Regards,
    Anil.if you give more details .... do you know how to use jdbc ??? prepared statement ???
    any way if I have understood your question
    I will suppose that you have 3 tables Department ,service and Has_service
    and I supose that you have already the entry in table department and service
    Here is what I would do ...
    while(I have something to insert )
       insert into Has_service values (department,service )
    }

  • Inserting Multiple row values

    Hi Friends,
    I have a table layout as follows
    Friends FirstName LastName
    Friend1 Annie Bose
    Friend2 Lisa Ray
    Friend3 Mary D'sourza
    GO
    when i click on this GO button all three row values hould be stored in the table
    but i m able to save only the first row value(Annie,Bose)
    How to save other row values?(Lisa Ray and Mary D'sourza)
    I am attaching the code
    //Rows.html
    <html>
    <body>
    <form method="post" action="Rows.jsp">
    <table border=1>
    <tr><td>Friends</td><td>First Name</td><td>Last Name</td></tr>
    <tr><td>Friend1</td><td><input type="textbox" name="fname"></td><td><input type="textbox" name="lname"></td></tr>
    <tr><td>Friend2</td><td><input type="textbox" name="fname"></td><td><input type="textbox" name="lname"></td></tr>
    <tr><td>Friend3</td><td><input type="textbox" name="fname"></td><td><input type="textbox" name="lname"></td></tr>
    </table>
    <input type="submit" name="s1" value="Go">
    </form>
    </body>
    </html>
    //Rows.jsp
    <html>
    <body>
    <%@page import ="java.sql.*" %>
    <%
    try
    String fname=request.getParameter("fname");
    String lname=request.getParameter("lname");
    Class.forName("acs.jdbc.Driver");
    String url = "jdbc:atinav:localhost:7227:C:/Try.mdb";
    Connection con= DriverManager.getConnection(url);
    PreparedStatement pstmt=con.prepareStatement("insert into Friends values(?,?)") ;
    pstmt.setString(1,fname);
    pstmt.setString(2,lname);
    int cnt=pstmt.executeUpdate();
    System.out.println("values inserted");
    Statement stmt=con.createStatement();
    ResultSet rst=stmt.executeQuery("select * from Friends");
    while(rst.next())
    String str1=rst.getString("FirstName");
    String str2=rst.getString("LastName");
    out.println(str1);
    out.println(str2);
    catch(Exception e)
         e.printStackTrace();
    %>
    </body>
    </html>
    Please solve my problem asap
    It's urgent
    Thanx in advance
    Pooja

    enumerate the field names on the form
    <%int value=number of text fields
    for (int i=0; i<value; i++)
    { %>
      <input type="text" name="first_name<%=i%>">  <input type="text" name="last_name<%=i%>">
    <%}%>
    <input type="hidden" name="value" value="<%=value%>">
    <input type="submit">then in your other jsp
    int value=Integer.parseInt(request.getParameter("value"));
    for (int i=0; i<value; i++)
    request.getParameter("first_name"+i) + request.getParameter("last_name"+i);
    //write to db

  • Insert/Update multiple checkbox values into a table

    Hi all,
              I created an interactive report with checkboxes in it.
    My application is like,
    step 1: user will give his ID in a text box and click on 'submit' which redirects to IR page which has got checkboxes
    step 2: IR report displays all the environments and access levels as two of its columns
    step 3: if user checks on some box in IR, those particular environments and access levels (may be multiple environments and access levels) for that particular ID should get inserted into a table.
    I have created a model application at http://apex.oracle.com/pls/apex/f?p=71510:20 (wokspace:test_me, username=test, paswrd: apex14gm)
    I found this forum too, https://forums.oracle.com/thread/2387391?start=0&tstart=0. But I am confused of how to implement it!
    How to achieve this??
    Pls help me out....
    Thanks in advance

    Hi Kanishkaa,
    I've taken a look at your application.
    So the things that I noticed that are wrong:
    1)Your report: You created 2 items but you gave the 2 items the same idx. This is really weird I'm not sure if APEX knows how to handle this. Don't give 2 items the same idx. Furthermore you need to create 2 additional hidden items since you also want to store the access level and the environment.
    2)The PL/SQL Process: Your PL/SQL Process: your making a type t_checkboxes, but your not actually doing anything with this type. Your not giving this any value. So obviously you get an error.
    You really should rewrite this process based on the process in my blog. Please read it again carefully, if you just use the one insert statement you are using then even if you write a correct process that doesn't give any errors, the wrong data will be inserted.
    Regards,
    Joni

  • Inserting multiple selection from checkbox into one column of the database

    Hi,
    How to insert multiple selection values from checkbox into one column of the database.
    Anyone can u help me
    Thanx

    hi
    try to use request.getParameterValues("fieldname")

  • Multiple Checkboxes

    I'm using Struts. I've applied over a dozen code examples, using 3 different strategies, and in 4 hours I've not been able to get multiple checkbox values sent to the server.
    10 dukes to anyone that can give me an example that actually works.

    html:multibox works for me:
    JSP code:
      <logic:iterate id="report" name="reportList">
            <tr><td>
              <html:multibox property="reportIds">
                <bean:write name="report" property="id"/>
              </html:multibox>
            </td>
            <td><bean:write name="report" property="name"/></td>
            <td><bean:write name="report" property="description"/></td>               
            </tr>
        </logic:iterate> In the formbean:
        public Integer[] getReportIds() {
            return reportIds;
        public void setReportIds(Integer[] reportIds) {
            this.reportIds = reportIds;
        }That gives an array of all the checkboxes which were "checked" on the screen.
    You could just as well use a String[] as an Integer[], I just knew that all the values would be Integers, so it saves converting them myself.
    Cheers,
    evnafets

  • Multiple Checkbox Insert Handling

    Every so often, I need to refresh my knowledge regarding how to handle multiple check box selections, and how they get handled on an action page to insert correctly in a DB.
    In a helpdesk application, the admin assigns projects to technicians. He may assign one project to several technicians.
    The first action page inserts the data from the form into the DB with time and date stamps, due dates, etc.
    Here is where the selected checkboxes do not get passed.
    The second action page depends on the fist, populating a junction table using:
    <cfquery name="get_project_ID" datasource="#Request.BaseDSN#">
       SELECT MAX (project_ID) as lastID
       FROM main_projects
    </cfquery>
        <cfloop index="i" list="#tech_ID#">
            <cfquery name="TheQuery" datasource="#Request.BaseDSN#">
                INSERT
                INTO     junction_project_tech
                        (junc_tech_ID, junc_project_ID)
                VALUES     (
                            <cfqueryparam cfsqltype="cf_sql_integer" value="#i#">,
                            #get_project_ID.lastID#
            </cfquery>
        </cfloop>
    Any help would be greatly appriciated-
    newportweb

    Thanks for your quick reponse. I hope you don't cringe easily...
    1 form:
    <cfquery name="get_tech" datasource="#Request.BaseDSN#">
    SELECT *
    FROM lookup_tech
    </cfquery>   
    <form action="project_action.cfm" method="post">
    <p><strong>Description:</strong></p>
    <p><textarea cols="120" rows="10" name="project_desc" wrap="hard" class="inputtext"></textarea></p>
    <p><strong>Assigned Technicians</strong></p>
    <cfoutput query="get_tech">
        <tr>
    <td width="75%" class="tddynamic">#tech_lname# <div class="sbfield"><strong>Due Date:</strong> <input type="text" name="due_date" size="8" class="sbfield"> </td>
    <td width="25%" class="tddynamic"><INPUT Type="Checkbox" Name="tech_ID" Value="#tech_ID#"</td>
    </tr>
    </cfoutput>
    <cfoutput>
    <input type="hidden" name="assign_date" value="#DateFormat(CreateODBCDate(Now()), "mm/dd/yyyy")#">
    <input type="hidden" name="assign_time" value="#TimeFormat(CreateODBCTime(Now()), "hh:mm tt")#"></cfoutput>
    <input type="submit" name="" value="Submit Project" class="formbutton">
    </td>
    </tr></form>
    Action1
    <CFPARAM Name="tech_ID" Default=0>
    <cfquery name="create_project" datasource="#Request.BaseDSN#">
    INSERT INTO main_projects (
    project_desc,
    assigned,
    assign_date,
    assign_time,
    due_date,
    assigned_tech1,
    assigned_tech2,
    assigned_tech3,
    assigned_tech4,
    tech_1_hours,
    tech_2_hours,
    tech_3_hours,
    tech_4_hours
    VALUES  (
    '#project_desc#',
    1,
    '#Form.assign_date#',
    '#Form.assign_time#',
    '#FORM.due_date#',
    (insert checkbox values from form here),
    0,
    0,
    0,
    0
    )</cfquery>
    <cflocation url="project_action2.cfm?tech_ID=#Form.tech_ID#" addtoken="No">
    Action2: You have seen.
    DB: MS Access- I know, I know. I'm getting to SQL Server soon.
    Thanks again....

  • Inserting Selected Checkboxes into multiple rows

    Problem Statement
    Form Contains -
    Project Name (Select List - Single)
    Checklist (Checkboxes - Dynamic LOV, Values from Table - Master Checklist)
    Now I have to Insert into ProjectChecklistTabel.
    I select Project from list, select multiple checkboxes and click submitt. Now, data should be inserted into table as -
    ProjectSelected Checkbox1Value
    ProjectSelected Checkbox2Value
    ProjectSelected Checkbox3Value
    Can anyone explain how can I do this.

    Sure,
    Use the following code in a page process on submit:
    DECLARE
       l_vc_arr2   htmldb_application_global.vc_arr2;
    BEGIN
       l_vc_arr2 := HTMLDB_UTIL.string_to_table (:p1_checkbox);
       FOR i IN 1 .. l_vc_arr2.COUNT
       LOOP
          INSERT INTO checkbox_table
                      (checkbox_value
               VALUES (l_vc_arr2 (i)
       END LOOP;
    END;Also, see numerous examples on that issue here:
    http://htmldb.oracle.com/pls/otn/f?p=31517:84
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Inserting multiple selection from checkbox in to one column of the database

    Hi,
    how to insert multiple selection from checkbox into one column of the database.(I select array of values from checkbox ,then how to insert tat array of values iinto single column name).
    Anyone can u reply me
    Thanx

    hhhmmm.... is this what you mean?
    lets say you hava a checkbox1 with values value1, value2, value3 and you selected all there of them? then you want then to be stored in the database in one column?
    now the question is:
    Is it going to be one column one row?
    datafield
    value1,value2,value3
    Or one column multiple row?
    datafield
    value1
    value2
    value3
    Which is it?

  • PHP/MySQL multiple checkbox insert

    Hi All,
    I am creating an order samples page where people can select up to 3 samples.
    The selected checkboxes will go into a database.
    How do I insert the selected checkboxes values into a database? I only managed to insert 1 value.
    Here are the checkboxes:
                             <label><input type="checkbox" name="samples_" value="sample1" id="samples_1">sample1</label>
                             <label><input type="checkbox" name="samples_" value="sample2" id="samples_2">sample2</label>
                              <label><input type="checkbox" name="samples_" value="sample3" id="samples_3">sample3</label>
                              <label><input type="checkbox" name="samples_" value="sample4"  id="samples_4">sample4</label>
                              <label><input type="checkbox" name="samples_" value="sample5" id="samples_5">sample5</label>
                              <label><input type="checkbox" name="samples_" value="sample6"  id="samples_6">sample6</label>
    Any help or advice is much appreciated
    Thanks

    Hi All,
    I am creating an order samples page where people can select up to 3 samples.
    The selected checkboxes will go into a database.
    How do I insert the selected checkboxes values into a database? I only managed to insert 1 value.
    Here are the checkboxes:
                             <label><input type="checkbox" name="samples_" value="sample1" id="samples_1">sample1</label>
                             <label><input type="checkbox" name="samples_" value="sample2" id="samples_2">sample2</label>
                              <label><input type="checkbox" name="samples_" value="sample3" id="samples_3">sample3</label>
                              <label><input type="checkbox" name="samples_" value="sample4"  id="samples_4">sample4</label>
                              <label><input type="checkbox" name="samples_" value="sample5" id="samples_5">sample5</label>
                              <label><input type="checkbox" name="samples_" value="sample6"  id="samples_6">sample6</label>
    Any help or advice is much appreciated
    Thanks

  • Multiple On Values for Checkbox

    Hi,
    Is there a way to have multiple On Values for a checkbox. Also, is it possible to do this without using scripts. The forms I'm creating are used within a software application. This application dumps the data into the forms filling them as appropriate. My check boxes complete additional fields on the form for which data is not collected.
    I can write scripts that will trigger these check boxes, but I cannot get them to run within the software application. I can't find an event that works. I've tried Doc Ready, but this seems to run the script prior to the data being dumped into the form.
    My only answer at this point is to work around the problem and see what I can do without the use of scripts.
    Any suggestions?
    Karen

    You can set what value the checkbox has but you cannot have multiple values. The Doc Ready is the right event to use. The checkboxes ON/OFF are set to the wrong values and hence they are not getting set.

Maybe you are looking for

  • Why do .mp4 files not show up in the Finder/work in iDVD?

    Hi I downloaded some .mp4 files from the internet on my Windows PC and as per usual they are played by quicktime on my PC. When I saved them to my external HDD and plugged it into my MBP, the folder containing the mp4 files does not appear, and neith

  • HP laser 4000n Driver for Windows 8 32bit

    I am looking for driver for hp 4000n that work with windows 8. This question was solved. View Solution.

  • How to get MRP Details based on OPEN PO's

    Hi Experts, Could you please help me in getting details related to open purchase orders based on MRP Exceptions and MRP line items. I need develop a report based on plant, I have found one function module "MD_MRP_LIST_API" to get these details, but t

  • Reg File to IDOC scenario with Acknowledgment

    Hi Experts! In  a File to IDOC scenario , how to get the  acknowledgment back to PI after posting the IDOC to SAP system and send the acknowledgment to the sender system. What setting needs to be done in Sap  and PI? Is it better if we have a BPM or

  • How do I get rid of Bing search engine. It has taken over.

    How do I get rid of Bing? I have Safari 6.0.5 and OS X 10.8.5. I've cleared history, set Google as my default in preferences in Safari but Bing takes over whenever I enter a search. Where do I go from here?