Set default search column in Interactive Report

Hi All:
In APEX 4.0, for "Interactive Report" search function:
If user doesn't select a column name to search for (this is done by click Magnifier glass icon), the IR will search "All Columns" that contains a string you have typed in the search bar.
Is there a way to configure IR so that, by default, it will not search "All Columns", instead, it should search a particular column that I will specify when define this IR report.
Why I am asking this? Here is my case:
I have created a IR report to search employee information. By default, when user enters a string in the search bar, user want to search "Emploee Full Name" column in my IR report. User wants this default search behavior and really doesn't want to "click Magnifier glass icon and select "Employee Full Name" column; then type the search string).
Basically, in my case, the IR report should default to search "Employee Full Name" if user doesn't select any search column.
Any idea how to achieve this?
Thanks!
Kevin

In the above DA, Changing the 'Event Scope' to 'Dynamic' should trigger it after PPR. I tried it but it's not working for me.
Try the below it's working for me as expected,
Create DA like below,
Event: After Refresh
Selection Type: Region
Region: Select your IR region
In True Action,
Action: Execute Javascript Code
Code:
$s('apexir_SEARCH_COLUMN_DROP','COLUMN_LABEL');                           
$s('apexir_CURRENT_SEARCH_COLUMN', 'COLUMN_ALIAS');
In Affected Element,
Selection Type: Region
Region: Select your IR region
Event Scope: bind (Default)
Make sure Fire On Page Load under 'Execution Option' is checked. (i.e. Fire On Page Load: Yes)
I am using APEX 4.0.2.00.07. It's working for me also in apex.oracle.come it's working in my example application.
Thanks
Lakshmi

