Can interactive report have 2 "special" columns?

I have an interactive report on which I have placed a column for redirecting to a detail form. But I want to, also, put a column that will contain a button which will perform an action (update 2 columns in db). This way if the user wants to close the entry on the db they can click this button without having to go to the detail screen. So, they can go to the detail screen and close the entry or they can just click on the button to close the entry. I would love to have it be done with a right-mouse click menu but I suspect that is too much to ask which is why I thought the button might be ok.

I took a different approach but this might work for you...
On the interactive report, defined column1 as 'CheckBox' using this syntax:
Select APEX_ITEM.CHECKBOX(1,c.s_id) "s_id_checkbox", column2, column3 etc. from my table - Note: APEX_item.CHECKBOX can create the checkbox as 1st item on the IR report
once the item is defined, set the item header in the 'Report Attributes' tab to: <input type="checkbox" onclick="$f_CheckFirstColumn(this)" title="Select"/> and column type: Standard Report column - This will give the each row of the IR check/uncheck facility for the user. Make sure when you run the IR in developer mode, to 'Select' the newly defined 'checkbox' column in the 'Actions' menu and Save the report as 'Public' report. Also, move the newly-defined 'check-box' column as 1st column to display on the IR.
Introduce a button Item on the IR Page, that will submit a page process. Write your PLSQL procedure or DML calls in this page process, for performing your database operation on your list of 'checked items'
Page Process upon button submit: Code Example only. You may need to implement as per your reqs.DECLARE
v_request VARCHAR2(100) := v('REQUEST');
v_count pls_integer;
v_selected_item_id pls_integer;
BEGIN
:P1_PROCESS_MSG := NULL; --This should be set the page processes 'success' and 'error' message properties to &P1_PROCESS_MSG. (Define new item P1_PROCESS_MSG on your page of IR)
IF v_request = 'YOUR_BUTTONS_REQUEST_NAME' THEN
--//Process each user selection via the PLSQL page process api call
FOR i in 1..APEX_APPLICATION.G_F01.COUNT LOOP
v_count := v_count+1;
BEGIN
v_selected_item_id := APEX_APPLICATION.G_F02(i);
--// CALL_YOUR_PLSQL_PACKAGE or Custom DML BY PASSING THE USER SELECTED RECORD_ID TO PERFORM YOUR DATABASE DML and by using the 'v_selected_item_id' as a parameter or DML condition to perform your database DML action.
EXCEPTION WHEN OTHERS THEN
:P1_PROCESS_MSG := SQLERRM;
END;
END LOOP;
END IF;
EXCEPTION HANDLER..
:P1_PROCESS_MSG := SQLERRM;
END;
Usage:
User runs the IR, checks on the records he/she wants to do the 'close' then clicks on the new button that does the 'multiple-close' for the records of choice. He/she can select just-1-row and do the same dml operation by clicking on a button that you defined on this IR Report's page.
Also, if the above approach is not viable, you can create a 'f?p...' column link on your IR's main query to submit the page upon user-click. But, I've seen the above approach lot more liked by users.
SK
Edited by: VSKumar on Feb 7, 2012 5:45 PM

