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

Similar Messages

  • Download data from interactive report

    Hi all. I'm on apex 3.1.1.00.09.
    I have this problem: when I download data from interactive report I can download only in CSV and PDF. If I try to download into pdf it creates a file of only 1 KB.
    I would know if I must configure my apex in order to download correctly in pdf and if I must configure it in order to download in doc and xls format.
    Thanks all for collaboration,
    Fabrizio

    Thank you for your reply.
    I am able to download the csv file, but my problem is: I don't want the column headings to show.
    Is it possible to download only the data, not the column headings?

  • Adding radio button to each row of an interactive report: possible or not?

    First of all let me explain what the point of this application is.
    I'm making an application that allows a user to select something out of a drop-down select list. This list is a list of categories for food. Let's say the user selects "Fruit".
    Then the page refreshes and shows an interactive report with a list of food that belongs to the category of fruit.
    Here's where I want to change things:
    I want the user to see the interactive report, but in this interactive report I want to add a radio button for each row.
    Then, when a certain type of food is selected (let's say "Strawberry") via the radio button, a text field should appear underneath the interactive report. In this textfield, the user can then add the weight of the food item, and then it will calculate how many carbs there are in the strawberry.
    All I really want to know is:*
    How do I add a radio button to each row of the interactive report, and how do I link this radio button to the value of that particular row?*
    Additional information:
    The item "P17_FOOD_CATEGORY" contains the following LOV:
    select FOODCATEGORYNAME as display_value, FOODCATEGORYID as return_value
    from FOODCATEGORY
    order by 1
    The "Food" region contains the following source:
    select a.FOODID, a.NAME, b.FOODCATEGORYNAME, c.STANDARDAMOUNT, c.NAME Unit
    from FOOD a inner join FOODCATEGORY b
    on a.FOODCATEGORYID = b.FOODCATEGORYID join FOODUNIT c
    on a.FOODID = c.FOODID
    where a.FOODCATEGORYID = :P17_SET_CATEGORY
    EDIT:
    PLEASE! Even if you don't know a good answer or if you are unsure about your answer, do post! Even suggestions would be welcome! I really need all the help I could get, even if it's not much.
    Edited by: 917169 on Feb 29, 2012 12:25 AM

    Hi there!
    I tried to change my code to your version, but then I get an error message:
    Error Unable to change Interactive Report query.
    ORA-12899: value too large for column "APEX_040100"."WWV_FLOW_WORKSHEET_COLUMNS"."DB_COLUMN_NAME" (actual: 32, maximum: 30)
    I don't quite know what this means. After doing a quick search on the internet, I know that this message should mean that the length of the value for the columns named "APEX_040100", "WWV_FLOW_WORKSHEET_COLUMNS" and "DB_COLUMN_NAME" is too long. But, I don't have these columns. I searched for them in my object browser, and they can't be found in any table related to my application.
    I'm sure your answer is the solution, but do you perhaps have an idea on how to solve this error? I checked the allowed maximum length for any column value that is related to my application, but they all have "50" set as the maximum value...
    Thank you for your reply. ;)

  • Freezing columns and rows in an Interactive Report

    version 3.2.1
    Hello,
    How can I freeze columns and/or rows in an Interactive Report so they don't scroll off the screen?
    Thanks,
    Joe

    In the header html, enter the following
    freeze(rownum=>1,degree=-100,scale=centigrade);

  • Problem with DATE in Interactive Report

    Hello,
    In Interactive Report when I click on the header of any column with DATE datatype, nothing happens due to Javascript error:
    Line: 2
    Char: 14838
    Error: Expected identifier, string or number
    Code: 0
    Click on any other column works perfectly as well as sorting by DATE column from Action Menu.
    I tried to set different format masks for my DATE column and for Application Date Format, but it didn't help.
    Finally I found out that this error disappeared when in properties of my DATE column in "List of Values" section I set "Report Filter Date Ranges" = 'Past' instead of 'All'. In this case I get the list with values "Last 5 Years", "Last 2 Years", etc, but not with "Next Hour", "Next 2 Hours", etc...
    Can someone help me on this issue, because this functionality might be usefull and also it's not very convinient to change this property for all date columns in all Interactive Report.
    By the way, my database version is 9.2.0.5 - maybe it can cause such problem?
    Best regards,
    Vladimir

    Hi Marco,
    1) French Canada (fr-ca)
    2) This filter works
    More informations about the error when I call the function gReport.controls.widget():
    &lth;div id="apexir_DT" style="text-align: center;" onclick="gReport.controls.widget(this.id)"&gth;Date de naissance&lth;/div&gth;
    *************POST*************
    flowid     48579
    p_flow_step_id     5
    p_instance     1412541985987586
    p_request     APXWGT
    p_widget_action     SORT_WIDGET
    p_widget_mod     CONTROL
    p_widget_name     worksheet
    x01     5775894815382747091
    x02     5775899227924757464
    x03     apexir_DT
    *************RESPONSE*************
    {"dialog":{"id":"1966481623126322611","hide":["apexir_info","apexir_computation"],"coltype":"DATE","filter"
    :false,"uv":true,{"dialog":{"uv":true,"row":[{"V":"Failure<br />ORA-20001: get_dbms_sql_cursor error
    ORA-00923: FROM keyword not found where expected"}]}}
    Louis-Guillaume
    Homepage: http://www.insum.ca
    Blog: http://insum-apex.blogspot.com

  • Dynamically set maximum row count in Interactive Report

    Hi,
    Has anyone worked out a way of dynamically setting (e.g. via select list) the maximum row count value for an Interactive Report, taking into account issues with order by when the report is filtered. I'm aware of solutions like this: http://www.talkapex.com/2010/10/apex-reports-no-limit-downloads.html but as far as I can tell this doesn't work when the report is filtered and the IR is rewritten in the background. Data sets then become unreliable because they are reordered.
    Thanks,
    Mike

    Hi Mike,
    You can do that with javascript
    gReport.search('SEARCH',100)the 100 you can replace for any number you like.I have a report with filter,sorting and groups and it is gives no problem there.
    any number means any number but not higher than the number you set at Maximum Rows Per Page.
    You probably can mix the solution from Martin and the above code.
    Regards,
    Kees Vlek
    <tt>Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66</tt>
    If the question is answered please change it to answered and mark the appropriate post as correct/helpfull.
    Edited by: kvlek on 24-apr-2013 12:29
    Edited by: kvlek on 24-apr-2013 12:35

  • Subscriptions - prevent from sending when no data in interactive report?

    Hello,
    I am wondering if it is possible to prevent a notification from being sent if there is no data in the interactive report on the day specified in the subscription?
    eg. I receive a private report Isabelle's Open Issues every Friday, but last Friday there were no open issues.
    We have another request for a weekly subscription but the requirement is that the report should only be sent when there are open issues.
    Thank you for advising.
    Kind regards,
    Isabelle Fallon

    I think there is no condition like that.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Row filter on Interactive Report via URL parameter

    Hi,
    I've searched the forum but can't find a concise answer.
    Is it possible to pass a parameter (p_X) from one page to another via the url and then use p_X to act as a row filter in an Interactive report?
    Thanks for the help
    Joel

    Joel -
    Read the link that Andy posted. It is a pretty good source. This topic is not really that difficult to do. I have done it several times. Make sure that you understand the URL syntax for APEX. If you need a refresher on this take a look at http://www.oracleapplicationexpress.com/tutorials/55
    Austin

  • How to display data in interactive report column without colons (:)

    Dear Apex gurus,
    I'm a newbie and have just created an Apex application from a spreadsheet. I've created a named list of values and used it in a checkbox against a field in the default page 3 Create form.
    When I've selected multiple values in my check box in the form, the data in the interactive report appears as one line with colons separating the selected values like this: Dog:Cat:Bird
    What I would like is to have the data appear in the interactive report column as a multi-line list like this:
    Dog
    Cat
    Bird
    I can work around this by modifying the SQL code in the Region Source of the Region Definition of the report (Default Page 1 interactive report) to replace the colons with <br>
    SELECT replace("PETS_CHOSEN",':','<br>') "PETS_CHOSEN", FROM "MYAPP" Note: this doesn't format properly in the posting. I replace the colon with a html br
    This works, but seems to be a hack to me. I am guessing that I've missed a simple option setting somewhere, but I can't find it.
    The other problem with this solution is that when I export the report to Excel, what is exported is Dog<br>Cat<br>Bird, which is seems worse than colons.
    Thanks,
    - Morgan
    Edited by: mnrussel on 16-Feb-2009 04:13

    Hi Morgan,
    I think you have at least two choices:
    1 - Replace the colons with ', ' (comma and space) - sort of reasonable on screen and in an export
    2 - Create a second page that has the same report but uses the "export: csv" template. Create a manual link to this page to replace the standard Export link. When such report pages are requested, they download immediately instead of displaying. You can, therefore, use commas in this one and &lt;br&gt; tags in the on-screen report version
    Andy
    ps - To display tags in a post, use &amp;lt; for &lt; and &amp;gt; for &gt;

  • Date Range Interactive report

    I have an interactive report
    I want to include
    where dte between to_date(:p38_from_date,'mm/dd/yyyy') and to_date(:p38_to_date,'mm/dd/yyyy')
    I have 2 date pickers and they both format 'mm/dd/yyyy' I can not get this to work
    Above what I am doing here is i want to include a NVL on each date parameter in the SQL statement.
    nvl(:p38_from_date, '01/01/2009') and '12/31/2050'
    I have looked at this forum extensively and I may be a little thick when it comes to dates in apex.

    I've had something similar and found it was a problem with the date strings. In my case, I wasn't handling a month that didn't have a leading zero properly, so it was an easy fix.
    Another thought is, what if you put a SELECT * FROM () around your UNIONed query and did the field comparison on the outer field? I'm guessing something's messing up in one of the UNIONed SELECTs.
    Feuerstein had sample code for taking in a string that supposedly held a date and matching it to multiple possible format strings, returning a date. Maybe you could try that?
    Good luck,
    Stew

  • Selecting a set of rows in an Interactive Report

    Hi,
    What I want to achieve is when a row is clicked in an interactive report that row (via a Primary Key/ROWID) is added to a list of IDs to be edited in one go, I will probably use a collection for this, although a colon delimited list might be quicker and/or easier. The two ways I thought of trying to achieve this was by bending the use of the Link Column and providing a Link to Custom Target or using a row selection technique described below.
    My initial thought was to make it a check box which then called some JavaScript/On demand process, similar to the one shown here. So far I've tricked it by making the image my check box and the link attributes being my function which returns false to stop the page redirecting when clicked. The problem is I can't seem to get the ROWID to appear, I've tried #ROWID# which simply puts that string as the input, so for example, my "image" is this: <input type="checkbox" value="#PK_ID#" name="f01"/>So, if I could get something meaningful in there instead of ROWID it would work a treat I think.
    The alternative method was to use a form of the row highlighting described in this Row Highlighting. The problem here seems to be that for an Interactive Report you cannot change the table row elements to add the onclick. Also when trying this (using Firefox to add the appropriate code to a TR element) it works, as in the function fires, but does not change the appearance of the rows. I lack the CSS/HTML skills to work out why so far.
    Worst case I can simply create a checkbox field in the query as per the example above, the only drawback is that the column might not always be available in the report if the user has hidden the column.
    Any ideas?
    Many thanks,
    Gareth.
    Edited by: gaz_stephens on Jan 16, 2009 12:09 PM

    Hi,
    If all of the records are displayed on the report in one go (that is, there is no pagination involved), then you can add the onclick after the table has been created. Add the following into the report's Region Footer setting:
    &lt;script type="text/javascript"&gt;
    function addEvents()
    var t = document.getElementById(gTable);
    var tRows = t.rows;
    var k;
    for (k = 1; k &lt; tRows.length; k++)
      tRows[k].onclick = function() {alert('Here');};
    addEvents();
    &lt;/script&gt;If pagination is involved, then any javascript will not be run when the next page is displayed. The alert('Here'); in the code would need to be replaced with some javascript functionality - probably calling a javascript function that works on the TR's "this" object reference.
    Andy

  • How to get .oce to talk to DAS & bring back data in Interactive Reporting?

    Hi Hyperion Experts,
    This is also a fairly basic question, I use Hyperion 9.3.1 and I have Shared Services, Workspace and Interactive Reporting Studio running on our Windows 2003 Server.
    My goal is to import a .bqy document I created in Interactive Reporting Studio into workspace, and be able to click on the "refresh" button and see it refreshes the data from the backend Oracle 10g database.
    I have completed the following steps so far,
    1. I have created a DSN. This DSN, named "Oracle 10g Data Source", when I clicked on "Test Connection" button, It ran successfully.
    2. I have created a new Datasource entry in the DAS service. If I double click on the newly created Datasource entry, the screen would display the following details.
    Connectivity Type = Oracle Net
    Database Type = Oracle
    Enter the name of the Data source = Oracle 10g Data Source
    Select the name of the Data source (it is grayed out, nothing selected)
    Server/File (it is grayed out, nothing entered)
    then, followed by some default connection parameters.
    3. I have created a "Oracle 10g Data Source.oce" file using the Interactive Reporting Studio. I saved the .oce file at
    C:\Hyperion\BIPlus\data\Open Catalog Extensions\Oracle 10g Data Source.oce
    4. I created a new constrProj_Oracle10gOCE.bqy, during the creation, I chose
    "Create a new document with Recent Database Connection File" option, then I chose the Oracle 10g Data Source.oce that I have created in step 3. After I log in with host user/password, I have created a data model and I see that it brings back a data set when I clicked on the "process" button. I saved this .bqy document.
    5.
    I imported the Oracle 10g Data Source.oce and constrProj_Oracle10gOCE.bqy into the workspace under a folder called
    Root/MYBI/Test
    6. I right click on the constrProj_Oracle10gOCE.bqy document, and chose "Open". It opened with Results section highlighted on the left hand side, and with data showing on the right hand side. However, when I clicked on the "refresh" button, I'd get a message box with a red X. It says,
    An Interactive Reporting Service error has occurred -
    Failed to acquire requested service.
    (2001)
    I guess the data I see in this constrProj_Oracle10gOCE.bqy was just the cached data that was brought back when I hit the process button of this .bqy when it was first created in the Studio, and that it never established any connection via the DAS service to the backend.
    Could someone please show me what I have done wrong here?
    thanks,
    hypuser1010

    EricaHarris,
    Yes, the issue is still open. Obviously, I have gone down the path of "Scenario One".
    Based on your reply, I have done the following.
    There are three things I am configuring here: DSN, DAS and OCE.
    1) When I created the DSN,
    I started the ODBC Data Source Administrator, Click on second tab "System DSN". I added a new ODBC Data Source.
    Data Source Name = Oracle 10g Data Source
    TNS Service Name = //146-abc.xyz.com:1521/MYORCL0617
    2) I re-created the DAS entry, per your suggestion, I made sure that "the name of the data source will be the host name you specified in your OCE".
    Connectivity Type = Oracle Net
    Database Type = Oracle
    Enter the name of the data source= //146-abc.xyz.com:1521/MYORCL0617
    3) for my OCE, I specified
    Connection Software = Oracle Net
    type of Database = Oracle
    on the first screen.
    then, on the next screen, I specified
    Host = //146-abc.xyz.com:1521/MYORCL0617
    I reployed the OCE, the .bqy document and restarted DAS. Yes, my .bqy document does refresh its data successfully from the backend.
    However, I am not 100% convinced that the .bqy uses the OCE which talks to the DAS, which talks to the DSN entry and brings data back to the .bqy document.
    Here is what I did,
    I opened up the DSN entry, changed the TNS Service Name from //146-abc.xyz.com:1521/MYORCL0617 to
    //146-abc.xyz.com:1521/NONSENSE. I then restarted DAS and redeployed the .bqy document. the .bqy document is still able to refresh its data. So, I have just proven that the .bqy document does not need a valid DSN entry to work, how come??
    Can you (or anyone) please explain the phenomenon that I see?
    Also, a very basic question. you know that when you create a .bqy in the Studio, you "import" an OCE into the .bqy document so that the .bqy knows that it should use this OCE to talk to the backend data source. but, when you deploy this .bqy in workspace, how does the .bqy know that it is supposed to go through DAS (and DSN) to interact with the database, rather than the "internal" OCE that was pre-built with this .bqy?
    thanks,
    hypuser1010

  • How to edit "Single Row View" in Interactive Reports?

    Hi,
    When using Interactive Report when one clicks on the little page icon on the left on a gievn row - one is presented with a small output from all columns for that row.
    For example login as demo/demo to:
    http://apex.oracle.com/pls/apex/f?p=12988:1
    And click on the first icon in the first row. You'll get an output like:
    Empno     7839
    Ename     KING
    Job     PRESIDENT
    Mgr     -
    Hiredate     17-NOV-81
    Sal     5000
    Comm     -
    Deptno     10
    How (and where) can I modify the output of this?
    Regards,
    Pawel.

    Thanks, for your responses.
    In fact this is what I have done. What I am looking after is simply how to modify what is already there. That way, I don't need to create different pages with Next/Previous buttons etc... for every Interactive Report I have.

  • Link to other pages of rows in APEX Interactive Report

    In my Interactive Report I would like to add a way to click on page results other than just clicking the > to advance to the next set of results.  I have my rows per page set to 15 by default and would like to keep it that way, but want a way to add links to page 4 or page 5 or page 10 as well.  Has anyone done that before, and if so ideas would be greatly appreciated.  I need to keep my rows per page to 15 because of parameters I send to another page, so increasing the rows per page is not an option. Thanks.

    Hi,
    The next button in your pagination fires a javascript function:
    gReport.navigate.paginate('pgR_min_row=16max_rows=15rows_fetched=15')
    You can create a page button or link containing that javascript function. Replace the number 16 by the rownumber you want to start your result set.
    Kind regards,
    Vincent Deelen

  • Total Rows returned in interactive report

    Hi
    I have an interactive report that displays a warning message if more than 200 rows are returned. Is there anything within APEX that tells me the exact number of rows returned in my report, or at the very least if my report has exceeded my 200 row limit?
    I have a button on my page that I only want to display if the number of rows returned in my query is <= 200.
    I know that I could use say NDS to execute my select statement in order to determine the number of rows as a seperate statement - but this seems a bit of over-kill.
    Many thanks
    Paul

    M Tajuddin wrote:
    Hi Paul,
    You can change the this from report attributes. Click on Edit page >> click on the Interactive report >> click on Report Attributes on the top >> down the bottom there is an option where you can change the row numbers and error message etc.
    Hope this helps,
    M Tajuddin
    http://tajuddin.whitepagesbd.com
    Hi
    I dont want to modify the number of rows returned. I just want to know how many rows are returned so that I can display or hide a button.
    Thanks
    Paul

Maybe you are looking for

  • Formatting output and downloading it as a word document

    Hello, I have come across this requirement where i have to draw a table with certain number of rows and columns(defined), with data in a few columns being static and data in a few other columns being dynamic. Also I need to insert objects like ean xc

  • Data Migration from 2005 B to 2005 A

    Hi expert, As due to relocation and I need to know is there a way to convert the 2005 B version to 2005 A version with simple DTW, CopyExpress or any other tools to speed up the process? Thank you and regards, Joan Lim.

  • Plant creation in IS-Retail.

    Hi guys..I need you help...I create the plants in Retail by transaction WB01. I'm using the plant profile 0110 for plants (stores). But now i have the situation that plant was create as store needs turn on a distribuition center (0100 Plant Profile).

  • Query on BAPI -LSMW

    Hi All, I have a requirement on LSMW,  Can any body send me step-by-step procedure to create SD-pricing conditions by using BAPI in LSMW. Thanks, Naga

  • As an Administrator, how do I see what a Reader sees?

    As an Administrator, how do I see what a Reader sees? For example, I am developing a SharePoint 2010 list.   My users will have read rights only.  How do I see the page from their view. d.bell