Checkbox help

HI,
I currently using javascript within a PDF to make a form simpler to use. I have a checkbox list with a sub-checkbox list within it (see below)
When filling in the form I need the user to only be able to check one item for the primary list and then a further item if the chekc the box with the sublist.
I have been able to achieve this using the following document level code and the mouse up - run javascript option.
function cbControl()
    var f1 = getField("Eligible activity 1"); (Area benefit checkbox above)
    var f2 = getField("Eligible activity 2"); (limited Clientle checkbox)
    var f3 = getField("Eligible activity 3"); (Housing checkbox above)
    var f4 = getField("Eligible activity 4"); (Jobs checkbox above)
    var f5 = getField("LCB sublist 1"); (Project activity maintains client records checkbox above)
    var f6 = getField("LCB sublist 2"); (Project activity has income eligiblity checkbox above)
    var f7 = getField("LCB sublist 3"); (Project activity is of such a nautre checkbox above)
    var f8 = getField("LCB sublist 4"); (Project activity clients are presumed checkbox above)
    if (event.target === f1) {
        f2.value = "Off";
        f3.value = "Off";
        f4.value = "Off";
        f5.value = "Off";
        f6.value = "Off";
        f7.value = "Off";
        f8.value = "Off";
        return;
    if (event.target === f2) {
        f1.value = "Off";
        f3.value = "Off";
        f4.value = "Off";
        return;
    if (event.target === f3) {
        f1.value = "Off";
        f2.value = "Off";
        f4.value = "Off";
        f5.value = "Off";
        f6.value = "Off";
        f7.value = "Off";
        f8.value = "Off";
        return;
    if (event.target === f4) {
        f1.value = "Off";
        f2.value = "Off";
        f3.value = "Off";
        f5.value = "Off";
        f6.value = "Off";
        f7.value = "Off";
        f8.value = "Off";
        return;
function sublistControl()
    var f1 = getField("Eligible activity 1");
    var f2 = getField("Eligible activity 2");
    var f3 = getField("Eligible activity 3");
    var f4 = getField("Eligible activity 4");
    var f5 = getField("LCB sublist 1");
    var f6 = getField("LCB sublist 2");
    var f7 = getField("LCB sublist 3");
    var f8 = getField("LCB sublist 4");
    if (event.target === f5) {
        f1.value = "Off";
        f3.value = "Off";
        f4.value = "Off";
        f6.value = "Off";
        f7.value = "Off";
        f8.value = "Off";
        return;
    if (event.target === f6) {
        f1.value = "Off";
        f3.value = "Off";
        f4.value = "Off";
        f5.value = "Off";
        f7.value = "Off";
        f8.value = "Off";
        return;
    if (event.target === f7) {
        f1.value = "Off";
        f3.value = "Off";
        f4.value = "Off";
        f5.value = "Off";
        f6.value = "Off";
        f8.value = "Off";
        return;
    if (event.target === f8) {
        f1.value = "Off";
        f3.value = "Off";
        f4.value = "Off";
        f5.value = "Off";
        f6.value = "Off";
        f7.value = "Off";
        return;
However no matter what I try, I can not get the 'Eligible activity 2' box to check if some one selects one of the sublists checkboxes. I have tried including the follwoing into the sublistControl code
if (event.target === f5) {
        f1.value = "Off";
        f2.value = "On"; (also tried f2.value = "Yes";)
        f3.value = "Off";
        f4.value = "Off";
        f6.value = "Off";
        f7.value = "Off";
        f8.value = "Off";
        return;
But this does not work. Can anybody suggest a solution??
Kind regards
Rhys

You need to use the Export Value of that box, although a better way is to use the checkThisBox() method, like so:
f2.checkThisBox(0,true);

Similar Messages

  • (inserting values into a database using a Checkbox) HELP!!!!!!!!!!!!!!!

    Can anyone help me out ???
    I am getting some trouble with using multiple check boxes to store the information in a database (MS ACESS)
    Each checkBox has multiple values in them.(3).
    1)Should they have similar names for each one?
    I am also getting an error saying cannot resolve symbol stating about pnumber,itemname,price
    Can you also tell me that if my query statements are correct??
    I want to insert into the database multiple values of each checkboxes which are checked.
    Thanks!!!!!!!
    <!---------------------------------------------html PART--------------------------------------------------------------------------------------->
         <form method="POST" action="http://localhost:8080/cvc/jsp/addCart.jsp">
              <table align = "center" border="2" width="50%">
              <TBODY>
    <%               
                   getProducts.next();
                   pnumber = getProducts.getInt(1); //this part works since I am seeing it displayed in a table
                   itemname = getProducts.getString(2);                         
                   price = getProducts.getFloat(3);
    %>               
                   <tr>               
                   <td><img align= "centre" border=0 src="http://localhost:8080/cvc/ASA Technologies\mp3.jpg" /></td><td><%=itemname%></td><td align="right"><%=price%></td>
                   <td align="center"><input type="checkbox" name="items" value="<%=pnumber+":"+itemname+":"+price+":"%>" </input></td> //????????????
    <!--------------------------------------JSP PART-------------------------------------------------------------------------------------------------------------------->
    <%@ page import="java.util.*, java.io.*, java.sql.*" %>
    <%
    String insert;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String sourceURL = new String("jdbc:odbc:ASA");
    Connection con = null;
    con = DriverManager.getConnection(sourceURL,"","");
    java.sql.Statement statement = con.createStatement();
    while ( request.getParameter("pnumber+itemname+price") !=null)
    insert = "insert into Cart VALUES( ' "+pnumber+" ' ," + " '"+itemname+ " ' ,"+ " ' "+price+ " ' )"; //getting the error here :cannot resolve symbols
    statement.executeUpdate(insert);
    %>

    Syntax of insert was wrong..
    while ( request.getParameter("pnumber+itemname+price") !=null)
    insert = "insert into Cart VALUES( ' "+pnumber+" ' ," + " '"+itemname+ " ' ,"+ " ' "+price+ " ' )"; //getting the error here :cannot resolve symbols
    statement.executeUpdate(insert);
    try this........
    Column1, Column2, Column3 are the field names of your table Cart....
    ..changed it to your original fieldnames...
    insert = "insert into Cart (Column1,Column2,Column3) VALUES( ' "+pnumber+" ' ," + " '"+itemname+ " ' ,"+ " ' "+price+ " ' )";

  • JSP Checkbox help! This isn't pretty

    Ok, what's the trick to creating a checkbox with a JSP? The help talks about an InputSelectGroup, but it wants to get information out of the database on the values allowed in the checkbox? This can't be. I just want Y or N!!! Can't I just put in Y or N as the select, deslect values somehow?
    This shouldn't be this hard.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Joe Silva:
    Ok, what's the trick to creating a checkbox with a JSP? The help talks about an InputSelectGroup, but it wants to get information out of the database on the values allowed in the checkbox? This can't be. I just want Y or N!!! Can't I just put in Y or N as the select, deslect values somehow?
    can't you just use an input type in your form and then get the value of the parameter?
    <INPUT TYPE=CHECKBOX NAME="gepland" CHECKED>
    if you wan't to use it within an editcurrentrecord you can use a static combobox with a Y/N value and the value you required, something like this:
    String labels[] = {"Ja","Nee"};
    String values[] = {"0","1"};
    insertp.useStaticComboBox("PubliceerInd", labels, values);
    This shouldn't be this hard.<HR></BLOCKQUOTE>
    null

  • JDeveloper's SelectMany Checkbox HELP

    Hi everyone!
    I am newbie and would like to get some tutorials for using selectmany checkbox component...
    I have made VO which contains list of values, but i readed that i cant use LOV for selectmanycheckbox, is it so ?
    In that case i must make new VO ?
    And second question how i can submit, save selectmanycheckbox values in database and later read them from database?

    Check this blog post:
    http://ahmadhashem.wordpress.com/2010/12/22/using_selectmanycheckbox_selectmanyshuttle_adf_bc_to_represent_many-to-many_relationship/
    Thanks,
    Navaneeth

  • Write Checkbox Help Required

    Hi,
    i want to display 2 check boxes on the screen. If a user checks first box then it should get value 'X' and put it in variable check1.
    i am providing sample code which is not working
    DATA: check1 TYPE c VALUE 'X',
               check2 TYPE c VALUE ' '.
    START-OF-SELECTION.
      WRITE: / check1 AS CHECKBOX, 'Checkbox 1',
                  / check2 AS CHECKBOX, 'Checkbox 2'.
    AT LINE-SELECTION.
      READ: LINE 1 FIELD VALUE check1,
                 LINE 2 FIELD VALUE check2.
    i dont get any value if i heck either of them. Please i dont want to use SELECTION_SCREEN. I want to do it on List.
    Thanks in advance to all people.
    Kind Regards,
    Muhammad Usman Malik
    ABAP Consultant
    Siemens.
    [email protected]

    Hi
    The solution from Vigneswaran S is almost right.
    The problem is that the line number counting starts from the header.
    I think that correct code for your example could also be
    READ: LINE 3 FIELD VALUE check1,
    LINE 4 FIELD VALUE check2.
    This code would be correct if you have 1 header line followed bu 1 underline followed by the 2 lines with checkboxes.
    best regards
    Thomas
    PS the solution from Rammohan Nagam is absolutly nonsense.

  • What to write query to get know if a checkbox is checked

    hello,
    I have created a checkbox with name Entertainment containing static values Movie,Play,music.
    Now i have to write query to check which value of checkbox is checked ,means play or movie or music.
    According to that i have to mail a particular link to a user.
    I have seen in how to (checkbox help) but not getting it.
    please anyone can help me out.

    HI marc,
    I think so u are not able to get my problem,i will explain it in detail.
    I have a table USERINFO which has variables of type varchar2,these variable are used as a checkbox on page name 'ENTER INFORMATION',these checkbox have some static values,every time a user checks checkbox values it get stored in database,suppose there is a checkbox name sport with static values cricket,football,now if any user select cricket this value get stored in database with username ,mailid.
    Now i have a page on this i want to give user facility to enter name of checkbox to create and its corresponding static values,and these checkbox should get display on page 'ENTER INFORMATION'and a variable of type varchar2() with checkbox name should get create in tableUSERINFO .
    now can u suggest me how can i achieve this.

  • SilverLight Header Column should be the Checkbox in dynamically created datagrid

    Hi,
    here I'm Creating the Dynamic datagrid for this DataGridTemplateColumn I'm creating using the StringBuilder and I'm assigning using append method.
    But I need the header to be the Checkbox ..How can I create the Header of the particular datagrid column as the CheckBox
    Help me out to resolve this
    Thank you in Advance.
    Mani--MSDN

    I'm a bit confused by the question.
    If it's xaml it'd look something like:
    <data:DataGridTemplateColumn Width="Auto" >
    <data:DataGridTemplateColumn.HeaderStyle>
    <Style TargetType="datap:DataGridColumnHeader">
    <Setter Property="ContentTemplate">
    <Setter.Value>
    <DataTemplate>
    <CheckBox IsThreeState="True" IsChecked="{Binding Path=DataContext.AllChecked, ElementName=LayoutRoot, Mode=TwoWay}"/>
    </DataTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    </data:DataGridTemplateColumn.HeaderStyle>
    from
    http://stackoverflow.com/questions/3335762/binding-a-checkbox-in-a-datagrid-header
    I guess you're building the xaml as a string using stringbuilder and then using xamlreader to create the datagrid.
    If that isn't what you're looking for, please explain more.
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Songs on Authorized Computer Will Not Sync with iPod

    I upgraded the hard drives in my computer that contained my iTunes library when one of my RAID disks failed. I was able to recover all of my data (all documents, photographs, songs, etc.) but I had to reinstall Windows XP and all software becuase the OS was compromized on both RAID drives (why, we don't know). (I've read the "helpful" advice from Apple that you should "deauthorize" your computer...before the hard disks crash! If I knew they were going to crash, I would have done more than "deauthorize" my computer.)
    When I installed iTunes, it looked into my disk and found my music library. Two things happened:
    1. Some albums, but not all, got split up so that a few songs were separated from the balance of the songs on an album. This is a real problem when I want to listen to a symphony and only three of the four movements show up, for example.
    2. All of the songs that I had downloaded from the iTunes store were now “unauthorized” on my computer. Although it made me upset to waste an “authorization,” I went ahead and authorized the computer (although all I had done was recover a disk that could no longer be played). Then I tried to sync my computer to my iPod. All of the iTunes downloaded music did not appear on my iPod. In fact, when I sync, iTunes says that my downloaded music is not authorized to be played on this computer and, hence, isn’t authorized on the iPod even though IT IS authorized on the computer (i.e. I can play it on iTunes from my computer just not from my iPod).
    BOTTOM LINE:
    I have been unable to figure out how to get the music that is now "authorized" (again) on my computer to show up on my iPod so that I can listen to it on the iPod.
    I also need help to reassemble my "albums" so that they include all of the songs that were orignally part of them.
    Any assistance would be appreciated.

    Well, you'll have to look at this article to see if it will help for the albums getting split up - I have no idea why that would have changed, but see if the "Compilation" checkbox helps.
    http://support.apple.com/kb/TS1468
    Those directions are for itunes 7 - in iTUnes 8, the compilation checkbox for multiple items is on the Option tab.
    And for the song not going to the ipod, try this for just one song - remove it from your itunes library (but NOT your hard drive!) and then re-add it back into itunes. It might go to the iPod then.
    Nobody has ever posted back whether this works, but you're not alone on authorized songs not syncing to your iPod. More and more folks are seeing this since itunes 7, esp with older purchased songs. Newer purchases seem to sync just fine.

  • HT203175 itunes on external harddrive will not sync with ipod , settings in itunes are correct

    I ran out of space on the harddrive so switched to a external harddrive  but  I cant sync  is this why ?
    Thank you

    Well, you'll have to look at this article to see if it will help for the albums getting split up - I have no idea why that would have changed, but see if the "Compilation" checkbox helps.
    http://support.apple.com/kb/TS1468
    Those directions are for itunes 7 - in iTUnes 8, the compilation checkbox for multiple items is on the Option tab.
    And for the song not going to the ipod, try this for just one song - remove it from your itunes library (but NOT your hard drive!) and then re-add it back into itunes. It might go to the iPod then.
    Nobody has ever posted back whether this works, but you're not alone on authorized songs not syncing to your iPod. More and more folks are seeing this since itunes 7, esp with older purchased songs. Newer purchases seem to sync just fine.

  • Transport of deletion of:  functions, layouts  within plng folders

    When making a change to a planning folder via UPSPM and you transport via(UPB_PM_TRANSPORT), added objects(functions, layouts...) get transported correctly, but when some of the existing objects get deleted from the folders the deletions don't get transported...  fyi... the transport program has the "Also Folder Hierarchy" unchecked, because we don't want to transport all the folders.
    I have two questions on this
    1) Can the deletion of functions, layouts etc be transported in SEM 3.5/BW3.1 . Will checking the hierarchy flag on checkbox help
    2) In 2004s - Integrated planning - will the user be prompted for a transport (if the system setting for transports is "SAP standard" - hence will prompt you for request everytime you change an object) or do they have to use a program similar to transaction UPSPM .
    thanks
    Arvind

    Hello Arvind,
    1) yes, abolutely. You have to add the objects to the transport request FIRST,  then delete the function, layout or other BPS object. Finally release the transport. At import into the target system, the objects will be deleted there as well.
    See also SAP notes <a href="http://service.sap.com/sap/support/notes/545646">545646</a> and <a href="http://service.sap.com/sap/support/notes/545799">545799</a>.
    2) There's no prompt for transport requests. Once you are done with configuration, go to the DW workbench (RSA1) and collect the objects for your transport.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Need an Event Reference

    Actionscript 3 - now that it uses event listeners, you need to know which event objects are available and which constants are available within those objects.
    I have looked through the (incredibly dense) online help for Flash CS4 and cannot find a comprehensive list of event objects and constants.
    Can anyone point me to a reference so I can find the events I need?
    Thank you!!

    Looking for Help on ComboBox will take you here perhaps:
    http://help.adobe.com/en_US/AS3LCR/Flash_10.0/fl/controls/ComboBox.html
    and as kglad says, the Change event is listed in the Events section. If you go to the CheckBox help:
    http://help.adobe.com/en_US/AS3LCR/Flash_10.0/fl/controls/CheckBox.html
    you won't see the information on Change. Look about a third of the way down though, and you'll see a link "Show inherited events". Click on that, and all of the events that the items in the CheckBox have access to then show up, including the one for Change.

  • After upgrade to 10.10, can't send email (SMTP cert. error).  On previous version running on another machine, can still send find.  This new version is missing the "Usual Ports" checkbox option.  Can someone please help?

    I just upgraded to 10.10.  On the mail program, one of my accounts is having an issue sending email.  I am getting the following error message:
    The certificate for this server is invalid.
    Select a different outgoing mail server from the list below or click Try Later to leave the message in your Outbox until it can be sent.
    But on another machine running Mavericks, I can still continue to send email.  The same is try from my iPhone 5S.
    On that machine running Mavericks the SMTP is configured as SSL and for "Usual Ports" (25, 465, 587) but THIS OPTION IS MISSING ON THE NEW VERSION.  On the new version I have tried configuring the port to 25 and then 465 and 587 with no success.  I have used the Network Utility to see if my provider is blocking me -- it is not.  I have no third-party software on this machine (anti virus).  I can receive email fine.  On the new Yosemitie Mail there are new checkbox options of Automatically check my settings and Allow unsecure connections.  I tried to uncheck SSL for SMTP but then it says it cannot send securely my passowrd and i need to check the option "Allow to send unsecurely".  I did that but the same error message keeps appearing.  So I have tried nearly everything I have been able to, all to no avail.  Please can somebody help?

    Thanks for your reply.  Yes, it is a POP account.  Incoming mail is fine.  My port for incoming is also 110.  But the outgoing port should be 587 (or 24, 465 and 587 as on Mavericks' "Usual Ports" option).  I am using the same configuration across three different devices and only the machine running Yosemite is having issues.  I notice in the new version of Mail there is no longer the "Usual Ports" option.  I am not sure this is the culprit or not.  But the fact is no matter how I configure it, it will not send mail for these particular servers.  I have multiple clients and only one is affected, meaning I can send email from other email addresses (different hosting contracts) on Yosemite but on this one particular one I cannot. 

  • Problem with checkboxes in IR report mainly for update process please help

    Hello,
    Can anyone please help me out with this issue.
    I have an interactive report with 3 checkbox item for a single column named status. Based on the value of the column status the check box should be checked. For example:
    DECODE(status,'DEV',1,0) as DEV,
    DECODE(status,'RVW',1,0) as RVW,
    DECODE(status,'PRD',1,0) as PROD,
    So for this I have used the apex_item.checkbox item. Below is my report query
    SELECT APEX_ITEM.HIDDEN(30,0,'','f30_' || ROWNUM)
         || APEX_ITEM.HIDDEN(31,0,'','f31_' || ROWNUM)
            || APEX_ITEM.HIDDEN(01,ROWNUM,'','f01_' || ROWNUM)
         || APEX_ITEM.HIDDEN(04,CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN,'','f04_' || ROWNUM)
            || APEX_ITEM.HIDDEN(05,CHF_STATUS,'','f05_' || ROWNUM)
         || APEX_ITEM.HIDDEN(06,CHF_STATUS,'','f06_' || ROWNUM)
            || APEX_ITEM.HIDDEN(08,CHF_STATUS,'','f08_' || ROWNUM)
         || APEX_ITEM.HIDDEN(09,CHF_STATUS,'','f09_' || ROWNUM)
            || APEX_ITEM.HIDDEN(11,CHF_STATUS,'','f11_' || ROWNUM)
         || APEX_ITEM.HIDDEN(12,CHF_STATUS,'','f12_' || ROWNUM)
            || APEX_ITEM.CHECKBOX (32,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f30'');"'
         ,DECODE (0,1, ROWNUM),':','f32_' || ROWNUM) DELETE
            ,CHF_COLUMN
            ,CHF_STATUS
            ,APEX_ITEM.CHECKBOX (07,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f05'');"',DECODE (CHF_STATUS,'DEV',ROWNUM),':','f07_' || ROWNUM) 
              DEV_EDIT
         ,APEX_ITEM.CHECKBOX (10,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f08'');"',DECODE (CHF_STATUS,'RVW',ROWNUM),':','f10_' || ROWNUM) 
              RVW_EDIT
            ,APEX_ITEM.CHECKBOX (13,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f11'');"',DECODE (CHF_STATUS,'PRD',ROWNUM),':','f13_' || ROWNUM) 
              PRD_EDIT
            FROM CHF_COLUMN WHERE
    CHF_DATASTORE  = 'DOMAIN_DEV' AND
    CHF_SCHEMA     = 'SCHEMA_DEV' AND
    CHF_TABLE      = 'EMPLOYEEE'
    ORDER BY 1;  And I have a button for the update process so that the users can check the checkboxes option for the status column either 'DEV', 'RVW', 'PRD'. The status of the column can be in either of these states or can be null.
    I have a update process, its having some problem - I don't understand whats causing the problem. Below is the error message which I encountered when trying to update.
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    My Update process.
    DECLARE
    l_cnt BINARY_INTEGER := 0;
    l_stepid number := 10;
    l_date DATE := SYSDATE;
    BEGIN
    FOR i IN 1 .. apex_application.g_f01.COUNT
    LOOP
    IF APEX_APPLICATION.G_f05 (i)  = 1 THEN
          UPDATE  CHF_COLUMN
               SET      CHF_STATUS = 'DEV'
             WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
              l_cnt := l_cnt + SQL%ROWCOUNT;
    apex_application.g_print_success_message := apex_application.g_print_success_message ||
    'Successfully updated'||l_cnt ||'<br><br>';
    END IF;
    IF APEX_APPLICATION.G_f08 (i)  = 1 THEN
          UPDATE  CHF_COLUMN
               SET      CHF_STATUS = 'RVW'
             WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
              l_cnt := l_cnt + SQL%ROWCOUNT;
    apex_application.g_print_success_message := apex_application.g_print_success_message ||
    'Successfully updated'||l_cnt ||'<br><br>';
    END IF;
    IF APEX_APPLICATION.G_f11 (i)  = 1 THEN
          UPDATE  CHF_COLUMN
               SET      CHF_STATUS = 'PRD'
             WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
              l_cnt := l_cnt + SQL%ROWCOUNT;
    apex_application.g_print_success_message := apex_application.g_print_success_message ||
    'Successfully updated'||l_cnt ||'<br><br>';
    END IF;
    END LOOP;
    COMMIT;
    END;If you can please have a look at the app, you can get a better understanding of my problem.
    Workspace : orton_workspace
    username : [email protected]
    password : sanadear
    Application No: 15089 SAMPLE_CHECKBOX_APP
    Thanks,
    Orton
    Edited by: orton607 on Aug 4, 2010 9:28 AM

    I could be wrong but maybe change the hidden items to be like:
    APEX_ITEM.HIDDEN(05,DECODE(CHF_STATUS,'DEV',1,0),'','f05_' || ROWNUM)
    APEX_ITEM.HIDDEN(08,DECODE(CHF_STATUS,'RVW',1,0),,'','f08_' || ROWNUM)
    APEX_ITEM.HIDDEN(11,DECODE(CHF_STATUS,'PRD',1,0),,'','f11_' || ROWNUM)so that the values are 0/1?
    Also, you have
    DECODE (CHF_STATUS,'DEV',ROWNUM)instead of
    DECODE (CHF_STATUS,'DEV',0,1)in the checkboxes, as I would expect.
    I'm also not sure why you need to duplicate the checkboxes (f07,f10,f13) as hidden items (f05, f08, f11) if they are both 0/1 values.

  • Checkbox in tabular form - help needed

    I'm trying to build a tabular form, with a checkbox for a field that can have value 'Y' or 'N'. Adding the checkbox is no problem, with the htmldb_item.checkbox API.
    However, processing it is.
    On this forum I found a way to process the checkboxes, by looping through all the records (with the help of htmldb_item.hidden in which the id is stored) and reading the value from the checkboxes and updating the column if the checkbox is checked. (see Re: Report with updateable checkbox)
    however, as soon as I add a htmldb_item.hidden item, I receive the following error when I submit the tabular form to the Multi Row Update process:
    "Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. "
    My query:
    Select id
    ,htmldb_item.hidden(1,id)
    ,htmldb_item.checkbox(2,id, decode(field, 'Y', 'CHECKED', NULL))
    from table
    What am I doing wrong?
    is there a better way to process a tabular form with checkboxes?
    Or should I process all the rows manually by updating every record even if it hasn't changed (with a loop through all the records)?

    Tonnie, did you ever get an answer to this question?
    Michael Cunningham

  • Problem with a checkbox -pls help

    I have a tabular form with checkbox for all rows and I want to update all the rows where checkbox is checked .
    select
    APEX_ITEM.CHECKBOX(1,ID) as " ",
    "ID",
    "ID" ID_DISPLAY,
    other records ...
    from
    below the code
    declare
    vROW number;
    begin
    if :REQUEST = 'SUBMIT' then
    FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP
    vROW := TO_NUMBER(APEX_APPLICATION.G_F01(i));
    update table ... where id = vROW
    END LOOP;
    end if;
    end;
    when testing I observed that vROW has ID value even I did not tick any checkbox .
    How can I check if checkbox is ticked in this case ???
    thanks
    solo

    "In order to do that, you don't need to use a checkbox. Building a tabular form on your table, using APEX wizard, will give you an updatable form, in which you can update any of the displaying cells, and submitting the form will update them automatically. The standard tabular form uses the checkboxes only for deleting records."
    I'm affraid it is not possible. I have a complex view and I need a PL/SQL code to update the modified rows in another table ..
    "If you want to construct your tabular form yourself, and use checkboxes as part of a self-developed update process, you should use the "SQL Query (updatable report)" for your report type. This type of report allows you to use a built-in component called "Row Selector" – in the tasks box of the report attribute tab. This is a built-in checkbox component, which the report generator can use with your other report component, and synchronize all of them with the APEX_APPLICATION.G_F arrays, in order to avoid the problem Scott pointed out to you. "
    It's incredible .
    When I do Page->Tabular Form->Query ( update only ) the checkbox does not appear .
    IF I do Page->Tabular Form->Query ( update/insert/delete ) the checkbox the checkbox appear .
    ... I spend a lot of time becuase of this ...... ( I don't want to say )
    Now , my tabular form has 67 columns .. how can I manage all this columns values ( if remember well ..limit is 50 ) . Any , tricks ???
    what's wrong with this code ?
    declare
    v number;
    pk varchar2(50);
    c1 varchar2(50);
    c2 varchar2(50);
    c9 varchar2(50);
    begin
    FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP
    v := to_number(APEX_APPLICATION.G_F01(i));
    pk := APEX_APPLICATION.G_F02(v);
    c1 := APEX_APPLICATION.G_F03(v);
    c9 := APEX_APPLICATION.G_F04(v);
    insert into test_1 values ( pk );
    insert into test_1 values ( c1 );
    insert into test_1 values ( c2 );
    insert into test_1 values ( c9 );
    END LOOP;
    end;
    I expected to have value of field 2 , field 3 , filed 4 , of the checked row .. but it's working .
    PS: I want to thank everybody who help me until now !
    solo

Maybe you are looking for

  • Apple homepage doesn't work on my safari

    Hey Guys. So if I go to www.apple.com, all the places where it should say "store, mac, ipod,iphone, ipad, itunes, and the artwork for whatever is on apple's homepage is gone or not showing. The links will still work but the only two things I can see

  • How can I delete a floorplan in Cisco Prime Infrastructure

    I built an 8 story building.  Started from the top and worked my way down.  Uploaded floor plans, added APs to them, etc. When I got to the first floor, I loaded a floor plan, but it did not fully load somehow.  I cannot click on the first floor and

  • Can't use CDS in win98?

    I have benn success to use java -Xshare:dump to renew classes.jsa, but when i use -Xshare:on to run my application, error info print as below: ======================================== An error has occured while processing the shared archive file. Una

  • Power failure during installation

    This isn't a question, but a cheer. While installing Yosemite on my Mac Mini, the power went out at my house. Those of us old enough can remember the warnings that used to be attached to system installs---DO NOT TURN OFF YOUR COMPUTER DURING INSTALLA

  • Confused about the role of ejbc in Weblogic 7

    Howdy All Here is my understanding of the role of ejbc in Weblogic 7: * Let's assume I have a JAR containing an EJB (let's say a stateless session bean). Let's call this the no-ejbc-JAR. 1. I run the no-ejbc-JAR through ejbc to create the container-e