Similar Messages

  • Interactive Report - Include Non-selected Column in Row Text Search

    Hi,
    We have an interactive report that contains many columns. NAME VARCHAR2(30), TYPE VARCHAR2(30) etc and DESCRIPTION VARCHAR2(4000).
    Normally the DECRIPTION column would not be shown (avalilable for dispaly via 'Select Columns' but not selected), however we need the default Row Text Search (ie direct entry into the search field instead of creating a column filter) to search the DESCRIPTION field wether it is selected for display or not.
    This will allow the user to enter a term that may be contained in the DESCRIPTION to find records without trying to display a 4000 character field in the report - which just looks horrible.
    We are using ApEx 4.1.1.
    Thanks,
    Martin Figg

    Hi Ray,
    As I expected this has got us very close. We went with the code:
    select
    facility_id,
    facility_name,
    '<span title="' || facility_desc|| '">'||substr(facility_desc,0,50)||decode(sign(length( facility_desc)-50),1,' (More...)',NULL)||'</span>' facility_desc,
    equipment_id,
    equipment_name,
    '<span title="' || equipment_desc|| '">'||substr(equipment_desc,0,50)||decode(sign(length( equipment_desc)-50),1,' (More...)',NULL)||'</span>' equipment_desc,
    from
    rf_full_item_list_vwhich works well. The only issue is that when you download to csv you get the html tags etc as well. Put I am a lot closer to a solution than we were.
    Thanks again.
    Martin

  • Interactive Report Downloads only showing Column Headings

    I have an Interactive Report that is selecting more than 100 columns. I set the defulat to only show a few of the columns (the rest are dedaulted to not show). When I try the download option (pdf, rtf etc.) , it only shows the column headers (no data). The download works when you originally create the Report region with the SQL statement. It seems to break as soon as you do the 'Save Report' - 'As default Report Settings'. Anybody seen this before? It is a bug?

    Hi,
    You are almost right place. You need click icon before 100th column name, order to go screen where you can edit column attributes.
    In that screen right top is buttons (Cancle, Apply, < and >)
    Regards,
    Jari
    Edited by: jarola on Jul 21, 2011 5:43 PM
    It might documentation guides you to right screen
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/app_comp.htm#sthref978
    >
    To access Column Attributes:
    1. On the Workspace home page, click the Application Builder icon.
    2. Select the application.
    3. Select a page. The Page Definition appears.
    4. Under Regions, click Interactive Report next to the name of the report region you want to edit.
    The Interactive Report Attributes page appears with the Column Attributes section at the top of the page.
    5. To access the Column Attributes page, click the Edit icon next to the appropriate column Alias.
    >
    Edited by: jarola on Jul 21, 2011 5:44 PM

  • Is it possible to sort an interactive report with a default column ?

    Hi,
    I have a nice request used with an interactive report.
    select "ID",
    "DATE_CREATION",
    "SERVICE",
    "RESPONSABLE",
    "NATURE_CONTRAT",
    "SOCIETE",
    "DATE_DEBUT",
    "DATE_FIN",
    "DELAI_RENOUVELLEMENT"
    from "#OWNER#"."CONTRATS_MAINTENANCE"
    order by DATE_FIN descUnfortunately, the interactive report does not displays using the order into the SLQ query.
    I tried to de select the "sort" option of each other columns into the Column attributes Section, but without any improvement. If I remove the order statement from the SQL query, nothing changes in the order.
    Do you have an idea on how to display the lines in the order of the sql query ?
    Thank you for your knid answers !
    Chrstian

    Christian,
    This can be a little tricky at first. Try this:
    1. Remove the order by clause from the query.
    2. Log out of the application, not the builder, just the application.
    3. Log back in and try using the options in the interactive report to sort the information.
    Does it work? If so:
    4. Get the order the way you would like it as the default. Note: you get more sort options if you use the Action Menu (grind wheel) and selecting Sort over just clicking the column headers.
    5. Save the report by selecting the Save Report option from the Action Menu. If you see a drop down, save the report as the "default".
    6. Log out of the application again and back in.
    Does it work?
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Interactive Report - Icon View - Dynamic Columns per Rows ?

    Hi all,
    We use the icon view functionnality in Interactive Report.
    Is there a way to display the 'columns per row' attribute as an application item and set it dynamical via PL/SQL ?
    Any suggestions?
    Thanks in advance for advices,
    Regards,
    Grégory

    Hi,
    Apex 4.0 interactive reports and images (Scott's thread)
    Have some useful information and pointers to the solution you are looking for.
    I hope this help.
    Thank you,
    Ranish

  • Interactive Report Attributes: Missing a column?

    This is for Application Express 3.2.1.00.12
    I'm working on a report with the columns pulled in a SQL statement in the Region Definition section of the Interactive Report Attributes screen. We want to alter the column names so they are more user friendly, so on the Report Attributes tab, I'm looking for the column name we wish to alter, but it is not showing up. Now, in the final report, the column is visible with the header from the name of the column from the database, so the system is aware of the column and can display it, but for some reason we can't see it in the Report Attributes tab.
    Why would a column be invisible or inaccessible in the Report Attributes tab? There are 100 columns displayed in the Report Attributes: Column Attributes section. Is that the reason I'm missing some columns; 100 is a hard column limit on that page?
    Thanks in advance for all help you can provide.
    Matthew Nagler
    Edited by: user13579247 on Jul 20, 2011 10:45 AM
    Edited by: user13579247 on Jul 20, 2011 12:20 PM

    Hi,
    You are almost right place. You need click icon before 100th column name, order to go screen where you can edit column attributes.
    In that screen right top is buttons (Cancle, Apply, < and >)
    Regards,
    Jari
    Edited by: jarola on Jul 21, 2011 5:43 PM
    It might documentation guides you to right screen
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/app_comp.htm#sthref978
    >
    To access Column Attributes:
    1. On the Workspace home page, click the Application Builder icon.
    2. Select the application.
    3. Select a page. The Page Definition appears.
    4. Under Regions, click Interactive Report next to the name of the report region you want to edit.
    The Interactive Report Attributes page appears with the Column Attributes section at the top of the page.
    5. To access the Column Attributes page, click the Edit icon next to the appropriate column Alias.
    >
    Edited by: jarola on Jul 21, 2011 5:44 PM

  • Interactive Report - Display New/Changed Columns

    Hi,
    when I add or change a column in Interactive Reports, APEX doesn't show me the new column automatically.
    Everytime the user log in, he has to go on "Actions" and "Select Columns" manually, otherwise the new/changed column won't be displayed.
    How can I do that the column is displayed automatically after login?
    I am using APEX 4.0.2.00.07.
    Regards,
    Marc

    Either you, as a Developer, can save the report as Public.
    Or an aithorized user can save the report as a General/Shared Report.
    Or the user can save the report as a Private one.
    Pick the columns you/user wants to see. Then [Action -> Save]

  • Interactive report, conditional display of column link

    Hello,
    We have requirement to disable editing in case that status of field is 1 (1=Closed).
    Is there any way to disable it on interactive report.
    case when status=1 column link should be disabled (not visible) in order to prevent future edits on payroll.
    SELECT payroll_no, status
    FROM hr_payroll
    ORDER BY payroll_no DESC;
    I tried link below, but it's not working in my case.
    http://nerd.net.au/24-apex-application-express/report-layout/92-conditionally-show-report-link-column-based-on-value-of-…
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    Application Express 4.2.2.00.11
    Thank you in advance,
    Regards, FM

    CASE WHEN status = 'ACTIVE' then
    <a href="f?p=&APP_ID.:60:&SESSION.::&DEBUG.::P60_EMPLOYEE_ID:'||employee_id||'"> </span><br /><span class="Moobi_Code"><img src="#WORKSPACE_IMAGES#deactivate_button.png"></a>'</span><br /><span class="Moobi_Code">ELSE NULL END deactivate_employee,
    from
    EMPLOYEES
    What exactly is the error you get? What HTML is showing in the HTML source?
    Just by looking at this I would say you need to remove the "/" in front of the f?p
    Keep in mind this way could cause problems if you start to use checksum, then you might want to look into using APEX_UTIL.PREPARE_URL to create your URL.

  • Can interactive report size be controlled?

    I have an interactive report. I know the region size grows based on the number of rows I asked to display. However, what I really want is to set the region size and instead of it growing if they ask for lots of rows I would like to have a scroll bar appear so that the report height remains constant. I don't like having them have to navigate using the Apex navigation because it is easier to just drag the scroll bar up or down as desired.

    Check out Kiran's response in this post, courtesy of Jari
    Re: How to freeze Headers of tabuar report and Forms in APEX 4.1

  • Filter Interactive Report by a Hidden Column

    Hi, I would like to know if you can filter an IR by a hidden column?

    Edward_MX wrote:
    Hi, I would like to know if you can filter an IR by a hidden column?Ok, this works (for want of a better solution). I ended up adding a field to the report called HIDDEN_DETAILS. Then just hide that column with javascript/css using a live scope dynamic action on region refresh and on page load.
    This javascript does the trick:
    $('th#HIDDEN_DETAILS').css('display', 'none');
    $('td[headers="HIDDEN_DETAILS"]').css('display', 'none');Then just ensure you save that column to your default IR report and any others where the users need this filter available.

  • Can BIP report have a progress bar/indicator?

    Hello,
    I have a BIP report embedded in a dashboard along with the BI answers report.
    While processing, the BIP report shows a clock symbol indicating the progress bar where as BIP report is not showing anything.
    this gives the end user a wrong impression that whether the report is executed or still processing.
    Is there a way to set a text message or a symbol to show progress?
    Please reply if you know how to.
    Thank you
    Narasimha Rao

    Sorry about that! We are working on adding this back to Firefox in an upcoming version:
    https://bugzilla.mozilla.org/show_bug.cgi?id=741654

  • Interactive report column filters drop Ampersands

    We have interactive reports that include a column called status, and one of the values for status is R&R. The values are displayed properly in the report, but when the user selects the stats column filter, the value in the list is simply displayed as R, i.e. the &R has been dropped. It is 4.02.07.
    Is this a known issue? if not, what is the process for submitting it as a defect?
    Edited by: user12979818 on Jul 29, 2011 9:12 AM

    Please then SEARCH THE FORUM.. If you think this is a defect of the tool...
    Escaping the "&" character
    Now instead of complaining that the tool is broken, you can also fix it by using this for your LOV..
    If your LOV is dynamic (table driven) you could use this:
      SELECT utl_url.escape(Display_Column,TRUE) Display Column, Returned_Column FROM LOV_TABLE;
    {CODE}
    Please note from this document, that & is a RESERVED/SPECIAL CHARACTER with HTML... Thus it needs be dealt with accordingly..
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/u_url.htm
    Thank you,
    Tony Miller
    Webster, TX
    On the road of life...There are 'windshields', and there are 'bugs'
    (splat!)
    "Squeegees Wanted"
    *If this question is answered, please mark the thread as closed and assign points where earned..*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Mouseover / hover functionlity on Interactive Report  column

    Hi,
    I have an Interactive Report and having 2 columns say BATCH_NUM, BATCH_DESC.
    only BATCH_NUM is displayed on the IR.
    I want something like mouseover / hover functionlity on BATCH_NUM field, so that if user is over BATCH_NUM field it should display the BATCH_DESC for that record.
    Any idea how can I do that.
    Thanks,
    Deepak

    Take a look at this list of threads (You may find something that helps..) : Oracle Application Express (APEX)
    Thank you,
    Tony Miller
    Webster, TX

  • Control break on column displayed as link in Interactive Report

    Hi,
    If someone can help me, i'd greatly appreciate it!
    I created an interactive report - one of the columns has a link attached to url specified in the Report Attributes/ link section.
    When I use the control break feature in the gear icon, the report seems to be grouped by the url/link and not by the actual column value.
    When I remove the link from the column - all is fine and the break does work.
    This column must get displayed as a link. Is there any workaround for this problem?
    Thanks,
    Hindy
    Edited by: hindyp on Dec 2, 2009 7:33 AM

    Hi,
    I don't know the details of the procedure, but you would have something like:
    CREATE OR REPLACE PROCEDURE "print_model_change"
      v_acctnum NUMBER,
      v_model VARCHAR2,
      v_rrcode NUMBER
    AS
    BEGIN
      .. DO SOMETHING WITH v_acctnum, v_model, v_rrcode
    END;This needs to be updated to something like:
    CREATE OR REPLACE PROCEDURE "print_model_change"
      v_manager_model NUMBER
    AS
    BEGIN
      DECLARE
        v_acctnum NUMBER;
        v_model VARCHAR2;
        v_rrcode NUMBER;
      BEGIN
        SELECT ACCTNUM, MODEL, RRCODE
        INTO v_acctnum, v_model, v_rrcode
        FROM .. your report's FROM statement plus ..
        WHERE MANAGER_MODEL = v_manager_model;
        .. DO SOMETHING WITH v_acctnum, v_model, v_rrcode
      END;
    END;and followed by:
    GRANT EXECUTE ON "print_model_change" TO PUBLICto make it available
    The existing code receives all the data it would need (presumably). The updated code receives the manager_model value and, using the same FROM clause that you have for your report PLUS a WHERE clause (or, if you are using a WHERE clause in your report, change this to AND), finds the data that it needs for v_acctnum etc. After it has that data, the rest of the existing code can be used unchanged.
    Andy

  • Interactive Report with Null Columns

    I've got a user who wants to export an interactive report, and he needs certain columns to appear on the export for him to fill the data in later (this is an intermediate step, while we work on getting all the data he needs in to the database). I've created the report query, and there are a handful of null/empty columns (to preserve the correct order for the export). When I try to add this query to APEX in an interactive report, I get a "ORA-00001: unique constraint (APEX_040000.WWV_FLOW_WORKSHEET_COLUMNS_UK2) violated" error.
    Googling around shows me that this happens because of similarly-named columns, and the solution is to provide aliases to all columns. My report has aliases on all columns, but I still cannot create an interactive report. I've tried changing the null columns to empty strings, as well as enclosing the aliases in double-quotes, but nothing works. I can however use my original query to create a standard report, but due to the export requirement, this isn't ideal.
    I was able to create the interactive report with one null column, and then edited the report source to add in the others. This had to be done one at a time, since trying to add multiple null columns at the same time gives the same error again. Unfortunately, when I try and run the page, I get an "ORA-20001: get_dbms_sql_cursor error ORA-00918: column ambiguously defined" error.
    My original query:
    select customer.customer_name as customer,
           project.name as project_name,       
           trunc(project.estimated_end_dt) as due_date,
           project_status.project_status_desc as status,
           null as revenue,
           project.baseline_effort as baseline_hours,
           null as projected_cost,
           null as est_gain_loss,
           project.actual_hours as actual_hours,
           project.estimated_hours as projected_hours,
           null as projected_cost,
           null as projected_gain_loss,
           null as roi      
        from project,
             customer
      where customer.customer_id = project.customer_id
      and project.inactive_ind = 0
      and project.customer_id is not null
      and project.estimated_end_dt >= :DTP_P50_STARTDT
      and project.estimated_end_dt <= :DTP_P50_ENDDT
    order by customer.customer_name,
             project.estimated_end_dt;             Can someone tell me a way to create an interactive report with multiple null columns?

    Hi shimmoril,
    The problem is likely that you have two columns aliased as "projected_cost" (7th column and 11th column).
    Hope this helps,
    John
    If you find this information useful, please mark the post "helpful" or "correct" so that others may benefit as well.*

Maybe you are looking for