Insert a button Delete in an interactive report

Hi all

I just watched this series of tutorials with great interest and made the entire application:

http://apps2fusion.com/at/KR/391-Oracle-Apex-person-details-tutorial-02-delete-functionality

Now I'm wondering if it is possible to do the same with an interactive report. Basically, I want to create a button "remove and edit" into 2 separate columns (integrated in the report).

I add a column zero, but it does not work the same way... am I wrong? Is there another way appropriate to achieve this? I get a strange result (IE can not display the icon etc.)

SELECT NULL "Button", JJ. CD_PERM, LAST_NAME, NAME, DT_NAISSANCE, SEX, ANNEE_SESSION, CD_PGM, UNIV_ACCUEIL, INST_ABRG, DUREE_SEJOUR
OF DAF_COURT_SEJOUR_BOURSIER CLSD, GP GEN_PERSONNE, SD DAF_DICTIONNAIRE DAF_TB_INST DTI
WHERE
DD.NO_PERSONNE = GP.NO_PERSONNE AND
DD CD_PERM GROUP CLSD. CD_PERM AND
CLSD. UNIV_ACCUEIL = DTI. CD_INST


Sorry for my bad English!

Thanks for your time

Jeff.

Hello Jeff,.

First an interactive report has a default link column in its properties. Simply go to the details of EI and section "link." From there on out, it will be easy enough to implement one of two buttons. For a second, we'll miss sections link. So for this one, you could do several things, such as the selection of the image of your sql query:

SELECT '' "Button", DD.CD_PERM, NOM_FAMILLE, PRENOM, DT_NAISSANCE, SEXE, ANNEE_SESSION, CD_PGM, UNIV_ACCUEIL, INST_ABRG, DUREE_SEJOUR
FROM DAF_COURT_SEJOUR_BOURSIER DCSB, GEN_PERSONNE GP, DAF_DICTIONNAIRE DD, DAF_TB_INST DTI
WHERE
DD.NO_PERSONNE = GP.NO_PERSONNE AND
DD.CD_PERM = DCSB.CD_PERM AND
DCSB.UNIV_ACCUEIL = DTI.CD_INST

And just add a link in the column itself.

Greetings,
Rutger
http://rutgerderuiter.blogspot.com/
===============================================================================
You can reward this answer by marking as being useful or correct ;-)

