Filter report using lov

Hi Everyone
I want to filter a report based on the selection of drop down list of LOV select list.
I have create a report which will show the columns, employee id, employee name, manager, manager id , sal, deptno.
and created a page item which list values of manager name and manager id is return_value.
How to pass this parameter to the report to filter it based on the selection.
Pls help me out how to fix this issue.
Thanks in advance
Sandeep

Sandeep,
Every page item can be referenced as a bind variable in a report.
If you created your LOV and named it "P1_MY_LOV". you can reference that in your report as:
select emp_name
  from emp
where department = :P1_MY_LOV
Edit
Keep in mind select lists have two values. A display value and a return value. The return value is what is actually used by the select list bind variable, not the display.
Cheers,
Tyson Jouglet
Edited by: Tyson Jouglet on Jun 28, 2011 7:58 AM

Similar Messages

  • Report using LOV's

    Hi all again, I am building a report and need to have the LOV display not the value in the table.
    I am useing Apex 4.1 on 11Gr2 with the build in html server.
    I have a table I am reporting on the has several fields that are values in several LOV tables, but I can not get the report to display the text field from the lov table.
    I have a select statement in the report and the display type set as text, and in the List of Value area set to Define List of Values. I have tried several different settings, but no luck.
    Thanks

    Hi,
    I just suspect you are doing something "wrong" as that package returns for me correct where clause even I use list of value query for columns.
    Just in case check this post
    APEX 4.1 IR LOV filter
    PS: when you talking some undocumented package like apex_ir_query, it usually helps if you mention where you have get it. Post e.g. link.
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • Interactive Reports - Filter Criteria Using Other Operators

    Currently using version 3.1.2.
    Is there any way to specify the operators that are used for filter criteria on an interactive report?
    Trying to specify the following criteria...
    LASTNAME like 'B%'
    OR
    LASTNAME like 'A%'
    The interactive report uses an "AND" in this case instead of an "OR".
    Any ideas?
    Thanks,
    Kris

    Any comments would be very much appreciated.
    Many thanks

  • Web report - return drilldown state & filter values using Javasript

    I am customising a BW web report using Javascript.
    Can anyone tell me how I can read whether a particular characteristic is drilled down and the filter values applied using Javascript?
    thanks,
    Hans

    Hi,
    for the drilldown state use:
    SAPBWGetDataProviderDimensions
    http://help.sap.com/saphelp_nw04/helpdata/en/af/00453c3ff4110ee10000000a11405a/frameset.htm
    for example:
    var dim = SAPBWGetDataProviderDimensions("DATAPROVIDER_1");
    if (dim != null){
      for(m=0;m<dim.length;m++){
        if (dim[m][4]=='X')
               alert(dim[m][0] + ' is in Columns');
        elseif (dim[m][4]=='Y')
               alert(dim[m][0] + ' is in Rows');
    As for the applied filters: You need to use the web item filter with generate_caption= and only_values=X inside a <span>-tag with an id. then use document.getElementById('YourId').innerHTML to get the applied filters.
    Heike

  • Applying report filter when using OBIEE web services

    Hi
    Would like to know if it's possible apply report filter when using the web serivce ? Read from Oracle doc that there's this applyReportParams() method in ReportEditingService that could do the job. Can anyone confirm this ?
    Currently we've tried to access the report using the WebCatalogService, read the xml and retrieve the result using the XMLViewService successfully. However there's an additional requirement to pass in the report filter on the fly.
    Thanks in advance

    Hi Gerardnico,
    I have a question regarding the OBIEE Web Services,
    We are using C # for Automation code to test Obiee Analysis Web Services,while designing filter in C # to call report we are facing difficulty with Presentation Variable using Variable value. Where as it is working fine for Column value.
    Note: The choice list has 2 custom values.
    So please guide me in this regard.
    Regards,
    Pj

  • Custom pagination for APEX 4.2 interactive report using Page Zero

    Hi,
    I want to implement an «Custom pagination for APEX 4.2 interactive report» using a «page zero».
    I recently migrate from Apex 3.1 to Apex 4.2 and my «Custom pagination for APEX 3.1 interactive report» using a «page zero»  is not working any more.
    So now I try to adapt an excellent example of Jari Laine for 4.0 but using a page zero.
    I put the code JavaScript to Page zero but I must create an dynamic action to fire only for an interactive report region.
    It’s a good idea?
    Thank you

    Thought I would try once more with my DatePicker question.
    On the Apex.Oracle.Com website I have created a 1 page application that has an Interactive Report.
    [url http://apex.oracle.com/pls/apex/f?p=15655:1]
    user = 'test'
    password = 'test'
    I have 2 questions :
    (1) In IE7, press 'Actions', 'Filter'. On the Column dropdown list, select 'Order Timestamp'.
    Notice the prompt icon to the right of the 'expression'. This should change to the Datepicker, but in IE7 it does not. Try the samething in Firefox or Chrome and the Datepicker will appear.
    Is this a BUG, or does Apex 4.02 not support IE7 ?
    (2) In Firefox or Chrome, where you can now see the Datepicker, you will notice that it is the new style picker, not the old style ( called 'classic' ). I want to change it so that it shows the 'classic' datepicker not the new, but cannot see how to do it, if indeed you actually can.
    I would really appreciate it if someone could take a look and let me know if I am going mad, or if we need to get all our users onto IE8. We have now gone live with Apex 4.02 and need to resolve these issues.
    Thanks in advance.
    Edited by: DooRon on 10-Mar-2011 05:13

  • Crystal Report Using C#

    Actually I am retrieving data from database and passing parameter to report. But I am getting problem where only one record  is showing. Not retrieving all data. So how can I use for loop for reading database. Can anyone help me.
    An example : I am using TABID and Cluster where two clusters in one TABID. Only one showing.

    I am using below those code. Record showing only last. But two records are available. Please help me what is the problem
    private void btnShow_Click(object sender, EventArgs e)
                SqlConnection Conn = new SqlConnection(connStr);
                try
                        Conn.Open();
                        string StringREP = "select TABID, Name from TEMPREP order by TABID";
                        SqlCommand CommandTAB = new SqlCommand(StringREP, Conn);
                        SqlDataReader rd = CommandTAB.ExecuteReader();
                        if (rd.FieldCount > 0)
                            while (rd.Read())
                                TABID = rd[0].ToString();
                                Name = rd[1].ToString();
                                ReportShow();
                catch (Exception Ex)
                    MessageBox.Show(Ex.Message);
                finally
                    Conn.Close();
    //////////PASSING PARAMETER///////////////
    private void ReportShow()
                SqlConnection Conn = new SqlConnection(connStr);
                try
                    Conn.Open();
                    string StringREP = "select TABID, Name from TEMPREP order by TABID";
                    SqlCommand CommandREP = new SqlCommand(StringREP, Conn);
                    SqlDataReader rd = CommandREP.ExecuteReader();
                    ReportDocument reportDocument = new ReportDocument();
                    ParameterFields paramFields = new ParameterFields();
                    ParameterField paramField = new ParameterField();
                    ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue();
                    if (rd.FieldCount > 0)
                        while (rd.Read())
                            paramField = new ParameterField(); // <-- Date Filter Report Selection Start Date
                            paramDiscreteValue = new ParameterDiscreteValue();
                            paramField.Name = "@TABID";
                            paramDiscreteValue.Value = TABID;
                            paramField.CurrentValues.Add(paramDiscreteValue);
                            paramFields.Add(paramField);
                            paramField = new ParameterField(); // <-- Date Filter Report Selection End Date
                            paramDiscreteValue = new ParameterDiscreteValue();
                            paramField.Name = "@Name";
                            paramDiscreteValue.Value = Name;
                            paramField.CurrentValues.Add(paramDiscreteValue);
                            paramFields.Add(paramField);
                            reportDocument.Load("D:\\crpScvbPer.rpt");
                    rptPer.ParameterFieldInfo = paramFields;
                    rptPer.ReportSource = reportDocument;
                    rptPer.Visible = true;
                catch (Exception Ex)
                    MessageBox.Show(Ex.Message);
                finally
                    Conn.Close();

  • How do you reference a Formular Object on a Crystal Report using Java

    Hi all,
    I am trying to reference an object on my report which contains a Formula field.
    I have read the following 2 threads, but they refer to textObjects:
    [How do you reference a textObject on a Crystal report using Java|Re: How do you reference a textObject on a Crystal report using Java?]
    [Changing the text of ITextObject programatically|Re: Changing the text of ITextObject programatically]
    But I cannot even get those to work. I can reference a object which refers to a database field but as soon as I try
    reference a textObject or reportObject I just get a NULL variable.
    Below is the code I am useing
    IReportObject dbField = reportClientDocument.getReportDefController().findObjectByName("BOB1");
    IReportObject textBob = reportClientDocument.getReportDefController().findObjectByName("BOB2");
    "BOB1" is the name of my DB field Object, and "BOB2" can be a Text box or a Formula item and I just get nothing.
    I have just tested it with a FieldHeadingObject and that returns a valid object, so clearly I am going about this the wrong way
    for objects I place on the reports which are not driven by the database items.
    Ultimately what I want to do is reference an object in the Report Footer which will contain the RecordCount of the number of
    records contained in the report, which I am them going to use to determine if the report holds data,
    if it does I will print it, else ignore it and move on the the next report. I am doing this so that I can at an extra filter to split
    a report up into groups and produce a sinlge PDF for each group instead of one massive PDF containing all the groups.
    So if someone has a solution to any of my problems I would be very greatful, and I dont mind being told Im an idiot and should
    rather do it another way, as long as you supply that other way
    Thanks for the help
    Darren
    Edited by: Darren Jackson on Dec 16, 2009 7:29 PM
    Forgot to add am using CR4Ev2 SP3

    Right I have made some headway.
    Firstly, Im an idiot. I was making changes and setting up test fields on my report, but then when running the app, I had it looking at
    the backup report, which would explain why all the new textbox fields were not being found.
    The stupiditity did force me to delve deep and work out a fair bit of how the reports work, so cant complain too much. BUT, I am still
    not able to return values of Formula fields and formulas extra. Could someone tell me if this is even possible. I get retrieve the formula field
    name, and properties but not its value once the report has been populated. Am I wasting my time?
    Well I will continue dismantling my reports till I find the answer, or someone points me in the right direction.
    If any one is interested this is the code I used to drill down to my text boxes:
    IReportObject recCount = reportClientDocument.getReportDefController().findObjectByName("TB1");
    ITextObject obj_RecCount = (ITextObject) recCount;
    System.out.println(obj_RecCount.getName());
    Paragraphs objP = obj_RecCount.getParagraphs();
    for (int i = 0; i < objP.size(); i++){
         ParagraphElements pE = objP.getParagraph(i).getParagraphElements();
         for (int j = 0;j < pE.size(); j++){
              IParagraphTextElement pEE = (ParagraphTextElement) pE.getParagraphElement(j);
              System.out.println(pEE.getText());
    Cheers

  • How create animated power view reports using sharepoint list as a data source in sharepoint 2010?

    Hi All,
    I got a client requirement to create reports using SharePoint List as data source. The report should show reflection depends on values changed (I mean animation).
    I have heard about the power view/power pivot which does this kind of animations in reports.
    Can someone please guide me on creating reports which shows animations
    In power view/power pivot using SharePoint List as data source in SharePoint 2010.
    Thanks in advance.
    MercuryMan

    Hi MercuryMan,
    Yes, Power View, a feature of SQL Server 2012 Reporting Services Add-in for Microsoft SharePoint Server 2010 or SharePoint 2013 Enterprise Edition, is an interactive data exploration, visualization, and presentation experience.
    It provides multiple views featuring tiles, slicers, a chart filter, and a number of visualizations, including cards, small multiples, and a bubble chart. So, we can use Power View to do intuitive ad-hoc reporting for business users such as data analysts, business
    decision makers, and information workers.
    Currently, Power View report only supports two types of data models: PowerPivot Worksheet, and data models based on Analysis Services Tabular Model or Multidimensional Cube.
    In your scenario, you can create PowerPivot worksheets using SharePoint List as data source, deploy the PowerPivot worksheet to a SharePoint Library or PowerPivot Gallery, and then generate Power View reports based on the PowerPivot worksheets on the SharePoint
    site.
    To use SharePoint List as data source in Excel PowerPivot, you can refer to the following resource:
    http://blogs.technet.com/b/excel_services__powerpivot_for_sharepoint_support_blog/archive/2013/07/11/excel-services-using-a-sharepoint-list-as-a-data-source.aspx 
    http://technet.microsoft.com/en-us/library/hh230322.aspx 
    To create a Power View report based on PowerPivot model, you can refer to the following links:
    http://technet.microsoft.com/en-us/library/hh231522.aspx 
    http://technet.microsoft.com/en-us/library/hh759325.aspx 
    Regards,
    Mike Yin
    If you have any feedback on our support, please click
    here
    Mike Yin
    TechNet Community Support

  • Filter report by back ground color or by condition

    I'd like to filter my report by conditions like iif(Parameter is true, Fields.speed.value > 100 or Fields.speed.value > (speedlimit +15), nothing).  I tried using Dataset filter as following set up, but it won't return the order with speed
    over 100 or over speedlimit by 15 km/h.   
    FilterExpression: [Speed]
    >
    =iif((Parameter.Boolean.value = true, 100 or (fields.Speedlimit.value +15), 0).
    Then i filter all the cell that when speed is under the condition like
    iif(speed > 100 or speed > (speedlimit+15), "PINK", "White")
    but I don't know whether I could filter report by back ground color.
    Anyone please help me with any solution. 
    thanks.

    Thank you very much for the solution.!
    It works when i select "true' for the parameter. 
    But instead of showing all orders when "false", it shows orders under condition Fields!Speed.Value>(Fields!SpeedLimit.Value+15.
    Do you have any idea why?
    all order number is 1000
     number of orders with Field.Speed.Value > 100 is 13
     number of orders with Fields!Speed.Value>(Fields!SpeedLimit.Value+15
    is 340
     number of orders with Fields!Speed.Value>100
    or Fields!Speed.Value>(Fields!SpeedLimit.Value+15  is 353
    I'm getting 353 when "True" 340 when "False"(I do want 1000)

  • Performance of filtering a report using another report

    Hello,
    There are really two questions in this post:
    i) Is there an easier way to select all contacts who have never responded positively to a campaign than to filter our report using the output of another report which selects all contacts who responded positively to at least one campaign? While this approach works properly, I have only been able to successfully run the report on a small sample of the entire data set. The report including all contacts who responded positively to at least one campaign contains about 8k records, and our system contains about 12k contacts. When I ran the report on the full data set, I was unable to obtain any output even after waiting for up to 10~15 mins.
    ii) If I am using the right approach, does anyone know if CRMOD can handle a report filtered on another report with a data set the size of the one described above?
    Any help/comments would be greatly appreciated.
    Thanks,
    JP

    Hi,
    There are a few things I would suggest here:
    1. Run all your reports individually and export the results to excel. Use the VLOOKUP function in excel to get the dataset you're looking for, once you have the final set you can always create a custom checkbox field and import all your records flagging your field as a 'Y'. That will make things nice and simple for reporting and anything else as all of your records can be identified with a simple filter. I do however guess this is probably a fluctuating on-going process and this may not be appropriate
    2. In your reports add another 'Contact ID' column. Change the calculation to: RCOUNT(Contact.ID). This report should count the unique Id's in your report, you can then apply a filter on it e.g. My Column < 4000 or My Column > 4000. This will limit the number of rows in your report so that you can have multiple feeds. You will obviously need another report for each filter but it should trim the records numbers down for you an make this all possible
    3. Use the MINUS functionality as per my first suggestion on the 1st post, this does not have these limitations but it a pain to setup. You shouldn't have an issue with this if you're using the same subject area for each report, when you start combining lots of different subject areas then it all gets a little more tricky
    Thanks
    Oli @ Innoveer

  • Problem in using LOV for validation-JHS 10.1.3

    Hi all,
    This problem was also noticed by Phil McDermott (Problem in using LOV for validation-JHS 10.1.3
    I am following the demo and I noticed that the Use LOV for Validation functionality does not work on the browse page. However, it does work on the details page!
    Another effect of this problem is that once you tried to validate on the browse screen, the lov button does not work anymore.
    Thanks, Joep
    Just found out that is does not work when entering "ph" like suggested in the tutorial. When I enter "p" and then tab to the next field, the lov popup does show.
    Message was edited by:
    Joep Hendrix

    Thanks for your reply Steven.
    I had the same problem as Joep reported here, following the steps at:
    http://www.oracle.com/technology/products/jdev/tips/muench/jhstutorial/index.html#genandrunagain
    Your solution works for me.
    The "completed version of the tutorial application" also has this issue:
    http://otn.oracle.com/products/jdev/tips/muench/jhstutorial/MyDemo.zip
    Are there any other known issues for this tutorial? Where can I find such errata list?
    many thanks
    Jan Vervecken

  • How can Filter ADF BC LOV values in ADF Faces UI?

    How can Filter ADF BC LOV values in ADF Faces UI?
    Hi i am bit struggle with filtering LOV values in ADF Faces UI.
    I have table In UI ,that is from ADF BC .Now i am Filtering that table data using Select one choice in same page.That SOC is named Type App:  ,So according to selection of Type in SOC table have to display.This portion is done.But my requirement is ,when i got perticular result table ,i want to add one more row related to that type only,so for that i had take popup and drag datacontrol as a form.In that form first column is Select one choice ,select Items will come from BC table.So here i want to filter those LOV values according selection in Type SOC.Suppose Type SOC contain Type1,Type2 values,then when i am selectin Type1,Type1 related date willl diplay on table,now click on ADD button popup will open and in that Type SOC will Dispaly only Type1 related values not Type 2 type values.Type1,Type2 values come from same Table.
    Here i am asking every one,please do help.

    fyi
    The HR schema I used to build the example application had some modifications in the context of https://tuhra2.samplecode.oracle.com/ .
    So after running "demo/schema/mksample" as documented in "Resetting Sample Schemas" ...
    at http://download.oracle.com/docs/cd/E11882_01/server.112/e10831/installation.htm#I6236
    ... I got "java.sql.SQLSyntaxErrorException: ORA-00904: "EMPLOYEES"."MODIFIED_DATE": invalid identifier ", using the example application in BindVarDefaultsInUIApp-v0.02.zip .
    So, I have updated the example application to match the reset HR schema:
    - see http://www.consideringred.com/files/oracle/2010/BindVarDefaultsInUIApp-v0.03.zip
    - see screencast at http://screencast.com/t/gd6zKn63j
    Because Re: af:table filter date format : task-flow navigation issue to get feedback, I created service request 3-2193340441 using My Oracle Support about (q1) and (q2).
    regards
    Jan

  • Designing SSRS 2005 report using matrix

    I have created a report using ssrs 2005 and matrix.
    i have "to company" column group and "from company" row group. 
    i have filter for the report as "select currency type" - local currency (may be diff for diff companies)
      foreign currency (same for all companies)
    if user selects foreign currency i want to show total column and if user selects local currency then i want to hide total column (since curr can be diff so does not make sense adding)
    i have added subtotal for amount which look like, (rightclick on, =field!tocy.value and add subtotal)
    how to hide total column depending on currency selection ? 
    I tried to rightclick on total and hide it but it only hides the title. It displays column. i can not rightclick on cell right side of amount cell (below total).
    Any solution to hide total column depending on codition ??
    h2007

    Yes you can use an expression as below
    =IIF(Not InScope("<ColumnGroupName>") And Parameters!Currency.Value = "<Local Currency Name>",True,False)
    this should be set as the hidden property expression for the textbox in the data area ie  the one containing SUM(Fields!Amt.Value) as the value expression
     Also see
    http://visakhm.blogspot.in/2010/01/inscope-operator-in-sql-reporting.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Table Filter with static LOV column

    Hi,
    I am using JDeveloper 11.1.14 and ADF-BC in my project.
    For one of the tables,I have the following scenario.
    1. I have a viewobject [Ex: EmpVo] in which one of the attributes has a static LOV[:Ex: 'Status' attribute in EmpVo has static LOV - StatusLOV with values A - Active I - Inactive].
    2. EmpVo -- > Employee table which stores A and I as status values in database
    3. Display this view object as table in jsff page.
    In the jsff page, when filter is enabled, for the status column I am able to filter only using 'A' and 'I'.
    But actually filter has to work with 'Active' and 'Inactive' as filter values.
    Please suggest the best way to implement filter in this scenario
    Thanks,
    Praveen

    Take a look at the following article:
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/16-custom-table-filter-169145.pdf
    Here, for LOV's you could have an LOV as a filter component instead of the default inputText component.
    Thanks,
    Navaneeth

Maybe you are looking for

  • How to get the select * from emp table output on the console  using java

    public class software {       * @param args      static final String JDBC_DRIVER = "oracle.jdbc.driver.OracleDriver";      static final String DATABASE_URL = "jdbc:oracle:abc";      private static Connection connection;      private static Statement

  • ICal Update Fiasco: Publishing to web site

    This latest update seems to be a total disaster! First, the disappearing items from all calendars. After syncing them back from MobileMe, all my calendars now show up under a MobileMe directory instead of On My Mac. What about if I didn't have a Mobi

  • Requests to change email password

    Why am I being advised of suspicious activity on my account & told to change my e-mail log in passord every few days (3or4)?

  • Simple how to question ...

    ... here is the situation: I'm brand new to Motion ... I received footage and applied some simple lower thirds to it ... now, I received much higher resolution footage ... how can I re-use/merge/export the motion effects I created with/to the new hig

  • Embedded OC4J Error : java.lang.OutOfMemoryError: PermGen space

    Hi all, When testing apps using embbed OC4J I experience the java.lang.OutOfMemoryError: PermGen space. If occur on OAS, I add :add -X:MaxPermSize=256m to the startup java options on opmn.xml, and problem solved. How can I set the startup jaav option