Multi Report Filter - HowTo

Hi there
Hope this helps others....solution not perfect but gets results
Only problem - with this, is dealing multipe sessions - on use of temporary tables. Not figured that out.
Aim : Use multiple objects, to filter records.
Solution
Steps
Step 1 - Create - Blank Page
Step 2 - Create - Region 1 - Parameters - HTML Text
Step 3 - Create - Region 2 - Results - SQL Query (PL/SQL ...)(see below details)
Step 4 - Create Objects - Region 1 - Example
P12_PROCESS (multi-select)
Default Value --> -1
List of Values --> Select process_id || '--' || description process, process_id from obe.cis_process
Columns --> 1
Display Null --> Yes
Null return value --> -1
created text field, 3 multi-select items plus 2 select objects (using LOV)
Step 5 - Create Button in Region 1 - P12_GO
Step 6 - Numerous Process for this Page - Had 3 - PL/SQL anon block - On submit - after comp & validations
JestUser selects item(s)..data placed in temp table, used later.
DECLARE
l_selected HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
BEGIN
-- convert the colon separated string of values into
-- a PL/SQL array
l_selected := HTMLDB_UTIL.STRING_TO_TABLE(:P12_EQUIPMENT);
-- clean up the intersection table first
DELETE FROM cis_details_equipment_session;
FOR i IN 1..l_selected.count
LOOP
INSERT INTO OBE.cis_details_equipment_session(EQUIPMENT_NUMBER)
VALUES (l_selected(i));
END LOOP;
END;
Step 3 - further explained
Source Region
Jest : Body of SQL plus WHERE component.
DECLARE
q VARCHAR2(32767); -- query
w VARCHAR2(4000) ; -- where clause
we VARCHAR2(1) := 'N'; -- identifies if where clause exists
BEGIN
q := 'SELECT DISTINCT A.CIP_NUMBER, A.CIP_NUMBER "CIS NUMBER" ,
A.TITLE,
A.FEEDBACK_TYPE,
A.FORM_NUMBER,
A.PROJECT_NUMBER,
A.DESCRIPTION
from
obe.CIS_DETAILS A,
obe.CIS_DETAILS_equipment_session B,
obe.CIS_DETAILS_process_session C,
obe.CIS_DETAILS_system_session D';
--Example of Wildcard
IF :P12_KEYWORD != '- Type Keyword -'
     THEN
     IF we = 'Y'
          THEN
               w := w || ' AND INSTR(A.TITLE,:P12_KEYWORD) <> 0 OR INSTR(A.BACKGROUND_INFORMATION,:P12_KEYWORD) <> 0 OR INSTR(A.REMEDIAL_ACTION,:P12_KEYWORD) <> 0 OR INSTR(A.CORRECTIVE_ACTION,:P12_KEYWORD) <> 0 OR INSTR(A.DESCRIPTION,:P12_KEYWORD) <> 0';
          ELSE
               w := ' INSTR(A.TITLE,:P12_KEYWORD) <> 0 OR INSTR(A.BACKGROUND_INFORMATION,:P12_KEYWORD) <> 0 OR INSTR(A.REMEDIAL_ACTION,:P12_KEYWORD) <> 0 OR INSTR(A.CORRECTIVE_ACTION,:P12_KEYWORD) <> 0 OR INSTR(A.DESCRIPTION,:P12_KEYWORD) <> 0';
               we := 'Y';
     END IF;
END IF;
--Example of Select Object
IF :P12_PROJECT != '-1'
     THEN
     IF we = 'Y'
          THEN
               w := w || ' AND PROJECT_NUMBER = :P12_PROJECT ';
          ELSE
               w := ' PROJECT_NUMBER = :P12_PROJECT ';
               we := 'Y';
     END IF;
END IF;
IF :P12_FORM_TYPE != '-1'
     THEN
     IF we = 'Y'
          THEN
               w := w || ' AND FEEDBACK_TYPE = :P12_FORM_TYPE ';
          ELSE
               w := ' FEEDBACK_TYPE = :P12_FORM_TYPE ';
               we := 'Y';
     END IF;