Published by: Rutger on May 14, 2009 13:41

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

  • With the help of buttons to filter the interactive report

    I have an interactive relationship with a default filter set up. Now, I would like to have buttons to modify the SELECT statement used for the report. While I need not make a new page of interactive report for each button. I want to provide the user with a buttons show all reports, view reports on demand and completed report. Everyone will just filter the lines accordingly. What is the best way to achieve this?

    Thank you!

    Hello
    You can created a where clause clause in your IR as:
    Select...
    Of...
    where report_type like 'at the request of the reports' and: p1_button_value = 1
    or report_type like 'Finished reports' and: p1_button_value = 2
    or: p1_button_value = 3

    Now, you create your button and an element called: p1_button_value. Function of the key, you click on the value of your Exchange item. If you need display different columns, then go to the column and change the condition:
    : p1_button_value = 1

    It will be useful,

    Tobias
    ----------------
    http://Apex-at-work.blogspot.com/

  • Add buttons in the download area (interactive report)

    Hi all

    Is it possible to add more buttons to download region interactive report, such as PDF 1, PDF 2 ...?

    I used OC4J and FOP (print server) to download the PDF document to test, but it is so limited. When I use column break and export it in PDF format, instead of to see a break, the PDF file displays a regular report.

    Therefore, I think the best idea is to create two buttons and link to another page and do what I want, like PLPDF.

    : S

    Thank you
    Eric

    Hi Eric,.

    a nice way to do it is to use the "IR customs action Menu" plugin (http://apex-plugin.com/oracle-apex-plugins/dynamic-action-plugin/ir-actions-menu-item_171.html), you can add the extra menu in the menu actions in your report HERE.

    Concerning
    Bottom

  • Interactive reports < GO > button.

    I'm trying to use a db function on a page that generates data on the support which is then reported on an interactive report region, but I have problems once the interactive key report < GO >.

    Essentially on loading a page with the interactive report

    (1) a function is called to generate temporary data should be written on.
    (2) page with interactive report showing the data.
    (3) remove the temporary data in this report.

    The idea being that we could perform complex operations on data in the service but who have a simple report just to pull the back of the table (for details, see below).
    When the page is loaded the data very well, but if I use the action button < GO > I don't get "data Found." I don't know why the CHARGE of ON does not run again. Maybe if I could find a way to call my function when <>this button is pressed it might work. Any ideas?


    The table that holds temporary data report (E_REPORT).

    CREATE TABLE E_REPORT
    (
    NUMBER OF SEQ_ID,
    SEAT VARCHAR2 (2 BYTE) NOT NULL,
    ENGINE_TYPE VARCHAR2 (5 BYTE),
    ENGINE_SERIAL VARCHAR2 (30 BYTE) NOT NULL,
    NUMBER OF PROJECTED_HOURS
    START_DATE DATE NOT NULL,
    END_DATE DATE,
    PK_OF_ENGINE NUMBER NOT NULL
    )

    FUNCTION to generate and return a unique id to each time it is called and insert lines in the E_REPORT table with the column being filled with the unique ID seq_id.

    CREATE OR REPLACE FUNCTION E_LOGBOOK. F_load RETURN NUMBER IS
    /*
    This function is used to demonstrate the use of function to create temporary data that
    a report of the apex is attached.
    The idea being that we could build a more complex if necessary report using the functions.
    */

    CURSOR cur_get IS
    SELECT
    E.SEAT, E.ENGINE_TYPE, E.ENGINE_SERIAL,
    E.PROJECTED_HOURS, E.START_DATE, E.END_DATE,
    E.PK_OF_ENGINE
    OF E_ENGINE_PROJECTED_LIFE_2;

    CURSOR cur_report_id IS
    SELECT double SEQ_ART_RREQ_ID.nextval;

    number of ln_rep_id;

    BEGIN

    OPEN cur_report_id.
    SEEK cur_report_id INTO ln_rep_id;
    CLOSE Cur_report_id;

    / * Would be generally more complex than a copy of the right table * /.

    FOR rec IN cur_get LOOP

    INSERT INTO E_REPORT)
    SEQ_ID,
    SEAT,
    ENGINE_TYPE,
    ENGINE_SERIAL,
    PROJECTED_HOURS,
    START_DATE,
    END_DATE,
    PK_OF_ENGINE)
    VALUES (ln_rep_id,
    recomm. SEAT,
    recomm. ENGINE_TYPE,
    recomm. ENGINE_SERIAL,
    recomm. PROJECTED_HOURS,
    recomm. START_DATE,
    recomm. END_DATE,
    recomm. PK_OF_ENGINE);

    END LOOP;
    commit;

    Return ln_rep_id;
    END;
    /



    Interactive report query.
    Select SEQ_ID,
    SEAT,
    ENGINE_TYPE,
    ENGINE_SERIAL,
    PROJECTED_HOURS,
    START_DATE,
    END_DATE,
    PK_OF_ENGINE
    of E_REPORT
    where seq_id =: P260_REPORT_ID

    On a CHARGE BEFORE the header PL/SQL anonymous block a call to the function of inserting rows in the E_REPORT table before the report is displayed.
    Start
    : P260_REPORT_ID: = f_load;
    end;


    On LOAD AFTER FOOTER PL/SQL anonymous block.  Deletes the rows in the table unique ID.

    IF: P260_REPORT_ID is not null then
    remove from E_REPORT
    where seq_id =: P260_REPORT_ID;
    commit;
    END IF;



    Thanks, Pete

    Pete,

    Due to the fact that the OnLoad events occur during the loading of the page, you are in the situation that you must create a data set that will remain intact for the duration of the user is on the page. You could go the way of a temporary table that linked the records in the table to the session using the session id, but then you must have some sort of clean up the process to delete the records once the user has been 'done '. APEX Collections mainly do it for you.

    When you create a collection, under the covers of the collection is related to the current session and only this session can see the data in the collection of this user. APEX is a task that runs that deletes the collections for the sessions that no longer exist, so it does the job for you.

    In my humble OPINION, if you NEED to create transitional data to account, the collections are the solution.

    PS Don't forget to mark messages as useful or answer!

    Hope that helps,

    -Doug-

    http://sumnertech.com/

  • Interactive report: how to execute a PL/SQL on a button click each folder

    Hello

    I've created an interactive report.  I would like to run a PL/SQL based on a click of button available by registration type.  For example, the report includes ADDRESS and CLIENT_ID columns.  When the user clicks on the button in the document, using PL/SQL, I want to update/insert into another table with the details available in the present recording as above 2 mentioned columns.  How can I achieve this?  Help, please.

    Thank you and best regards,

    -Anand

    Hi Anand,

    Change your dynamic action

    Topic Page to submit-> P12_ACODE

    Check the screenshot of apex.oracle.com

    Kind regards

    Jitendra

  • 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.
  • Several radio buttons per line in the interactive report

    I added the code by radio buttons using Vincent Deelen "in a report of the APEX.

    Vincent Deelen: Using radio buttons in a report of the APEX

    It works exactly like his blog says that it will be a problem.

    My interactive report has more than one page of data. Whenever I click to go to the

    second page of data, the click event on the radio buttons in the dynamic action no longer works.

    I leave the page elements that stores my key no hidden values, and they do not change, once I have change the pages in my interactive report.

    Any ideas as to what to do or something I'm missing.

    Apex 4.2.1

    Oracle 11g Server

    theme of blue reagent 25

    Here's my query

    *********************************************************************************************************

    Select q_cev,

    apex_item. RadioGroup (p_idx = > rownum,)

    p_value = > 'Y ',.

    p_selected_value = > gmpick_flag01,

    p_display = > 'yes ', he said.

    p_attributes = > "class ="gmpickflag01 flagY"") "

    as RBYES,

    apex_item. RadioGroup (p_idx = > rownum,)

    p_value = > 'n',.

    p_selected_value = > gmpick_flag01,

    p_display = > 'no ', he said.

    p_attributes = > "class ="gmpickflag01 flagN"')"

    as RBNO.

    apex_item. RadioGroup (p_idx = > rownum,)

    p_value = > "U."

    p_selected_value = > decode (gmpick_flag01, null, 'U',

    'U', 'U', gmpick_flag01),

    p_display = > "undecided."

    p_attributes = > "class ="gmpickflag01 flagU"')"

    as RBUND,

    sort_qkey1, sort_qkey2, sort_qkey3,

    q_key1_trans, q_key2_trans, q_key3_trans

    from cts_ajha_q_ref LEFT OUTER join cts_gen_multipick

    on (cts_ajha_q_ref.q_cev = cts_gen_multipick.gps_cev

    and cts_gen_multipick.gmpickcode = 'CTS551HZGRCKLIST01. '

    and cts_gen_multipick.op_cev =: P155102_OP_CEV)

    where cts_ajha_q_ref.cts_no_show is null

    and cts_ajha_q_ref.cts_showflag01 is not null

    *********************************************************************************************************

    I created a dynamic Action

    Event:Click
    Selection type:jQuery Selector

    jQuery Selector: .gmpickflag01

    Run the JavaScript Code

    var rbyes = $("#radioreport_.apexir_worksheet_data_tbody_tr_td_[headers_="rbyes"]_{entree_:_checked').map (function)

    ({return $(this) .parent () .parent ().find('td[headers="Q_CEV"]').html ()}) .get (.join(':'))

    var rbno = $("#radioreport_.apexir_worksheet_data_tbody_tr_td_[headers_="rbno"]_{entree_:_checked').map (function)

    ({return $(this) .parent () .parent ().find('td[headers="Q_CEV"]').html ()}) .get (.join(':'))

    var rbund = $("#radioreport_.apexir_worksheet_data_tbody_tr_td_[headers_="rbund"]_{entree_:_checked').map (function)

    ({return $(this) .parent () .parent ().find('td[headers="Q_CEV"]').html ()}) .get (.join(':'))

    Send the Q_CEV bounded on the hidden page to submit items.

    $s ('P155102_RBYES', rbyes)

    $s ('P155102_RBNO', rbno)

    $s ('P155102_RBUND', rbund)

    Also have the code to step through the elements of the page to be inserted in the database.

    Try to define the scope of the event on the dynamic action to "dynamic".

  • How to stop a named interactive report deletion?

    Hello

    I've created an interactive report with these attributes.

    Before I disabled all the interactive options, I created a default report and a report name.

    The report named can be deleted by the user by clicking on the button highlighted by a red circle in the picture.

    Issues related to the:
    1. How can I prevent the user from being able to delete the named report?
    2. can I rename the default report (from "work report" to "Basic report")?

    Thank you

    Gabor

    Gabor,

    Yes, you can save by default public or other report to share with others in APEX 4.0. Cannot remove these reports by third parties, unless you are the owner of the developer (default alternative) or public (report). You cannot rename the main report in 4.0 by default either. If you use 4.0, the saved report displays much in the selection list, rather than in tabs.

    Kind regards
    Christina

  • 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

  • view an interactive report at the click of a button

    Hello

    I interactive reports in which I want to dynamically show on click of a button, I put a condition report on request = Expression 1 and in the Expression, I gave the name of the button, but the report does not show even when the button is clicked, or this isn't when the page loads.

    Any guidance will be of great help.

    Thank you

    Rakesh

    HI Rakesh,

    Rakesh119-Oracle wrote:

    Hello

    I interactive reports in which I want to dynamically show on click of a button, I put a condition report on request = Expression 1 and in the Expression, I gave the name of the button, but the report does not show even when the button is clicked, or this isn't when the page loads.

    Any guidance will be of great help.

    Thank you

    Rakesh

    In addition to this all you have done.

    Create a branch and redirect to the same page

    Branch point: on Submit (after Computation, valdation and processing)

    Target type: Page of this application.

    Page: same page where you have the report.

    Request: Button name (what you have given in expression1 in the condition of report)

    When button: click on the button that you want to view report

    Hope this helps you,

    Kind regards

    Jitendra

  • Research of interactive report of apex bar button

    Hello

    I'm usign Apex v 4.2.0.00.27.

    I have an interactive report and display the button on the left side instead of (to the right of the search bar of interactive report)? is anyway to show that (left of the search bar of interactive report) Please?

    Thank you very much

    RI

    Hello

    I have acehived it there

    .apexir_BUTTONS

    {

    left: 375px;

    Top:-3px! important;

    }

    It worked and display the buttons next to the action menu.

    Thank you.

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

    First of all, let me explain what is the point of this application.
    I do an application that allows you to select an item in a drop-down selection list. This list is a list of food categories. Suppose the user selects "Fruit."
    Then the page refreshes and shows an interactive report with a list of foods which belongs to the category of fruit.

    This is where I want to change things:
    I want the user to be able to view the interactive report, but in this interactive report, I would like to add a button for each row.
    Then, when a certain type of food is selected (say "Strawberry") via the radio button, a text field should appear under the interactive report. In this textfield, the user can then add the weight of the food, and then it will calculate how many carbs in strawberries there.

    All that I really want to know is:*.
    How can I add an option button to each row of the interactive report, and how to bind this option button to the value of that particular line? *



    Additional information:
    The "P17_FOOD_CATEGORY" element contains the following LOV:
    Select FOODCATEGORYNAME as display_value, FOODCATEGORYID as return_value
    of FOODCATEGORY
    order by 1

    The 'Food' region contains the following source:
    Select a.FOODID, B.SID, b.FOODCATEGORYNAME, c.STANDARDAMOUNT, c.NAME unit
    food an 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, I BEG YOU! Even if you don't know an answer, or if you are unsure of your answer, publish! Same suggestions will be welcome! I really need all the help I could get, even if it's not much.

    Published by: 917169 on February 29, 2012 12:25

    Hello

    I had the problem, that you have found.

    >
    Error cannot change the interactive report query.
    ORA-12899: value too large for column 'APEX_040100 '. "" "" WWV_FLOW_WORKSHEET_COLUMNS '. "" DB_COLUMN_NAME' (real: 32, maximum: 30)
    >
    you found this problem because the size of this apex_item.radiogroup(1,a.FOODID) is longer than 30 characters, but we have certain restrictions for the column names, we cannot use more than 30 characters for column names, then for what his use of name of column, please see below changed the code.

    select  apex_item.radiogroup(1,a.FOODID) as "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
    

    Hope you help

    Thank you
    Jitendra

  • Replace the Actions menu button on interactive report (Apex 4.1)

    I replaced the the menu button actions with an image in the report attributes section. The interactive report is to halfway to the bottom of the screen.

    The image is automatically included in an anchor with href = tag "#", which makes the page jump to the top every time the button is clicked. This changes a "false javascript:return"; it'll work out, but I don't know what to change to make this happen.

    Anyone know if there is a css or some model that I can change to fix this problem in the world?

    Thank you!
    John

    Found a solution using Jquery:
    Create an HTML region below 0 with the following content:

    
    

    or with an image

    
    

    Eric.

  • Need help to create a button on a page of interactive report.

    Hello everyone,

    I am trying to create radio buttons on a page of interactive report. Here are sql, used for the radio and interactive report button:

    Select apex_item.radiogroup(1,a.key_atm_insp) as "select."
    b.KEY_LOCATION,
    b.NME_INST,
    b.ADR_STREET,
    b.ADR_CITY,
    b.ZIP,
    a.KEY_ATM_VIOLATION,
    a.KEY_ATM_INSP
    ATM_VIOLATION a.,
    ATM_BRANCH_INFO_TT b
    where b.KEY_LOCATION = a.KEY_LOCATION;

    Above sql create several lines, but do not create the radio button instead show the text as ' < input type = "radio" name = value "f01" = "29039" / > "on the browser. Here is an example of one of the line that displays o browser.
    --------------------------------------------------------------------------------------------------------------------------------------------------------------
    < input type = "radio" name = "f01" value = "29039" > 48552 JPMorgan Chase Bank, National Association 82 road & Route 376 Hopewell Junction 12533 693 29039
    --------------------------------------------------------------------------------------------------------------------------------------------------------------

    Your help/comments would be very appreciated.

    REDA

    go to the report attributes, Edit Column ("Select" column) change the view regarding "* Standard report column."

Maybe you are looking for