Delete row in report........

i have report, i have to delete row without page loading. i have wrote the application process(on demand). but i dont know how to write the javascript for htmldb items...
my req is when i click the delete button the checked row(using check box) should delete without page load. i use ajax to call the javascript to process the plsql code.
can any one pls help me to modify the below javascript coding....
application process
begin
for i in 1..htmldb_application.g_f01.count
loop
  delete from service
  where service_code = htmldb_application.g_f02(htmldb_application.g_f01(i));
end loop;
end;
javascript
function get_repd(){
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=REP_D',0);
}thanks and regard.
skud.

Hi Skud,
I will have to say your observation is incorrect. The whole purpose of doing the DML via Application Process using ajax technique is to avoid a page refresh, otherwise it would simply be a page level after submit process.
I have just tested and its working as expected, i.e
1. You select one or more records
2. Use the delete button to delete
3. Records get deleted from DB, you get a message
4. Only the report region get refreshed. (However this could delay for a few seconds if the dataset is larger and server is very busy)
If you are however using APEX 4.x you could use dynamic actions to get it done. My work environment is still on 3.x so my solution is using classic method.
If you are still having issue could you please let me know which browser you are using?
Cheers
Ligon

Similar Messages

  • Delete row from report and refresh region

    Hi
    Using apex 4.0
    I have a requirment like on one page there are two regions.
    There are two text boxes and insert button, by setting value into text box and pressing insert button data is saved in one table.
    And second region is for report which is selecting data which was inserted in first region. It is working correctly. Now in report region,
    there should be delete link/button to delete particular row and refresh that region.
    I have created delete link in second region and called java script function to delete from table. However that region is not refreshed and showing
    old data.
    I have tried with dynamic action to refresh region. But i am not getting sequence it is treating, first java script function will be called and then
    dynamic action will be executed or what? Because dynamic action is not refreshing region.
    Please let me know correct way to implement this requirement or correct me in my steps.
    Thanks in advance

    hi om,
    I had a similar issue.
    I am using a sql query to delete.
    "delete from dbo.[@XX_TDL1] " & _
                "where LineId = " & CStr(rownum) & " and code = '" & pAddonVars.TDHCode & "'"
    It's not pretty but it works.
    jw

  • Add/Delete rows from ALV-grid

    Hi to all,
    i have 2 questions concerning alv-grids:
    i have an alvgrid displaying a table and what i need is some functionality to add or delete rows from the alvgrid - how can i do that ?
    within one row i have one field containing the status and i want to be able to select the status from a combo/dropdown-field and set it for this particular row.
    thanks in advance!

    Hi,
    Report BCALV_EDIT_04 shows how to append and delete rows.
    Report BCALV_EDIT_06 shows drop down list for cells in a column.
    These report should be available in any R/3 system including all ABAP Preview versions.
    Hope this can help.
    Regards, Johan

  • Remove/delete the row with Report Name above header while exporting SSRS to excel

    I wanted to make sure to delete the top most row with Report name in SSRS report while exporting to excel.
    I didn't find any way to do so, My report don't need a report name actually i deleted  the text still a blank row appears in excel.
    Is there any property hidden i need to look for this requirement?

    Invalid definition.
    The report definition is not valid.
    Details: The report definition has an invalid target namespace
    'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition'
    which cannot be upgraded. (rsInvalidReportDefinition)

  • Adding delete row icon to report

    We have a custom report that I would like to add the delete row icon to. Is this possible? Thanks in advance.
    Eric

    I am looking to add a sequential row number to some reports.Standard or interactive reports?
    >
    I can't use an ID number because they may not be in a specific order and for asthetics, I would like them to be numbered sequentially. I have a report that we run for different meetings and based on the meeting group is what we base the report on. For example, we have a meeting to review cases with our security team and we have a meeting to review incidents with our server admin team so I have a report based on the different teams we are meeting with and would just like to have a reference to go by. There could be 40 returned rows and if I use an ID they may not be in sequential numerical order so asking someone to look at a row could still be time consuming for them to find and view, if that makes sense.
    >
    That appears to require that the order must be fixed in the query like this:
    select owner, incidentname, incidentaction
    from mytable
    where resolvingteam = 'teamnamehere'
    order by ownerin order for people looking at different instances of the report to be seeing the rows in the same sequence? (The only way to guarantee the sort order in SQL is to <tt>ORDER BY...</tt>) It doesn't appear that there is any room for ambiguity here: you don't want someone instructed to deal with case #4 as a matter of priority when their #4 is numbered according to a different order...
    Do the reports use pagination or should all rows appear on one page? The "+...asking someone to look at a row could still be time consuming for them to find and view...+" comment argues against pagination as it may require one or more page changes to find a given row, but retrieving everything on one page may impact performance and lead to issues with scrolling.
    What version of APEX are you using?
    What theme and template (if it's standard reports) are used?
    What browser(s) and version(s) are used?
    (FWIW, permanent, immutable IDs do appear to be a better idea to eliminate any possible ambiguity.)

  • Automatically delete row data on interactive report

    Hi All,
    I would like to know it's possible to automatically delete row data on interactive report when the check box is checked.
    I'm appreciating if you all can share your opinion or solution.
    Thanks a lot in advance!
    Best regards,
    Liz

    Hi,
    Why you like have checkbox ?
    Is it more clear for user have image/button like my example ?
    This is just example you need modify according your needs. Example do not have confirmation dialog.
    Page HTML header
    <script>
    function delIRRow(p_pk_val){
    var a = new htmldb_Get(null,null,'APPLICATION_PROCESS=DELETE_ROW');
    a.addParam('x01',p_pk_val);
    var r=a.get();
    if(!r=='1'){alert('Delete operation failed!');}else{gReport.search('SEARCH');}
    </script>On Demand process DELETE_ROW
    BEGIN
    delete from your_table where pk_col = APEX_APPLICATION.G_x01;
    htp.p('1');
    EXCEPTION WHEN OTHERS THEN
    htp.p('0');
    END;Change your_table and pk_col according your table name and pk column name.
    Call javascript from image/button (IR column link) or checkbox, and send primary key value as parametter
    Br,Jari
    Edited by: jarola on Jul 5, 2010 11:58 AM

  • Cannot DELETE rows from LOV on running...is it a bug ??

    One of the features I appreciated in the new version of JHeadstart is that we can now insert, modify and delete rows on LOV (even in the database).
    We have just to check on Lookup properties :
    Multi-row insert allowed
    Multi-row update allowed
    Multi-row delete allowed
    I cheked all of them and on runnig I could insert and update records in LOV.
    When I tried to delete records from LOV the system display information message "nothing to save" and in fact no records were deleted.
    Normally since I checked the delete property it should be possible to delete rows from LOV
    thanks for any Help

    Monta,
    I could reproduce this, it is a bug. Added to the fix list for the next release.
    Thanks for reporting,
    Steven Davelaar,
    JHeadstart Team.

  • The mechanism of Delete Row and Unto in program BCALV_GRID_EDIT

    Hi Experts,
        Users need to Delete/Insert/Change a row in OO ALV report and the row can be Undo when the undo button is press. I find the example program in my system and finally get a program BCALV_GRID_EDIT. Most functions in this program  meet my requirement. But I want to know what is the mechanism of the Delete/Insert and Undo function. For example, if I have delete a row in the screen, and then I press the undo button, the deleted row will be restored in the screen. But I want to know where(Internal table or soemwhere) the deleted row is stored after I press the Delete Row button, and where I can retrieve the deleted row after I press the Undo button. Please help~~
    Thanks in advance.
    Best regards
    Joe

    Hi
    1. first remove the ENDSELECT..use INTO table itab or INTO CORRESPONDING fields, Since you are joining the  more tables this will take lot of time.
    2. You are just using two fields from LIKP as selection screen  fields to fetch the so much data.
    see the table linkings apartfrom KUNNR between the tables
    LIKP-VBELN = LIPS-VBELN
    LIPS-VGBEL = VBAK-VBELN and  LIPS-VGPOS = VBAP-POSNR
    and
    VBRP-AUBEL = VBAK-VBELN and VBRP-AUPOS = VBAP-POSNR and
    VBRP-VGBEL = LIKP-VBELN  and VBRP-VGPOS = LIPS-POSNR
    use the above links and code again.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Maintenance form - Insert/Delete rows

    I've got a report and form on the same page which I have attached to a view. The base table of the view provides a map between two tables.
    I've set the report up with a row based Delete link which is attached to a custom delete process whic h executes based on the PK.
    Post delete when the report brances back to itself it generates an NDF error and it looks like it is trying to fetch the row which has just been deleted. I'm not sure if this is an artifact of the link on the PK - which is in the report as a Hidden Item.
    Should I be resetting the item in the Delete code ?
    Anyone got any hints ?

    Thanks Dennis
    Following a hint I found on the forum I have a commit in the code - I'm not convinced about that - however.
    I tried this previously with the item reset post the commit. The Form complained so I thought it must be wrong
    EDIT :
    Nope still not happy with the FR. Must need to clear the session variable for the Item - is tis possible ? I wrote a seperate proces to fire after the delete to do it ... but it doesn't seem to work.
    OK ... Following another thread I deleted the FR process which seemd redundant when I looked at the code.
    That seems to have worked.
    Cheers
    Stephen
    Message was edited by:
    StephenP
    Message was edited by:
    StephenP

  • Adding Delete Icon in Report with Notification msg

    Hi Friends,
    I want to display Delete icon in every row of report.So i followed the below link and i implemented.But i want to display the Confirmation Notification to the user
    *(eg.Are You sure want to delete this record?)* Before deleting the particular row in Report.How i can achieve this?
    please help me...
    http://apps2fusion.com/at/64-kr/391-oracle-apex-person-details-tutorial-02-delete-functionality

    Hi!
    I think that what you need is something like this: http://apex.oracle.com/pls/otn/f?p=39830:32 (go to Refresh 2 example).
    You can download the application to see how it is implemented but, regarding your particular question, to display a confirmation notification to the user you just have to add a Confirm action in the dynamic action that is fired when you click your delete icon.
    Regards,
    Sergio

  • Unable to delete row(s) from tabular form

    Hi!
    I created report with row selector, when I select one row I get tabular form regarding to the selected row from report. I can insert and update data from tabular form, but I have problem with deleting them. Error I get is ORA-01403: no data found (Row 207589)My tabular form is created by wizard and primary key is managed by database rowid, I use apex 4.1 an 10g database.
    Do you know for any solution for my problem?
    Regards,
    drama9346
    Add:
    For creating report and tabular form I use code and suggestion from this thread: {thread:id=2490862}
    Edited by: drama9346 on 28.1.2013 1:51

    Hi,
    I tried everything I know and I didn't solve my problem.
    Can anyone give me some clue?
    Regards,
    drama9346
    Add:
    I solve my problem.
    Edited by: drama9346 on 29.1.2013 1:52

  • DISPLAY AND DELETE ROW ISSUE

    Moderator message: please do not post subject in all capitals
    Dear friends
    i have created report for transfering data from one database table to another database table i.e. detail table.
    after executing Master data list will appear and after clicking on master data record it shows detail data with edit fields where i can enter my own data and after clicking save button i can pass that data to database table and at the same time data goes in display mode. I want that enterd data not to delete bye delete row button please tell me how can i avoid deletion of data.
    Thanks
    regards
    Rohan
    Edited by: Matt on Jan 19, 2009 1:51 PM

    Hi ,
    You csn hide the Delete button so that it will not delete the line...
    Please have a look at this example ...BCALV_EDIT_05. You need to append exclude table and pass in the set_table_for_first_display method like below...
      ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
      append ls_exclude to t_exclude.
    call method g_grid->set_table_for_first_display
           exporting is_layout             = gs_layout
                     it_toolbar_excluding  = lt_exclude
           changing  it_fieldcatalog       = gt_fieldcat
                     it_outtab             = gt_outtab[].
    hope this helps you,.
    Raj

  • How to add or delete rows in tablecontrol?

    Hi,
    I am using a tablecontrol to enter data records.
    I want to use 2 buttons, one to insert a row into a tablecontrol and another to delete a selected row of a tablecontrol.
    How do I insert or delete rows of a tablecontrol?
    Thanks.

    Hi Kumar,
    Please look at the below sections......
    ADDING BLANK LINES
    To add blank lines to table control we do not need to change any of the fields of the structure CXTAB_CONTROL simply adding blank lines to the internal table will do.
    INSERT INITIAL LINE INTO itab.
    DELETING SELECTED ROWS
    Deletion of selected rows is simple. To delete selected rows first we will determine the rows which have been selected through selection column .
    FOR SINGLE ROW SELECTION
    IF mark EQ 'X' .             "mark is the name of selection column field
    DELETE itab FROM workarea . 
    ENDIF.
    FOR MULTIPLE ROW SELECTION
    *To deetermine the rows selected we will use the selection column field to loop
    *through the internal table.
    LOOP AT itab WHERE mark EQ 'X'.  "mark is the name of selection column field
    DELETE itab                                    " and is part of the internal table .
    ENDLOOP.
    Thanks,
    Ravi Kanth

  • Custom row-fetch and how to get column values from specific row of report

    Hi -- I have a case where a table's primary key has more than 3 columns. My report on the
    table has links that send the user to a single-row DML form, but of course the automatic
    fetch won't work because 1) I can't set more than 3 item values in the link and 2) the
    auto fetch only handles 2 PK columns.
    1)
    I have written a custom fetch (not sure it's the most elegant, see second question) that is working
    for 3 or few PK columns (it references the 1-3 item values set in the link), but when there are
    more than 3, I don't know how to get the remaining PK column values for the specific row that was
    selected in the report. How can I access that row's report column values? I'll be doing it from the
    form page, not the report page. (I think... unless you have another suggestion.)
    2)
    My custom fetch... I just worked something out on my own, having no idea how this is typically
    done. For each dependent item (database column) in the form, I have a source of PL/SQL
    function that queries the table for the column in question, using the primary key values. It works
    beautifully, though is just a touch slow on my prototype table, which has 21 columns. Is there
    a way to manually construct the fetch statement once for the whole form, and have APEX be smart
    about what items get what
    return values, so that I don't have to write PL/SQL for every item? Because my query data sources
    are sometimes in remote databases, I have to write manual fetch and dml anyway. Just would like
    to streamline the process.
    Thanks,
    Carol

    HI Andy -- Well, I'd love it if this worked, but I'm unsure how to implement it.
    It seems I can't put this process in the results page (the page w/ the link, that has multiple report rows), because the link for the row will completely bypass any after-submit processes, won't it? I've tried this in other conditions; I thought the link went directly to the linked-to page.
    And, from the test of your suggestion that I've tried, it's not working in the form that allows a single row edit. I tried putting this manually-created fetch into a before header process, and it seems to do nothing (even with a hard-coded PK value, just to test it out). In addition, I'm not sure how, from this page, the process could identify the correct PK values from the report page, unless it can know something about the row that was selected by clicking on the link. It could work if all the PK columns in my edit form could be set by the report link, but sometimes I have up to 5 pk columns.
    Maybe part of the problem is something to do with the source type I have for each of the form items. With my first manual fetch process, they were all pl/sql functions. Not sure what would be appropriate if I can somehow do this with a single (page level?) process.
    Maybe I'm making this too hard?
    Thanks,
    Carol

  • Delete Rows from T1 which are Not in T2

    Hi
    I've 2 Tables like below
    T1
    N1
    N2
    2
    11
    2
    22
    3
    33
    8
    44
    8
    88
    T2
    N1
    N2
    2
    22
    8
    88
    If I Run Delete query, I must delete Rows from T1 which are Not in T2
    For example, I must delete Rows 1,3,4 from T1
    So how to write that delete query? Please advice

    Delete from T1
    Where not Exists (select * from T2 Where t1.N1=t2.N1 and t1.N2=t2.N2)
    --or
    Delete t
    From t1 t
    left JOIN t2 m
    ON m.N1=t.N1 and m.N2=t.N2
    WHERE m.N1 is null and m.N2 is null
    --Or
    ;With mycte as
    select N1,N2 from T1
    Except
    select N1,N2 from T2
    Delete t
    From t1 t
    INNER JOIN mycte m
    ON m.N1=t.N1 and m.N2=t.N2

Maybe you are looking for