Adding an alpha picker to your interactive report

The interactive report is realy a great great feature of Oracle Apex.
When working with a lot of data like cost centers names, organization names, person names, ect.
some users have requested if it isn't possible to have a convenience filter, so that they just have to click on a letter and they get filtered all the names that start with that letter (aka alpha picker) that look like this:
All A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
I was fascinated that such a feature is realy easy to implement as smooth integration with the interactive report features.
Just Create a region of type "PL/SQL" and paste the following into it and you are reday to filter by first letter:
declare
procedure put_filter(p_text varchar2)
is
   l_link varchar2(32000);
   l_url varchar2(32000);
   l_label varchar2(240);
begin
   l_label := p_text;
   if (p_text = 'ALL') then
     l_label := 'Alles';
     l_link := 'f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:::RIR:::';
   else
     l_link := 'f?p=&APP_ID.:&APP_PAGE_ID.:&SESSION.:::RIR:IRLIKE_NAME:'||
     p_text||'%'||':';
   end if;
   l_link := UTL_URL.escape(l_link);
   l_url := '<a href="'||l_link||'">'||l_label||'</a>';
   htp.p(l_url);
end;
begin
put_filter('ALL');
for i in 65 .. 90 loop
  put_filter(chr(i));
end loop;
end;Hope that may help someone. Have fun, Willi

Hi Martin
I couldn't find a place where the filters are stored either - it would be nice to know.
It is possible to get to the filters via javascript as they are actually stored in a table with an id of "apexir_CONTROL_PANEL_COMPLETE". Within there, there are rows for each filter and each row has four cells. The second cell contains an A tag that has the filter itself as the text displayed as a hyperlink on screen. The third cell contains the checkbox that enables/disables the filter. Strings and numbers seem to be formatted ok, so you could pick up these values and create your own WHERE clause, populate a hidden field somewhere and then pick that up to generate a full select statement to get to the id's that you need.
I haven't yet tried this, so this is theory only - but I can't see that it wouldn't work
Andy

