Check Interactive report filter with APEX item :P101_USERNAME

Hi,
is there a way to create a filter with IR which is based on the :P101_USERNAME item?
I use this variable with the windows user name and want to show only rows where the current user works with.
Thanks ahead,
Tobias

Hi John,
my plan was to reference the filter on the user level.
Parts of selection for the IR:
SELECT r.r_id,
c.c_name,
r.r_note,
UPPER(r.win_account)
FROM requests r, classes c
WHERE r.r_c_id = c.c_id
Info:
WIN_ACCOUNT looks like: ARNHOLD_TOBIAS
:P101_USERNAME looks like: ARNHOLD_TOBIAS
The goal is that a user in the standard view sees only his rows/calls and if he want to see the rows/calls from the colleagues too. He/She would only need to take off the filter for the USERNAME.
I could use my own items with an extra region too but I thought that there was an easier way then that.
Tobias

Similar Messages

  • Interactive Report filtering with hidden item column names

    I have created an Interactive Report and changed some of the default column headings by using hidden Items with appropriate title. However, when I look at the filter option in the "Gear" drop-down, the only column names which appear are the default ones. There are blank lines for the columns using hidden Items. Any suggestions for having the hidden item content appear in the filter column name list?
    Thanks,
    George

    George,
    What is it you're actually trying to do here? Maybe there's an easier way?
    Hidden items aren't going to show up in the Column List.
    I'm guessing you're trying to separate a long list of column names using '----------' or something like that? We're looking to do just that in our application, but obviously we don't want to users selecting these dummy entries. We tried using the IR column groups, but those make the list look even more cluttered IMHO. (Plus setting the sort order w/in the groups doesn't seem to affect the drop-down column lists, which seems counter-intuitive to me).
    If anyone has other suggestions for breaking up the column list display, I could use something immediately (going into beta-test in 2 weeks!).
    Thanks,
    Stew

  • 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

  • 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

  • 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

  • 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

  • Using Windows 7 and LR 5  when I look at the Keyword List a certain keyword has 7 pictures but when I check the Library Filter with that keyword 350 pictures are shown which includes the 7 pictures that have the keyword.  Why does the Library Filter showi

    Using Windows 7 and LR 5,  when I look at the Keyword List a certain keyword has 7 pictures but when I check the Library Filter with that keyword 350 pictures are shown which includes the 7 pictures that have the keyword.  Why does the Library Filter showing pictures that do not match the query

    Dan,
    Here's what's going on in the catalog you sent me, "Joel & Caitlin's Wedding".  There is the keyword "gwenn", which is explicitly assigned to 7 pics. But keyword "schwartz" has a number of synonyms, including "gwenn", and it is assigned to 25 pics.  There is no overlap between the two sets of pics. 
    I discovered these two occurrences by doing Metadata > Export Keywords, opening the exported file in an editor, and then searching for "gwenn".  I found two occurrences of "gwenn":
    gwenn
    schwartz
        {gwenn}
    From this, you can see that the keyword "schwartz" has 9 synonyms, of which "gwenn" is one.
    The filter criterion "Keywords Contain gwenn" will match the 7 pics that are explicitly assigned the keyword "gwenn", and it will also match the 25 pics assigned the keyword "schwartz", because that keyword has a synonym "gwenn".
    This illustrates the behavior I mentioned above: The criterion "Keywords contains x" will match against any of a pic's assigned keywords, any of those keywords' ancestor keywords, and any of the synonyms of the assigned keywords and their ancestors.
    So LR is operating correctly here, if not in a way that's easy to understand. 
    It appears that you are using the synonyms of "schwartz" to represent individual members of the Schwartz family.  A better way of representing family relationships is to have a parent keyword "Schwartz", with subkeywords for each family member, e.g. "Gwenn Schwartz", "Joe Schwartz", "Jane Schwartz", etc.  Repeating the family name in the subkeywords has a couple of advantages. LR usually only displays the "leaf" name of a keyword, so instead of showing you just "Joe", it will show you "Joe Schwartz", helpful when there are a number of different people whose first name is "Joe".  Also, if you ever export your pics to other software, it may not understand the LR hierarchy and won't show the parent keywords, so again it's more informative to see a keyword named "Joe Schwartz" rather than "Joe".

  • Variable or Substitution String in Interactive Report Filter

    Background: I have an application that has a number of customized Interactive Reports where the Filter on the reports is set to a custom company name. When I install the application, I do not want to go through the reports and change the filter for the new company's name. The filters I need to change are all set by LOVs.
    Question: Is there a way that I can do one of the following:
    - associate a Filter with a Variable or Substitution String such that I can set that variable or string on login and then the user always sees the correct Filter displayed in the Interactive Report?
    - or is there a code method to update a sql apex table behind the scenes to reset the Filter to the new value. So that I could run that after installation as part of a customization / set-up time?
    System Info: 4.1.0.00.32
    Thanks,
    Stephen
    I used the IR_FILTER function, and while it allowed for a new filter to be set. It did not save the filter after logout or for other users accessing the Primary report. I could not find a SAVE Interactive Report function. So, my question still stands on looking for a method to set and save Filters programatically.
    Edited by: slsmith on Apr 19, 2012 8:07 PM

    Hi,
    I don't have access to an Apex 3 environment to check this, but I think that the Apex 4 Interactive Reports save the filters slightly differently and an attempt to mimic that functionality using IR conditions would fail.
    The only alternative I can think of right now is to have an additional column that returns 0 or 1 - eg:
    SELECT FIELD1,
    FIELD2,
    FIELD3,
    CASE WHEN (FIELD1 IS NULL OR FIELD2 IS NULL OR FIELD3 IS NULL) THEN 1 ELSE 0 END INCLUDE_NULLS
    FROM YOURTABLEand then apply a filter to INCLUDE_NULLS = 1
    Andy

  • Can Actions Menu of Interactive Reports work with Custom Authentication?

    My testing is leading my to believe that Actions Menu do not work with Custom Authentication (but only work with APEX Authentication) in APEX 3.1.2? If that's true then is there a work around to this?
    Just to clarify, I've posted/asked this question twice before:
    1) Re: Actions Menu in Interactive Reports does not sort, filter, select cols etc
    2) Interactive Report actions don't work for users (i.e. for non-developers)
    But I've come to believe this is the main problem. I just don't know how to resolve/work around this?
    Thanks for any help.

    I haven't setup a sample because my custom authentication is using LDAP authentication. I'm not sure how I can replicate that on the samples server?
    I'm using LDAP authentication with a Page Sentry function. My further testing reveals that the Page Sentry function is setting the APEX variable user to NULL (ie blank) whenever there's any code in the Page Sentry function box. PL/SQL code as simple as
    BEGIN return TRUE; END;
    in the Page Sentry function box sets the "user" is set to <null>. When the Page sentry function box is left empty (no code specified) it sets the "user" properly after authentication against the specified LDAP directory.
    What all this has to do with Interactive Reports...
    It seems like when the user is NULL it messes-up Interactive Reports that are stored in the flows database. Although it shows the default report properly, but no runtime interactive actions (filtering, sorting, column break, etc.) work.
    Can someone please correct or confirm this?
    Thanks.

  • 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 Expression

    I am a (new) user not a developer.
    The Apex developer has presented me with a web page containing an Interactive Report interface.
    I seem to be managing just fine, for the most part, except to make a filter with multiple OR statements.
    I can easily make multiple AND statements.
    Is there some trick or special way to write the filter statement (OR is this just not possible with Interactive Report - excuse the pun)
    Please help, the developer is stumped!

    I don't think it's possible (someone can correct me if I am wrong) in 3.2.x, but certainly possible in version 4.
    Taken from the Interactive Report help page:
    FilterFocuses the report by adding or modifying the WHERE clause on the query. You can filter on a column or by row.
    If you filter by column, select a column (it does not need to be one that displays), select a standard Oracle operator (=, !=, not in, between), and enter an expression to compare against. Expressions are case sensitive. Use % as a wild card (for example, STATE_NAME like A%).
    If you filter by row, you can create complex WHERE clauses using column aliases and any Oracle functions or operators (for example, G = 'VA' or G = 'CT', where G is the alias for CUSTOMER_STATE).>
    Ta,
    Trent

  • Capturing Interactive Report Filter Fields

    I've a requirement where in a user can view data, apply filters to it, and then invoke an Oracle API by passing in the data set currently visible on the report.
    If I can some how capture currently applied filters on an Interactive report, I should be able to recreate the same data on the server side before calling the Oracle API.
    Is there a way to capture these Filter field out of the Interactive report?
    Thanks,
    Shikhar

    Thanks again Jari.
    I compiled Stew's package and setup a call like this:
    DECLARE
       v_variable   VARCHAR2 (5000);
    BEGIN
           v_variable := apex_ir_query.IR_QUERY_WHERE (app_id_in => 125,
                                        page_id_in => 2,
                                        session_id_in => 1058992121588043,
                                        base_report_id_in => 6902307847490674);
       DBMS_OUTPUT.PUT_LINE ('Query: ' || v_variable);
    EXCEPTION
       WHEN OTHERS
       THEN
          DBMS_OUTPUT.PUT_LINE ('Exception :' || SQLERRM);
    END;But this didn't return anything. Did some digging and ran the SQL below:
       SELECT * FROM apex_application_page_ir_cond cond where application_id = 125Which revealed interactive report id values different from the ones returned by $v('apexir_REPORT_ID'); $v('apexir_REPORT_ID') returns 6902307847490674 but in the table its 7.76121620735057E15 (My Apex version is 3.2).
    I'm not going to pursue it further, as I've decided to implement custom filtering functionality using ape_util.ir_query package. Thanks for your valuable help with this issue. Closing the question.
    Edited by: user4368002 on Jul 16, 2010 2:00 PM

  • Interactive Report Performance With Conditional Link

    Apex 3.2
    I have a interactive report.
    The underlying sql would return 127000 rows
    The sql is
    select
      lde.ods_system,
      lde.ldekey,
      msg.sendersystem, 
      msg.messagetype,
      msg.messageversion,
      msg.msgseqnumber,
      msg.alternatekey,
      msg.crudmarker,
      msg.clrbookdate,
      msg.clrbookresult,
      lower('udf_'||msg.messagetype) button,
      lde.ldekey||'.'||msg.alternatekey||'.'||msg.msgseqnumber udm_key
    from
      clr_esbmessageheader msg,
      clr_adm_systemmessage adm,
      udm_lde lde
    where
      adm.ldeid = lde.ldeid and
      msg.sendersystem = adm.system and
      msg.messagetype = adm.messagetype and
      msg.messageversion = adm.messageversion and
      msg.receiversystem = 'SCIPS'
    order by msg.clrbookdate desc
    This report only takes 1 second to display.
    I need to add a conditional link to another page, so I used
    case
    when lower('udf_'||msg.messagetype) = 'udf_distreceipt' then
    '<a class="type" href="' || apex_util.prepare_url('f?p='||:APP_ID||':52:'||:APP_SESSION||'::'||:DEBUG||':RIR'||':IR_MSG_KEY,P52_PG:'|| lde.ldekey||'.'|| msg.alternatekey ||'.'|| msg.msgseqnumber ||','|| 50, null, 'SESSION') || '"title="Go to udf_distreceipt Report">udf_distreceipt</a>'
    else 'no link' end table_link
    The sql seems to be ok, because the report accepted it, but selecting the new column and saving the report takes forever (over 2 mins)
    Now the report takes over 2 minutes to run and I still need to add more conditions.
    Have I coded the link incorrectly ?
    Gus

    Hi Gus,
    Are you wanting to put the link in the query for a specific reason?
    I had to do a similar thing in the past and just completed the column link section for the column.
    Why not just have the following in the query:
    case
    when lower('udf_'||msg.messagetype) = 'udf_distreceipt' then
    udf_distreceipt
    else null END table_link
    Then do the linking using column link section:
    You would specify your link text as #TABLE_LINK# which should then be conditionally displayed due to the case statement, then add in all the page item and values to pass across using a normal link column.
    Thanks
    Paul

  • Interactive Report - aggregate with hide - bug or feature?

    We are in the process of converting existing reports to Interactive Reports (IR), and adding a bunch of new ones. We ran into a roadblock when using IR with aggregates. To
    reproduce, I created a test table with region, state, county, city and population columns. I created an interactive report, CONTROL BREAK on "Region", aggregate (SUM) on
    population. The result looked like this.
    <p>
    <b>Result #1:</b>
    <p>
    Region: West
    ************<b>
    State  County         City            Population</b>
    CA     Orange County  Irvine          100
    CA     Orange County  Orange          200
    CA     Los Angeles    Hollywood       300
    CA     Los Angeles    Universal City  400<b>
                          Sum           1,000</b><p>
    When I clicked on City column, and chose to hide it, I expected the IR to resummarize the result to look like this:
    <p>
    <b>Result #2:</b>
    <p>
    Region: West
    ************<b>
    State  County         Population</b>
    CA     Orange County  300
    CA     Los Angeles    700
           Sum          1,000</b><p>
    But what I saw was this:
    <p>
    <b>Result #3:</b>
    <p>
    Region: West
    ************<b>
    State  County         Population</b>
    CA     Orange County  100
    CA     Orange County  200
    CA     Los Angeles    300
    CA     Los Angeles    400<b>
           Sum          1,000</b><p>
    The data in the above result #3 is not presented the in way it should be for the users to comprehend.
    <p>
    In the non-interactive version, we display checkboxes for the users to show and hide the columns. If the column "City" is set by the user to "Hide", then we use the
    condition on the column to hide the City column from the report, and use the query "SELECT ..., CASE WHEN :P10_SHOW_CITY = 'YES' THEN city ELSE NULL END As city, SUM
    (population) FROM .. " to summarize the data. This displays results like the one shown in Result #2.
    <p>
    1. Shouldn't IR re-summarize the data to display results like I have shown in Result #2 when a column is hidden? We are able to achieve this with non-interactive version. Is this a
    bug in IR?
    <p>
    2. Is there a way to get interactive report to display results like the way I have shown in Result #2?
    <p>
    3. Is there a way to retrieve the columns that are set to "HIDE" in IR so that we can modify our SQL to resummarize?
    <p>
    <b><u>Script to reproduce:</u></b>
    <p>
    Create table test_ir(
        region varchar2(50),
        state  varchar2(50),
        county varchar2(50),
        City   varchar2(50),
        population number(4))
    insert into test_ir(region, state, county, city, population) values
    ('West', 'CA', 'Orange County', 'Irvine', 100)
    insert into test_ir(region, state, county, city, population) values
    ('West', 'CA', 'Orange County', 'Orange', 200)
    insert into test_ir(region, state, county, city, population) values
    ('West', 'CA', 'Los Angeles', 'Hollywood', 300)
    insert into test_ir(region, state, county, city, population) values
    ('West', 'CA', 'Los Angeles', 'Universal City', 400)
    select region, state, county, city, population from test_ir<br>
    Thanks.<br>
    <br>
    Ravi

    Hi Ravi,
    When you add a control break, we do not re-generate the query to do group by. We just do control breaks. In the current version of APEX, to achieve what you are trying to see, you need to create an Interactive report with group by clause. If you want to use a dynamic query, the solution I suggest will not work.
    The good news is in APEX 4.0, we are working to include group by view to an Interactive Report. This will let you select group by columns and aggregate functions to get the Result #2 you are trying to get.
    If you wish to see how this works, we will be able to show if you come to APEXposed 2008, October 29 - 30, at Chicago O'Hare Wyndham.
    Christina

  • Interactive Report filter using "in"

    I am using an interactive report, and I want to filter using the "in" criteria. The data I want to filter is a person's name, and it is a concatenation of the entire name, last name first. I have no problem doing this filter on just the first or last name, but the concatenated field has a comma in it, and that seems to be throwing the filter off.
    What automatically populates when I click a name from the list is something like:
    Abraham, Adam
    I can see that it would probably be interpreting that as two different values. But even if I put single or double quotes around the name, it still does not work correctly.
    An example available at:
    http://apex.oracle.com/pls/otn/f?p=41923:1
    Try doing an "in" filter on the "name" column.
    Thanks,
    David

    David,
    The comma is the operational separator for the 'IN' clause, so you are right, the filter sees each part of the name as a parameter. Just use something else as the separator (like a space) and you will be good to go.
    Keep Smiling,
    Bob R