END IF;
IF :P12_SUPPLIER != '-1'
     THEN
     IF we = 'Y'
          THEN
               w := w || ' AND SUPPLIER = :P12_SUPPLIER ';
          ELSE
               w := ' SUPPLIER = :P12_SUPPLIER ';
               we := 'Y';
     END IF;
END IF;
--Example of Multi-Select
IF :P12_EQUIPMENT != '-1'
     THEN
     IF we = 'Y'
          THEN
          w := w || ' AND INSTR(A.EQUIPMENT,B.EQUIPMENT_NUMBER) <> 0';
          ELSE
               w := ' INSTR(A.EQUIPMENT,B.EQUIPMENT_NUMBER) <> 0';
               we := 'Y';
     END IF;
END IF;
IF :P12_PROCESS != '-1'
     THEN
     IF we = 'Y'
          THEN
          w := w || ' AND INSTR(A.PROCESS,C.PROCESS_NUMBER) <> 0';
          ELSE
               w := ' INSTR(A.PROCESS,C.PROCESS_NUMBER) <> 0';
               we := 'Y';
     END IF;
END IF;
IF :P12_SYSTEM != '-1'
     THEN
     IF we = 'Y'
          THEN
          w := w || ' AND INSTR(A.SYSTEM,D.SYSTEM_NUMBER) <> 0';
          ELSE
               w := ' INSTR(A.SYSTEM,D.SYSTEM_NUMBER) <> 0';
               we := 'Y';
     END IF;
END IF;
IF we = 'Y'
     THEN q := q || ' WHERE '|| w;
END IF;
RETURN q;
END

Hi user547704,
A couple thoughts about your posting. If your intention is to publish a how-to you might want to do a couple things. First, let everyone know what your name is by either signing your posting or changing your forum alias, or both. Second, give a brief introduction at the beginning to explain what it is that the how-to addresses. Something more than 'Multi Report Filter' I guess is what I mean.
A couple sentences that explains what 'Multi Report Filter' means to you and what problem it solves can go a long way to making your posting far more valuable. Othwerwise, you're leaving it to the reader to try to deduce your meaning and that might not happen all the time. Especially with folks from all around the world reading this forum and the problems that language differences insert into the equation.
Either way, welcome to the forum!
Earl

