Insert CheckBox

hi:
i need to insert the data based on the selection of rows here i have used a check box to select the row
i am able to insert the data but not able to select the user defeined selection it defaultly takes the order on which it is appearing also even if i try to insert the 2nd one leaving 1st it takes the 1st data
how to validate this and give condition to insert the row based on user selection this is the queri i am using now
QUERY TO DISPALY THE ITEM:
SELECT
HTMLDB_ITEM.CHECKBOX(1,ROWNUM) "N",
HTMLDB_ITEM.text(2,pobj.name,20,20) "Objectname"
FROM
PROJECTS PRO,
PROJECT_OBJECTS POBJ,
TEST1_OBJ TST
WHERE
PRO.ID = POBJ.PRO_ID AND
TST."Project Name" = PRO.PROJECT_NAME AND
TST."Object Name" = POBJ.NAME AND
PRO.ID = :P6_PROJECTS
QUERY TO INSERT
DECLARE
v_Row BINARY_INTEGER;
vFound BOOLEAN;
BEGIN
for i in 1..htmldb_application.g_f01.count
loop
v_row := htmldb_application.g_f01(i);
INSERT INTO test1
ID,
PROJECTS,
OBJECTS
VALUES
htmldb_application.g_f01(v_row),
:p6_projects,
htmldb_application.g_f02(v_row) );
END LOOP;
END;
please suggest
Thanks
sudhir

Nevermind. I found it.
I needed to add a new row for every value selected in the checkbox. Unfortunately, I created a new RowKey BEFORE my for loop, not during each loop.
Therefore, it was trying to update the same row during each loop, rather than creating a NEW row.