Similar Messages

  • Adding Every Row From a Filtered Interactive Report to a Collection

    I'm creating an email list maintenance application in Apex 3.1. I have an Interactive Report on an email address table. I want the users to be able to run this IR and then click a button to add all of the resulting email addresses into a selected mailing list table. The interface needs to be as quick and simple for the user as possible, so I don't want to force them to click a checkbox beside hundreds of rows.
    Is there a way to add every resulting row from a custom IR to an apex_collection?
    I know that collections can be created based on a query with the CREATE_COLLECTION_FROM_QUERY call. But I don't think it's possible to reference the SQL statement which is dynamically generated through an Interactive Report. I'm referring to the SQL created after the user has applied filters. If there were, then I would just create the collection that way. Please correct me if I'm wrong.
    Thanks,
    Martin

    Hi Martin
    I couldn't find a place where the filters are stored either - it would be nice to know.
    It is possible to get to the filters via javascript as they are actually stored in a table with an id of "apexir_CONTROL_PANEL_COMPLETE". Within there, there are rows for each filter and each row has four cells. The second cell contains an A tag that has the filter itself as the text displayed as a hyperlink on screen. The third cell contains the checkbox that enables/disables the filter. Strings and numbers seem to be formatted ok, so you could pick up these values and create your own WHERE clause, populate a hidden field somewhere and then pick that up to generate a full select statement to get to the id's that you need.
    I haven't yet tried this, so this is theory only - but I can't see that it wouldn't work
    Andy

  • Setting default columns displayed in interactive report

    Hi APEX community,
    I recently created an interactive report based on an sql query as follows:
    select
    "STOCK_CLIP_ID",
    "TITLE"
    from "STOCK_CLIP"
    After creating the report I added an additional column:
    select
    "STOCK_CLIP_ID",
    "TITLE",
    *"UPLOADED"*
    from "STOCK_CLIP"
    The new column does not display by default, I have to add it under Actions > Select Columns. I cant find any setting to add my new column UPLOADED to the default columns to be displayed so that when a user first navigates to the report they dont have to add that column in order to be able to see it.
    Sorry this is perhaps a stupid question with an obvious answer, i'm new to the interactive reports.
    Thanks!

    Hi,
    Login to Apex builder. Run page where is your interactive report.
    Select columns you like to show default from Action menu. Save report default layout from Action menu.
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • Interactive report from PL/SQL function

    Hello All,
    i have a pl/sql function that dynamically builds up a sql query and returns it as a varchar2.
    when i create a new report then i can use this function in the report like
    return f_function(param1,param2,v('APP_ID'), v('APP_SESSION'));
    and this works fine.
    Except i cannot create an interactive report for this function, because it is not allowed !!!!
    So how can i use the function in an interactive report ?
    Thanks in advance,
    Marco

    Marco,
    Another rather extreme approach would be to go all the way and make your function pipelined (that is not only build but also execute the query) and then select from it in your interactive report.
    The disadvantage here would be that any supplementary filtering would act on the result set of the function (not as an addition to the where clause of the original query). But if you can live with that...
    The advantage would be that there's less fiddling with column headers.
    Regards,
    Iulian

  • Interactive Report with PL/SQL Function Source

    Is it possible to create interactive report with PL/SQL function source returing a query? If not, has anyone done any work to simulate the interactive reporting feature for a normal report using API?

    I haven't tried that before but you could:
    1. create a collection from your result set returned by a dynamic query,
    2. create a view on that collection,
    3. use the view in your interactive report.
    The usability of this proposal depends from a question how "dynamic" your query is - does it always have the same number of columns or not.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Add a logo to the header definition of an Interactive Report

    Hi Folks.
    Using Apex 3.1 and BI Publisher.
    I am enabling an Interactive Report region to output to PDF & Excel.
    Has anyone managed to add a logo to the Header/footer definition in the Print Attributes section?
    Is it possible? The region definition does not understand simple HTML syntax.
    If anyone would let me know if a) They've done it or b) It ain't possible that would be great.
    Many thanks.
    Dogfighter.

    Just reading through this thread. So perhaps a few comments might be helpful:
    - Interactive report regions do currently not support Report Layouts, you're limited to the built-in generic layout and won't be able to include images
    - You can add a button to your interactive report region page which could initiate the download of a report query, when doing this, you would get the result set of your report query not the interactive report region, so even if the queries are the same, you might have different filters applied to your interactive report
    - You can in fact include static images in your RTF report layouts using the BI Publisher Desktop Word Plug-In and MS Word, so you can have logos etc in your PDF documents. But report layouts currently only work with report queries and classic report regions
    - You can also include dynamic images in your PDF, e.g. based on images stored in a BLOB column, there's currently a character escaping issue causing some trouble with this, which will be fixed in 3.1.1, more on that once 3.1.1 is out (soon)
    - the print server overwrite is designed to point to a different print server than the one configured for your APEX instance, not to point to a specific report. So if your instance has BI Publisher configured, but for a specific report you want to do some special rendering using your own code, you can write e.g. a JSP, Servlet, etc that's doing the rendering, and then point yout report to that URL
    Hope this helps, we do plan to add support for report layout to interactive report regions in the next full release of Application Express
    Regards,
    Marc

  • How to customize an interactive report PDF using a BI Publisher template

    Hi,
    I am trying to figure out how to get an interactive report to work with BI Publisher. I want it so that I can create a custom RTF template with custom headings, and then apply this for the interactive report.
    On the front end, when a user runs an interactive report, they are able to hide and show columns, and then click on Actions > Download > PDF. I want this to access the custom template and return a PDF based on this template, and also showing the columns that the user has selected in the interactive report.
    I have already created a custom RTF Word Doc in BI Publisher, and have uploaded it into a report query created in Apex. I am not sure though how to apply this report query to an interactive report, or if that’s even what I’m supposed to do to get it to work the way I want it to.
    When editing the Report Attributes, under Print Attributes, there is a section called Printing.
    Under this, there is a "Print Server Overwrite". I thought this is where you can specify your report query. But I am not sure if I even need a report query because I don't understand why you have a report query that is based on a static query, when in an Interactive Report, the user can hide columns.
    I have Apex 4.0.1.00.03 and Oracle BI Publisher 10.1.3.4.0d installed.
    Thanks,
    Gage

    Hi Gage,
    Custom RTF and XSL-FO templates are currently only supported with classic report regions and report queries, but not with interactive reports. So you would need to create a report query based on the SQL statement you used for your interactive report and then associated your template with that report query. Unfortunately you won't be able to use any of your customizations, filters, or column selections this way. We're planing to support report layouts with interactive reports in the future.
    Regards,
    Marc

  • Interactive Report questions

    Good Afternoon,
    I converted a sql classic report to an interactive report. The classic report has parameters, that once selected fires a page process that inserts data into a table, which creates column headings for my report. The parameters still work in the interactive report, but I want the interactive report to handle the parameters instead.
    Problems I can't figure out how to mimic this in the interactive report: example: the classic report could have up to 50 columns and change when a user selects a unit and displays that unit's report date as a column heading once the user hits the run report button. I wan the user to be able to do that using the IR filters, but I cannot find the actions menu items name to change the page process to fire when the user presses apply.
    The parameters the user currently selects are Unit and enter a From and To Date. This is what I need to mimic in the IR. I am using a union query for this report. Is this even possible.
    I am using apex 4.1, theme is Underlined from 3.2 and Oracle 11g.
    Thanks,
    Mary

    Mary,
    Not sure that I understood all of that but, I think, overall, you just want to be able to be able to submit the page (and thus fire your On Submit Page process) when the user clicks Apply? Is this right?
    If so, you don't actually have to fire anything from the click of the Apply button. It turns out that, whenever the Apply button is clicked, the Refresh event is fired for your Interactive Report (IRR). However, what's different is that the IRR refresh is implemented with a "Partial Page Refresh" whereas your Classic Report was implemented using a Page submission, i.e. refreshing just one section versus refreshing the whole page.
    So, all that is necessary is to do something "After Refresh" of the region.
    There are lots of ways to do this. The easiest would be to:
    1. Create a Dynamic Action that is fired After Refresh of your IRR. The "Action" is going to be JavaScript. Here's the code:
    apex.submit('PROPERTY_SET');        2. This causes the page to be submitted whenever the IRR is refreshed. By submitting the page, you will get your whole page refresh that you had before.
    All of this said, I would use AJAX and do all of this without submitting the page but, that is a longer post. This should work for you as a quick solution.
    -Joe

  • Interactive Reports - SQL Source Question

    Background
    Apex 3.1 is installed on Oracle 10g instance on local machine but all data is stored on a remote machine on Oracle 9 & 10 instances.
    This data is also used by another piece of software, which directly manipulates the data.
    The Apex Application that I am developing is to be used as a Quick Find/KPI Reporting tool and is setup to utilise DBLinks and Synonyms.
    Within the remote data, we have a mapping table that contains user specific alias' for field names, which the users set using the other piece of software. There can be up to 5 mappings per table field each defined as LNG01, LNG02,etc.
    In order to provide the same field Alias' in the Apex application, I have created a PL/SQL function to return the field alias and return a string value containing the final SQL.
    Problem
    In standard reports, this would work correctly as you could return a SQL statement in a string and it handled it with no problems.
    However, due to Interactive Reports not supporting this, I have tried to find code to pass in the string SQL Statement to return a TABLE or PIPELINED datasource.
    The string SQL statement will vary for each time it is used so the string SQL statement is effectively built as dynamic SQL
    This causes as problem as I will never be able to define the ROWTYPE for a type TABLE variable as the field names will not be constant.
    Can you tell me if there is any way to create a SQL source that could be used for the Interactive Report based on dynamic SQL?
    Alternatively, if you can provide any alternatives to finding a solution I would be most grateful.
    Apologies if this question has been posted before.
    Thanks in advance.
    Stuart

    Stuart,
    You could:
    1) Create page items, one for each dynamic column header (e.g. P1_OBJECT_NAME_HEADER, etc).
    2) Create a page process, to run when the page is loaded, that populates each item with the appropriate text. This can pull the column header text from your remote source.
    3) Use a static query as your interactive report source:
        select objname,
               objuniqueid,
               objtypecode,
               objsitearea,
               objdesc,
               objdesc2,
               objlocationid,
               objcommission
          from cdoweb_om4) Edit the interactive report attributes -- use APEX substitution string syntax to reference the item values (e.g. "&P1_OBJECT_NAME_HEADER." without the quotes) instead of static column headers.
    For more information on using substitution strings:
    http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/concept.htm#BEIFGFJF
    - Marco

  • Interactive Report - Alternative Report Title!

    Hello,
    I have a tricky requirement. I created an interative report and saved as primary report. then I created several alternative reports with different selection criteria. Now, I want to have a report title depending on the report the user selects, it may be primary and alternative 1, alternative 2 etc.,
    Can anybody suggest how to change the report title name dynamically?
    Appreciate your help.
    Thanks --

    What type of region type are you using for your interactive report?  Maybe the region type does NOT support a title..
    Thank you,
    Tony Miller
    LuvMuffin Software
    Blog: http://glassfish1.revion.com/apex/f?p=BLOG:HOME:0:::::

  • Interactive report Several series within same chart?

    Hi
    I'm about to develop a Chart-report showing several series within same chart
    ex
    serie1: Product A , amounts, dates
    serie2: Product B , amounts, dates
    etc.
    It would be nice to use IntractiveReports in this case but is it possible?
    Thanks for any tips & hints
    Regards GASon

    Hi Gunnar,
    It's not actually possible to create a multiple-series chart using the Actions menu for an Interactive Report. Only single series charts can be generated using that option. You will need to generate a separate chart to handle your requirements, which you could obviously position on the same page as your Interactive Report. The advantage of generating a separate chart means that you can choose from a wider range of Flash chart types exposed via the Create wizards. We only support the generation of 4 chart types (Horizontal Bar, Column, Line, Pie) via the Charts Action menu on Interactive Reports, but we support 26 chart types (ranging from 2D Column to Gantt charts) via the Create wizards. You might find it useful to take a look at my sample application (http://apex.oracle.com/pls/apex/f?p=36648), and also the AnyChart online documentation (http://anychart.com/products/anychart/overview/) and chart gallery, for further information on charts.
    I hope this helps.
    Regards,
    Hilary

  • Display interactive report rows based on user role.

    Hello,
    Can anyone please help me out with this issue. i have an interactive report and now i want to make this report as conditional based on user role. Like i want to dispaly all the report rows for an Admin user role and for a developer I want the report to display only his/her rows. Can anyone please help me how can I resolve this issue.
    Do I need to have two separate reports for each role or can we make achieve this with only one report.
    thanks,
    Orton

    Here is a possible answer.. Build your Interactive report off of a collection. And when you build the collection you can build an if statement to either build your select with or without the filtering of user_id..
    See this blog entry for how to build a interactive report from a collection: http://www.oracleapplicationexpress.com/tutorials/71-oracle-apex-interactive-report-based-on-plsql-function
    Thank you,
    Tony Miller
    Webster, TX

  • Users Email Subscriptions of Interactive Reports, getting deleted

    Hi,
    We have apex 4.0.2 version instances installed in DEV, Test, Prod environments.
    We use the same app id across all the 3 environments
    eg: App no 200 is used in all the 3 environments.
    The users subscriptions for the interactive reports are getting deleted,
    when the App from Dev is moved to Test or Prod environments.
    Any ideas or suggestions ?
    Thnx

    Hi,
    I could able to get back the users subscriptions in the target environment with below procedure.
    In my scenariou i am moving the app 200 from Dev to Test environment.
    Step1: Export the app 200 from Test environment by selecting Export interactive Report Subscriptions to Yes in Export Preferences tab
    Step2: Extract carefully the wwv_flow_api.create_worksheet_notify code +(you will see more than 1 statements, if there are multiple users subscriptions)+ from the app 200.sql .
    Step3: Extract wwv_flow.g_flow_id and wwv_flow_api.g_id_offset initializer statements.
    Example below:
    In my scenariou i was testing with 1 interactive report user subscription
    begin
    wwv_flow.g_flow_id := nvl(wwv_flow_application_install.get_application_id,200);
    wwv_flow_api.g_id_offset := nvl(wwv_flow_application_install.get_offset,0);
    wwv_flow_api.create_worksheet_notify (
    p_id => 3351032625694541+wwv_flow_api.g_id_offset,
    p_flow_id => wwv_flow.g_flow_id,
    p_worksheet_id => 11045125897667191+wwv_flow_api.g_id_offset,
    p_report_id => 11046318922668871+wwv_flow_api.g_id_offset,
    p_owner => 'abc.def',
    p_email_subject => 'Primary Report test',
    p_email_address => '[email protected]',
    p_start_date => '2012.09.07.01:00:00',
    p_notify_interval => 'D');
    end;
    Step4: Import the app 200 from Development environment to Testing environment.
    Step5: Execute the above Example pl/sql in the Test environment sql prompt.
    Run the app in Test environment, You will see your interactive reports user subscription to the associated pages.
    Note: This procedure applies only when you have  app id same across all the enviornments

  • Newly added column not displayed in Interactive report

    Hello,
    I have a tableA with 3 columns.In the application i am displaying as Form with Report region as Interactive report(Oracle 10g Application Express 3.2).
    I added one column to tableA.Now when i am refreshing the report by adding that column in the select query,the new added column is not displayed in the application.
    How can i do this so that the added column can be displayed.I dont want to delete the whole thing and redo it again.
    Thanks
    Siya

    Hi Siya,
    The Interactive Report will not show you the newly added columns by default. You have to select those columns from the actions menu and when all the required fields are displayed then save it as the default report.
    Then you will be able to see all the columns.
    Hope this solves your problem.
    Thanks,
    Satish.

  • Problem adding column in an interactive report

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

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

