Automatically delete the data in row on the interactive report

Hi all

I would like to know is it possible to automatically remove row on interactive report data when the check box is selected.
I'm enjoying if you can share your opinion or solution.

Thank you very much in advance!

Best regards
Liz

Hello

Why you love square?
Is it more clear for the user have button/image as in my example?

This is an example only, you must change according to your needs. Example have no confirmation dialog.
HTML page header


The DELETE_ROW application process

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 to your table name and the pk column name.

Call button/image javascript (infrared column binding) or the check box, and then send the value of the primary key as parametter

BR, Jari

Published by: jarola on July 5, 2010 11:58

Tags: Database

Similar Questions

  • Filter delete automatically the interactive report

    Hello world

    We are seeing the question in the filter APEX. I applied the action filter-> filter. the filter is applied as expected. then we are navigate current page to another new page. When we return to the old filter page, we are not able to get the filter.

    For example: we have the "amount" column I applied a quantity of filter > filter 0 on page 1, then page 2 accessing we. When we return to page 1 we are not able to find the amount > 0 filter

    Let me know how to solve this problem.

    Kind regards

    Sushant

    Hi LnTInfotech,

    LnTInfotech wrote:

    Hi Sunil,

    Thanks for your information, but in my case, we do not save the default (primary) report. We have to got to page 1 to page 2 with any filter and return back to page 1 need to show the same filter.

    Kind regards

    Sushant

    Are you compensation/reactivate the interactive link (button, breadcrumb) report? Reference: a link to the interactive reports

    As clearing (CIR) /resetting (IRB) interactive report leads to clear the filters applied to the interactive report in the session active.

    Note: Filters / other attributes of the action menu applied to the interactive report are specific session, user may choose to save it as a saved report interactive and developer can choose to save as the main report.

    For more information about interactive reports see the Oracle APEX documentation and tutorials available on Oracle Learning Library like this:

    http://www.Oracle.com/WebFolder/technetwork/tutorials/OBE/DB/Apex/R40/apexirr/apexirradv/apexirradv_ll.htm

    I hope this helps!

    Kind regards

    Kiran

  • When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?

    When I try to change the interactive report columns, then triggers the error: "unable to change column attributes. "ORA-01403: no data found. Pls tell me why?

    You use listener EA3 ADR?

  • between operator to group by date in the Apex of the interactive reports

    Hello

    In the filter of interactive reports, I could not find the "between" for the date field (got a "group by date" in my (source) sql query.) I wonder, is - this in view of the group by clause date?. Is there a way to show the operator "between" in the interactive reports filter.

    Thank you

    I just opened an existing style IR report, went to the actions, filter, selected a date column and found at the bottom of the list of values... Are you sure of the date that you want to filter on is a real date column?

    Thank you

    Tony Miller
    Webster, TX

    What happens if you were really stalking a paranoid schizophrenic... They would know?

    If you answer this question, please mark the thread as closed and give points where won...

  • "of data type not supported" in the interactive report

    Hello

    I'm trying to download a file from a link to an itneractive report.

    In the section "attributes of report" interactive column, I defined in the section "links" in a column of the 'target', 'URL', and the URL like this:
    DOWNLOAD:CONVENTIONS:#FILE_BLOB#:#ID#::#MIME_TYPE#:#FICHIERS#:#LAST_UPDATE#::attachment:Conv
    When I run the interactive report, the link view this:
    Download: CONVENTIONS: [type]:188:C22.pdf:attachment:Conv of data not supported

    The table "CONVENTIONS" is defined as follows:
    ......
    ACTIVATE THE 'ID' NUMBER NOT NULL,
    VARCHAR2 (2048 BYTE) "FILES."
    'FILE_BLOB' BLOB,
    "LAST_UPDATE" DATE,
    'MIME_TYPE' VARCHAR2 (255 BYTE)

    Where is my mistake?

    Thanks for your help!

    Christian

    Hello Christina,

    Sorry Wizard, you need to use is the "form > form on Table with Report", because the normal create assistant interactive report allows you to enter a query.
    Once you have completed the wizard, take a look at the generated SQL statement (must use the dbms_lob.getlength) and the value in "number Format / Date" for this column.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

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

    Dear gurus of the Apex,

    I am a beginner and you just create an application for the Apex of a worksheet. I created a list of named values and used in a box against a field in the page creation form default 3.

    When I selected several values in my box on the form, the data in the interactive report appear as a single line with a colon separating the values selected as follows: dog: Cat: bird

    What I would like is to have the data appear in the interactive report in a list like this multiline column:

    Dog
    CAT
    Bird

    I can work around this problem by modifying the SQL code in the Source region of the definition of the area of the report (interactive 1 Page by default) to replace the semicolon by < br >

    SELECT replace ("PETS_CHOSEN", ":","< br / > ')"PETS_CHOSEN", OF"MYAPP"Note: this is not format correctly in the display. I have replace the colon with a html br

    This works, but there seems to be a hack to me. I guess I missed an option simple setting somewhere, but I can't.

    The other problem with this solution is that when I export the report to Excel, that ship's dog < br > cat < br > Bird, which is seems worse than the colon.

    Thank you

    -Morgan

    Published by: mnrussel on February 16, 2009 04:13

    Hi Morgan,.

    I think you have at least two possibilities:

    1. replace the colon with "," (comma and space) - kind of reasonable on the screen and export

    2 create a second page that has the same report but use it "export: csv" model. Create a manual link to this page to replace the standard export binding. When these pages of the report are requested, they download immediately instead of display. So you can use commas in this one and < br > tags in the report to the screen version

    Andy

    ch - to display the tags in a post, use and lt; for < and & gt; for >

  • ToolTip for the interactive report column data item

    I have a report that includes the column (CURRENT_UNIT). I would like to be able to add a "ToolTip". I did it before using a classic report by the following (borrowed from another one of the APEX):

    Add this CSS

    {a.rapxxx}

    position: relative;

    z index: 24;

    {text-decoration: none}

    a.rapxxx:hover {z-index: 25; background-color: #ff0}

    a.rapxxx span {display: none}

    duration of a.rapxxx:hover {/ * poster only over time: hover state * /}

    Display: block;

    position: absolute;

    top:-20px;

    Left: 20px;

    Width: 20em;

    border: 1px blue solid dark;

    text-align: center;

    background-color: lightyellow;

    color: Blue;

    }

    And on the SHAPE of COLUMN layout, add this:

    < a href = "#" class = "rapxxx" > #CURRENT_UNIT # < span > #UNIT_NM # </span > < /a >

    But when I try it on the interactive report, I don't get the hover tooltip.  The href attribute is displayed correctly, just, I don't get the value of the span.

    Can someone help me please?

    Using APEX 4.2.3

    Internet Explorer version 9

    Thank you

    -Seattle

    Oh, if the column is not a link, just the URL target value #.

  • How to add the action button for each column in the interactive report

    Hi all

    I'm new in APEX, so pls forgive my question, if it's simple, but I am struggling with this problem for days now. I have interactive report and you want to add button in each row. What I want to do with this button is the following:

    1. to execute some stored procedure in need of that particular line item values

    2. returns a (id)

    3. go in another page in the application by passing the value out of the procedure (id).

    and I'm not find the way to do it. I tried now means:

    1. If I add the link of the column, so I can refer to the value of the current row, I don't know how to call the stored procedure and perform actions of rest I need

    2. If I add the button to the region, I do not know how to reference the values in column of a particular line of the interactive report...

    and I'm stuck...

    I just forms and global report and probably still think the "wrong" way .

    Any help would be appreciated!

    Thank you!!!


    user3253917 wrote:

    Please update your forum profile with a real handle instead of 'user3253917 '.

    I request of the company: there is a customer who always orders the same standard product orders (always order the same products, fair amount is different). I want to make it simple for the user: instead of retyping the command (master and few records details every time yet) I want to copy selected command (copy of the master record and record details) so that the user will only change date order (in master record) and amount fields in record details).

    So, in order to give him:

    1. the user must be able to choose the order in which I would copy (at page 4), select it,

    2. I need to make PL/SQL procedure to insert the new master record (order) and a few record details (order_items) (copy of the order/order_items chosen in step 1)

    3. navigate the user to page 29, where the master account at stage 2 insterted appears, so that the user can change the date and quantities.

    Any solution will be highly appreciated! Thank you very much!!!

    In simple terms:

    1. Add a link to column "Command copies" in the report on page 4, which sets the COPY request and passes the order ID on page 29.
    2. On page 29, create a process before header, sequenced to be the first process executed and conditional on REQUEST be EXEMPLARY, which creates a new order as a copy of the order with the ID from page 4 and returns the ID of the new order in the PK command ID of 29 page element.
  • Apex 4.0 how use the interactive report filter feature?

    Hi all
    Sorry for the nub question, but if there is a way to create and save 'report' with the filter condition using a function?
    What I want to do is to create an interactive table called TASK report.
    Table has two columns I want to use for filtering:
    FDate - DATE - date
    TDate - DATE - to date
    Then, I need to create multiple saved reports:
    last week the tasks = where FDate between sysdate - 7 AND sysdate...
    last month tasks = where FDate between ADD_MONTH(sysdate,-1) AND sysdate...
    but,
    Interactive report filter does not accept sysdate or calls to functions ADD_MONTH.
    Is there an easy way to configure this feature?
    TIA
    Thomas

    Sorry for the double post...

    Published by: thomaso on August 6, 2010 12:04

    Hi Thomas,

    Take a look at the type of filter 'Row' in the interactive reports filter dialog box. This allows more dynamic filters, such as those involving SYSDATE or ADD_MONTHS calls. See also the next thread for some more details on this:

    Re: Interactive report - line conditional highlighting date function

    It will be useful.

    Anthony.

  • link to the interactive report with filter

    I tried to put in place a link to an interactive report in passing along a filter setting using the method described in the user guide. I've tried everything I can think of to make it work, but the report always ends by displaying as unfiltered. I don't get any errors, I don't see any filtering. I tried to directly modify the URL and adding the filter data (that is, add IREQ_ParentSeqID:2 to the URL) and I also tried to pass the filter data by creating a branch from another page and have the branch collar data. In both cases, I was unable to make it work. When I create the filter directly in the report, it works fine. Here is a sample
    URL: / f? p123:1302:3440331697632217:no:IREQ_ParentSeqD:2

    The URL takes me to the correct page but no filtering occurs. Here is the definition of the column in the interactive report:
    Column name: ParentSeqID
    Column type: NUMBER

    I'm under APEX version 3.2.0.00.27

    Dale,
    What happens if you remove the EQUALIZATION of the setting? Theoretically, it shouldn't matter, but I always send my equals as just IR_COLUMN and it works fine.

    You can try f? p = 123:1302:1023072115021841:NO:IR_ParentSeqID:25

    and see if that makes a difference? Just a shot in the water.

    If this does not work, try to delete the alias for the moment and sending the column full name and see if that makes a difference. I wonder if its because your alias is in a specific case (per the "")

  • With regard to the interactive report

    I've created the interactive report, then I remove the function of adding/deleting/changing inside, because I put my function all in plsql package. I could handle the add and delete function changed, however, is totally giving me a headache. I create an anonymous PL/SQL (process) block when the click on the button Delete, then delete the button will trigger the javascript confirmation. and then in my anonymous PL/SQL block, I key in

    myPLSQLpakacage.myDeleteProcedure(:p1_tableid);

    When I run the system, the process got through, and the "success" message. However, registration is still there stay. I check my point, process and compare to that of the sample «Document Library 0.92» I just found out they got from the additional hidden (P75_RETURN), after the process, it will go to the Page (and P75_RETURN) which I don't understand.

    Please help on this point, why my plsql did not, I try just to run the query in the anonymous pl/sql block as

    declare
    Identification number;
    Start
    ID: = v('p1_tableid');
    delete from the table where tableId = id;
    commit;
    end;

    but it's still not. So what's the problem with that?

    Hello

    BEGIN/END; It must be for all PL/SQL code.

    However, your problem is actually on this piece:

    0.01:... Process "reset page": CLEAR_CACHE_FOR_PAGES (AFTER_SUBMIT) 52
    0.01: removal of application cache "103" page: 52

    You have a "reset page" process that runs immediately before your process - this clears the value of P52_TABLEID. This process is usually provided automatically when you create a form by using a wizard. Delete it or the Never value condition.

    Andy

  • Filter column position of the interactive report

    Hi all!

    First of all, sorry my English.

    I have a problem with filters standart on the interactive report column heading. Version 4.0.2 APEX. It is interactive report based on the view. Nothing unusual - behavior and the default templates. I have also the region of filter on the page, and after user-press "apply" button my package variables to session state of filter. View used these values. It is worked and filtered interactive report. But when I try also to use the filters on the heading of the column that is nothing past. I have try the column type: report Standart column and display text. I have try the Filter Type column: by default based on the Type of column and the list defined by the use of... Contain. Nothing, as no filter exists at all. Filtering with worked as usual action buttons. I think that this problem in a SEPARATE implicit in this filter. I know that there are quantitative limitation of DISTINCT values with column header filter, but I have nothing in the filter. And even I have type the value and press ENTER, nothing happened. Columns with Date type is fine, but String and number does not.

    There is no work around? Thank you.

    Solved within "parameterized" view, remove and replace with SELECT with params.

  • How can I rearrange the columns in the not displayed section of the interactive report.

    Hello

    My interactive report contains 185 columns and requieres users to build its reports with some columns, but he gets lost between this amount of columns, it would be easier if the columns in the do not display the interactive report section would be automatically sorted, is it possible?

    Thank you very much

    Hi Eva,

    A solution would be to order the column names in alphabetical order. You can create a dynamic JavaScript action to manage the sort.

    The shuttle of the attribute IR "Select columns" have the ID "apexir_SHUTTLE_LEFT" or hidden columns and 'apexir_SHUTTLE_RIGHT' to the displayed columns.

    The function that you create might look like:

    var options = $('select#apexir_SHUTTLE_LEFT option');
    var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get();
    arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; });
    options.each(function(i, o) {
      o.value = arr[i].v;
      $(o).text(arr[i].t);
    });
    
    var options = $('select#apexir_SHUTTLE_RIGHT option');
    var arr = options.map(function(_, o) { return { t: $(o).text(), v: o.value }; }).get();
    arr.sort(function(o1, o2) { return o1.t > o2.t ? 1 : o1.t < o2.t ? -1 : 0; });
    options.each(function(i, o) {
      o.value = arr[i].v;
      $(o).text(arr[i].t);
    });
    

    You need to find the right timing for dynamic action to run, I suppose the click on the button "Select columns" would do the trick.

    Kind regards

    Vincent

    http://vincentdeelen.blogspot.com

  • Ideas for work around ORA-06502: character string buffer too small on the interactive report

    Hello

    It comes to Apex 4.2.  We try to create an interactive report.  The report is for something similar at a follow-up time.  We try to concat a comments column as the sum of the hours.  For example,.

    Select TASK_NAME, sum (HOURS), to_char (XMLAGG (XMLELEMENT(E,E.COMMENTS ||) ' : ')). Extract ('//Text ()'). GETSTRINGVAL()) USER_COMMENTS of...

    This query works fine if we seek only to a window of 1 week.  The question that we live, when we expand the scope of the query to include data from 3 months, we hit ORA-06502 interactive report.  If we remove this column from the interactive report, then the report works very well.

    Anyone has any ideas on how we might be able to work around this problem?  I'm guessing we're reached the limit of 32 k on the report.  Ideally, we would show just the last X number of comments and then have a link to show all comments

    Any help would be appreciated

    Thank you

    Mike

    ListAGG raises an ORA-01489 for varchar2 > 4000 bytes

    OP has an ORA - 06502--> IR is running within a limit of 4 k / 32 k.

    quick fix: wrap USER_COMMENTS ListAGG in a substr (..., 1, 4000)

    Longer solution, use a subquery to modify comments based on ROW_NUMBER() (IE after the nth line, change the null)

    with
    -- simulating data
    t as (select task_id, sysdate - lv as date_entered
      ,round(dbms_random.value(1,24)) hours
      , '-*' || lv || '.' || task_id || '*-' as user_comments
    from ( select level as task_id from dual connect by level <=10 ), (select level lv from dual connect by level < 1000)
    ),
    -- modify data
    modified_data as (
      select task_id, hours, date_entered
        ,case
          when row_number() over (partition by task_id order by date_entered desc) < 5
            then user_comments
          else null
         end USER_COMMENTS
        from t)
    select task_id, sum(hours) total_hours,
      listagg( user_comments  ) within group (order by date_entered desc)
      || case when count(*) >= 5 then '! MORE COMMENTS !' else null end
        as user_comments
    from modified_data
    group by task_id;
    
  • Default icons only for the interactive report

    Hi all

    I develop a style app catalog and display of images in an interactive report; I can get the interactive report to show the icon when users visit the report the first time, the report is quite simple. It has a series of buttons for Sections of the catalogue and when the user presses the button he fills a hidden element that is in the where the criteria catalogue, all it works fine with one exception:

    1. when the user clicks on the button catalogue and interactive data in gear changes; report changes 'View report', I want to maintain state in "Fashion icon" is possible that someone knows how can I have the interactive report only display "icon.


    Thank you very much for your help in advance, I tried a couple of things and nothing... any help would be greatly appreciated.

    958442 wrote:
    Hi all

    Welcome to the forum: read the FAQ and the forum threads sticky (if you have not already done so) and update your profile with a real handle instead of '958442 '.

    When you have a problem, you will get an answer faster, more efficient including information as much information as possible from the outset. This should include:

  • Full version of APEX
  • Complete operating system DB, version, edition, host
  • Architecture of Web server (EPG, SST or APEX listener/host operating system)
  • Browser (s) and version (s) used
  • Theme
  • Model (s)
  • Region/section type (s) (particularly as to distinguish if a 'report' is a standard report, an interactive report, or indeed a 'update report' (i.e. a tabular presentation))

    With APEX, we also had the chance to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproduce things is the best way to solve most of the questions, particularly those relating to the layout and Visual formatting. If you expect a detailed response it is appropriate that you take on an important part of the effort by getting as much as possible with an example of the problem on apex.oracle.com before asking for help on specific issues, then we can see firsthand.

    I develop a style app catalog and display of images in an interactive report; I can get the interactive report to show the icon when users visit the report the first time, the report is quite simple. It has a series of buttons for Sections of the catalogue and when the user presses the button he fills a hidden element that is in the where the criteria catalogue, all it works fine with one exception:

    1. when the user clicks on the button catalogue and interactive data in gear changes; report changes 'View report', I want to maintain state in "Fashion icon" is possible that someone knows how can I have the interactive report only display "icon.

    Thank you very much for your help in advance, I tried a couple of things and nothing... any help would be greatly appreciated.

    It also helps explain what you tried (even better, Show us what you have tried on apex.oracle.com).

    You can view the IR to the default icon via a dynamic Action: + {: identifier of the thread = 2187972} + (obviously using "ICON" rather than "RETAIL"...)

    However, do you really intend to make use of other interactive report features? It seems that the report display is controlled by custom buttons, rather than shares of IR (filters, control breaks etc.). If this is the case then a standard report based on a custom template may be a better option than to try to work around all that offer interactive reports.

  • Excel not downloaded in the same order as on the interactive report

    I have download to Excel on the interactive report, it is not sorted in the same way? Can I fix this?

    Hi Doug,.

    Could be a quick solution to this solution, you can have a download link on the header of the report area and that it points to a page that contains the same report with the csv model.

    Download CSV Report 
    
    where 3 is the page number for csv output report.
    *replace click by onclick
    

    or if you want more control over the report, you can create a button on the interactive report region and at the click of the button run a process to download a csv output file.

    Put dummy code for creating csv file

    DECLARE
    CURSOR cEmp IS
    SELECT
         Eno,Ename,SAL,DEPT
    FROM emp_table ORDER BY 1 DESC, 2 DESC,4;
    BEGIN
         owa_util.mime_header('application/octet', FALSE );
            htp.p('Content-Disposition: attachment; filename="Employee.csv"');
            owa_util.http_header_close;
    --Printer Header Row
         htp.p('Employee '  || ',' || 'Name'   || ',' || 'Salary'  || ','|| 'Department' ||  chr(13));
    for cThis in cEmp
    LOOP
              htp.p( '"'|| cThis.eno ||'"'||   ','|| '"'|| cThis.ename   || '"'|| ',' || cThis.sal||  ','|| '"'|| cThis.dept  || '"' || chr(13));
        END LOOP;
    htmldb_application.g_unrecoverable_error := true;
    EXCEPTION
              WHEN OTHERS THEN
                   htp.p('Download Error ' || SQLERRM || ' with error code ' || SQLCODE);
    END;
    

    Also, you can disable the download report link in the interactive report menu by going to reports-> Search bar attribute->, under include in the Actions Menu: uncheck the download option.

    I hope this helps.

    Thank you
    Manish

Maybe you are looking for

  • I upgraded my dsl moden and now my fax does not work, dell all-in-one, keeps saying no device found

    my fax was working but I got my dsl moden improved and now I can't fax from my dell all-in-one monitor fax says device not found. I tried to reinstall moden using the disc, but it gave me an error code 53, not able to install, is the problem in the n

  • Read more the error .flx

    Hi all, I am new to Motion Control, and I'm not being able to read the following in a movement system error message using the ' read more .flx of error ' in LabView. Could someone give me some advice please? In max, I see that it is possible and read

  • Why is there no activation key when I switch to 10 Windows in Windows 7?

    I bought a Windows 7 full version, final Version in China before. But, when I upgraded to Windows 10 successfully, he only told me that the Windows system has already been activated, rather than tell me what the game activation key is. I wonder if I

  • Get the error 0xc00d11cd when you try to connect to applications

    I have a Microsoft Surface with Windows RT and since I got it I could not connect to most of the applications and others cannot access the internet at all. When you try to connect to all the apps from Microsoft I still get error 0xc00d11cd (0x82bc000

  • Annual plan for change

    Currently I have creative photography of Cloud (one year) plan, I want to have Illustrator so, I can change my plan to creative cloud?