Similar Messages

  • How do I insert checkboxes into a Pages document?

    I have been trying to insert checkboxes into a document I created using Pages version 2.4.2 on my iPad Air. I would like an actual checkbox (not just the image of an empty box) so that a checkmark will appear once it has been selected. I am able to do this with the "Numbers" app, but I cannot copy and paste those check boxes to a Pages document.
    I want to use this document as a form I can easily access and print with checkboxes. I have only found a way to insert bullets, but not checkboxes that you can click on with your finger and a check mark appears in the checkbox.
    Thank you!

    I think you are misunderstanding "Insert text at cursor". The ANNOTATIONS are not text editing tools, rather they are tools for people making comments to "mark up" documents. You use "Insert text at cursor" to tell the document author you want HIM OR HER to insert text at that point; the author reviews all the comments and changes the original.
    You need to use one of the OTHER methods mentioned to actually add text. Probably simplest is the typewriter tool, which in Acrobat X is under TOOLS > CONTENT and is called ADD OR EDIT TEXT BOX.

  • Exception -arrayindexoutobound  while inserting checkbox in a jtable

    hello,
    i am using oracle as backend. As you might be knowing that oracle doesn't store boolean datatype.
    so now please tell me how to insert checkbox in a jtable.
    please do help me if you can.

    HELLO camickr
    ONE INTERESTING THING IS HAPPENING->
    i had created 2 table in my form 1) jtable1 2) jtable2
    i had declared the listener on JTABLE1 as->
    jTable1.addMouseListener(new Mousehandler())
    I HAD WRITTEN THE METHOD AS->
    public class Mousehandler extends MouseAdapter
    public void mouseClicked(MouseEvent me)
    //NOTE ->HERE IS THE CODE TO ADD CHECKBOX ON A COLUMN FOR JTABLE1
    TableColumn sport= jTable1.getColumnModel().getColumn(1);
    // str=jTable1.getCellEditor();
    JCheckBox jCheckBox1 = new JCheckBox();
    sport.setCellEditor(new DefaultCellEditor(jCheckBox1));
    //NOTE-> HERE IS THE CODE TO ADD JCHECKBOX ON A JTABLE2
    TableColumn sportcol = jTable2.getColumnModel().getColumn(1);
    JCheckBox jCheckBox2 = new JCheckBox();
    sportcol.setCellEditor(new DefaultCellEditor(jCheckBox2));
    now when i click on JTABLE1 IT IS THROWING EXCEPTION BUT WHEN FUNCTIONING WITH jTable2 WHEN I CLICK ON THE COLUMN IN WHICH I HAD INSERTED CHECKBOX IT IS FUNCTIONING PROPERLY WITHOUT ANY ERROR.
    NOTE-> I HAD TO CLICK ONCE ON JTABLE1 THEN ONLY JTABLE2
    FUNCTION BECAUSE I HAD DECLARED LISTENER FOR JTABLE1 ONLY.(JTABLE1 IS THROWING AN EXCEPTION ARRAYINDEXOUTOFBOUND when i click on the column in which i had inserted jcheckbox im my jtable1)
    PLEASE DO HELP ME IF YOU CAN.
    THANK YOU.

  • How to insert checkbox at a particular  cell  in jtable

    hello,
    I am a user of jdeveloper using jclient/swing .
    question:
    i am using jtable. i want that whenever i click on a specified cell then text at that particular cell get clear and a checkbox inserted in that cell . whenever i click on that checkbox i.e check the checkbox,
    again a text is inserted in that cell.
    thank you

    Did you ever get this to work? If I bind a JCheckbox to my attribute and add the checkbox to my JClient panel, the attribute value is properly bound to the checkbox with everything working correctly. Adding the checkbox as the TableCellEditor for the column doesn't work.
    Also, the link to using a Combobox as a table cell editor works, but the link doesn't tell where to donwload the sample code from. Doesn't anyone know the link?

  • Passing/Inserting Checkboxes

    Hi everyone.
    I have a very simple form with 36 checkboxes, one of which is initially checked. The other 35 are unchecked by default. I have created similar forms many, many times without an issue. For some reason, every time I submit the form, I get a 500 Internal Server Error. Here's what the code looks like for the checked checkbox, an unchecked checkbox, the action, and the insert:
    Initially checked:
    <input name="Email" type="checkbox" id="Email" value="-1" checked="checked" />
    Unchecked by default:
    <input name="Art" type="checkbox" id="Art" value="-1" />
    Action code:
    <cfif not isdefined("Form.Email")>
       <cfset Form.Email = "0">
    </cfif>
    <cfif not isdefined("Form.Art")>
       <cfset Form.Art = "0">
    </cfif>
    Insert code:
    (Email,Art)
    VALUES ('#Form.Email#','#Form.Art#')
    I've tried everything, and like I said, I've built forms like this before without an issue. Any help would be GREATLY appreciated.

    Thanks, Dan. It was actually something so simple as not having Friendly HTTP Errors Messages turned off. I had a field named incorrectly, and that took care of the problem.
    Thanks again.

  • Inserting checkbox into a APEX select list

    After aloooottt of time spend in google and script foruns, i found a way to transform the simple APEX select list into a multiselec combobox with checkbox inside. Its working prety cool, and its not so hard to implement.
    I´m sry if someone alread post it before, but, due to the time spend it on it, i know that is a bit hard to found.
    If someone is looking for that too, i can share all my work into this. I will be glad to help.
    just send me a email [email protected] or ask here on forum.
    Tnks to all who help me on this "quest" lol.

    Good to hear. If you have an account on apex.oracle.com you can put your demo there for everybody to see. If not, just create an account.

  • Insert checkbox with multiple values

    I have created a form I use at work where there are a series of boxes assigned to tasks.  I have a tablet pc and have the need to by default, have these boxes blank.  Upon selecting the box once, a visible check mark appears.  Click a second time in the same box and that check turns to an X.  Click a 3rd time and that X returns to a blank box.
    To begin, I converted an xfld form (IBM Lotus form) to Adobe PDF in Pro 9.  I used the form wizard and almost perfectly it formed in all my boxes.  I can make them all check boxes...no problem.  Getting them to turn to X's after I click twice.....big problem.
    Any thoughts guys/gals?
    Gipper

    Can you share the form with me so i can see what is happening? You can send it to [email protected] Please include an explanation of the problem in the email. Also can you give me details on the type of tablet you are using and which software and version number is opening the PDF?
    Paul

  • Multiple Checkbox Insert Handling

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

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

  • How to make a checkbox circle transparent

    I would like to use acrobat to insert checkbox fields on a heathcare form such as the one below.  I would like the checkbox option to be a circle that would circle the number but be transparent to show the number below it.  This may not be possible but I thought I would see if anyone has an idea.  Thanks.

    AcroForms are the forms produced directly in Acrobat with the tools there. You can also get to Designer from Acrobat and create forms there. Once you go to Designer, you can not return to Acrobat for any editing since the Designer PDF is actually a XML package.
    It sounds like you may have used the same selections as I did in AcroForms, though I think you used a check box and not a radio box. I used radio boxes that are a circle by default. The check boxes are squares by default. The basic difference is that the check boxes are either independent (with different names) or identical (with identical names). The radio boxes are either independent (with different names) or only one can be selected at a time (with identical names). Thus, if you name a group of radio boxes with the same name, but different responses, selecting any one will deselect all others with the same name -- probably what you want -- and the response or the name will be the one you have selected. You can change to a square if you want. In AA9 and such, the form will come up with a choice for the user to highlight all fields, in which case there will be a transparent color (typically light blue) for all fields. You can still see through it. When you select a radio button, the number under it will be hidden by the selected icon -- probably OK to clarify a selection. You could always move it to one side if you want, but I think that is the limit of what you can do. The appearance would be a lot like a scan form you fill in with a #2 pencil (like SATs or GREs).
    I mentioned Designer since many folks get there without realizing it. Looks like you did not make it there, but you might want to explore that option on a copy of your form. Designer also has a separate forum named LiveCycle. The data files produced by AcroForms are typically FDF or XFDF (try exporting your data and look at the file differences). HTML is an option, but not as easy to use. Designer data files are XML files. The FDF, XFDF, and XML files can be imported to the form for printing/viewing/data management if you desire. There is no need to send the entire form, only the data. If you have the whole form sent, then you have to activate Reader Rights for users with Reader and come under the 500 use limit of the license (looks like that might be a problem for you, and the price to get around the limit is not something you really want to ask about unless you are flowing in cash).
    Many folks try to use e-mail for form submission. This is prone to problems of having an e-mail package recognized or the computer setup for MAPI, depending on the version of Acrobat and the OS. It is just a potential problem that can be avoided by a web script submission. Your IT folks should be able to help create a short web script to accept the data file and save it for you. With the FDF toolkit, you can also manipulate the FDF data file to extract what you need to a database or elsewhere. There are a lot of options, but you will likely come upon a few more form issues like the one you asked about that will require a bit of a rethink of how you create the form.
    Hopefully that answers your questions to some extent (even if not directly asked).

  • How to insert jcheckbox in jtable

    hello
    i am user of oracle9i jdeveloper using jclient/swing .
    question:
    how to insert jcheckbox at a particular cell in jtable.
    please reply to me if anyone amongst you know the solution.
    thank you

    Please continue the discussion here: how to insert checkbox at a particular  cell  in jtable
    Correct me if this is not about the same subject.

  • How do I se a checkbox to change the value of another cell?

    I am trying to create a spreadsheet for a job quote sheet. In column A I am inserting checkboxes, in column W i have the price of that particular option that coincides with that product. What I am trying to accomplish is if I select the checkbox for an option, the cost (from column W) will jump in Column Z. Then Column Z will be totaled up at bottom, giving my client a total of everything selected. Can this be done and if it can HOW?!
    Thanks in Advance!!

    James,
    Another approach that may work for you would be to have a column for quantity, rather than a checkbox.  If the quantity is greater than zero, then enter the extended price and total it at the bottom of the order list.
    In that case, you would write in Z:
    =A*W
    With no quantity, the result would be zero in Z.
    Jerry

  • FLEX-NO DYNAMIC INSERTS:

    Friends,
    While executing the create_sit api with 4 segments this error is coming
    'FLEX-NO DYNAMIC INSERTS:' Allow Dynamic Insert Checkbox also checked only... any clarifications?
    Hr_Sit_Api.create_sit ( p_validate => FALSE
    ,p_person_id => v_person_id
    ,p_business_group_id => 82
    ,p_id_flex_num => v_id_flex_num
    ,p_effective_date => TRUNC(SYSDATE)
    ,p_date_from => TRUNC(SYSDATE)
    ,p_segment1 => P_CASH_ADVANCE
    ,p_segment2     => P_SALARY_ADVANCE
              ,p_segment3     => P_CASH_IMPREST
              ,p_segment4     => P_TOTAL_AMOUNT
    ,p_analysis_criteria_id => v_analysis_criteria_id
    ,p_person_analysis_id => v_person_analysis_id
    ,p_pea_object_version_number => p_pea_object_version_number
    Regards
    Mano

    Post in e-Business Suite Forum
    http://forums.oracle.com/forums/category.jspa?categoryID=3

  • Problems setting 'allow HTML snippet insertion' in Contribute 4

    I am trying to set the administrator option to allow insertion of HTML snippets (as described here). But the dialog box to change the settings does not include an "Allow HTML Snippet Insertion" checkbox.
    Any advice? Is this to do with the version of Contribute I'm using? Or is there some other administrator setting I need to set first?

    Hi ravster.
    Thanks for the suggestions. I had read the Arch NFS HowTo and did as you suggested get rcpinfo for the server machine. The Libranet NFS server is configured rather different since the NFS daemons are built into the default kernel.
    Since I needed to complete the transfer immediately, I gave up for now trying to set up NFS and used netcat (!) instead to transfer the files from the Libranet laptop to the Arch workstation. The laptop will be converted to Arch Linux soon so I think I'll be able to clear things up soon.  I haven't had any problems setting up NFS with homogeneous (i.e., all Arch or all Libranet) computer combinations.
    Thanks again.
    Win

  • DBSequence type no longer available for entity attributes?

    I'm puzzled by this, if not scared.
    Every version of JDev till 11.1.1.2.0 has had out-of-the-box support for DBSequence as an entity attribute type.
    When you set it for your PK, JDev disables a few options, automatically sets "refresh after insert" (and maybe other stuff) and handles everything about it.
    Now, I see that in new applications created with 11.1.1.2.0 that option is no longer present...!
    It's available only for apps migrated from previous versions.
    If you create a new application, you no longer have DBSequence in the Type dropdown.
    Here's what the documentation (Oct 2009 DevGuide, par 4.10.10) says:
    In the Edit Attribute dialog, you can set the value of the Type field to the built-in data
    type named DBSequence and the primary key will be assigned automatically by the
    database sequence. Setting this data type automatically selects the refresh after Insert
    checkbox.Where on Earth is this built-in data type named DBSequence in Jdev 11.1.1.2.0?

    Thanks Paul.
    It seems JDev broke my application.
    It only shows the native Java types in the dropdown, and does not show any of the Oracle types including Number, DBSequence and all the rest.
    (Note that all the connections I work with use the Oracle type map, of course - it's automatic.)
    I tried a new quick test with a new application and again, no Oracle types, just the java types.
    Then closed and reopened my applications as well as JDev and I can now see all the types in my quick test.
    However, my original application still "sees" no Oracle types, it's stuck with the Java types.
    I'll try to see if I can repair it in some way... I'll eventually put it down as one of the gazillion one-time bugs that JDev shows daily.

  • Check boxes in ALV Report how to do ?

    ALV report how to keep check box  in the first field?
    thanks in advance..
    chalapathi

    hi,
        Check this small code..  U will get clear idea.
    Report.
    data : begin of it occurs 0,
            MATNR TYPE MATNR,
            c1 ,                  " CHECK BOX FIELDS
            c2,
            end of it.
    type-pools : slis.
    data itlog type slis_t_fieldcat_alv.
    data walog type slis_fieldcat_alv.
    SELECT MATNR
    FROM MARA
    INTO TABLE IT .
    ****INSERTING  CHECKBOX  IN CHANGE MODE
    WALOG-FIELDNAME = 'C1'.
    WALOG-TABNAME = 'IT'.
    WALOG-SELTEXT_M = 'CHECKBOX1'.
    walog-CHECKBOX = 'X'.
    WALOG-EDIT = 'X'.
    APPEND WALOG TO ITLOG.
    ****INSERTING  CHECKBOX  IN DISPLAY MODE
    WALOG-FIELDNAME = 'C2'.
    WALOG-TABNAME = 'IT'.
    WALOG-SELTEXT_M = 'CHECKBOX2'.
    walog-CHECKBOX = 'X'.
    WALOG-EDIT = ''.
    APPEND WALOG TO ITLOG.
    WALOG-FIELDNAME = 'MATNR'.
    WALOG-TABNAME = 'IT'.
    WALOG-SELTEXT_M = 'MATERIAL'.
    walog-CHECKBOX = ''.
    WALOG-EDIT = 'X'.
    WALOG-NO_ZERO = 'X'.              " LEFT ZEROS WILL CUT
    APPEND WALOG TO ITLOG.
    *WALOG-FIELDNAME = 'ICON'.
    *WALOG-TABNAME = 'IT'.
    *WALOG-SELTEXT_M = 'ICON'.               "IN FIELDCATALOG ADDING THAT ICON
    *walog-ICON = 'X'.
    *walog-just = 'R'.                   " RIGHT JUSTIFICATION OR LEFT
    **WALOG-EDIT = ''.
    *APPEND WALOG TO ITLOG.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       I_CALLBACK_PROGRAM                = 'ZALV_SIMPLE1'
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
       IT_FIELDCAT                       =   ITLOG
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      I_HTML_HEIGHT_TOP                 =
      I_HTML_HEIGHT_END                 =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
      TABLES
        T_OUTTAB                          =  IT
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Thanks and Regards,
    surya

Maybe you are looking for

  • Can't get past blue screen on Windows partition

    I have been using bootcamp for a little over a month now. It had been working great. But suddenly today, Windows will not boot up- It stays on a blue screen, and gives me options to restart (which does nothing) and Advanced Options (which none of the

  • Windows 7 Professional (64bit) installation using bootcamp

    I've read a 100 different posts on this forum regarding slightly different issues on this problem, but failed to solve it myself. I'm installing a copy of windows 7 professional (64-bit) through bootcamp on my iMac (bought late 2009) running OSX 10.6

  • How to install solaris 8 in 30 GB ata/100 drive ?

    Solaris installation fails saying that there is no suitable hard disk or partition available in my system. If I run format utility I can see the hard drive but Solaris does not recognize it's partitions and requires me to enter nr of cyls, heads etc.

  • Transfer pictures from macbook pro to iPad mini

    How can I transfer pictures from Macbook Pro to Ipad mini

  • How to encode 16bpp grey images in Jpeg2000?

    Hi all. First excuse me for my bad English. I have a problem encoding JPEG2000 images. I have an image in a short array and I want to encode and seve it in a jpeg2000 file. I do the next: (iw) is the JPEG2000 image writer. SampleModel model = RasterF