Passing Checkbox values

Hello all!
I have a WF which calls a Form with a table and two buttons. The first column of this table consists of checboxes.
<Field name='accounts_table'>
                <Display class='FormTable'>
                    <Property name='Columns'>
                        <list>
                            <s>col1</s>
                            <s>col2</s>
                            <s>col3</s>
                        </list>
                    </Property>
                </Display>
                <FieldLoop for='item' in=':variables.data[*]'>
                    <Field name='col1'>
                        <Display class="Checkbox">
                            <Property name="label">
                                <get>
                                    <ref>item</ref>
                                    <i>0</i>                
                                </get>
                            </Property>
                          </Display>
                    </Field>
...My buttons code:
<Field name='submitCancelButtons'>
                <Field name=':variables.submitButton' button='true'>
                    <Display class='Button'>
                        <Property name='label' value='Submit Request'/>
                        <Property name='value' value='Continue'/>
                        <Property name='command' value='Save'/>
                    </Display>
                </Field>
                <Field name=':variables.cancelButton' button='true'>
                    <Display class='Button'>
                        <Property name='label' value='Cancel'/>
                        <Property name='value' value='Cancel'/>
                        <Property name='command' value='SaveNoValidate'/>              
                    </Display>
                </Field>
            </Field>For now, I wonna make an array of values checked in this table and pass it back to the WF. Any ideas how to do it would be vey helpful.
Thanks in advance!!

looks like I'm talking to myself. nevermind - maybe someone will find it helpfull.
let's continue my story.
I've managed to create indexed checkboxes and indexed values which are associated with this checboxes.
<FieldLoop for='item' in=':variables.data[*]'>
                    <Field name='acc_$(index)'>                               
                        <Display class="Checkbox">
                            <Property name="label">
                                <get>
                                    <ref>item</ref>
                                    <i>0</i>                
                                </get>
                            </Property> 
                        </Display>
                        <Expansion>
                            <set name='index'>
                                <add>
                                    <ref>index</ref>
                                    <i>1</i>
                                </add>
                            </set>
                        </Expansion>
                    </Field>
                    <Field name='val_$(index)' hidden='true'>
                           <Default>
                            <get>
                                <ref>item</ref>
                                <i>0</i>                
                            </get>
                        </Default>I've also succeded in passing these values to WF which calls this form (I understand that this is not so hard).
but I still have the most significant question. how can I find out which checkboxes are checked?
does anyone has any ideas? I'll post additional info if needed.
Thanks in advance.
p.s. dukes guaranteed!