Maybe you are looking for

  • Background step is 'in process' status in PRD system

    Hello All, I have a background step which uses function modules 'create_text' and 'SD_WF_ORDER_REJECT' to update the documents. This step is in 'in process 'state' for 2 days in prd system. I checked st22 & swu2. There is not errors found. How do i r

  • Antivirus on VMs or on Host only?

    Hi, We use Symantec Endpoint Protection (SEP) on our host machines. Do you also install antivirus software on each VM, or do you reckon SEP will protect the running VMs as well? Will SEP even be able to scan into a shut down VM file system? By runnin

  • Jdr_utils.printDocument not displaying personalizations

    I am not able to see certain customizations using jdr_utils.printDocument. I'm using the below command but it doesn't list the personalizations that exist on this page. jdr_utils.printDocument('/oracle/apps/pon/customizations/site/0/homepages/buying/

  • ISync "not supported on this architecture"

    I recently got Daylite and had problems with the sync working. I tried to open iSync (it works in conjunction with Daylite), and got the error message: "You cannot open the application iSync because it is not supported on this architecture" I've neve

  • BootCamp on Macbook Al

    Soo.. I was able to get bootcamp running just fine with a copy of windows XP. Prior to the installation of the drivers everything worked fine as in the the graphics were still choppy without the drivers but the mouse worked and so did the keyboard. A