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)
----------------------------------------------------------------

Similar Messages

  • HT201240 I just got my Mac yesterday.  My kids want to access sites that need the adobe player.  When I try and download it asks for a password.   I do not even remember setting one up?  How do i find out what it is?

    I just got my Mac yesterday.  My kids want to access sites that need the adobe player.  When I try and download it asks for a password.   I do not even remember setting one up?  How do i find out what it is?

    FYI this is the legitimate Flash Player installer:
    This one is bogus:
    As X423424X wrote do not download it from any site other than the one he linked.
    Adobe does not require a password to download the Flash installer. Generally speaking passwords are not required to download software, unless you must register with the website so as to log in. In that case you should never use the same name and password you use to administer your Mac.

  • How to set a value in a managed bean when click on a button

    Dear all
    I have a managed bean that contains an attribute of type string as follow:
    the attribute name is taskFlowId
    package dhamanADM.view.beans;
    import oracle.adf.controller.TaskFlowId;
    public class dynamicTaskFlowManager {
       private String taskFlowId = "/WEB-INF/flows/procedureMaster.xml#procedureMaster";   
        public dynamicTaskFlowManager() {
            super();
      public TaskFlowId getDynamicTaskFlowId() {
       return TaskFlowId.parse(taskFlowId);
    }I want to change the value of this attribute when clicking on a commandMenuItem as follow
       <af:commandMenuItem text="Mission Persons" id="pt_cmi1"
                                                action="missionPers">
       <af:setActionListener from="/WEB-INF/flows/editPersionMission.xml#editPersionMission"
                                      to="#{pageFlowScope.dmDynamicTaskFlowManager.dynamicTaskFlowId}"/>
       </af:commandMenuItem>at run time when clicking on the menu this error appears
    java.lang.IllegalArgumentException: Cannot convert /WEB-INF/flows/editPersionMission.xml#editPersionMission of type class java.lang.String to class oracle.adf.controller.TaskFlowId
    My target is just to change the value of the attribute "taskFlowId" when clicking on the commandMenuItem
    how can i do this?
    Thanks in advance
    Edited by: ta**** on Mar 29, 2011 1:24 PM

    You are setting to set a String value where a type of TaskFlowId is required.
    Looks like, you are trying to set the taskFlowId for the dynamic region. Modify the code as follows:
    public class dynamicTaskFlowManager {
    private String taskFlowId = "/WEB-INF/flows/procedureMaster.xml#procedureMaster";
    public dynamicTaskFlowManager() {
    super();
    *public TaskFlowId getDynamicTaskFlowId() {*
    AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
    String currentTaskFlowId =
    *(String)adfFacesContext.getPageFlowScope().get("CurrentTaskFlowId");*
    if (currentTaskFlowId == null ||
    *currentTaskFlowId.trim().equals("") == true) {*
    currentTaskFlowId = taskFlowId;
    return TaskFlowId.parse(currentTaskFlowId);
    In the MenuItem, modify it as follows:
    <af:commandMenuItem text="Mission Persons" id="pt_cmi1"
    action="missionPers">
    *<af:setActionListener from="/WEB-INF/flows/editPersionMission.xml#editPersionMission"*
    *to="#{pageFlowScope.CurrentTaskFlowId}"/>*
    </af:commandMenuItem>
    Thanks,
    Navaneeth

  • 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?

  • 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

  • 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

  • Cluster of control references: want to access the control value

    I want to be able to save and set control values that are saved (XML). I have my controls on about 5 sub vi's. So I thought it'd be a good idea
    to put all the control references in a cluster from the several sub vi's and save and read from one point.
    I can get the cluster values (i.e. the references to the controls), but how to proceed from here? If somebody has a better idea it is very welcome.
    I have also read Ben's nugget here, but it deals with references to controls in a cluster, not references to a reference of a control in a cluster

    Thank you for reading that Nugget!
    I use a GUI Controller in many apps so I can grab refs in sub-VI's.
    Here are some screen shots of them in use.
    The first "GUI Cnt" is a wrapper around the AE and invokes the action "Set Analysis mode" then another call let me get a cluster of the refs so I can choose based on the name.
    This image shows what that action does.
    THis is what happens when going into collection mode.
    That is a small set of what you will find in my image gallery Feel free to browse (yes I know there is a lot of Olivia in there ) and ask if anything catches your interest.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • My Client Admin wants to access the server by its IP address using the web Browser

    Dear All,
    I am new admin.
    I have created a Virtual Server and I have configured an IP address provided to me by the NW admin.
    So now I have to request the NW admin to allow this IP to be remotely connected through remote desktop connection.
    If this IP is allowed for the Remote Desktop connection then can I enter the same IP address in the Browser's address bar and access this virtual server on the
    Local Network.
    If Yes, then I am very happy to know this info.
    If no, then please provide me steps to make this IP accessible through the browser's address bar (on the Local Network).
    Please provide me necessary info as I have to make this task completed as Instructed by the client.
    Best Regards,
    Ahmed

    Dear Sir,
    Thanks for the reply and support.
    My Question: Rather than opening the "Remote Desktop Connection", Can we directly enter the IP address of the server in the browser's address bar and login to
    our server on the local network?
    If we cannot login to the server by entering  the IP address of the server in the browser address bar by this method, then what is the method to login to our server by entering the IP address in the browsers address bar.
    Note: I just need to do it on the local network only.
    Please show me how to do it.
    Regards,
    Ahmed
    By enabling RDP, you are enabling remote access to the desktop where you can login and have a Windows Desktop. I have seen in another thread you created that you would like your developer to be able to administer a Website remotely. In this case, that is
    something different. If you are using IIS then you need to check your Bindings and make sure that you do have an administration portal that you can access to make changes remotely.
    For IIS questions, you can ask them here: http://forums.iis.net/
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Want only the user entered values on the xml generated by clicking the button

    Hi All,
    Here goes the details of the problem.
    1. I have created two textfields(texttfield3 and textfield4) along with an email button in a fragment and binded to an XSD file.textfield3 and textfield4 are user entered fields.
    2. On the design page I have created two more fields texfield1 and textfield2 and binded to another XSD.These two fields are read only fields.
    3. On preview PDF screen whenever you click on the email button,you get a mail option with an xml file attached to it.
    4. whenever you open the xml file,you will get the values of all the four fields.Its given below
    <form1>
    <TextField1>value1</TextField1>
    <TextField2>value2</TextField2>
    <TextField3>value3</TextField3>
    <TextField4>value4</TextField4>
    </form1>
    5.But I want only user entered fields to be displayed on the xml page i.e
    <form1>
    <TextField3>value3</TextField3>
    <TextField4>value4</TextField4>
    </form1>
    6.How can I remove or avoid the read only fields not to be displayed on the xml page???
    Thanks in advance

    This forum is for our hosted services of LiveCycle.  I'd suggest that you repost this question this on the Designer (best choice) or Forms forum.

  • How to get multiple row values in one text box while clicking one row from grid?

    hi friends,
               i am working on flex4 web application i am using  one datagrid ,it have two records(bills),one button and one text box.
    ex:
    customername      salesrepname   receipt no      amount
    venkat                         raj                         1102          10000
    ramu                          ramesh                   1102         20000
    here both receipt no is same.now i want to select one of this receipt and click pay button which is place in outside the grid.
    now my need is after click the pay button in text box i need 10000+20000=30000,after click that button i want both receipts should be invisible...'
    how i will do this,
    any suggession,
    Thanks
    B.venkatesan

    One way with 10g:
    select mgr,
           rtrim(xmlagg(xmlelement(empno,empno||',').extract('//text()')),',')  emps
    from emp
    where mgr is not null
    group by mgr;10g:
    -- define this function:
    create or replace
    function concatenate(c Sys_refcursor, sep varchar2 default null) return varchar2
    as
      val varchar2(100);
      return_value varchar2(4000);
    begin
    --  open c;
      loop
      fetch c into val;
      exit when c%notfound;
      if return_value is null then
        return_value:=val;
      else
        return_value:=return_value||sep||val;
      end if;
      end loop;
      return return_value;
    end;
    select mgr,
           concatenate(cursor(select empno from emp e where e.mgr=emp.mgr order by empno),',')
    from emp
    where mgr is not null
    group by mgr;With 11g:
    select mgr,
           listagg(empno,',') within group (order by empno) emps
    from emp
    where mgr is not null
    group by mgr;

  • Web Form Cancel Edit button changes value of List View item when clicked

    I have a web form, I shows 3 buttons, Edit, Save, And cancel. When the user presses the edit button it enables editing. When the user makes an edit and presses the save button it saves the changes. When the user presses the cancel button, it does cancel
    the edit ok but it changes the vale in the left list view to a different value.  For instance my left list view has a list of vendor names.  When I click cancel, the vendor name shown for the selected record, changes to the vendor number.  I
    have experimented with different values to show in the list view, I have turned off sorting, etc.  No matter what everytime I click cancel button it changes the vendor name to the vendor number.
    Even stranger is when I scroll the list up and the item that changed is move out of view and then you scroll back down to put it in view it puts the value back to the vendor name.
    This isn't consistent as I have created some forms where it doesn't do this. 
    Also when I create a new list view, does anyone know how to get it into the tile pane .  the only way to get anything in that list appears to be that I have to create a whole new table.
    Jim

    This forum is for the desktop user interface Windows Forms, its classes, apis and components.
    For a webform try the ASP.Net forums.
    http://forums.asp.net
    Success
    Cor

  • Accessing HTMLB checkbox in javascript

    Hi,
    I have the following scenario:
    1) jsp "main.jsp" has a checkbox with id="chkBoxId"
    2) In this "main.jsp" at the end, there is a jsp include
       including another jsp "buttons.jsp" - which contains a
       SUBMIT button.
    3) On this SUBMIT button, I am calling a javascript
       function "check()" in the "onClientClick" attribute.
    4) In this "check()" function I want to access the
       checkBox (present in "main.jsp")
    Now when I try doing this using the following code in the check() function, it gives me a "Undefined is null or not an object".
    function check(chkBoxId) {
    var funcName = htmlb_formid+"_getHtmlbElementId";
    func = window[funcName];
    var chkBox1 = eval(func(chkBoxId));
    // The checkbox is obtained
    if (chkBox1)
      alert("Not Checked");
    Plzz help me !!!
    regards,
    Jitendra

    HI,
    U can write the javascript function in the header tag or create a .js file in which u write the javascript code.
    the javascript code can be like
    function ValidateForm()
    if(document.form1.s_material.value=="")
    alert("enter material");
    return false;
    return true;
    where form1 is id of form and s_material is iD of input field.
    In your coding for button onClientClick like :
    <htmlb:button  id="s_but_submit"
                                       width="20"
                                       onClick="submit"
                                       onClientClick="if(!ValidateForm(this))htmlbevent.cancelSubmit=true;"
    Regards,
    Siddhartha

  • Want to use multiple cells in calculation only if value zero.  How?

    I'm a spreadsheet novice and I've been playing around with how to do what I need to do with no luck. Hoping someone will be willing to help.
    I'm creating a spreadsheet to track a daily value that is entered per week.
    I've created that formula so that a value each day is entered by the user (this value could be over zero, zero, or less than zero). That works.
    I have a weekly total that is a starting number (above zero). What I want to happen is to have a cell that is the weekly total that subtracts the daily value total for each day in the week but only if that given daily value goes below zero. Something like: Weekly value = Starting weekly value - (Daily Value If Daily Value < 0). I would have a daily value for each day in a week.
    I've been unable to find the right "if/then" wording that would do this. Any help?
    Thanks!

    Clayton,
    With a cell selected in your table, click the Function icon in the toolbar and select Show Function Browser.
    Enter "IF" into the search field and select "IF" in the search results. This is the most convenient place to get help on functions. You will find:
    The IF function returns one of two values depending on whether a specified expression evaluates to a Boolean value of TRUE or FALSE.
    IF(if-expression, if-true, if-false)
    if-expression:
A logical expression. if-expression can contain anything as long as the expression can be evaluated as a Boolean. If the expression evaluates to a number, 0 is considered to be FALSE, and any other number is considered to be TRUE.
    if-true:  
The value returned if the expression is TRUE. if-true can contain any value type. If omitted (comma but no value), IF will return 0.
    if-false:  
An optional argument specifying the value returned if the expression is FALSE. if-false can contain any value type. If omitted (comma but no value), IF will return 0. If entirely omitted (no comma after if-false) and if-expression evaluates to FALSE, IF will return FALSE.
    Usage Notes
    If the Boolean value of if-expression is TRUE, the function returns the if-true expression; otherwise it returns the if-false expression.
    Both if-true and if-false can contain additional IF functions (nested IF functions).
    Using the official syntax should bring success.
    Jerry

  • Select MULTIPLE default values for a multiple selection list box based on another field in Infopath 2010

    Hello there - Before I explain my issue, I would like to point out that I have reviewed some other discussions on selecting default values for multiple selection listbox. But my issue is specific and different, and not answered by any of the discussions
    I visited.
    I have a multiple selection list box (say for example all countries in the world as values), and I would like to pre-select or setup multiple default values (say five countries) based on some criteria that I query from MS SQL database table.
    I know we can go to Data | Default Values option to setup one or many default values for multiple selection list box. When I enter the default values manually this works. I also right click the field under the Multiple-Selection List Box group, then select
    Add another Value Below and set the Default Value for this field to setup multiple default values.
    However, if I reference a field (either an infopath field or a field from SQL database) I am not able to setup multiple default values. Infopath automatically selects the last field I selected for all instances and in the end I am able to see only one
    default value selected instead of many. How to fix this problem? Why would infopath allow multiple default values when we enter it manually but not when we reference some fields?
    Please let me know if you need more info. Appreciate your help.
    Thanks!

    Hi redhotc,
    According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
    I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
    was fine.Please have a try as the below link:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

Maybe you are looking for

  • Using different RFC's in one Application / Entity Service?

    Hello *, I just want to create my first Composite Application Service but before I begin I have some questions. The service will read out material master data from PLM. For that it has some findBy-operations with full-text search (creationDate, MatNr

  • 5.1 speaker mapping problem with X

    I recently created a dual-boot configuration with XP and Vista , and at the same time upgraded to an X-Fi Xtremegamer card. I am using Klipsh 5. ultimate speakers, which worked perfectly with my previous Audigy 2. In Vist, 5. surround does not map pr

  • Sending email with form items embedded

    I would like to send an email from my apex application that has a form embedded with a submit button to send the filled out form back to intended email address. I've tried the following in the sql workshop but got an error DECLARE l_body clob; l_to v

  • VERY VERY URGENT SOLUTION NEEDED regarding SQL

    Dear Sir, I have a table whose structure is SQL> desc fof; Name Null? Type FOFID NUMBER(12) PERSONID NUMBER(12) RELATIONSHIPID NUMBER(2) FPERSONID NUMBER(12) STRENGTH NUMBER(1) RELATIONSTATE VARCHAR2(15) CTIME DATE UTIME DATE DELETED NUMBER(1) EDITED

  • Developer Opening: Package Maintainer

    Hey guys. It's time to get a couple more maintainers on the dev team.  Eric Johnson (farphel) is leaving, so we'll need some people to pick up his packages.  There are also quite a few orphan packages that need some love. http://www.archlinux.org/job