Similar Messages

  • How to apply an accent-insensitive search to an interactive report?

    Hello all!
    I'm trying to put an accent-insensitive search on an interactive report here. For example, if I'm on the page that has the interactive report and if I click the column header of the interactive report, I get to see a search bar that dynamically shows the results that match your input. Now, when I enter "jager", I want to see *"Jägermeister"* as a search result. The search must be accent-insensitive, so that I don't have to enter the ä every time.
    My code is as follows:
    SELECT name
    FROM food_1
    WHERE name LIKE 'Jagerme%'
    AND NLSSORT(name) IS NOT NULL
    ORDER BY NLSSORT(name, 'NLS_SORT=GENERIC_M_AI');As you can see, I first tried getting a result through the SQL Command. It should return the row that has "Jägermeister" as name. However, it doesn't. It tells me "No data found". So, how do I alter my NLSSORT to search accent-insensitive?
    Some extra information, I edited the interactive report source to the following:
    SELECT DISTINCT a.name, a.foodid
    FROM food_1 a INNER JOIN foodunit_1 c
    ON a.foodid = c.foodid
    WHERE a.foodlanguageid = :P17_SET_LANGUAGE
    AND NLSSORT(a.name) IS NOT NULL
    ORDER BY NLSSORT(a.name, 'NLS_SORT=GENERIC_M_AI');I also tried doing ALTER SESSION before the SQL code, but it still gives me the same result: No data found.
    I'm using APEX version 4.1.1.00.23.
    Help and suggestions are more than welcome. ;)
    Thanks in advance,
    Magali

    I found it out!
    It's really ridiculous, actually.
    Remember this code?
    execute immediate ('ALTER session SET NLS_COMP=LINGUISTIC');
    execute immediate ('ALTER session SET NLS_SORT=BINARY_AI');Well, this code is perfectly fine. Only, it doesn't execute. This is because it was misplaced...This process is not executed when you place it in the current authentication scheme, under the "Post-Authenticatoin Process" part.
    You might wonder why this is, but I have the explanation to that.
    You see, when you use an interactive report, the page processing isn't executed when you use the search function of that interactive report... Because it's an interactive report, I guess.
    BUT.
    An ALTER SESSION from the security attributes, that will execute.
    So, the solution to my problem was, in this case:
    Go to "Application" --> "Shared Objects" --> "Security Attributes" --> "Database Session" --> "Initialization PL/SQL code". In there, you need to put:
    BEGIN
    EXECUTE IMMEDIATE 'ALTER session SET NLS_COMP=LINGUISTIC';
    EXECUTE IMMEDIATE 'ALTER session SET NLS_SORT=BINARY_AI';
    END;By doing this, there's no longer any need to edit the source code of the report!
    So, that's the solution. I can finally enter text without special characters in it, and get the corresponding data, with special characters... Ahh. :)
    I hope this is helpful to others as well now. ;)

  • Search/Filter through Interactive Report!

    Hi All,
    First of all WISH a very Happy New Year-2010!!
    In my previous post for Search/Filter through Interactive Report!
    I am facing problem with UI as mentioned below can any one help me out on this, as this an urgent for me...
    At last i was able to was able to retrieve the data from Iframe using different logic!!
    But i want to modify some of the modifications in UI Design..
    As i have informed u that End user always selects the Page-85 which is visible to them..
    In that page(85) i have totally created three regions.
    1. Attribute Report(Intearctive report)
    2. Manage Attribute(HTML where i have give iframe syntax as {iframe ID="Attribute Report" src="" style="width:520;" FRAMEBORDER=0></iframe>
    3. Create/Edit Region
    FYI: There is a create button in Attrinbute Report and when i click on that Button then only i wil display the Create/Edit Region
    Now the problem is end user are using pixels as 1024*756 size, when i have tried to increase the size of width in iframe, the create/edit region is crossing and
    need to scroll down to check the data.
    Let us assume if i had reduced the size of width as default 520 then create/edit region is placed with in pixcels.
    As u know there is a button called as "GetResults" in page-85 when i clik on that button we will call the iframe which is a hidden page where end user
    can not view.
    The main problem is that in that page i mean page-45, it has desgined in such a way that it is similar to page-85 which is having with all 3 regions!!
    When it will display the report from iframe for that the scrolloing is displayed, and when i had click on create button in that iframe the credit/edit region is
    displayed but for that there to scroll down which is not happy by endsuer.
    In order to overcome this i had tried to increase the width in iframe which is working for one not for the other or viceversa.
    Suggestion: Can u suggest me how to fix the pixcels so that it will not excceds the pixecls size?
    What i had thought is in page-85 i have created totally 4 regions instead of 3 regions as shown below:
    1. Attribute Region
    2. manage Attribure(With Iframe)
    3. manage Attribute(With out iframe but used one hidden varibable ans set that hidden in condtional region)
    4. Create/Edit Region.
    And i am setting that hidden variable in Create button, so that i can call the second manage attribure with iframe.. When i have tried to use that it is throwing script error as "style is null or nor an object", i belive scince we are hidinng that region it migh not able to identify that style!!!
    Can u suggest me the way i have done i had implemenetd is sounds goods for u? Or else can u help me out how to fix that UI design issue...
    Thanks in advance,
    Anoo..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi Andy,
    As per your suggestion i have created two pages!. One is 85 page and 45 page, but foe enduser can see only the 85 page.
    In 85 page i have created a interactive report as shown below:
    SELECT distinct attr_code "EDIT", attr_code, attr_description, attr_atcl_code,
    attr_abbreviation,
    attr_include_short_desc "Include short desc",
    attr_include_long_desc "Include long desc",
    attr_attr_type "AttrType", attr_code "DELETE"
    FROM t_append WHERE EXISTS (SELECT 1
    FROM APEX_APPLICATION_PAGE_IR_COND
    WHERE APPLICATION_ID = :APP_ID
    AND PAGE_ID = :APP_PAGE_ID
    AND CONDITION_ENABLED = 'Yes'
    AND APPLICATION_USER = :APP_USER) ORDER BY attr_description;
    In the same page itself i have created a One more region, where i have one select list and submit button, when there select fro the list and click on submit button then popup should fired, i mean what u have mentioned. For that i have created a new page called 45 where i have two regions one is HTML region and second is interactive report.
    I html region i have given like this in source
    <iframe src="f?p=&APP_ID.:85:&SESSION." style="width:500; height:1000;" FRAMEBORDER=0></iframe>
    but i am not able to see the template at all?
    Pls correct i way i have done is correct or not.
    Also i was not able to see the Region as - Popup one ( where i can see the popup option?)
    Thanks,
    Anoo..

  • How to remember what I search for in Interactive Report's search field

    Hi.
    I made Cro-Eng dictionary using Interactive Report by joining two table columns of Croatian and English word. Now I want to remember every word that I write in the search field of Interactive Report by filling the table SEARCHEDWORDS which has two columns WORD and DATE, so that I can see all the searches that were made and the date they were made. Is it possible? Do I need triggers for that, or do I do it through processes in edit page of Interactive report? something like INSERT INTO SEARCHEDWORDS (WORD, DATE)
    VALUES (?SOMETHING?, SYSDATE);

    Hi Tihomir,
    The last step is Javascript so you'll need to create an HTML region and wrap the code in &lt;script&gt; tags. The Javascript basically overwrites the default actions to refresh the IR report. Instead it says to call a custom function which first logs the search request then makes a request to refresh the IR region.
    jQuery is used to help manipulate these links. jQuery is a javascript library. You can read more about it at jquery.com. To see more examples, Insum has an excellent jQuery for APEX page: http://apex.oracle.com/pls/otn/f?p=987654321:home:0
    If you have multiple IR pages then you can include the code on Page 0 or on each of those pages. Since you're trying to log information for several different IR you may want to add some extra columns to your log table to include which IR the searches belong to. You'll also need to update your application process and (depending on your requirements) some of the javascript code.
    Martin
    [http://apex-smb.blogspot.com/]

  • Need to fix the width of a column in interactive report

    Hi,
    I have a column named 'Comment'. Its have a huge data due to which the lenght of that column in interactive report get increased. I need to fix the length to a desired value.
    I used following code in Region Footer:
    <style>
    table.apexir_WORKSHEET_DATA td[headers=COMMENTS] {
      _width: 300px;
      min-width: 50px;
      max-width: 300px }
    </style>
    Its solved the problem by fixing the width of the column but the column is not showing the full data now. It is hiding most of its part to fit it in that column.
    Please give some idea.
    Thanks,
    Chandru

    Hi,
    I believe you will want to add a height specification to allow for multiple lines.  And you may want/need to specifiy how you want lines to wrap.
    Add (for example):
      height: 60px; 
      white-space: nowrap; 
      word-wrap: break-word;
    There are defaults and several options for white-space and word-wrap.  You may want to look them up and give them a try for comparison.
    Howard

  • Changing the default edit icon of interactive reports

    Hi,
    I have tried to look around to find a place to set the default edit icon of interactive reports and I cant seem to find it.
    Another thing is: What would be the best practice to change the icon to a new image that is NOT part of the apex installation? Right now we have 8 icons to choose from, which are all located in apex image library. Its not even located in the theme. So if I just overwrite the current default icon it would be overwritten again next time I upgrade apex.

    bjarkekr wrote:
    Another thing is: What would be the best practice to change the icon to a new image that is NOT part of the apex installation? Right now we have 8 icons to choose from, which are all located in apex image library. Its not even located in the theme. So if I just overwrite the current default icon it would be overwritten again next time I upgrade apex.I would apply an override using CSS.
    Create a style sheet and include it in all required page templates:
    .apexir_WORKSHEET_DATA td[headers="LINK"] a img {
      display: none;
    .apexir_WORKSHEET_DATA td[headers="LINK"] a:link,
    .apexir_WORKSHEET_DATA td[headers="LINK"] a:visited {
      display: block;
      /* Change dimensions to size of your icon */
      height: 18px;
      width: 18px;
      /* Change URL to location of your icon */
      background: transparent url(/i/ws/small_page.gif) no-repeat;
    }This removes the edit icon specified in the IR attributes and replaces it by showing whatever icon you want as a background image on the link element. This allows you to change the icon universally for all IRs by making a simple change to the dimensions/background image URL in one place.

  • How to create sub columns in interactive report

    can u tell me , how to create sub columns in
    interactive report. i really need it.i search lot but i dont get proper information.
    help plz...
    example : -
    |_____total_ persons _____|
    | persons | male | female |
    100 200 3000
    400 500 600

    i am nile.
    select id as id,
    male as male,
    female as female
    from persons.
    i want interactive report with main column total persons(static text) in that male , female.
    e.g.
    |___total persons_| - - - - -> main cloumn
    | male | female | - - - - -> sub columns
    100 200
    300 400
    Edited by: user9512075 on Aug 29, 2008 1:46 AM
    Edited by: user9512075 on Aug 29, 2008 1:47 AM
    Edited by: user9512075 on Aug 29, 2008 1:48 AM
    Edited by: user9512075 on Aug 29, 2008 1:49 AM

  • How to set default print orientation in oracle reports 6i?

    Can anyone please help how to set default print orientation of Oracle Reports 6i? Currently document is printed in Portrait orientation, but I need to print it in Landscape orientation. Is this possible?

    It is solved now. Go to Layout Model -> Main Section, Press F4. In the property pallet select the Orientation that is required to be selected when print is taken for that report.

  • When ever i have set default search engine It is not constant It changes . It should Not change

    Actual :-
    I have set default search engine it changes every time when i restart Firefox 9.1 .
    Expected :-
    The search engine should be the same which was set previously

    A new tab opens by default as a blank tab (about:blank).
    If that isn't the case then an extension has changed that behavior.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • Dynamically set maximum row count in Interactive Report

    Hi,
    Has anyone worked out a way of dynamically setting (e.g. via select list) the maximum row count value for an Interactive Report, taking into account issues with order by when the report is filtered. I'm aware of solutions like this: http://www.talkapex.com/2010/10/apex-reports-no-limit-downloads.html but as far as I can tell this doesn't work when the report is filtered and the IR is rewritten in the background. Data sets then become unreliable because they are reordered.
    Thanks,
    Mike

    Hi Mike,
    You can do that with javascript
    gReport.search('SEARCH',100)the 100 you can replace for any number you like.I have a report with filter,sorting and groups and it is gives no problem there.
    any number means any number but not higher than the number you set at Maximum Rows Per Page.
    You probably can mix the solution from Martin and the above code.
    Regards,
    Kees Vlek
    <tt>Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66</tt>
    If the question is answered please change it to answered and mark the appropriate post as correct/helpfull.
    Edited by: kvlek on 24-apr-2013 12:29
    Edited by: kvlek on 24-apr-2013 12:35

  • Exclude column from interactive report when exporting data

    Hello!
    Is it possible to exclude column from exporting (using bi publisher) in interactive report, but having in report. So in report it is, but in export result it isnt :). I know, that I can just not to select this column in "Action" menu before exporting, but then to select it to view in report. But is it possible not to export this column, but having it in report result?
    I Just have a checkbox in report, and I dont need to see it in export result.
    APEX 4.1.
    Thanks !
    Edited by: go0ze on Sep 28, 2012 1:40 AM

    Hi,
    Set condition type PL/SQL Expression to column and enter to Expression 1
    NVL(:REQUEST,'EMPTY') NOT IN('CSV', 'XLS', 'PDF', 'RTF', 'XML', 'HTMLD')Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Display BLOB (image) column in (interactive) report

    Hi,
    I have a field called "picture" in my table "details" which is of type BLOB. i also have a field for "MIMETYPE" and "filename"
    i additionally have a "name" and "description" columns which i need to display along with the picture as columns in a report (preferably interactive).
    i have also modified the BLOB display format as per
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
    what i am missing is the correct query. if possible, i would like to control the size of the picture rendered within the report like say 40*50.
    I have also referred to the thread
    APEX 3.1 Display BLOB Image
    But i don't know how to place the
    dbms_lob.getlength("BLOB_CONTENT") as "BLOB_CONTENT"
    in my query.
    The above also makes the report column as of type "number". is this expected?
    Any help would be much appreciated.
    Regards,
    Ramakrishnan

    You haven't actually said what the problem is?
    >
    I have a field called "picture" in my table "details" which is of type BLOB. i also have a field for "MIMETYPE" and "filename"
    i additionally have a "name" and "description" columns which i need to display along with the picture as columns in a report (preferably interactive).
    i have also modified the BLOB display format as per
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
    what i am missing is the correct query.
    I have also referred to the thread
    APEX 3.1 Display BLOB Image
    But i don't know how to place the
    dbms_lob.getlength("BLOB_CONTENT") as "BLOB_CONTENT"
    >
    Something like:
    select
              name
            , description
            , dbms_lob.getlength(picture) picture
    from
              details
    if possible, i would like to control the size of the picture rendered within the report like say 40*50.For images close to this size it's easy to do this for declarative BLOB images in interactive reports using CSS. Add a style sheet with:
    .apexir_WORKSHEET_DATA td[headers="PICTURE"] img {
      display: block;
      width: 40px;
      border: 1px solid #999;
      padding: 4px;
      background: #f6f6f6;
    }where the <tt>PICTURE</tt> value in the attribute selector is the table header ID of the image column. Setting only one dimension (in this case the width) scales the image with the correct aspect ratio. (The border, padding and background properties are just eye candy...)
    However, scaling large images in the browser this way is a huge waste of bandwidth and produces poorer quality images than creating proper scaled down versions using image tools. For improved performance and image quality, and where you require image-specific scaling you can use the database ORDImage object to produce thumbnail and preview versions automatically, as described in this blog post.

  • How to create more than one default view on an interactive report

    Hi Guys
    This links to a previous thread of mine, but is a new specific question.
    When you create an interactive report, you can select loads of columns, and then define one default report, containing only certain columns and filters etc.. The user can then continue and create their own saved reports, but these are only available for the specific user.
    I would like to be able to create multiple of these "default" reports, that are available to all users, but run of one interactive report dataset.
    I hope this is clear.
    Thanks
    Marissa

    Limitation of interactive report...only one per page.
    So you need to create multiple pages and in each page you can have one report. Depending on the condition /criteria you can show the
    page and for the end user your appln is dynamic. Make sure to create all pages of same/similar look.

  • Selecting a set of rows in an Interactive Report

    Hi,
    What I want to achieve is when a row is clicked in an interactive report that row (via a Primary Key/ROWID) is added to a list of IDs to be edited in one go, I will probably use a collection for this, although a colon delimited list might be quicker and/or easier. The two ways I thought of trying to achieve this was by bending the use of the Link Column and providing a Link to Custom Target or using a row selection technique described below.
    My initial thought was to make it a check box which then called some JavaScript/On demand process, similar to the one shown here. So far I've tricked it by making the image my check box and the link attributes being my function which returns false to stop the page redirecting when clicked. The problem is I can't seem to get the ROWID to appear, I've tried #ROWID# which simply puts that string as the input, so for example, my "image" is this: <input type="checkbox" value="#PK_ID#" name="f01"/>So, if I could get something meaningful in there instead of ROWID it would work a treat I think.
    The alternative method was to use a form of the row highlighting described in this Row Highlighting. The problem here seems to be that for an Interactive Report you cannot change the table row elements to add the onclick. Also when trying this (using Firefox to add the appropriate code to a TR element) it works, as in the function fires, but does not change the appearance of the rows. I lack the CSS/HTML skills to work out why so far.
    Worst case I can simply create a checkbox field in the query as per the example above, the only drawback is that the column might not always be available in the report if the user has hidden the column.
    Any ideas?
    Many thanks,
    Gareth.
    Edited by: gaz_stephens on Jan 16, 2009 12:09 PM

    Hi,
    If all of the records are displayed on the report in one go (that is, there is no pagination involved), then you can add the onclick after the table has been created. Add the following into the report's Region Footer setting:
    &lt;script type="text/javascript"&gt;
    function addEvents()
    var t = document.getElementById(gTable);
    var tRows = t.rows;
    var k;
    for (k = 1; k &lt; tRows.length; k++)
      tRows[k].onclick = function() {alert('Here');};
    addEvents();
    &lt;/script&gt;If pagination is involved, then any javascript will not be run when the next page is displayed. The alert('Here'); in the code would need to be replaced with some javascript functionality - probably calling a javascript function that works on the TR's "this" object reference.
    Andy

  • Displaying different colors for cells/columns in Interactive Report

    Hi,
    I have a requirement to display just the 'cells' in the Interactive Report columns with different colors.
    There are 3 columns in the Interactive report.
    The color coding for all the 3 different columns should be such that:
    <40% - red color
    40-70-orange
    greater than 70%-green
    I tried the highlight option in the report and saved the report as default, but still the color condition ended up getting displayed to the end user. I dont want this.
    Can someone suggest a better way to handle this requirement?

    Perhaps explore similar solutions described here
    Background Colour of Report Cell Issues.
    Scott

Maybe you are looking for

  • Error in domain creation in weblogic portal 10.3.4

    Hi, I am new to portal development. I've installed weblogic portal 10.3.4. I have created a domain and while creation, it asked for datasource selection, I changed the default data source(Derby) to Oracle. All the connection test were successful. I c

  • Macbook to HD

    I am probably getting a new HDTV,(so HDMI input?) and I would like to hook my Macbook up to it for video mirroring. What cable(s) do I need?

  • FCP and External Hard drive

    I recently got this iMac and I plan on editing movies using Final Cut Pro. I will be editing HD and standard definition videos. My hard drive is only 150 g and I am aware that is too small. The current firewire ports I have are just 400 Mb/sec. I nee

  • I can't install mozilla in my mobile

    Hi, i have a samsung galaxy fit and in the android market alredy appears the mozilla firefox aplication. I can download it without problem but when it try to install it says that failed. Is already firefox for my mobile or there is a problem with my

  • Trying to restore lion - message 'unable to install additional components' what can I do?

    I upgraded my MacBook pro internally from 10.6.8. A big mistake. Didn't make a timemachine backup - another big one. Tried to return to 10.6.8. Long and short - stuck with lion reinstall facility which continues to tell me it can't download additiona