Delete column in an interactiv report

Hello
I would like have a column in an interactiv report to delete the row,
with an X or a "delete" or so...
is that possible?
or how is that possible?
regards
markus

Hi Markus,
I made an application for the ORACLE APEX AWARD in Germany this year with exactly this feature in it.
Here is the link http://apex.oracle.com/pls/otn/f?p=25500:1
Login with Loginame: guest and Password: apexuser
On the first page you can see an IR go on the detail button and you will get linked to another page. In it you find what you need in action. You also can download this sample application: http://www.oracle-apex-award.de/TIA-Technische-Infrastruktur.70.0.html
Unfortunately the application is in German. I hope you will understand.
Howto:
Go into Report Attributes>Column Attributes and change the values for:
Link text: <img src="#WORKSPACE_IMAGES#tmp_user_delete.png" alt="delete contact person"> // for the picture
Target: URL
URL: javascript:confirmDeleteGET(htmldb_delete_message,'f?p=&APP_ID.:8:&SESSION.::::P8_ACTION_DELETE:#ID#');
Go into Edit Page and edit the HTML Header:
<script language="JavaScript" type="text/javascript">
htmldb_delete_message='"DELETE_CONFIRM_MSG"';
function confirmDeleteGET(msg,url){   
var confDel = msg;
confDel= confirm("Would you like to perform this delete action?");
if (confDel== true){      redirect(url);}}
</script>
Now add a Before Header process
Under source:
begin
delete files where id = :P8_ACTION_DELETE;
commit;
:P8_ACTION_DELETE := '';
end;
Under Conditional Processing
Type: PL/SQL Expression
Expression1: :P8_ACTION_DELETE IS NOT NULL
Greetings,
Tobias