Similar Messages

  • Error while passing checkbox value

    hi,
    i'm passing my checkbox value like this..
    first.jsp
    <%for (l=0;l < row;++l)
    {%>
    <tr>
    <td><input type="checkbox" name="delete<%=l%>" value="<%=tm.getValueAt(l,0)%>"></td>
    <%}%>
    second .jsp i call it as
    int number=Integer.parseInt(request.getParameter("num"));
    System.out.println("in vetcd no"+number);
    for(int i=0; i<number; i++)
    String equid = request.getParameter("delete"+i);
    System.out.println("delete"+i+"equid"+equid);
    but it always prints the value of equid to be null
    can anybody help

    I think maybe the method of your form was wrong.
    Anyway, here are two jsp files for your reference.
    =======1.jsp==========
    <h3>This is 1.jsp</h3>
    <form action="2.jsp" method="post">
    <table>
    <%for(int l=0;l <5;++l)
    {%>
    <tr><td><input type="checkbox" name="delete<%=l%>" value="<%=l%>">Checkbox <%=l%></td></tr>
    <%}%>
    </table>
    <input type="Submit" value="Submit">
    </form>
    ========2.jsp===========
    <h3>This is 2.jsp</h3>
    <%
    for(int i=0; i<5; i++)
    String equid = request.getParameter("delete"+i);
    out.write("delete"+i+", equid"+equid+"<br>");
    %>
    In 1.jsp, if I check on "checkbox2" and "checkbox3"
    I can get result in 2.jsp as
    This is 2.jsp
    delete0, equidnull
    delete1, equidnull
    delete2, equid2
    delete3, equid3
    delete4, equidnull
    Hope this solve your problem.
    Good luck
    Harv

  • Passing checkbox values to popup window on page submit

    Hello,
    I'm using APEX 3.2.
    On one page I have a SQL report with checkboxes that are dynamically created using SQL: select apex_item.checkbox(1, bm_id) as "check", ...
    I now want to add a button to the page and when a user clicks on the button, the page should submit and a popup window should open with some extra fields to fill in. Now, in the popup window, I want to add a PL/SQL process and loop to all the values of the checked checkboxes in the parent page using the APEX_APPLICATION.G_F01() array. Can I do this? I tried it but the array always seems to be empty. Do I have to pass all checked values to the Javascript function which opens the popup window??
    Thanks,
    Matthias

    Matthias:
    The APEX_APPLICATION.G_F01() will have values only after the form has been submitted.
    So,your best bet is to use javascript to make the selected checkbox values available in the pop-up window.
    Varad

  • Reports - Passing checkbox values and conditional column visibility

    Although I've been using Oracle databases for many years, I've to admit I'm rather new to APEX. I'm building a first prototype project to convince our project leaders and managers of the usefulness of the product for future projects (as for visual Database interfaces where the accent is on forms and reporting, it will often be faster and less expensive to build an APEX application instead of a full blown Java or C# webapp).
    I'm however encountering some problems.
    Let me start with a quick description. I've the following parent/child structures:
    Provinces > Cities > Intersections > Loops > Loop Detections.
    I basically want to make a report on the loop detections. Now, considering we'll have many thousands of detections a day, I made kind of a drilldown structure. You first choose your province, then the city, then the intersection and finally the loop. I didn't use lists to make the selection. Instead I made a (classic) report for each part as this allows me to give detailed information for each part. In each report, I made a link on the identifier. For example, when I select a province (by clicking on the link), I pass the province identifier to the cities report and use it in the query to limit my report to those cities for the given province. I repeat these step for the different parts, which in the end, gives me the loop detections for the selected loop. The good news is all this works fine. The person who'll be using this application however made a suggestion and asked if it would not be possible to select different loops and as such get the detections for several loops (the rest of the application stays the same). This however means I cannot use the column link anymore. Now, I was thinking in the direction of a checkbox. The column link is still there, but the user would also have the possibility to select several items in the report. I managad to add a checkbox to the report, linked to the loop identifier column. That's not exactly difficult. I cannot figure out however, how I can pass the selected identifiers to the next report (detections for the selected loops) and use it in the underlaying query of this report. The problem is, I don't know how to pass the checked values to the next page and how to use these values in the report query of that page. I suppose this must be possible, but I couldn't figure out how. I tried playing around with APEX_APPLICATION.G_Fxx and such. Remember I'm a newbie and this seems to fall under more advanced features.
    I've uploaded images of the 2 concerning report pages for illustration:
    http://img96.imageshack.us/img96/1497/apex01.jpg
    http://img140.imageshack.us/img140/9868/apex02.jpg
    A second point that's bothering me is the following. In the loop detection report I show a colum link (I picked an icon instead of the column value) for each row. I also have a column that shows the number of detections for the given loop (and day). Now, for some loops, there are no detections for that given day. As such, there's no point in selecting this loop, as the result will be an empty report. However, I still want to show the loop in the loop selection report, as it's still present (it's not as if it suddenly disappeared). Sure, no big problem and most users probably have sufficient intelligence to figure this out. However, it would be nice if I could make the icon (colum link) visible only for those loops that have detections, or in other words, for those records where number_of_detections (underlaying column COUNT) is greater than 0. I couldn't figure out a way to do this either. The Conditional Display option for a column didn't really offer me a solution here.
    Before I forget, I'm using APEX 4.0.1 on an Oracle XE database.
    Any tips or suggestions would be welcome! :)
    Thanks.
    Erwin

    Hi,
    You mean something like in this sample
    https://apex.oracle.com/pls/otn/f?p=40323:55
    You can store checked values to collection and use it then in another report where clause
    See e.g. this post for how you can store checked rows to collection
    Re: Need help with APEX_Collection
    In sample DEPT report query is
    SELECT
      CASE WHEN EXISTS(SELECT 1 FROM emp e WHERE e.deptno = d.deptno) THEN
        APEX_ITEM.CHECKBOX(1,c.c002,'onclick="saveDeptChk(this,'||c.seq_id||')"','true')
      END AS row_selector,
      c.c002 AS checked,
      d.DEPTNO,
      d.DNAME,
      d.LOC
    FROM dept d,
      apex_collections c
    WHERE c.collection_name = 'DEPT_CHK_COLLECTION'
      AND d.deptno = c.c001And EMP report
    SELECT e.EMPNO,
      e.ENAME,
      e.JOB,
      e.MGR,
      e.HIREDATE,
      e.SAL,
      e.COMM,
      e.DEPTNO
    FROM emp e,
      apex_collections c
    WHERE c.collection_name = 'DEPT_CHK_COLLECTION'
      AND c.c002 = 'true'
      AND e.deptno = c.c001Regards,
    Jari

  • Passing checkBox value to another servlet

    hey! there,
    I am pretty new for java servlet. I am having trouble for passing the name of the checkbox in another servlet.
    The situation goes like this.
    I have a page where dynamically checkboxes are created based on the number of accounts associated with the user in the database. I have pulled out the information from the database to display in the table where one column is for check box. Now I have to pass the name of the checkbox to the another servlet where I have to ckeck whether the check box value is false or true.
    If the number of check box is static, I could have given the specific name which can be passed to the next servlet easily but the I don't know how many checkbox it comes up in the table.
    Since I am new to Java, I could not figure out how to name that ckeckbox in the page and pass it to the another servlet page.
    Note that the pages are entirely Servlet.
    Any help would be heartly, appriciated

    hi beg,
    One way to this is
    Servlet code
    for i = 1 to noOFUSers
    String x = "<INPUT TYPE=CHECKBOX NAME='user' "+i "
    "put x in screen
    The HTML generated should post to 2nd servlet
    IInd servlet code
    Enumeration paramNames =
    request.getParameterNames();
    while(paramNames.hasMoreElements()) {
    String paramName =
    (String)paramNames.nextElement();
    if(!paramName.startsWith("user"))// same string as
    checkbox name
    continue;
    }else{
    String paramValue =
    request.getParameterValue(paramName);
    / do u r processing on paramValue
    }Another way is to use the same name attribute for all of them
    <INPUT TYPE=CHECKBOX NAME='user' >Then, at the second servlet, call
    String[] users = request.getParameterValues("name");and iterate over the string array.

  • Passing Checkbox values to report

    Hi , I have created check box " Gender" :P2_gender
    when i pass it to IR in where clause like " where gender = :P2_gender"
    it is returning value if I check one value , but if I check both values in checkbox it is showing no records found..
    I dont know where I went wrong . I used to use Select list with same logic worked fine. But this is my first time using Check Box..
    Please guide me to achieve my requirement ..
    Thank You,
    Nihar Narla

    This is the way to do it right:
    SELECT *
      FROM emp
    WHERE INSTR (':' || :p1_deptno_checkbox || ':', ':' || deptno || ':') > 0Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Passing checkbox value.

    I am trying to capture the value of a checkbox. If it's checked, the value = on. If it's not checked, value = null. I know this from printing the value for cbTest. So, I want to add some logic to page based on this. If it's "on" - do this. Below is a test I am running and it's not working. Basically, print me the value if it equals "on". What am I doing wrong?
    <% String cbTest = request.getParameter("cbFromPreviousPage"); %>
    <td>On: <%if (cbTest == "on") {%><%=cbTest %><% } %></td>

    Some if you codes will not work so i modified it.
    First line ensures that the value will not be null to ensure on the second line you cannot get exception
    <% String cbTest = request.getParameter("cbFromPreviousPage")!=null?request.getParameter("cbFromPreviousPage"):""; %>
    <td>On: <%if (cbTest.equals( "on")) {%><%=cbTest %><% } %></td>

  • How to pass checkbox multiple value in URL as parameter?

    Hello,
    I have a checkbox in two page. The checkbox is based on a LOV and user can check more than one value at a time. The return value of the checkbox is like "ID1:ID2".
    I want to call another page with the same checkbox item and want to pass the checked value via the URL.
    This cause problem because checked value are separated with : that not work in URL.
    So, how can I pass checkbox multiple value in parameter via an URL?
    Thanks
    Jean

    Jean,
    Why pass it in a URL instead of just using what's in session state? On your second page, set the Source Type of the check box item to ITEM and enter the name of the check box item on the first page.
    Sergio

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

  • How to pass a value to a checkbox

    I have a small report with drill down to another one.
    In the first report on page 1, I have a link to the second report on page 2. In order to drill down, I need to pass some values to an element on the page 2 becasue the report on the second page is run based on the valuse comming from the page elements. So far so good. I am using the following link:
    f?p=&APP_ID.:2:&SESSION.::&DEBUG.::P2_STATUS:VALUE
    where VALUE is a string I want to pass to the element on the page 2.
    The problem is, that the element on the page 2 is a checkbox, having a default value like:
    ENTERED:BOOKED
    The value I want to pass is ENTERED:BOOKED:CLOSED and this doesn't work. Probably because of the colon. It passes only the value 'ENTERED' to the chackbox but not the rest of it.
    How do I solve this?
    Thanks in advance,
    Denes Kubicek

    Yes, you cant pass item values containing a ":" using the f?p= syntax.
    But there is a workaround, see
    http://htmldb.oracle.com/pls/otn/f?p=24317:58
    click on the Link and that takes you to another page with the values of the checkbox that you selected checked by default.
    The region query on page 58 is
    select
      null link,
      case
      when mod(rownum,3)=0 then 'ENTERED'
      when mod(rownum,3)=1 then 'ENTERED:BOOKED'
      when mod(rownum,3)=2 then 'ENTERED:BOOKED:CLOSED'
      end text,
      ename,
      job,
      sal,
      comm
      from   empIn the Link attributes for the "link" column, I specified javascript:goto59('#TEXT#') as the URL for the link
    I put the goto59 function in the region header as
    <script type="text/javascript">
    function goto59(l_value) {
    var l_checkbox=l_value.replace(/:/g,';');
    window.location='f?p=&APP_ID.:59:&SESSION.::::P59_CHECKBOX:'+l_checkbox;
    </script>This replaces the : in the item value with semi-colons.
    Then, on Page 59, I have a On Load Before Header computation to convert the semi colons back to a colon using a PL/SQL expression like
    replace(:P59_CHECKBOX,';',':')
    Now you can use the P59_CHECKBOX item as you want in your report on Page 59
    Hope this helps

  • Passing multiple values to another page

    I am somewhat new to Coldfusion 9 in a IIS platform through Dreamweaver CS4 and could use some direction.  I am working on a form where someone has submited a request for approval.  The user has requested a bulk approval button for all users that fall under certain filter conditions to do a mass approve ( setting the value to 1).  I have not been able to either pass the values to the current approval method or approve them on the existing page.  Below is the coding for the page as I have it.
    After the filter has applied I need to get the values of the #qRecords.VR_Machine_Participant_Activity_Login_ID# and have them all approve as apposed to doing them individually which they are doing now.  I have looked at several methods, but they are not meeting my needs.  Some information cut for space but left the form action.
    <form name="form1" method="post">
        <table width="996" border="1">
         <tr class="ReportColumnHeadingSmall">
          <td width="150">Approval Needed</td>
          <td width="100">Approved</td>
                            <td width="180">Business Unit</td>                    
         </tr>
         <tr class="data0Small">
          <td>
           <select name="cboApprovalRequired" class="smallFont">
            <!---<option value="All">All</option>--->
                     <option value="1"
             <cfif isDefined("vApprovalRequired")>
              <cfif vApprovalRequired eq 1>
                selected
              </cfif>
             </cfif>
            >True</option>
                     <option value="0"
             <cfif isDefined("vApprovalRequired")>
              <cfif vApprovalRequired eq 0>
                selected
              </cfif>
             </cfif>
            >False</option>
           </select>
          </td>
          <td>
           <select name="cboApproved" class="smallFont">
            <!---<option value="All">All</option>--->
                     <option value="1"
             <cfif isDefined("vApproved")>
              <cfif vApproved eq 1>
                selected
              </cfif>
             </cfif>
            >True</option>
                     <option value="0"
             <cfif isDefined("vApproved")>
              <cfif vApproved eq 0>
                selected
              </cfif>
             </cfif>
            >False</option>
           </select>
          </td>
                              <!--- Drop down showing the current available units to choose from --->
                             <td>
                       <select name="cbo_BusUnit" id="cbo_BusUnit">
                            <cfoutput query="qBusUnit">
                             <option value="#qBusUnit.BusinessUnit#"
                            <cfif (isDefined("vBusUnit") AND vBusUnit is qBusUnit.BusinessUnit)>selected                               </cfif>>#qBusUnit.BusinessUnit#</option>
                              </cfoutput>
                            </select>
                          </td>
    <!--- This is where I'd like to mark the items for approval. --->
                            <td><input type="submit" name="Submit" value="Apply Filter">
                            </td>                       
          <td width="450" align="right">
            This will approve all records displayed on the current page.
                              <input name="bVr_id" type="button" value="Approve">
      <cfoutput query="qRecords"><a href=   "vr_participantactivityapproval.cfm?participant=#qRecords.VR_Machine_Participant_Activity _Login_ID#">
        <img src="../Images/switch_user.gif" alt="Approve" width="16" height="16" border="0"></a>
        </cfoutput>
    </td>
         </tr>
         <tr class="ReportColumnHeadingSmall">
                         <td colspan="3" height="20"></td>
                        </tr>
        </table>
    <table width="996" border="1">
    <tr class="ReportColumnHeadingSmall">
        <td></td>
        <td>Machine or<br>Activity Type</td>
        <td>Activity</td>
        <td>Comments</td>
        <td>Oper.<br>ID</td>
        <td>Name</td>
        <td>Approved</td>
        <td>Login Status</td>
        <td>Login Date Time</td>
        <td>Minutes</td>
    </tr>
    <cfoutput query="qRecords">
    <tr class="data#Int(qRecords.CurrentRow MOD 2)#Small">
    <td>
                        <!--- Current method of approving them individually. --->    
    <a href="vr_participantactivityapproval.cfm?participant=#qRecords.VR_Machine_Participant_Act ivity_Login_ID#"><img src="../Images/switch_user.gif" alt="Approve" width="16" height="16" border="0"></a>
      </td>
      <td class="SmallFont">#qRecords.ActivityType#</td>
    <td class="SmallFont">#qRecords.Activity#</td>
        <td class="SmallFont">#qRecords.Value_Nvarchar#</td>
    <td class="SmallFont">#qRecords.VR_Department_Number#</td>
    <td class="SmallFont">#qRecords.FullName#</td>
    <td class="SmallFont"><cfif #qRecords.Approved# IS 0>False<cfelse>True</cfif></td>
        <td class="SmallFont">#qRecords.Login_Status#</td>
        <td class="SmallFont">#DateFormat(qRecords.Login_Date, 'ddd mm/dd/yyyy')# #TimeFormat(qRecords.Login_Date, 'H:mm')#</td>
        <td class="SmallFont">#qRecords.TotalTime#</td>
    </tr>
    </cfoutput>
    </table>
        </form>

    I suggest displaying all the potential approvees as checked checkboxes.  The user can then uncheck as many as he wants.

  • Passing the values from selection screen to screen painter

    Hello Friends,
    I'm making one report program in which im calling  one screen which i have designed, in my selection screen there is a select option for customer  tht accepts value range now i want to select all the customers entered in select options and pass these values in screen(screen painter).
    pls guide me how this can be done.
    Regards,
    Sunny

    Screen painter is a tool in ABAP dev workbench used to create the screens using the
    T-code SE51. In the screen painter, you can define the following interface elements with their associated attributes.
    1. Input/Output Fields
    2. Field Names
    3. Checkboxes
    4. Radio Buttons
    5. Group Boxes
    6. Sub screens.
    7. Pushbuttons with No Fixed Position
    Create a Z program in tcode SE38.
    Go to transaction SE51.
    Enter the created program name and screen number.
    Click on flowlogic tab. 
    Uncomment the statement u201C MODULE STATUS_0100 u201C. 
    CASE SY-UCOMM.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'BACK'.
          LEAVE PROGRAM.
        WHEN 'DISPLAY'.
          SELECT SINGLE Fileds to selsct
               INTO (interanl table or tablename-fileds)
          WHERE Condition.    WHEN 'CLEAR'.
          CLEAR table.
      ENDCASE.
    ENDMODULE.

  • Help with passing integer value in A.S.S

    I get an NSinternal script error while trying to pass this value can anyone help?
    Also I wonder if it is possible to pass the value to a matrix
    on clicked theObject
    tell button "checkbox" of window 1
    if integer value = 1 then
    set button "checkbox2" of window 1 to integer value = 1
    else
    set integer value to 0
    end if
    end tell
    end clicked
    I also tried:
    if state of button "checkbox" of window1 is 1 then
    set the state of button "checkbox2" of window1 to 1
    end if
    Message was edited by: Doug Bassett

    I've been following this thread and trying to figure out how to make this work. I was getting inconsistent results or errors with most of the code that has been posted. But I finally got it working... at least on a Leopard machine (not sure if this could have changed between Tiger and Leopard so your mileage may vary).
    What I found was that a checkbox button that's located directly in a window seems to have a state that's equal to 0 when it's unchecked and 1 when it's checked. But a checkbox cell that's contained within a matrix seems to have a state that's set to either _off state_ or _on state_. Trying to set a cell's state to 0 or 1 simply wasn't working right for me. So I get the state of the "selectall" checkbox button (which is a 0/1) and transform it to either "off state" or "on state" before setting the states of the checkbox cells in the matrix.
    Here's my code:
    on clicked theObject
    set n to name of theObject
    if n = "selectall" then
    set s to state of theObject
    log "state: " & s
    if s = 0 then
    set newState to off state
    else
    set newState to on state
    end if
    repeat with i from 1 to count of cells of matrix "directories" of window "main"
    tell cell i of matrix "directories" of window "main"
    set state to newState
    end tell
    end repeat
    return
    end if
    if n = "logStatesBtn" then
    logStates()
    return
    end if
    end clicked
    on logStates()
    log "Logging states:"
    set s to state of button "selectall" of window "main"
    log "selectall checkbox: " & s
    repeat with i from 1 to count of cells of matrix "directories" of window "main"
    tell cell i of matrix "directories" of window "main"
    set s to state
    end tell
    log "Cell " & i & ": " & s
    end repeat
    end logStates
    Note the "logStates" handler is just something I connected up to a "logStatesBtn" button in my window that lets me spit out the states of all the checkboxes into the console log. This is how I actually discovered that the cells were set to "off state" or "on state".
    Steve

  • Passing column values to another tab if check box selected in that row

    Hi
    I have the following requirement.
    I have a table that gets populated by a web service. Have added one more field to it which is a check box. Th requirement is that I need to pass the values of column (say id) from each row which has it's check box selected, as input parameters to a web service in another tab.
    example: table has fileds id, name, address,checkbox. If there are 5 rows and the user select 1 and 2 then I need the ids of 1 and 2 to be passed to another tab.
    Is this possible  ........
    Thanks

    Hi
    I just don't want to make multiple selection but pass the values of a column from the selected rows to another tab to be used as input parameters to a web service.
    I want to know how to pass the values(of one filed) of the selected rows across tabs/switches.
    Thanks

  • Checkbox values cannot be read on binder

    Hi,
    I have a form which has couple of checkboxes with as shown below.
    <form name="test" action="get">
    <input type="hidden" name="IdcService" value="SUBSCRIPTION_SERVICE">
    <input type="checkbox" name="chk_test" value="1" /> First
    <input type="checkbox" name="chk_test" value="2" /> Second
    <input type="checkbox" name="chk_test" value="3" /> Third
    <input type="submit value="submit" />
    </form>
    I am using this form to submit some values into the content server.
    When the form is posted, on the content server end I am trying to get the values from binder.
    System.out.println(m_binder.getAllowMissing("chk_test")); prints 3 even though i have selected 1&3. This means when i submit the form I have selected the check box 1,3, m_binder understands or gets only the last value on the checkbox group. Not sure if this is the default behaviour.
    I cant use javascript to club the checkbox values into one hidden variable and send it to the binder as the implementation i am trying has javascript disabled browsers and i want server side validation to happen.
    Any idea why is this happening and is there any solution to over come this.
    Regards,
    S.

    Hey S.
    It looks like the issue you are having is that the 3 checkbox fields are all the same name. When the form submits it will only send the value for the last field with a particular name on the page.
    The other trouble with checkboxes is that if they are not checked then their name isn't even passed in the request.
    To get your code working try something like this:
    <form name="test" action="<$HttpCgiPath$>" method="get">
    <input type="hidden" name="IdcService" value="SUBSCRIPTION_SERVICE">
    <input type="checkbox" name="chk_test_1" value="First" /> First
    <input type="checkbox" name="chk_test_2" value="Second" /> Second
    <input type="checkbox" name="chk_test_3" value="Third" /> Third
    <input type="submit value="submit" />
    </form>
    Then in your java code:
    List selectedItems = new ArrayList();
    for(int i=1; i<4;i++)
    String temp = m_binder.getLocal("chk_test_"+i);
    if(temp != null)
    selectedItems.add(temp);
    //do something with selectedItems
    Hope that helps,
    Andy Weaver - Senior Software Consultant
    Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw >

Maybe you are looking for

  • ITMS and the Hard Drive Crash

    I'm sure this has come up a million times before, but a search didn't yield the answer I was looking for. I have my iTunes music and movies on an external HD. Last night that HD started making a weird noise, as if the rocker arm in the drive is stuck

  • HTML content in JEditroPane

    Object o = messages[msgno].getContent(); if(o!=null){       if (o instanceof String) {            txtcontent.setText((String)o);       } else if (o instanceof Multipart) {            System.out.println("This is a Multipart");            Multipart mp

  • PO output medium XML in Vendor data missing

    When we try to create a BP as vendor, we dont see XML as the output in Send Medium in the Co. code tab. Is there anything to be configured so that XML shows up as the output medium ? We only see Fax, Mail, Print. -Bakulesh

  • 100% Consumption of materials.

    Hi experts, Our client has 100% utilization ( No moments ) i.e whatever the qty of the material comes like steel etc for that day will be utilized on that day.So no stock is maintained. Only for some materials he maintains stock. How to load inventor

  • Need to remove reason id from the dropdown ...

    Hi SAP Experts , We need to remove the reason code in the drop down for the Reason field (as shown in the pic) in the interaction record workcentre . We want only the reasons to be displayed in the drop down Thanks in advance...