Unable to delete a row using checkbox on report region

hmm..this used to work, and unfortunatly this is code unfamiliar to me. We have a report region containing a list of records. The last column is a row selector, and is a check box. Several rows may be checked and then a delete button pressed.
we receive the following error: ORA-20001: Error in multi row delete operation: row= 394878, ORA-01403: no data found,
multi row operation failed
however, the key that it references 394878 is not that of the record I had checked, rather it is the first record in the report.
so...not able to delete, and it is trying to delete the wrong record. Any ideas. thanks

Check the table name in your MRD process and make sure it's the right one. Also ensure the "checked" value of the checkbox is correct (i.e.: is the checkbox based on the correct key column from the report?).

Similar Messages

  • Urgent : Deleting a row in a sql report region

    Hi
    I have an SQL report, i must have an icon "delete row", when clicing this icon the row must be deleted from the report,
    what I have do but not sure of this :
    in my query I am containing some html in witch I have an icon, when the user click on this icon, I have to delete the currect row of the record
    How can I reference the currect row, and how can I clear the currect row of a report ?
    thank you

    Off course not.
    You will refer only those primary key column or composite column in your where clause. So, no matter if your table has 15 or 90 columns. All, you need to refer only those key columns in your where clause of your main query and also use them in the sub-query which is connected with IN clause.
    But, i think another approach is showing the use of exists operator. You can check that, too.
    And, in the last post Karthik has shown you the analytic approach which i prefer.
    I gave you my solution without modifying your existing sql. So, that you can understand it without a lot of hard-work and reading. ;)
    I would also request you to check the performance issue on all the solutions which have provided to you by all of us. And, you can choose the best from it after going through the explain plan details.
    So, final ball is in your court. ;)
    Take some breath - and make your wise judgment on it. :)
    Best Of Luck.
    Regards.
    Satyaki De.

  • Unable to delete a row in table control

    Hi,
    I'm unable to delete a row in table control.
    I have defined a selection column for my table control but it is not getting value 'X' when i'm selecting a row for deletion.
    Also, when I press enter, some of the columns in table control are getting initialized. I'm passing these values to the internal table along with other columns.
    Please help.
    Regards,
    Manasee
    Message was edited by: Manasee Chandorkar

    hi,
    kindly chk this.
    PROCESS BEFORE OUTPUT.
    MODULE status_9010.
    LOOP WITH CONTROL tab_control.
    MODULE move_data_to_table.
    ENDLOOP.
    PROCESS AFTER INPUT.
    LOOP WITH CONTROL tab_control.
    MODULE move_data_from_table.
    ENDLOOP.
    *& Module move_data_to_table OUTPUT
    This is to move the data from the internal table to the table control
    MODULE move_data_to_table OUTPUT.
    This is to move the data from the internal table to the table control
    zmpets_mode-modecode,zmpets_range-rangeid,zmpets_servfacto-factor are column name of table control
    READ TABLE int_factor INDEX tab_control-current_line.
    IF sy-subrc = 0.
    zmpets_mode-modecode = int_factor-modecode.
    zmpets_range-rangeid = int_factor-rangeid.
    zmpets_servfacto-factor = int_factor-factor.
    ENDIF.
    ENDMODULE. " move_data_to_table OUTPUT
    *& Module move_data_from_table INPUT
    Date is moved from the table control to the Internal Table
    MODULE move_data_from_table INPUT.
    To move the data from the table control to internal table 'INT_FACTOR'.
    int_factor-modecode = zmpets_mode-modecode.
    int_factor-rangeid = zmpets_range-rangeid.
    int_factor-factor = zmpets_servfacto-factor.
    int_factor-chk = line.
    *here if the data is there, it will modify
    MODIFY int_factor INDEX tab_control-current_line.
    IF sy-subrc NE 0. "data not exixting in table control . ie new data, then append it
    APPEND int_factor.
    CLEAR int_factor.
    ENDIF.
    ENDMODULE. " move_data_from_table INPUT
    *delete a line from table control
    MODULE user_command_9010 INPUT.
      CASE sy-ucomm.
    When an entry is deleted, and the entry is removed from the table
    control.
        WHEN 'DELETE'.
          PERFORM f_del_frm_tab_cntrl.
      ENDCASE.
    ENDMODULE.
    FORM f_del_frm_tab_cntrl .
      LOOP AT int_factor WHERE chk = 'X'.
        DELETE int_factor WHERE chk = 'X' .
        CONTINUE.
      ENDLOOP.
      CLEAR int_factor.
    ENDFORM.
    for any clarifiaction pls mail me.
    pls reward points, if this helped u.
    regards,
    anversha.
    [email protected]
    Message was edited by: Anversha s

  • DataScroller problem while delete the recoreds using checkbox

    Hi all
    I am new for jsf. I am using datascroller working with Tomahawk.My requirement like .
    I need to display 15 records in a page.And every row having checkbox which is used for delete the record.
    These are all working fine.Problem is if i delete all records in last page .The page is not going to previous page.
    The following is my xhtml code
    <h:panelGrid columns="2" style="width: 100% ">
              <h:outputText value="" style="width: 100%"/>
                   <t:dataScroller id="scroll_1"
              for="detailData"
                   styleClass="scroller"
                   style="align=right"
                   paginator="true"
                   paginatorActiveColumnStyle="font-weight:bold;"
                   displayedRowsCountVar="displayedRowsCount"
                   fastStep="10"
                   pageCountVar="pageCount"
                   pageIndexVar="pageIndex"
                   immediate="true"
                   paginatorMaxPages="9">
         </t:dataScroller>     
    </h:panelGrid>

    For Tomahawk specific questions, I would recommend posting to the myfaces user mailing list.
    Edited by: rlubke on Aug 7, 2008 1:19 PM

  • How I can delete a row using a simple query?

    SZSLIFE_SPRIDEN_PIDM     SZSLIFE_SGBSTDN_TERM_CODE_EFF     SZSLIFE_SLRRASG_BLDG_CODE     SZSLIFE_SLRRASG_ROOM_NUMBER     SZSLIFE_SLRRASG_BEGIN_DATE     SZSLIFE_SLRRASG_END_DATE
    48547     199890                    
    48547     199990                    
    48547     199990     BLU     205     09/03/1999     12/23/1999
    48547     200010                    
    48547     200010     BLU     205     01/25/2000     05/25/2000
    48547     200090                    
    48547     200090     MOR     406     09/03/2000     12/23/2000
    48547     200110                    
    48547     200110     MOR     406     01/25/2001     05/25/2001
    48547     200190                    
    48547     200210                    
    48547     200290                    
    48547     200310                    
    48547     200390                    
    48547     200410                    
    48547     200610                    
    Here is what a simple question is probably for some of you; I can not get this to work. I need to delete all the rows that are duplicate like row #2 with the same SZSLIFE_SGBSTDN_TERM_CODE_EFF but with not
    SZSLIFE_SLRRASG_BLDG_CODE and SZSLIFE_SLRRASG_ROOM_NUMBER     
    I need to write a code where it counts the SZSLIFE_SGBSTDN_TERM_CODE_EFF and if it have the same (2 times.
    I need to delete the row without SZSLIFE_SLRRASG_BLDG_CODE and SZSLIFE_SLRRASG_ROOM_NUMBER
    The SZSLIFE_SLRRASG_BLDG_CODE NEEDS to be not null, because I do an insert in this table I need to be able to insert null values.
    How I can use a simple query where I can delete all the duplicate records without bldg_code and room number…
    Here is the table description
    SZSLIFE_SPRIDEN_PIDM NUMBER(8)
    SZSLIFE_SPRIDEN_ID VARCHAR2(10)
    SZSLIFE_SPRIDEN_LAST_NAME VARCHAR2(60)
    SZSLIFE_SPRIDEN_FIRST_NAME VARCHAR2(60)
    SZSLIFE_SPRIDEN_MI VARCHAR2(15)
    SZSLIFE_SGBSTDN_TERM_CODE_EFF VARCHAR2(6)
    SZSLIFE_SGBSTDN_STST_CODE VARCHAR2(2)
    SZSLIFE_STVSTST_DESC VARCHAR2(30)
    SZSLIFE_SGBSTDN_STYP_CODE VARCHAR2(2)
    SZSLIFE_STVSTYP_DESC VARCHAR2(30)
    SZSLIFE_SGBSTDN_LEVL_CODE VARCHAR2(2)
    SZSLIFE_STVLEVL_DESC VARCHAR2(30)
    SZSLIFE_SGBSTDN_RESD_CODE VARCHAR2(10)
    SZSLIFE_STVRESD_DESC VARCHAR2(40)
    SZSLIFE_SLRRASG_BLDG_CODE VARCHAR2(10)
    SZSLIFE_SLRRASG_ROOM_NUMBER VARCHAR2(10)
    SZSLIFE_SLRRASG_BEGIN_DATE VARCHAR2(12)
    SZSLIFE_SLRRASG_END_DATE VARCHAR2(12)
    SLRRASG_ASCD_CODE VARCHAR2(2)
    I will appreciate any help!
    SLRRASG_ROLL_IND VARCHAR2(2)

    Thank you very much Sandeep, this works!
    1 DELETE SZSLIFE_TEMP2
    2 WHERE
    3 SZSLIFE_SGBSTDN_TERM_CODE_EFF
    4 IN
    5 (SELECT SZSLIFE_SGBSTDN_TERM_CODE_EFF
    6 FROM SZSLIFE_TEMP2
    7 GROUP BY
    8 SZSLIFE_SGBSTDN_TERM_CODE_EFF
    9 HAVING COUNT(*) > 1)
    10 AND
    11* SZSLIFE_SLRRASG_BLDG_CODE = ' '
    12 /
    4 rows deleted.
    The only thing here is that the SZSLIFE_SLRRASG_BLDG_CODE can not be defined as a a NULL, so I can not use
    where SZSLIFE_SLRRASG_BLDG_CODE is null
    Here is how those two columns are define:
    SZSLIFE_SLRRASG_BLDG_CODE VARCHAR2(10)
    SZSLIFE_SLRRASG_ROOM_NUMBER VARCHAR2(10)
    So,
    my question is it will be safe to do SZSLIFE_SLRRASG_BLDG_CODE = ' ' ?
    Again, it works, it deleted the rfows that I wanted...
    Thank you very much!!!
    Rogelio

  • Delete grid row using button in row

    I want to create a grid, with each row containing several
    textInputs and one delete button.
    I will have another button that will add rows to the grid.
    I can't find out how to tie the button in each row to delete
    that row...
    Alos, what is the best way to add a row to the grid ?
    Please advise
    Thanks.

    Hi,
    Why don't you use the function "excel inplace" in the ALV?  With the ALV you have some buttons "SORT/TOTAL/FILTER... and you have PRINT and EXCEL INPLACE"?
    Do you use the method   call method g_grid->set_table_for_first_display in order to display your data alv?
    Best regards

  • ODI 10g delete conditional row Using KM

    Hi I will add new step to ODI 10g IKM control append
    I want to delete from target some columns where is being on source.I will capture updating or new rows then I will delete this rows from target according to UK of Target end of this I will insert.I wrote new step like this:I selected UK rows on target
    delete from <%=odiRef.getTable("L","TARG_NAME","A")%> T WHERE (<%=odiRef.getTargetColList("", "[COL_NAME]", ", ", "\n", "UK")%> )
    IN
    SELECT ---Which method can ı use here?
    FROM <%=odiRef.getFrom()%>
    WHERE (1=1) AND
    <%=snpRef.getJoin()%>
    <%=snpRef.getFilter()%>
    <%=snpRef.getJrnFilter()%>
    <%=snpRef.getGrpBy()%>
    <%=snpRef.getHaving()%>
    /*commit*/
    I have two source S1 and S2
    For example my target table is like this:
    Target
    Asset_id(UK)---it comes from source table. S1.ROW_ID--->T.ASSET_ID
    root_asset_id(UK)it comes from source table of S2.PROD_ID-->T.ROOt_ASSET_ID
    cre_dt(NOT UK)
    etc
    Now I want to compare like this :
    Delete from target T where (T.ASSET_ID,T.ROOT_ASSET _ID) IN
    (SELECT S1.ROW_ID,S2.PROD_ID
    FROM SOURCE S1 SOURCE S2)
    How can I modify ?
    Could anyone help me?
    Best Regards,
    Thanks

    Tell me if I'm wrong : you want to delete in Target the data that are in source.
    And insert only source records that were not in your target.
    And keep in target data that are not in source.
    If so, you can do it like this :
    1) Use a copy of "IKM incremental update".
    Edit the step "flag row for update"
    Rename it to "flag row for delete"
    update     <%=snpRef.getTable("L", "INT_NAME", "W")%>
    set     IND_UPDATE = 'D'
    where     (<%=snpRef.getColList("","[COL_NAME]", ", ", "", "(UK)")%>)
         in (
         select     <%=snpRef.getColList("","[COL_NAME]", ", ", "", "(UK)")%>
         from     <%=snpRef.getTable("L", "TARG_NAME", "A")%>
    ==> each row of your I$ table that ARE in your target table are now flagged as "D" for "deleted".
    it means that each row of your target table that are in source will be flagged as D in your I$ table.
    2) Then create a new step "delete row in target" like this :
    delete from <%=snpRef.getTable("L","TARG_NAME","A")%> T
    where (<%=snpRef.getColList("", "\tT.[COL_NAME]", ",", "", "UK")%>) IN      
    (     select <%=snpRef.getColList("", "\t\tS.[COL_NAME]", ",\n", "", "UK")%>
         from <%=snpRef.getTable("L", "INT_NAME", "W")%> S
         where IND_UPDATE = 'D'
    ==> each row flagged as D will be deleted in the target table

  • Delete datagridview row using right click context menu does not behave like the delete key

    I have a datagridview with editing enabled. If I click the row header and press the delete key, the row is removed no questions asked. I don't recall doing any coding to make this happen but I couldn't do copy and paste using keys so I created a context
    menu with copy, paste, & delete.  The delete option calls
    dgvVX130.Rows.RemoveAt(dgvVX130.SelectedRows[0].Index);
    The row is removed but the problem is this fires other events like RowValidating which fails.  I presume because the row is no longer there.
    The delete keypress is definitely a lot cleaner so my question is 3fold. 
    1) Why doesn't Rows.RemoveAt behave like the delete key? 
    2) Is it possible to issue a delete keypress to do the same thing?
    3)  Is it possible to suppress the RowValidating event or other events when Rows.RemoveAt is fired?

    Interesting.  My delete key does not fire the row validating event.  When I use the delete key I click on the row header which does fire the row validating event and then I press the delete key.  Row is deleted and no event fires.  Works
    just the way I want it to.  I wish my context menu delete worked that way.  I wouldn't know what chunk of code I can provide to show the Row Validating NOT firing when delete key is pressed but here is the context menu code that does fire Row Validating.
    private void cmsEditItemClick(object sender, ToolStripItemClickedEventArgs e)
    ToolStripItem item = e.ClickedItem;
    switch (item.Text)
    case "Copy":
    if (dgvVX130.GetCellCount(DataGridViewElementStates.Selected) > 0)
    try
    // Add the selection to the clipboard.
    Clipboard.SetDataObject(
    dgvVX130.GetClipboardContent());
    // Replace the text box contents with the clipboard text.
    catch (System.Runtime.InteropServices.ExternalException)
    MessageBox.Show("The Clipboard could not be accessed. Please try again.");
    break;
    case "Paste":
    if (Clipboard.GetDataObject().GetDataPresent(DataFormats.Text) == true)
    ClipboardUtils.PasteFromClipboard(dgvVX130);
    dgvVX130.NotifyCurrentCellDirty(true);
    dgvVX130.EndEdit();
    dgvVX130.NotifyCurrentCellDirty(false);
    bindingSource1_PositionChanged(this, e);
    break;
    case "Delete":
    dgvVX130.Rows.RemoveAt(dgvVX130.SelectedRows[0].Index);
    break;
    default:
    //code
    break;
    private void dgvVX130CellContentClick(object sender, DataGridViewCellEventArgs e)
    //dgvVX130.IsUserSelectionEnabled = true;
    dgvVX130.BeginEdit(false);
    ((TextBox)dgvVX130.EditingControl).SelectionStart = 0;
    //((TextBox)dgvVX130.EditingControl).SelectionLength = 3;
    public class ClipboardUtils
    public static void PasteFromClipboard(DataGridView grid)
    try
    char[] rowSplitter = { '\r', '\n' };
    char[] columnSplitter = { '\t' };
    // Get the text from Clipboard
    IDataObject dataInClipboard = Clipboard.GetDataObject();
    string stringInClipboard = (string)dataInClipboard.GetData(DataFormats.StringFormat);
    // split into rows
    string[] rowInClipboard = stringInClipboard.Split(rowSplitter, StringSplitOptions.RemoveEmptyEntries);
    // get current cell
    int currentRow = grid.SelectedCells[0].RowIndex;
    int currentColumn = grid.SelectedCells[0].ColumnIndex;
    // get 1st cell in selected area
    for (int i = 1; i < grid.SelectedCells.Count; i++)
    if (currentRow > grid.SelectedCells[i].RowIndex)
    currentRow = grid.SelectedCells[i].RowIndex;
    if (currentColumn > grid.SelectedCells[i].ColumnIndex)
    currentColumn = grid.SelectedCells[i].ColumnIndex;
    // add more rows if need to paste data
    /* if (grid.Rows.Count < rowInClipboard.Length + currentRow)
    grid.Rows.Add(rowInClipboard.Length + currentRow - grid.Rows.Count); */
    // paste
    for (int iRow = 0; iRow < rowInClipboard.Length; iRow++)
    if (iRow + currentRow < grid.Rows.Count)
    string[] cellsInRow = rowInClipboard[iRow].Split(columnSplitter);
    for (int iCol = 0; iCol < cellsInRow.Length; iCol++)
    if (grid.ColumnCount > currentColumn + iCol)
    DataGridViewCell currentCell = grid.Rows[currentRow + iRow].Cells[currentColumn + iCol];
    if (!currentCell.ReadOnly) // H.NH added to avoid Read only case.
    if (cellsInRow[iCol] == "")
    if (grid.Columns[iCol].ValueType.Name == "String")
    currentCell.Value = null;
    else
    currentCell.Value = DBNull.Value;
    else
    currentCell.Value = cellsInRow[iCol];
    switch (iCol)
    case 3:
    currentCell.Value += "_ChangeColumnName";
    break;
    case 2:
    currentCell.Value = grid.Rows[iRow].Cells[iCol].Value;
    break;
    else break;
    catch (Exception e)
    MessageBox.Show("Sorry, can not paste from the clipboard.\nError: " + e.Message, "Paste Error", MessageBoxButtons.OK, MessageBoxIcon.Error);

  • Unable to delete a journal using Group ID

    Hello guys,
    I have an imported journal that needs to be deleted. I used the delete journal window, issued the group id, the source and the request id and submitted the delete program but the journal could not be deleted. Though, the progrm completed normal.
    Any idea will help.

    In which table is the data still appearing?
    Headers?
    If so query the Journal from front end and delete it.

  • Row Selector Checkbox in Report throws "wwv_flow.accept" Error when checked

    Hello all,
    I ran into some time consuming trouble on
    a page of an assistant flow contains a report regions. Users shall select one or many rows from the report.
    The checkbox was added as a linked column and formatted as "Simple Checkbox".
    After submitting to the "NEXT" page an item :Px_MYEVENTS shall collect the ID column value of all selected rows.
    The page process "After Submit" shows:
    +:P2_Myevents := apex_util.table_to_string(apex_application.g_f01,';');+
    It is expected that only selected rows appear on the item, because we need this for further activities.
    On testing strange things happens:
    If no selection is done, the target page appears, the item :Px_Myevents contains the values of all rows
    When a selection is done, the branch error "wwv_flow.accept" appears, :Px_Myevents doesn't contain a value.
    This throws even when the code is used as a DA of type PLSQL - statement or function
    How do I get the expecte behaviour?
    Edited by: F Lan on 27.09.2012 13:18
    Apex Version is 4.1.1 on Oracle 11GR2 XE
    Remember the milk ;-)
    Regards

    Hi,
    Always state
    <ul>
    <li>Apex Version</li>
    <li>DB Version and edition</li>
    <li>Web server used.I.e. EPG, OHS, ApexListner Standalone or with J2EE container</li>
    <li>When asking about forms always state tabular form if it is a tabular form</li>
    <li>When asking about reports always state Classic / IR</li>
    <li><b>Always post code snippets enclosed in a pair of &#123;code&#125; tags as explained in FAQ</b></li>
    </ul>
    The following line ought to work they way you want it to , I have used this construct without issues
    :P2_Myevents := apex_util.table_to_string(apex_application.g_f01,';');
    If no selection is done, the target page appears, the item :Px_Myevents contains the <b>values of all rows</b>This suggests that all checkboxes are being treated as checked.
    You need to check why they are being treated as checked. Depends how they are rendered and if they are being manipulated in some way.
    The other point to consider is the Processing Point. The above process must run before ApplyMRU/ApplyMRD.
    You could try running the form in debug mode to see if it revealing anything in the Debug Report.
    The other way is to put it up on apex.oracle.com for someone to take a closer look at it.
    Cheers,

  • Set check in row selector checkbox of report via javascript

    This may be a stupid question. I thought I saw the answer here before. I just can't seem to find it.
    I have an updateable report that allows users to enter data. The issue is unless they check the row selector checkbox, when they submit, the row is not processed. I want to put an onchange event on the columns to automatically check the rowselector box when something is changed on the row. Any ideas? Possibly a link to a previous post.
    Thanks
    Kevin
    Message was edited by:
    kdpar

    On the field that you update set the onchange event to call a function similar to the following: onchange=setRowSelectorState(this);
    In the HTML Header section put a function definition similar to the following:
    <script type="text/javascript">
    function setRowSelectorState(pThis){
    -- get current row number
    -- thanks Patrick Wolf (http://www.inside-oracle-apex.com/2007/01/accessing-tabular-form-cell-with.html)
    var vRow = pThis.id.substr(pThis.id.indexOf('_')+1); -- gets current row number
    -- get row selector for current row assuming its field 'f01_'
    var cbxField = html_GetElement('f01_' + vRow);
    -- add some logic if need be
    var mytest = 0;
    if (mytest == 0) {
    cbxField.checked = true;
    } else {
    cbxField.checked = false;
    </script>
    Simple example but it works. See Patrick's link above to a more detailed example.
    Brent

  • How to delete a file using checkbox!!!

    i'm developing one project using the file operations implementations. I'm displaying the contents of the file in my jsp page. The first column i've putted a checkbox option and at last i've created the button. If i clicked that particular checkbox and then if i press the delete button then it should be able to delete the all check marked files from the directories.
    Could anyone tell me how to do this in jsp. Is there any need for javascript or it can be done only through the jsp codings.
    in advance thanks....

    <html>
    <head>
    <title>Delete All Example</title>
    <script>
    function DeleteAll(){
         var answer = confirm("Do you really want to delete these selected files?")
         if (answer != 0) {
              for(var i=0; i<3; i++){
                   if( (document.form1.filecheck(i).checked == true) && (document.form1.filepath(i).value != "") ){
                        var fso = new ActiveXObject( "Scripting.FileSystemObject" );
                        fso.DeleteFile(document.form1.filepath(i).value, true);
    </script>
    <body>
    <form name="form1">
    <table border="1">
    <script>
    for(var i=0; i<3; i++){
         document.write("<tr><td><input type='checkbox' name='filecheck' value='filecheck'><br></td><td><input type='file' name='filepath'></td></tr>")
    </script>
    <tr><td colspan="2" align="center"><input type="button" name="go" value="Delete All" onClick="DeleteAll()"></td></tr>
    </table>
    </form>
    </body>
    </html>Cheers

  • Unable to delete a printfile using Bonjour - "Error Processing Command"

    I recently installed Bonjour on a DELL Dimension E310 machine running Windows XP. It is connected to a small network of office computers. One of them is an Apple. The Apple computer has an HP color printer attached to it via a USB cord and it is shared on the network.
    After installing Bonjour on the Windows XP machine, I tried to print a test page on the shared HP color printer, but it did not print.
    When I looked at the pending documents on the shared HP color printer, turns out there is a print file that is stuck. It will not print and I can not delete it either. Comes back with an error "unable to process command" or "Error processing command".
    After more investigation I've discovered the actual print file name is: "smbprn.00000011" and it was sent to the printer back in November of 2009.
    How can I delete this print file???
    I've uninstalled Bonjour and re-installed it to see if this would delete the print file, but it did not work.
    I've done a hard reset on the HP color printer and rebooted the Apple computer it's connected to. The Apple computer can print to the HP color printer just fine, but the Windows XP machine can not.
    I've also searched the entire disk drive on the Apple computer AND the Windows XP machine for the "smbprn.00000011" file, but it was not found. I even searched all the system and hidden file folders too with no luck.
    How can I locate and delete this print file that is stuck ???
    All suggestions are welcome and appreciated.
    Thank You,

    Check the table name in your MRD process and make sure it's the right one. Also ensure the "checked" value of the checkbox is correct (i.e.: is the checkbox based on the correct key column from the report?).

  • How to delete matrix row using rightclick ?

    Hi all ,
    I have UDO form .when i right click on a matrix  then contextual menu appears only(Copy,Remove,Cancel) not appears  (DELETE ROW ) .plz help how to contextual menu appears with (Delete Row) and which event fire when i click delete row.
    thanks in advance
    Surajit

    Hi,
    Menu Event..
    If (pVal.MenuUID = "OnlyOnRCDE") And (pVal.BeforeAction = False) Then
                Try
                    Dim oMenuItem As SAPbouiCOM.MenuItem
                    Dim oMenus As SAPbouiCOM.Menus
                    Dim omat As SAPbouiCOM.Matrix
                    Dim GCols As SAPbouiCOM.Columns
                    Dim i As Integer
                    pmat = pcFrm.Items.Item("5").Specific
                    GCols = pmat.Columns
                    pcFrm.DataSources.DBDataSources.Item(1).Clear()
                    pmat = pcFrm.Items.Item(selItem).Specific
                    For i = 1 To pmat.RowCount
                        If pmat.IsRowSelected(i) = True Then
                            pmat.DeleteRow(i)
                            Exit For
                        End If
                    Next
                Catch ex As Exception
                    SBO_Application.MessageBox(ex.Message)
                End Try
            End If
    Right Click Event
    If eventInfo.FormUID = "AAAAAAAAAAAAAAA" Then
                If (eventInfo.BeforeAction = True) Then
                    Dim omat As SAPbouiCOM.Matrix
                    Dim GCols As SAPbouiCOM.Columns
                    pmat = pcFrm.Items.Item("5").Specific
                    GCols = pmat.Columns
                    pcFrm.DataSources.DBDataSources.Item(1).Clear()
                    Try
                        selItem = eventInfo.ItemUID
                        Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
                        oCreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
                        oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
                        oCreationPackage.UniqueID = "OnlyOnRCDE"
                        oCreationPackage.String = "Delete Row"
                        oCreationPackage.Enabled = True
                        oMenuItem = SBO_Application.Menus.Item("1280") 'Data'
                        oMenus = oMenuItem.SubMenus
                        oMenus.AddEx(oCreationPackage)
                    Catch ex As Exception
                        MessageBox.Show(ex.Message)
                    End Try
                Else
                    Try
                        SBO_Application.Menus.RemoveEx("OnlyOnRCDE")
                    Catch ex As Exception
                        MessageBox.Show(ex.Message)
                    End Try
                End If
            End If
    Regards,
    Siva

  • Unable to load database connector - using JRC w/report connecting to Oracle

    A simple Java program was created to test a Crystal Report using JRC. The Java program is a thick-client Swing desktop application (modified from an example of crxi_r2_migrating_rdc_to_jrc.pdf). The program failed to execute the report with the following error:
    Unable to load database connector u2018com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader'
    It might be something simple to correct the problem, but I am not able to find related answers in the documentation and from the forum.
    CR version is XI R2. The Java program was compiled and run using jdk1.4.2_13. Oracle is 10.2.
    Do I have to use JDBC? or the CR Oracle driver will do? What needs to be setup? If I use JDBC, what do I need to setup (I tried to following the links in the forums or other documentation, but most of the links to http://support.businessobjects.com/.... are broken - i.e. re-route to the SAP support page but not directly linked to the articles)
    When the report JRCTestReport.rpt was saved with the option "Save Data With Report", it works fine. So the problem is only with Oracle database driver, the other jars are fine.
    In the report JRCTestReport.rpt the database properties are:
           DatabaseDLL             crdb_oralce.dll
           Password
           Server                        myTestDB
           Trusted_Connection    False
           User ID                      MyUser
    The crdb_oracle.dll is located at:
    C:\Program Files\Business Objects\Common\3.5\bin
    Files are stored in the following tree structure:
    <Testing Folder>
         JRCTest.java
         JRCTest.class
         WEB-INF
                   lib
                        All required JRC jars and CRConfig.xml
         Reports
                   JRCTestReport.rpt
    Java source code JRCTest.java
    import java.awt.*;
    import javax.swing.*;
    import java.io.*;
    import com.crystaldecisions.ReportViewer.*;
    // Use this for talking to JRC in-process
    import com.crystaldecisions.reports.sdk.*;
    import com.crystaldecisions.sdk.occa.report.reportsource.*;
    public class JRCTest
         private static void createAndShowGUI()
              try
                   //Make sure we have nice window decorations.
                   JFrame.setDefaultLookAndFeelDecorated(false);
                   //Create and set up the window.
                   JFrame frame = new JFrame("JRCTest");
                   frame.setTitle("JRCTest");
                   frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   ReportViewerBean viewer = new ReportViewerBean();
                                      System.out.println("ReportViewerBean.init");
                   viewer.init(new String[0], null, null, null);
                                      System.out.println("new ReportClientDocument");
                   ReportClientDocument rpt = new ReportClientDocument();
                                      try
                                              System.out.println("Openning Report...");
                                              rpt.open("JRCTestReport.rpt", 0);
                                      catch (Exception ex)
                                              System.out.println("Failed to open report");
                                              System.out.println(ex.toString());
                                              return;
                                      try
                                              System.out.println("logon...");
                                              rpt.getDatabaseController().logon("myUser", "myPass");
                                      catch (Exception ex)
                                              System.out.println("Failed to logon");
                                              System.out.println(ex.toString());
                                              return;
                                      System.out.println("ReportClientDocument.getReportSource");
                   IReportSource rptSource = rpt.getReportSource();
                   viewer.setReportSource(rptSource);
                                                    System.out.println("viewer.setReportSource");
                   frame.getContentPane().add
                        (viewer, BorderLayout.CENTER);
                   frame.setSize(700, 500);
                   frame.setVisible(true);
                   viewer.start();
              catch (Exception exception)
                   System.out.println(exception.toString());
         public static void main(String[] args)
              javax.swing.SwingUtilities.invokeLater(new Runnable()
                   public void run()
                        createAndShowGUI();
    Execution result:
    C:\tmp\CrystalJavaTest>java -classpath .;./WEB-INF/lib;./WEB-INF/lib/ReportViewe
    r.jar;./WEB-INF/lib/jrcerom.jar;./WEB-INF/lib/jrcadapter.jar;./WEB-INF/lib/Concu
    rrent.jar;./WEB-INF/lib/CrystalCharting.jar;./WEB-INF/lib/CrystalCommon.jar;./WE
    B-INF/lib/CrystalContentModels.jar;./WEB-INF/lib/CrystalExporters.jar;./WEB-INF/
    lib/CrystalExportingBase.jar;./WEB-INF/lib/CrystalFormulas.jar;./WEB-INF/lib/Cry
    stalQueryEngine.jar;./WEB-INF/lib/CrystalReportEngine.jar;./WEB-INF/lib/CrystalR
    eportingCommon.jar;./WEB-INF/lib/icu4j.jar;./WEB-INF/lib/keycodeDecoder.jar;./WE
    B-INF/lib/log4j.jar;./WEB-INF/lib/MetafileRenderer.jar;./WEB-INF/lib/rasapp.jar;
    ./WEB-INF/lib/rascore.jar;./WEB-INF/lib/rpoifs.jar;./WEB-INF/lib/Serialization.j
    ar;./WEB-INF/lib/URIUtil.jar;./WEB-INF/lib/xercesImpl.jar;./WEB-INF/lib/xml-apis
    .jar JRCTest
    Starting
    Crystal Report Viewer 2.1.21.2
    java.vendor = Sun Microsystems Inc.
    java.version = 1.4.2_13
    os.name = Windows XP
    os.version = 5.1
    os.arch = x86
    ReportViewerBean.init
    new ReportClientDocument
    Openning Report...
    logon...
    ReportClientDocument.getReportSource
    viewer.setReportSource
    ERROR - JRCAgent1 detected an exception: Unable to load database connector 'com.
    crystaldecisions.reports.queryengine.driverImpl.DriverLoader'.
            at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwRepo
    rtSDKException(Unknown Source)
            at com.businessobjects.reports.sdk.b.i.if(Unknown Source)
            at com.businessobjects.reports.sdk.b.i.a(Unknown Source)
            at com.businessobjects.reports.sdk.b.i.byte(Unknown Source)
            at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unkno
    wn Source)
            at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
            at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unkno
    wn Source)
            at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage
    (Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource
    .getPage(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReport
    Source.getPage(Unknown Source)
            at com.businessobjects.crystalreports.viewer.core.rs.b.if(Unknown Source
            at com.businessobjects.crystalreports.viewer.core.av.a(Unknown Source)
            at com.businessobjects.crystalreports.viewer.core.av.run(Unknown Source)
            at java.lang.Thread.run(Thread.java:534)
    Unable to load database connector 'com.crystaldecisions.reports.queryengine.driv
    erImpl.DriverLoader'.

    After I switched the report to use JDBC, I am still getting the same error.
    Machine has multiple jdk, oracle 10g, Oracle11g client installed though. So I need to set my path to use the jdk from Crystal Report and Oracle 10g.
    The program was compiled and ran with the following path and CLASSPATH:
    set path="C:\Program Files\Business Objects\j2sdk1.4.2_08\bin";"C:\Program Files\Business Objects\j2sdk1.4.2_08\jre\bin";"C:\Program Files\Business Objects\j2sdk1.4.2_08\jre\bin\client";c:\oracle\ora102\bin
    set CLASSPATH=.;./WEB-INF/lib;./WEB-INF/lib/ReportViewer.jar;./WEB-INF/lib/jrcerom.jar;./WEB-INF/lib/jrcadapter.jar;./WEB-INF/lib/Concurrent.jar;./WEB-INF/lib/CrystalCharting.jar;./WEB-INF/lib/CrystalCommon.jar;./WEB-INF/lib/CrystalContentModels.jar;./WEB-INF/lib/CrystalExporters.jar;./WEB-INF/lib/CrystalExportingBase.jar;./WEB-INF/lib/CrystalFormulas.jar;./WEB-INF/lib/CrystalQueryEngine.jar;./WEB-INF/lib/CrystalReportEngine.jar;./WEB-INF/lib/CrystalReportingCommon.jar;./WEB-INF/lib/icu4j.jar;./WEB-INF/lib/keycodeDecoder.jar;./WEB-INF/lib/log4j.jar;./WEB-INF/lib/MetafileRenderer.jar;./WEB-INF/lib/rasapp.jar;./WEB-INF/lib/rascore.jar;./WEB-INF/lib/rpoifs.jar;./WEB-INF/lib/Serialization.jar;./WEB-INF/lib/URIUtil.jar;./WEB-INF/lib/xercesImpl.jar;./WEB-INF/lib/xml-apis.jar;C:/oracle/ora102/jdbc/lib/ojdbc14.jar
    I modified my java testing program to display more info:
    Modified program:
    import java.awt.*;
    import javax.swing.*;
    import java.io.*;
    import com.crystaldecisions.ReportViewer.*;
    // Use this for talking to JRC in-process
    import com.crystaldecisions.reports.sdk.*;
    import com.crystaldecisions.sdk.occa.report.reportsource.*;
    import com.crystaldecisions.sdk.occa.report.exportoptions.*;
    import com.crystaldecisions.sdk.occa.report.data.*;
    import com.crystaldecisions.sdk.occa.report.lib.PropertyBag;
    import com.crystaldecisions.sdk.occa.report.lib.IStrings;
    public class JRCTest2
       private static void createAndShowGUI()
          try
             System.out.println("Starting");
             //Make sure we have nice window decorations.
             JFrame.setDefaultLookAndFeelDecorated(false);
             //Create and set up the window.
             JFrame frame = new JFrame("JRCTest2");
             frame.setTitle("Testing 1, 2, 3");
             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             System.out.println("new ReportViewerBean");
             ReportViewerBean viewer = new ReportViewerBean();
             System.out.println("ReportViewerBean.init");
             viewer.init(new String[0], null, null, null);
             System.out.println("new ReportClientDocument");
             ReportClientDocument rpt = new ReportClientDocument();
             try
                 System.out.println("Openning Report...");
                 rpt.open("JRCTestReport.rpt", 0);
             catch (Exception ex)
                System.out.println("Failed to open report");
                System.out.println(ex.toString());
                return;
             try
                // try logon here to see if any exceptions
                rpt.getDatabaseController().logon("myUser", "myPass");
             catch (Exception ex)
                System.out.println("Failed to logon");
                System.out.println(ex.toString());
                return;
             IDatabase idb = rpt.getDatabaseController().getDatabase();
             Tables dtb = idb.getTables();
             IConnectionInfo conInfo = dtb.getTable(0).getConnectionInfo();
             PropertyBag attrs = conInfo.getAttributes();
             conInfo.setPassword("myPass");
             conInfo.setUserName("myUser");
             IStrings s = attrs.getPropertyIDs();
             for (int i=0; i < s.size(); i++)
                System.out.println(s.getString(i));
                System.out.println(attrs.getStringValue(s.getString(i)));
             System.out.println(" ");
             conInfo.setAttributes(attrs);
             attrs = conInfo.getAttributes();
             s = attrs.getPropertyIDs();
             // Print property again after setting attributes
             for (int i=0; i < s.size(); i++)
               System.out.println(s.getString(i));
               System.out.println(attrs.getStringValue(s.getString(i)));
             System.out.println(" ");
             System.out.println("ReportClientDocument.getReportSource");
             IReportSource rptSource = rpt.getReportSource();
             viewer.setReportSource(rptSource);
             frame.getContentPane().add
         (viewer, BorderLayout.CENTER);
             frame.setSize(700, 500);
             frame.setVisible(true);
             viewer.start();
          catch (Exception exception)
             System.out.println(exception.toString());
       public static void main(String[] args)
          System.out.println("main");
          javax.swing.SwingUtilities.invokeLater(new Runnable()
             public void run()
                createAndShowGUI();
    Running result:
    C:\tmp\CrystalJavaTest>java JRCTest2
    main
    Starting
    new ReportViewerBean
    Crystal Report Viewer 2.1.21.2
    java.vendor = Sun Microsystems Inc.
    java.version = 1.4.2_13
    os.name = Windows XP
    os.version = 5.1
    os.arch = x86
    ReportViewerBean.init
    new ReportClientDocument
    Openning Report...
    Trusted_Connection
    false
    Server Name
    dbHost
    Connection String
    Use JDBC=b(true);Connection URL=s(jdbc:oracle:thin:@dbHost:1521:myDB);Database Class Name=s(oracle.jdbc.OracleDriver);Server=s(dbHost);User ID=s(myUser);Password=;Trusted_Connection=b(false);JDBC Connection String=s(!oracle.jdbc.OracleDriver!jdbc:oracle:thin:/@dbHost:1521:myDB)
    Server Type
    JDBC (JNDI)
    Database Class Name
    oracle.jdbc.OracleDriver
    Use JDBC
    true
    URI
    !oracle.jdbc.OracleDriver!jdbc:oracle:thin:/@dbHost:1521:myDB
    Database DLL
    crdb_jdbc.dll
    Trusted_Connection
    false
    Server Name
    dbHost
    Connection String
    Use JDBC=b(true);Connection URL=s(jdbc:oracle:thin:@dbHost:1521:myDB);Database Class Name=s(oracle.jdbc.OracleDriver);Server=s(dbHost);User ID=s(myUser);Password=;Trusted_Connection=b(false);JDBC Connection String=s(!oracle.jdbc.OracleDriver!jdbc:oracle:thin:/@dbHost:1521:myDB)
    Server Type
    JDBC (JNDI)
    Database Class Name
    oracle.jdbc.OracleDriver
    Use JDBC
    true
    URI
    !oracle.jdbc.OracleDriver!jdbc:oracle:thin:/@dbHost:1521:myDB
    Database DLL
    crdb_jdbc.dll
    ReportClientDocument.getReportSource
    ERROR - JRCAgent1 detected an exception: Unable to load database connector 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader'.
            at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)
            at com.businessobjects.reports.sdk.b.i.if(Unknown Source)
            at com.businessobjects.reports.sdk.b.i.a(Unknown Source)
            at com.businessobjects.reports.sdk.b.i.byte(Unknown Source)
            at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
            at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
            at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPage(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.getPage(Unknown Source)
            at com.businessobjects.crystalreports.viewer.core.rs.b.if(Unknown Source)
            at com.businessobjects.crystalreports.viewer.core.av.a(Unknown Source)
            at com.businessobjects.crystalreports.viewer.core.av.run(Unknown Source)
            at java.lang.Thread.run(Thread.java:534)
    Unable to load database connector 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader'.
    Also got similar error when the path and classpath was switched to Oracle 11g.
    Is there a way to tell which file that it failed to load?
    Thanks
    Kin

Maybe you are looking for

  • Alpha channel  distinction

    I am have Flash 2004 MX. I plan to purchase 9 when CS3 releases and I would like to do some alpha channel work.before then. If I use Sorenson's ON2 plug-in to create an flv with an alpha channel - and then import it to FLASH 2004 MX - will the aplha

  • Playlists and play count disappeared

    Hi all, I have just completed a reinstall of my OS following an error on my HDD. I have used a Time machine backup to import all into the new operating system, yet all playlists and playcounts have disappeared. Some questions: - Would syncing with my

  • FI Substitution Routine (OBBH) - error in formula

    Hello FI Experts, I am an ABAPer. My requirement is to write a Subst routine(OBBH) using  call point 3 which checks for a given range of co codes (BUKRS) and reason codes(BSEG-RSTGR)  NOT equal to '   ' (space) at <b>document item level.</b> But i am

  • Oracle Driver Issue in Glassfish

    Hi Everyone, I have a setup where an application is deployed in Glassfish and connecting to Oracle Database. ojdbc14.jar is being used for connecting from Glassfish to Oracle DB. We are using connection pooling here and i even enabled Validation thro

  • 10gR2 to 11gR2 usin rman

    hi I am dong (just started few days back)10g OCP (DBA). i love to play with it lot.so i installed 11gr2 db version first.then i deleted the db orcl using dbca.NOW i am trying to install RAC..if i install RAC and create a db or restore a db from takin