Similar Messages

  • 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

  • Select Checked interactiv report

    Hallo,
    i want to use checkbox in a interactiv report and want to save
    the selected rows in a textarea.
    There is a sample hier:
    http://htmldb.oracle.com/pls/otn/f?p=31517:95:1334818268761982::NO
    But in the sample there was used a Tabular form and I use a interactiv Report
    and it doesen´t work with the interactiv report.
    If i select some rows and press butten "pick records" the Textarea get
    no value, it is empty.
    Could anybody help me.
    Thanks.

    Hi,
    I'm using checkboxes in IR and didn't have any problem with that. If you attached checkbox into statement (apex_item.checkbox (1, a.ID)) then you just need button and process.
    That is my process:
    It delete only selected checkbox users...
    DECLARE
    v_count NUMBER;
    BEGIN
    v_count := NULL;
    FOR i IN 1 .. apex_application.g_f01.COUNT
    LOOP
    SELECT COUNT (*)
    INTO v_count
    FROM users
    WHERE userid = :app_user AND ID = apex_application.g_f01 (i);
    IF (v_count = 0)
    THEN
    DELETE FROM users
    WHERE ID = apex_application.g_f01 (i);
    COMMIT;
    DELETE FROM privs
    WHERE user_id = apex_application.g_f01 (i);
    COMMIT;
    :p16_msg := 'User delated.';
    ELSE
    :p16_msg :=
    'Operation failed.';
    END IF;
    END LOOP;
    END;
    As you see it simple but depond what you really need..
    Thx

  • Deleting multiple rows in a report ?

    db11gxe  , apex 4.0 , firefox 24 ,
    how to delete multiple rows in a report at one time ?
    thanks

    Hi newbi_egy,
    Here is a small demo with few steps that can be used in your scenario-
    1) Below is the query of a report on emp table which has empno column with unique values-
    SELECT APEX_ITEM.CHECKBOX(1,empno) " ", ename, job FROM   emp ORDER  by 1
    2) A Delete button is created that submits the page.
    3) An on-submit process is created with Process point On Submit - After Computation and Validations with condition that the below process runs when Delete button clicked.
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F01.count
    LOOP
    delete from emp where empno=APEX_APPLICATION.G_F01(i);
    END LOOP;
    END;
    I hope this might help you.
    Regards,
    Das123

  • I am unable to get order by column name in oracle report parameter form

    i created query like following in query builder
    SELECT CASE_NO, COURT_ID, CASE_TYPE,
    INITCAP(PLAINTIFF) PLAINTIFF,INITCAP( DEFENDENT) DEFENDENT,
    INITCAP(COUNSEL) COUNSEL, START_DATE, PREVIOUS_HEARING_DATE,
    NEXT_HEARING_DATE,INITCAP( DESCRIPTION) DESCRIPTION,
    INITCAP(RELIEF) RELIEF,INITCAP(EXTENT) EXTENT,
    DECREE_DATE,INITCAP(STATUS) STATUS,INITCAP( LOCATION) LOCATION,
    LEGAL_FILE_NO, MSNO
    FROM L_CASE_MASTER_MAIN
    WHERE to_char(NEXT_HEARING_DATE,'DD-MON-YYYY')=:P_NHD ORDER BY :P_COL
    and i created parameter form for these two bind variables :P_NHD,:P_COL
    in,:P_COL i wrote lov as Select trim(COLUMN_NAME) from user_tab_columns where table_name='L_CASE_MASTER_MAIN'  to get all the columns.
    in parameter form i am able to get all the columns but when i am generating report it is not giving results as per my ordered column.
    kindly let me know the solution
    Report Version :Oracle Reports 11g
    Db Version:Oracle  11g

    Hi,
    Ordering the column first takes place from the Data Model Itself.
    Please Check your column ordering in the report data model. If it is not ordered in a right way then Rearrange it.
    Remove your order by in query...
    If any issues... let me know
    Regards,
    Soofi

  • LOV of column names with a report's custom column headings?

    I have a list ov values definition that looks like this:
    select column_name d, column_name r from all_tab_columns where table_name = 'DATABASE_LIST'
    I'd like to list the custom column headings from a report as d, rather than repeating the column_name. How can I do this?

    As Anton said, the best thing is to store your custom headings in a table so that you can use the table for your LOV as well as for your report headings.
    To use dynamic report headings, you can use the 'PL/SQL function body returning colon-delimited headings' feature on the Report Attributes page.
    So, if your report headings are stored in table t that function body can be
    declare
    l_headings varchar2(4000)
    begin
    for rec in (select heading from t) loop
       l_headings := l_headings||':'||rec.heading;
    end loop;
    return ltrim(l_heading,':');
    end;Hope this helps.

  • Adding new column in an existing report which was build using Union

    While working in OBIEE 11g I encounter an issue.
    My existing report was build using UNION at Criteria Tab in Analysis. Now I have a requirement to add a new column into the same report. For each criteria I have added the new column but when I go back to the "Result Columns". I see a new field added but it is not allowing me to open or edit column properties for that new column & at the same time it is not allowing me to navigate to other tabs like Results, Promts, and Advanced.
    I don’t want to build this report from scratch. Is there any workaround to get it resolved?

    Hi,
    Just check it once the new added column data types are mismatched or not?
    and the new added column should be navigated into excluded section, so u should edit the report and dragged into the table column section.
    Thanks..

  • Problem adding column in an interactive report

    Hi all
    I am dealing with many interactive projects in my application. Sometimes I have to add a column to the interactive report. When I do so, the column doesn't appear in the interactive report...On the page I have to click on "Actions" then go to "Selected columns" and then display it ! the problem is when I logout and login again
    the column desappear again and I have to do samething again and again...Is there a way to set it appear by defaul always ???
    THank you

    Moun wrote:
    I am dealing with many interactive projects in my application. Sometimes I have to add a column to the interactive report. When I do so, the column doesn't appear in the interactive report...On the page I have to click on "Actions" then go to "Selected columns" and then display it ! the problem is when I logout and login again
    the column desappear again and I have to do samething again and again...Is there a way to set it appear by defaul always ???After adding new columns to an existing IR, you need to select them for display as a developer, and save the new report as the Primary Default.

  • How to set up a column link to the column attribute in a report

    Hi All
    I have 6 column in a sql report in a page, column names are (Devicename devicerole,from etc).
    Now i need to set a link to this column and this need to link to the another page
    Thanks & Regards
    Srikkanth.M
    Edited by: Srikkanth.M on Apr 6, 2011 6:17 PM

    Hi
    Read this and follow it...
    >
    Go to the report attributes, then click on the edit link button by the side of the column you want to be a link to get to the column attributes.
    >
    So...
    1. Go to edit the page that contains your report.
    2. Click on the report region as if you were going to edit the report query.
    3. Click the Report Attributes tab.
    4. Click the button at the side of the column in question.
    5. Scroll down to the Column Link section and fill in the details.
    I really can't put it much more simply than that...
    Cheers
    Ben

  • GR and IR as separate columns in the BEx report

    Hi,
    I am working on a Purchasing report in which the user needs the snap shot of PO history,Like PO no.,Item,Netprice,PO Qty,Net order value,GR no.,IR number etc.
    I created a view on EKPO and EKBE.Here,based on the BELNR(Material document) field we are taking GR and IR values.(When VGABE =1 BELNR=GR and VGABE = 2 BELNR=IR).I created DSO to load the data.The problem is they need the GR and IR as separate columns in the BEx report.Could u please help me how to achieve this in BI?
    Thanks & Regards,
    Dinakar.

    Hi Neel,
    I need the BELNR has to be split into GR No.and IR No. separately based on VGABE field.
    Thanks & Regards,
    Dinakar.

  • Drill function implemented on Measure object column in the webi report

    Post Author: madan kumar
    CA Forum: WebIntelligence Reporting
    Hi,
    I have a small issue in my project.(Maintenance Project)I created a measure object in the fact table of the existing universe and saved and exported to the repository. (Say Measure object is D where D = A-(B+C))I inserted the same object as a column between two measure objects columns of a existing WebI report.
    The report has two hierarchies involved  - each hierarchy has dimension objects involved.I have checked with the hierarchies to make sure that measure object is not involved.The scope of analysis is None for the query.Version is BO XI R2.
    The issue is the Drill function is implemented on that particular new column.The drill function should be applicable only to the two dimension objects involved in the report.But this measure object column is also getting drilled once the Drill option is selected.I had to remove the drill optiion from the Measure object column.
    Can anyone help me on this issue...
    Thanks in advance...
    Madan Kumar

    Sushil
    Thanks for your reply. I did the date diff on the columns. It does not  break into 3 different groups. I am using a function called previous on the date column. So the report is like this
        DATE                           Pervious (DATE)                 Date - Pervious(DATE)
    01-01-2008 01:06              Null                                
    01-01-2008 01:12              01-01-2008 01:06               :06
    01-01-2008 01:18              01-01-2008 01:12               :06
    01-01-2008 01:24              01-01-2008 01:18               :06
    01-01-2008 01:30             01-01-2008 01:24              :06
    01-01-2008 01:36             01-01-2008 01:30               :06
    Basically we are breaking on the Date - Previous ( Date) column which does not work. I am not sure if there is a way to break this. I even tried it in Crystal REports XI and it does not work their either. Any help with this issue with be greatly appriciated.
    Edited by: Srinivasa Prabu on Aug 4, 2008 2:55 PM
    Edited by: Srinivasa Prabu on Aug 4, 2008 2:56 PM

  • Column link in interactive report to run procedure and refresh

    I have an interactive report which displays a report based on a table. This is a summary table populated overnight from some complex spatial analysis, which takes a few hours to run. I have a requirement to allow the user to refresh one row in this table - they would do this during the day if they needed to see the most up-to-date values.
    I have a package with two stored procedures - one which does the full refresh of the table, and one which refreshes one row when PK is passed in.
    One of the columns in the table is 'last_refreshed' which is a date - this is shown in the interactive report including minutes.
    I was thinking that maybe I could include a hyperlink on this 'last_refreshed' date column in the report. When a user clicked on it, it would run the stored procedure for that row and would refresh the report.
    Any ideas on how I could do this? I've hit a bit of a dead end for now.
    Thanks

    OK, I worked it out.
    I created an application item to store a global variable.
    Then in the column attributes of the report, I set the 'last_refreshed' to be a linked column, setting target to the current page and then setting the application item global variable to be the row PK.
    Then I have a Process which runs the required stored procedure reading the application item global variable, set to run on page load.
    Sorted.

  • How do add column to a Crystal report 8.5

    Post Author: Jsantos
    CA Forum: Data Connectivity and SQL
    Hi guys, I would like some help.
    I have  a VB Form in VB 6 that call a report made in Crystal report 8.5 and I want add a column of a SQL Server 2000's table
    inside this report called reportSales
    I already Add a table inside  this report clicking in Main report,......."aDD database to report..." etc.
    and drag  this  column called col_1 to report in group Footer
    my Vb 6 code is below :
    When I make a Debug the variable ls_Location received the new table that I added to link 1 field.
    but  tha happened when I load the report is that just appear 2 columns an not 16.
      With reportSales
            ' Conect to SQL        Call .Database.LogOnServer(DLL_CRYSTAL, ls_Dsn, ls_Database, ls_Username, ls_Password)                '''' manage  tables
            For Indice = 1 To .Database.Tables.Count            Call .Database.Tables(Indice).SetLogOnInfo(ls_Dsn, ls_Database, ls_Username, ls_Password)                        ls_Location = "dbo." & .Database.Tables(Indice).Name            Call .Database.Tables(Indice).SetTableLocation(ls_Location, Empty, Empty)        Next Indice                   Call .ParameterFields.Item(1).ClearCurrentValueAndRange        Call .ParameterFields.Item(1).AddCurrentValue(m_cod_picking)
        End With
        CR.ReportSource = reportSales    Call CR.ViewReport    Screen.MousePointer = vbDefault
    thanks!!!

    If you still have a working install you can use regedit to get the keycode from the Local Machine key. Other than that you'll have to find the original CD packaging where you'll find the keycode on the packaging. Or check with your accounting department, they may have received an invoice with the keycode on it, I don't think we did that but worth trying.

  • How to use one report column into the another report in obiee

    How to use one report column into the another report in obiee

    i dont want to use column as a filter for another report it should be report column for another report
    Thanks,
    Vivek

  • How to refresh after delete the records in ALV report ?

    Hi Friends,
    How to refresh after delete the records in ALV report.
    I am deleting records in ALV report .
    After successful delete the screen should refresh.
    u201C Deleted records should not appear in the screen u201C.
    Please guide me.
    Regards,
    Subash

    Hi subhash,
    FORM user_command USING r_ucomm LIKE sy-ucomm      rs_selfield TYPE slis_selfield.
    WHEN 'BACK'.
    Refresh the internal table from the ALV grid
          PERFORM update_alv_tab.
    ENDFORM.                    "user_command
    FORM update_alv_tab .
      DATA :  e_grid TYPE REF TO cl_gui_alv_grid.
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = e_grid.
      CALL METHOD e_grid->check_changed_data.
      "update_alv_tab
      CALL METHOD e_grid->refresh_table_display.
    ENDFORM.                    " UPDATE_ALV_TAB
    Then see in Debug mode is it updating or not..
    Please confirm .
    And please paste the code if you can.
    Regards.

Maybe you are looking for

  • Global Temp Table or Permanent Temp Tables

    I have been doing research for a few weeks and trying to comfirm theories with bench tests concerning which is more performant... GTTs or permanent temp tables. I was curious as to what others felt on this topic. I used FOR loops to test out the perf

  • No Audio on Saved File

    First and Formost, I know nothing of computer jargon.  My operating system is Windows Vista and I'm using Premiere Elements 4.0.  I'm making a fan video with lots of video clips choreographed around a song.  I have to save the file to my computer bef

  • IPhoto 9.4 Update-Scrolling Freezes in Faces

    I have 859 Faces in iPhoto.  After the 9.4 Update, scrolling up or down in Faces freezes.  I can exit out of Faces but when I return, it still will not scroll. Is anyone else having this issue and if so have you had luck in a remedy?  I appreciate al

  • Exchange 2010 Local Move Request with Error (hr=0x80004005, ec=1292)

    Trying to migrate from exchange 2003 to 2010. Ran a Local move request and received the following error. What can I do? Summary: 1 item(s). 0 succeeded, 1 failed. Elapsed time: 00:00:01 Aman Amiri Failed Error: MapiExceptionMailboxInTransit: Unable t

  • HT4623 is it possible to purchase the software for SIRI to be downloaded on an iphone 4g?

    is it possible to purchaes the SIRI software to download on an iphone 4g?