Maybe you are looking for

  • CUPC 8.6.1 and Call Pickup

    Hi, Has anybody tried using Call Pickup from a phone whilst their phone is Desktop Integrated into CUPC 8.6.1202.76? We have noticed that if Phone-A calls Phone-B and Phone-C uses Call Pickup from their Desk phone (796X SCCP in my case) to intercept

  • A testimonial and thanks to Apple Quality & Service!

    In the course of more than 6 years of _heavy_ daily use the battery of my 1st generation iPod Nano (2GB, White) had all but given out. In the end, with less than a half an hour of charge being maintained, it was only practically possible to operate w

  • System status table

    hi all, i am locking/unlocking(status) the account assigment of network at header level using CN22 transaction, it is updating the status in table JEST.I just want to know which table that system status update when iam  locking/unlocking the account

  • Airplay only works for Netflix

    I'm using an iPad Air running iso 8.1.2. I can watch Netflix using airplay but can't show anything else. Apple online support indicates I need to turn on mirroring, but I can't find the switch, their example shows mirroring in iso 7 on a phone and do

  • Sap support on  LINUX  ESX 4.1

    Hi  There, Can you please advise if virtualisation is supported for sap applications on Linux on ESX 4.1 ? The notes only mention of the ESX 3.X for Linux Note 1122387 - Linux: SAP Support in virtualized environments Note 1122388 - Linux: VMware vSph