Similar Messages

  • Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer

    I have connected TABULAR Model to Excel, and in the pivot the filter is on multiple dimensions. When doing the drillthrough action it gives error - Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer
    Is there any workaround to this error?  so that drillthrough can be done even with multiple selection.

    Hi Vikas,
    The reason behind the error message requires the knowledge on what happens at the backend. When you perform a drill-through action, a query is sent to Analysis Services. This query is expressed in a query language called Multi-Dimensional Expression (MDX).
    Since the MDX language doesnot support drill-through command against a set (collection of tuples) an error is persisted. 
    For now, there is no workaround as it is a limitation of the underlying language that is generating the query.
    When multiple items are selected you lose the ability to drill-down on individual metrics. To resolve you must either:
    1. Select a single Item.
    2. Select all items.
    Hope this helps!
    Please mark as Answer if this helps! Thanks, Rajasekhar.

  • Missing "Select Multiple Items" in Report Filter for Pivot Table in Excel Services

    I have a Pivot Table with a Report Filter in Excel 2013.
    When I click the Report Filter in Excel , I get the check-box option to "Select Multiple Items".
    But , when the same Report.xls is published to SharePoint 2013 Excel Services,
    the check-box-option is missing ! and the default is "Multi-select", and there is no way to disable or toggle Multi-select
    is there any fix ?
    thanks

    Thank you Naveen, I have already read this , and checked ,
    But, it does not fix my issue :(
    All my desktops are set at 100%.
    All my List Items show as Check-boxes, ok.
    The problem is: that check-box option "Select Multiple Items" , just above the OK button, is missing when I run the report in Excel Services.
    So I have no way to toggle Select Single Items only.
    But when I Open this same report in Excel, everything works well.
    Is there any Fix for Excel Service /Sharepoint 2013.
    Paul

  • VERY STRANGE Interactive Report Filter Error

    I have a very interesting problem happening with an interactive report in my APEX application. The report runs just fine and has been in use for about 6 months. Just recently, the users have begun to run into problems when using the filter capability within the report. There is a specific column heading (RH Analyst) that they typically click on and select a specific analyst name (the list contains 10 entries). Most selections from the filter list work fine. However, when one specific name is chosen, they get the dreaded ORA-06502: PL/SQL: numeric or value error: character string buffer too small+*  error. 
    I have been working to narrow the problem down and have found the following:
    1. The filter error is related to the content of one specific column (not the one I am filtering on)
    2. The column that is causing the error is a CLOB datatype
    3. The data in the CLOB column was inserted into the database from a form utilizing an "HTML Editor Standard" type of item
    4. The data in the CLOB column was copied and pasted from an email that was being viewed using Outlook 2007
    5. If I try to recreate the problem with exactly the same information, but copied and pasted from Outlook 2003, I don't experience the problem.
    6. The only people experiencing this problem are people who have upgraded their system from Microsoft Office 2003 to Microsoft Office 2007
    7. When I try to load the form with the data that was stored in the database, I get a 404 page not found error. This is the same error that I get if more than 32k of data was saved into the CLOB.
    The data pasted into the HTML editor from Outlook 2007 (_this is the data that causes problems_) and saved to the CLOB looks like this when I extract it in SQL Developer
    (CLOB) <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta content="Word.Document" name="ProgId" />
    <meta content="Microsoft Word 12" name="Generator" />
    <meta content="Microsoft Word 12" name="Originator" />
    <link href="file:///C:\DOCUME~1\euw6ay0\LOCALS~1\Temp\msohtmlclip1\01\clip_filelist.xml" rel="File-List" />
    <link href="file:///C:\DOCUME~1\euw6ay0\LOCALS~1\Temp\msohtmlclip1\01\clip_themedata.thmx" rel="themeData" />
    <link href="file:///C:\DOCUME~1\euw6ay0\LOCALS~1\Temp\msohtmlclip1\01\clip_colorschememapping.xml" rel="colorSchemeMapping" /><!--[if gte mso 9]><xml>
    <w:WordDocument>
    <w:View>Normal</w:View>
    <w:Zoom>0</w:Zoom>
    <w:TrackMoves />
    <w:TrackFormatting />
    <w:PunctuationKerning />
    <w:ValidateAgainstSchemas />
    <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
    <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
    <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
    <w:DoNotPromoteQF />
    <w:LidThemeOther>EN-US</w:LidThemeOther>
    <w:LidThemeAsian>X-NONE</w:LidThemeAsian>
    <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
    <w:Compatibility>
    <w:BreakWrappedTables />
    <w:SnapToGridInCell />
    <w:WrapTextWithPunct />
    <w:UseAsianBreakRules />
    <w:DontGrowAutofit />
    <w:SplitPgBreakAndParaMark />
    <w:DontVertAlignCellWithSp />
    <w:DontBreakConstrainedForcedTables />
    <w:DontVertAlignInTxbx />
    <w:Word11KerningPairs />
    <w:CachedColBalance />
    </w:Compatibility>
    <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
    <m:mathPr>
    <m:mathFont m:val="Cambria Math" />
    <m:brkBin m:val="before" />
    <m:brkBinSub m:val="&#45;-" />
    <m:smallFrac m:val="off" />
    <m:dispDef />
    <m:lMargin m:val="0" />
    <m:rMargin m:val="0" />
    <m:defJc m:val="centerGroup" />
    <m:wrapIndent m:val="1440" />
    <m:intLim m:val="subSup" />
    <m:naryLim m:val="undOvr" />
    </m:mathPr></w:WordDocument>
    </xml><![endif]--><!--[if gte mso 9]><xml>
    <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
    DefSemiHidden="true" DefQFormat="false" DefPriority="99"
    LatentStyleCount="267">
    <w:LsdException Locked="false" Priority="0" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Normal" />
    <w:LsdException Locked="false" Priority="9" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="heading 1" />
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2" />
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3" />
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4" />
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5" />
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6" />
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7" />
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8" />
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9" />
    <w:LsdException Locked="false" Priority="39" Name="toc 1" />
    <w:LsdException Locked="false" Priority="39" Name="toc 2" />
    <w:LsdException Locked="false" Priority="39" Name="toc 3" />
    <w:LsdException Locked="false" Priority="39" Name="toc 4" />
    <w:LsdException Locked="false" Priority="39" Name="toc 5" />
    <w:LsdException Locked="false" Priority="39" Name="toc 6" />
    <w:LsdException Locked="false" Priority="39" Name="toc 7" />
    <w:LsdException Locked="false" Priority="39" Name="toc 8" />
    <w:LsdException Locked="false" Priority="39" Name="toc 9" />
    <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption" />
    <w:LsdException Locked="false" Priority="10" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Title" />
    <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font" />
    <w:LsdException Locked="false" Priority="11" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Subtitle" />
    <w:LsdException Locked="false" Priority="22" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Stro..."The data pasted into the HTML editor from Outlook 2003 and saved to the CLOB looks like this when I extract it in SQL Developer
    (CLOB) <p style="margin-bottom: 6pt;" class="MsoNormal"><u><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">&ldquo;Implementation and  Compliance Update #2&rdquo;</span></u><span style="font-size: 10pt; font-family: 'Arial','sans-serif';"> addresses a concern  that clearinghouses may be in some cases inappropriately charging providers for  the use of a standard transaction. </span><o:p></o:p></p>
    <ul type="disc">
        <li style="" class="MsoNormal"><span style="font-size: 7pt;"> </span><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">In particular, we  cite MN Statutes 62J.536, Subd. 1f, which states that:  <em>Group purchasers may  not impose any fee on providers for the use of the transactions prescribed in  this subdivision.  </em>The update explains that &ldquo;payers (or their agents) may  not charge for receiving a standard transaction&rdquo; and provides additional  information. The update is accompanied by a joint cover memo from MDH, the  Minnesota Department of Commerce, and the Minnesota Department of Labor and  Industry.  Note:  The Minnesota Department of Health (MDH) is charged with  implementing and enforcing Minnesota Statutes, section 62J.536. In addition, the  Minnesota Department of Commerce and the Department of Labor and Industry  administer additional statutory requirements for electronic claims submission,  consistent with MS &sect; 62J.536.</span><span style="font-size: 9pt; font-family: 'Arial','sans-serif';">  <o:p></o:p></span></li>
    </ul>
    <p style="margin-bottom: 6pt;" class="MsoNormal"><u><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">&ldquo;Implementation and  Compliance Update #3&rdquo;</span></u><span style="font-size: 10pt; font-family: 'Arial','sans-serif';"> provides a reminder  of the upcoming Dec. 15, 2009 effective date for rules for the standard,  electronic exchange of health care remittance advices. It also clarifies  that:</span> <o:p></o:p></p>
    <ul type="disc">
        <li style="" class="MsoNormal"><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">Statutory  requirements for standard, electronic remittance advices do not include  requirements for electronic payment (electronic funds transfer &ndash;  EFT)</span><span style="font-size: 9pt; font-family: 'Arial','sans-serif';">  <o:p></o:p></span></li>
    </ul>
    <ul type="disc">
        <li style="" class="MsoNormal"><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">Consistent with MDH&rsquo;s  enforcement policies and plans described in Update #1 (posted  6/5/09):</span><span style="font-size: 9pt; font-family: 'Arial','sans-serif';">  <o:p></o:p></span></li>
    </ul>
    <p style="margin-bottom: 6pt; margin-left: 1.1in; text-indent: -0.25in;" class="MsoNormal"><span style="font-size: 10pt; font-family: 'Courier New';">o</span><span style="font-size: 7pt;">        </span><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">Starting Dec. 15,  2009, group purchasers (payers) must be able to transmit &ndash; and providers must be  able to accept - standard, electronic RAs via computer-computer electronic data  interchange (EDI). So long as payers and providers are able to exchange the  remittance advice standard transaction electronically, the Department does not  take issue with payers making available additional mechanisms for communicating  RAs to providers, such as access to portable document format (.pdf) files, or  provider electronic mailboxes.</span><span style="font-family: 'Arial','sans-serif';"> </span><o:p></o:p></p>
    <ul type="disc">
        <li style="" class="MsoNormal"><span style="font-size: 10pt; font-family: 'Arial','sans-serif';">The Department&rsquo;s  determinations of whether payers and providers are complying with the  regulations will take into account several factors. However, we have determined  that it is not realistic to require electronic remittance advices when claims  ar..."     I am using APEX version 3.2
    Any help would be greatly appreciated. For now, my short term solution for them is to copy the information from Outlook 2007, paste it into a Wordpad, then copy it from wordpad and paste it into the HTML editor control. That seems to work fine but it is not a very nice solution for the users!
    Thanks,
    Dale

    Roel,
    Hey there! Hope you enjoyed your time off ;) Thanks for having a look...
    Yes, of course I "could" update the functions, but this is NOT something I want to do. I'm one of those people that subscribes to Coding by Contract and the assertion routines at the beginning and end of my subprograms are an important part of that.
    This may be a lack of understanding on my part with regards to the order in which Oracle does it's thing - or a bug in Apex... I'm able to duplicate the problem on apex.oracle.com: dmcghan/test/test.
    Log into the demo app with admin/dmcghan. The home page has an interactive report, filter the name and you should get the error. When you look at the query you'll see a filter in the where clause that goes against the apex_collections table. This is populated from the post-authentication procedure. Let me know if you have questions.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur

  • BOE XI 3.1: Problem with Simple Report Filter.

    Hi everyone!.
    One requirement that i have in one customer is about the use of simple reports filters, the customer doesn't want to use the input controls.
    If i add one simple report filter and save the report, the final user can add other simple report filters, but the problem is that the name "Others" appears with all the variables than i have created to be used in the report.
    Is it possible to hide the group "Others"?
    Thanks!
    Edited by: Jaime Pestaña on Mar 12, 2010 10:26 AM

    If I understood you clearly, I think you have few variables created and one set of variable is called Others and you dont want users to see it.
    There are couple of things you can do.
    First one is to Use Othere filters as constant and it will not appear.
    Second you can use others filter at Report level and it will not prompt to users.
    Bashir Awan

  • Or between prompted columns in report filter

    Hi,
    If I give an 'Or' between two prompts in the report filter, as below:-
    Value Date is prompted
    OR Trade Date is prompted
    ... then the condition does not apply on the report.
    I am using dashboard prompts
    OBI version is 10.1.3.4.1
    Is there a way around this?
    thanks,
    Gaurav

    Hi,
    If I hard code in the report filter and use or between the conditions then it works fine.
    The prompted filters are not working with 'Or' in between.
    It looks like a bug. Can something be done about it?
    Using a presenation variable should work, but it will have some other limitations.
    thanks,
    Gaurav

  • How to setup Multi Reporting Currency by SubLedger in Oracle EBS 12.1.3

    Hi,
    I would like to ask about how to setup (steps) multi reporting currency by Subledger, by Balance in Oracle EBS R12.1.3
    Thanks
    fn

    Hi;
    Please see:
    Reporting Currency Function With Subledger Option In Release 12 [ID 785385.1]
    Hope it helps
    Regard
    Helios

  • Htmldb_application array reset based on interactive report filter

    Hello
    I was searching various forums on this topic and did not find usefull answer. I must be doing something wrong or just do not understand how come that others do not have this problem?? Anyway, here it is.
    I have interactive report where first column is checkbox. Using submit process , I perfrom inserts/ deletes in database based on checbox array (htmldb_application). Everything works well untill I do not use filter on one of the columns. Such action results in resizing the report ( so number of rows is re-ordered / changed ). I want to run the same submit process on resized list, but it is not possible, because the array points to different/non-existing rows. I would expect that the array gets "reseted" accrording to the new result list, but it does not??
    Example:
    I load the page with the report, where I have 10 records. Two of them, row 5 and 7, have in column X value '1'. If I leave the report as is, check checkbox on any line and run submit process, action is succesfull.
    Now I change the filter and I will display only rows where column X=1. Report now have 2 rows. I check checkbox on the first one, submit the process, but the arrays refers to row 5 ( the old resultset), which is not present in the report now ??
    Can I somehow achieve arrays reset based on the interacitve report filter applied? Or any other solution?
    Thanks in advance
    Ludek

    Ludek
    The query for the IR is constructed as below select "LINK", "UNLINK", "INST_CD", "CUSTOMER_CD", "DESCRIPTION", "COUNTRY_CD"
          , "Link Status", count(*) over () as apxws_row_cnt
          from (
          select *
          from (
          select
          htmldb_item.checkbox (1,rownum, DECODE( (select bind.bc_id from BND_BIGCUST_CUST bind where bind.inst_cd=big.inst_cd  and bind.customer_cd = big.customer_c and bind.bc_id = :P2_BC_ID )C , :P2_BC_ID,'DISABLED','UNCHECKED') ) Link,
          htmldb_item.checkbox (2,rownum, DECODE( (select bind.bc_id from BND_BIGCUST_CUST bind where bind.inst_cd=big.inst_cd and bind.customer_cd = big.customer_cd and bind.bc_id = :P2_BC_ID ),:P2_BC_ID,'UNCHECKED','DISABLED') ) Unlink,
          htmldb_item.display_and_save(3,inst_cd) inst_cd,
          htmldb_item.display_and_save(4,customer_cd) customer_cd,
          htmldb_item.display_and_save(5,description) description,
          htmldb_item.display_and_save(6,country_cd) country_cd, DECODE( (select bind.bc_idfrom BND_BIGCUST_CUST bind where bind.inst_cd=big.inst_cd and bind.customer_cd = big.customer_cd and bind.bc_id = :P2_BC_ID ) , :P2_BC_ID,'Allready Linked','Available') "Link Status"
          from REF_CUSTOMER_UNIQ big ) r ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)As you can see, the 'rownum' is gotten in the inner query. I suspect that when you apply a filter, the filter is applied to the outer query. Hence, the rownums will not be as you expect them to be. Instead of using the 'rownum' as the values for checkbox 1 and checkbox 2, I suggest you use a concatenation of
    inst_id and customer_cd. In the after submit process you can then just loop through the f01 and f02 arrays , split the concatenated values back into their inst_id and customer_cd components and perform the Insert or Delete.
    Varad
    Edited by: varad acharya on Jan 10, 2011 4:49 PM

  • Interactive Report Filter Problem

    Hello,
    I ran into a problem with an interactive report today. When the report first loads, no issue. If a filter is added, an error is returned. The error is actually generated by an assertion routine that raises and exception if a NULL value was passed in. Here's a modified/simplified version of the query:
    SELECT id,
       name,
       dept,
       emp.year_of_emp(hire_date) AS years_of_employment
    FROM emp_table
    WHERE id IN (
       SELECT c001
       FROM apex_collections
       WHERE collection_name = 'EMPS_UNDER_MANAGER'
    );Again, when the report first loads, no problem. Then when the manager applies, say a filter on dept, an error is raised from the emp.year_of_emp function because a NULL value was passed in.
    I know that all emps with an emp id in the collection have a hire_date so I don't feel as though I should have to add another condition in the where clause to filter those out (although that is the work around at this point). Anyone have any ideas as to what could be causing this?
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur

    Roel,
    Hey there! Hope you enjoyed your time off ;) Thanks for having a look...
    Yes, of course I "could" update the functions, but this is NOT something I want to do. I'm one of those people that subscribes to Coding by Contract and the assertion routines at the beginning and end of my subprograms are an important part of that.
    This may be a lack of understanding on my part with regards to the order in which Oracle does it's thing - or a bug in Apex... I'm able to duplicate the problem on apex.oracle.com: dmcghan/test/test.
    Log into the demo app with admin/dmcghan. The home page has an interactive report, filter the name and you should get the error. When you look at the query you'll see a filter in the where clause that goes against the apex_collections table. This is populated from the post-authentication procedure. Let me know if you have questions.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    http://sourceforge.net/projects/plrecur

  • Fill Interactive report Filter function with the last month

    Version: APEX 4.1
    Functions: Interactive Reports - Filter
    Image: http://i.imgur.com/tG7si.png
    http://i.imgur.com/UCoZ5.png
    Is it possible to have a button when click would filter the last month of whatever the current date is. (Without making a 2nd interactive report)

    Hi,
    I went quickly over this:
    http://anthonyrayner.blogspot.com/2008/07/dynamic-date-filtering-in-interactive.html
    This should help. it shows you how to prepare the URL of the wanted report. and you can choose button action Redirect to URL.
    There is more ... give me one minute :)
    Ok.. This is what you need:
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDDDFBF
    Regards,
    Fateh
    Edited by: Fateh on Jun 15, 2012 11:17 AM

  • Restricting "All Member" from report filter

    Hi,
    Can i restrict the "All Member" from the report level filter? If i place Company or Site hierarchy in the report filter by default i'll get All Company and All Site members. I want to restrict this "All Member".
    How to restrict the All Member from the report filter?
    regards, Sujeev

    Hi Roberto,
    Thank you for your answer ! But this note doesn't solve the problem !
    Would you mind trying this and tell me your results :
    Make a simple report :TIME in column, ENTITY in page and COSTCENTER in row.
    Then click on COSTCENTER, it opened the "EPM - Member Selector"
    The dimension COSTCENTER has a property called ENTITY, so I select "ENTITY", operator is "=", Values is "<CONTEXT>" and the High Values/Dimensions is "ENTITY"
    And after this selction I have nothing !
    (I insist on that point to be clear : There are 2 different ENTITY, the first is the property of the dimension COSTCENTER and the second is a dimension)

  • Display null value:Report Filter using Show/hide report filter

    Hi,
    Is there any documentation from SAP BO that says "Report Filters don't display nulls."?
    Report Filter as in by clicking the Show/Hide Report Filter in the Infoview toolbar.
    Please help.
    Thank you.

    Hai
    u r Thread is similar  to
    http://www.forumtopics.com/busobj/viewtopic.php?p=848982&sid=2a66a2348c7042773baaf7bfd10241b2

  • Using a Report Filter without giving users access to "Design" mode

    I have a report in which I use the filter bar to provide my end users the ability to use a drop down menu to switch between different months worth of data.  However, I have been asked to disable the ability for users to access the Design mode.  I have been unable to come up with the right security settings to allow the report filter while disabling the Design mode.  Does anyone have any suggestions to this problem?
    BO XI 4.0 Patch 9
    Thanks very much for your help

    Hi,
    I'm familiar with your issue - described here BO4 navigate the available object in READING MODE in webi
    and also here: Hide/Disable DESIGN MODE on WebI (BI4)
    I've every reason to believe this is currently not possible. You may want to vote on the existing Enhancement Requests in Ideas Place, or create your own
    Regards,
    H

  • Using Calendar Picker (Dashboard Prompt) variable in report filter

    Hi All,
    I have checked the forum and it doesn't look like this was answered. I have a presentation variable "CalendarDate" for a dashboard prompt that uses the calendar picker. Has anyone found an easy way to use the presentation variable in a report filter?
    I want to grab the presentation variable then use this as the criterion for the report filter.
    I have tried the below for the report filter but I receive an error. Do I have to cast this value to a Date?
    Date.Date <= @{CalendarDate}
    Or, do I have to get the variable value and convert it to the date 'YYYY-MM-DD' format to use?
    Any thoughts would be appreciated.
    Thanks!
    John

    So here is what I came up with. Probably not the most efficient nor elegant but it works. I am now able to use the calendar picker variable as a date to perform date calculations.
    Basically there are three scenarios for the variable value: D/M/YYYY, (DD/M/YYYY or D/MM/YYYY), DD/MM/YYYY. I use char_length function to find the length. When char length is equal to 9 there are two scenarios. If none of the scenarios work, pass the CURRENT_DATE.
    code below --------
    CASE CHAR_LENGTH('@{CalendarDate}')
    WHEN 8 THEN CAST('date' || ' ' || char(39) || SUBSTRING('@{CalendarDate}' FROM 5 FOR 8) || '-' || CONCAT('0', SUBSTRING('@{CalendarDate}' FROM 1 FOR 1)) || '-' || CONCAT('0', SUBSTRING('@{CalendarDate}' FROM 3 FOR 1)) || char(39) AS DATE)
    WHEN 9 THEN
         CASE WHEN SUBSTRING('@{CalendarDate}' FROM 2 FOR 1) = '/' THEN
         CAST('date' || ' ' || char(39) || SUBSTRING('@{CalendarDate}' FROM 6 FOR 9) || '-' || CONCAT('0', SUBSTRING('@{CalendarDate}' FROM 1 FOR 1)) || '-' || SUBSTRING('@{CalendarDate}' FROM 3 FOR 2) || char(39) AS DATE)
         ELSE
         CAST('date' || ' ' || char(39) || SUBSTRING('@{CalendarDate}' FROM 6 FOR 9) || '-' || SUBSTRING('@{CalendarDate}' FROM 1 FOR 2) || '-' || CONCAT('0', SUBSTRING('@{CalendarDate}' FROM 4 FOR 1)) || char(39) AS DATE)
         END
    WHEN 10 THEN
    CAST('date' || ' ' || char(39) || SUBSTRING('@{CalendarDate}' FROM 7 FOR 10) || '-' || SUBSTRING('@{CalendarDate}' FROM 1 FOR 2) || '-' || SUBSTRING('@{CalendarDate}' FROM 4 FOR 2) || char(39) AS DATE)
    ELSE CURRENT_DATE
    END

  • Interactive Reports filter ignoring case

    Is there a way to have the built-in interactive report filter ignore case? I am currently passing the 'LIKE' filter to my interactive report to search for employee names. I want it to ignore the case so 'SMITH' would be the same as 'Smith' when doing search.
    ie. upper(:P1_NAME) like upper(EMP.NAME)

    But I'm not capturing the time. The default format is DD-MON-RR.
    This is crazy, I have used other Adhoc tools that didn't treat dates that way.
    Seeing as the operators change depending on the data type selected by the user, the option must be controlled in the application. Oracle is excluding it for some reason, but they really need to let the administrator control that.
    This is in Interactive Reports. The users don't want to have to format the dates, or anything else. They just want to filter the data to a certain date and the = sign should be allowed. If they are capturing time, then the administrator can truncate the date and make it available via another field/column.
    Edited by: ABD -- DBA on Jan 22, 2010 11:56 AM
    Edited by: ABD -- DBA on Jan 25, 2010 8:05 AM

Maybe you are looking for