Wildcard parameter in Discoverer

Hello -
I have set up several parameters in a Discoverer 4i report. For some of the parameters I have set a condition of "LIKE" for the user input. For these parameters I would like the users to have the option of putting in a wildcard value (%) if they want to receive all values for the parameter. Is this possible?

Hi,
Database contexts may be able to help you here. Search this site for SYS_CONTEXT or check Re: Passing multiple parameters into Custom Folder...
Rod West

Similar Messages

  • How can I pass dynamic value as a user input parameter in discoverer?

    Hi,
    I have a requirement for a discoverer report like this: The report will display only details for Suppliers that have expired (or soon to be) Insurance details. That is the Expiration Date is less than or equal to the day the report is being run plus any days specified in the Number of Days in the Future Parameter.
    The sample code as:
    SELECT s.segment1 vendor_number
    ,s.vendor_name
    ,flv1.meaning classification
    ,pca.certificate_number
    ,pca.certifying_agency
    ,pca.expiration_date
    ,flv2.meaning status
    FROM ap_suppliers s
    ,pos_bus_class_attr pca
    ,fnd_lookup_values flv1
    ,fnd_lookup_values flv2
    WHERE pca.vendor_id = s.vendor_id
    AND flv1.lookup_code = pca.lookup_code
    AND flv1.lookup_type = pca.lookup_type
    AND flv2.lookup_code = pca.class_status
    AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
    AND pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>
    order by pca.expiration_date asc
    Now the parameter is Number of Days in the Future (Enter the number days in the future to extract the data. This will default to 0).
    Is it possible in discoverer to do so as in query i do that like a condition as pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>.
    How can I pass <No. of Days in the Future> as a user input parameter in discoverer?
    Please help.

    Hi,
    All you need to do is to create the condition in the discoverer instead of in the query.
    Create a custom folder containing the following sq (note that i removed the condition)l:
    SELECT s.segment1 vendor_number
    ,s.vendor_name
    ,flv1.meaning classification
    ,pca.certificate_number
    ,pca.certifying_agency
    ,pca.expiration_date
    ,flv2.meaning status
    FROM ap_suppliers s
    ,pos_bus_class_attr pca
    ,fnd_lookup_values flv1
    ,fnd_lookup_values flv2
    WHERE pca.vendor_id = s.vendor_id
    AND flv1.lookup_code = pca.lookup_code
    AND flv1.lookup_type = pca.lookup_type
    AND flv2.lookup_code = pca.class_status
    AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
    Then create a discoverer report using this folder using all fields.
    Create a new calculation as (use this exact syntax):
    Sysdate + :No_of_Days_in_the_Future
    Create a new condition:
    pca.expiration_date <= <your calculation>
    To complete it add a sort as you did in the SQL.
    That's it.
    Tamir

  • Validating Date parameter in discoverer

    Hi
    In the discoverer is it possible to validate or restrict the users to enter the wrong format of the date e.g. if the date format to be entered is dd-mm-yyyy, the system should not allow the users to enter mm-dd-yy,
    Is it possible to put any validation?
    As of now what is happening is discoverer is not telling me any thing after running for few minutes i am not getting any result, after that if i check i found that the date is in the wrong format
    Regards
    Ramesh Kumar S

    Hi
    If I may throw an aside in here. If your users are using 10.1.2 Plus there should be no need for users to key anything into any date parameter because Discoverer now has a calendar for this use. I find it much easier to teach my users to use a calendar than to try and teach them how to key dates in correctly.
    One other thing you might want to consider if you have not already done so is to standardize a date format across your entire Discoverer installation. Then the date format will be obvious because its the same one they see all of the time.
    Nevertheless, if you still want a mechanism to trap what users are keying it is possible to create functions that trap formats displaying appropriate error messages.
    Best wishes
    Michael

  • Long Parameter In Discoverer?

    Hi All ,
    Is it possible to create long parameter in discoverer Plus.
    Regards
    mani

    Hi,
    If the column is a LONG data type then using this column in a condition is not supported by SQL and therefore your only alternative is to implement your own INSTR function in a PLSQL package.
    Rod West

  • How to passing multiple values for a parameter of discoverer(url parameters

    Hi All,
    I am trying to pass multiple values for a parameter of disco report. I am trying to include my url for discoverer viewer report. the values has the following
    'jeff,mark'
    'sfophiee,angela'
    Thanks and Regards
    Venkat

    Hello Venkat,
    I know there are some problems with 10.1.2.0.2, maybe if you haven't done yet you can try with 10.1.2.2, assuming this version should be working for multiple parameter values :
    OracleAS Discoverer 10.1.2.2 is installed with the following patch :
    Patch 4960210 PLACEHOLDER BUG FOR AS/DS 10G R2 PATCH SET 2 10.1.2.2
    So, once installed you can try adding your parameter as param_<parameter_name>='sfophiee,angela'
    Hope this helps, otherwise feel free to log a Service Request to Support.
    Best Regards,
    Gianluca

  • How to pass parameter in Discoverer inner query  PLZ give solution-URGENT

    Hi All,
    My need is I have a query in Disco Admin which has inner query as mention below:
    select Net_Drawn_Amount,Undrawn_Amount,Business_Date from
    (select * from t_FacilityExtract) A,
    We are creating a workbook using Diso Plus and creating a parameter on Business_date which is date partitioned, but issue is in inner query(select * from t_FacilityExtract) is picking whole data which has millions of rows.
    Plz help me how to filter inner query.
    It is just a sample query.
    Plz help me as soon as possible.
    Thanks in advance
    Amit

    Hi,
    Generally, using database contexts is the best way to pass parameters to folders defined in Disco Admin. You can look at this posts or download a article on using contexts with Discoverer from my website (www.cabotconsulting.co.uk).
    Re: Implementing HR report in Discoverer
    Re: Passing multiple parameters into Custom Folder...
    Re: Parameters in SubQuery
    Re: Passing Parameters to a discoverer folder using Note 282249.1
    Rod West

  • Pass page parameter to discoverer portlet

    Hi All,
    iAS Version 10g(9.0.4)
    I created worksheet(graph) using Discoverer plus having 4 parameters. I published the
    discoverer graphs as discoverer portlet in Oracle portal. However for this worksheet it shows
    (No parameters) in Page --> Properties --> parameter. I created simple parameter portlet with
    4 items, this entry I need to pass to this discoverer portlet/Worksheet.
    Any suggestion would help.
    Thanks

    Hi,
    Thank for your reply.
    We are using discoverer plus for relational data (Oracle 10g (Ias 9.0.4)).
    Appreciate your feedback.
    Raj
    Hi, are you using discoverer plus for relational/OLAP
    data?

  • Parameter in Discoverer Administartor

    Hi
    In order to develop the output, i have created a view based on the base tables, there a about 2 millions records, the input parameter is a date, the output of the workbook is very slow, can i do the following..
    1. Since the workbook is having date parameter , can the date parameter be directly refer to the column in the discoverer administrator... so that the performance can be reduced...
    if possible let me know the steps to do this...
    if there is any other method to increase the performance, do let me know...
    Regards
    Yram

    Hi,
    Database contexts may be able to help you here. Search this site for SYS_CONTEXT or check Re: Passing multiple parameters into Custom Folder...
    Rod West

  • Discoverer Parameter : ICX: Discoverer Parameters

    Hi Experts,
    ICX: Discoverer Parameters profile option : is pointing to the EBS URL and is set as exitURL : *****
    In the MOS : its is gives as : ICX: DISCOVERER PARAMETERS (ICX_DISCOVERER_PARAMETERS)
    at the site, user or responsibility level and it will be added automatically to
    the URL when an E-Business Intelligence (BIS/EDW) analysis workbook is called .
    But i did not understand that ,
    And i open the URL gives under this profile option and it is directing to Oracle apps Homepage but it saying as Discoverer Parameter.
    Can someone please give me some more information on it why this profile option is pointing to EBS URL.
    I am using EBS : 11510
    Thanks In Advance

    Please see these docs.
    Using Discoverer 11.1.1 with Oracle E-Business Suite Release 11i [ID 1073963.1]
    Using Discoverer 10.1.2 with Oracle E-Business Suite 11i [ID 313418.1]
    How To Redirect Exit Button On Discoverer Pages To The Home Page Instead Of Login Page? [ID 1129933.1]
    How To Redirect From Exit Link Of Discoverer Plus Or Viewer To EBS Home Page [ID 1458342.1]
    Thanks,
    Hussein

  • How to Pass Multiple Parameter to Discoverer Custom Folder Created in Admin

    Hi,
    I have done as describe in doc id (metalink) note 304192.1 and it's ok.
    Now, my scope is to use the parameter declared in SETPARAMS not with the "=" condition but with "IN CLAUSE" (multipe values).
    for example (SQL Inspector):
    SELECT i106116 as E106116,i106117 as E106117,SUM(i106118) as E106118_SUM
    FROM ( SELECT DS_COMMESSA AS i106116, DS_SCENARIO AS i106117, DS_VALUE AS i106118 FROM (select ds_commessa, ds_scenario, DS_VALUE
    from dw_ods.ods_mbo_commessa
    where DS_TIPO_COSTO='COSTI MEDI'
    and ds_label='DIR'
    and cd_scenario in (1,2)
    and ds_commessa IN DW_ODS.SETPARAM.GET_PARAM1
    union all
    select 'Totale' as ds_commessa, ds_scenario, sum(DS_VALUE)
    from dw_ods.ods_mbo_commessa
    where DS_TIPO_COSTO='COSTI MEDI'
    and ds_label='DIR'
    and cd_scenario in (1)
    and ds_commessa IN DW_ODS.SETPARAM.GET_PARAM1
    group by ds_scenario
    ) CUO106102 ) o106102
    WHERE (1 IN (DW_ODS.SETPARAM.SET_PARAM1(:"Commessa")))
    GROUP BY i106116, i106117;
    where the parameter "commessa" is used with "IN" operator.
    Also tried to modifiy the SET_PARAM1 and GET_PARAM1 in order to use a "table of varchar2" ... but with no succes.
    Help please

    Rod,
    for the first "problem" I find the solution on metalink (note 304192.1) and works fine (also combining SET and GET together)... otherwise I don't know how use this "workaround"...
    for the multiple values on a single parameter (for example: Month='Jan,'Feb') I have tried to understand how DISCO pass these values to the SET function (I suppose like an array of varchar2) but don't work. After the first values (Jan) the reports stop... The problem in not how stored the values but understan how DISCO "pass/manage" these values (Jan,Feb)... Can u help me?
    my actual SETPARAMS package body is (like metalink):
    CREATE OR REPLACE PACKAGE BODY SETPARAM AS
    FUNCTION SET_PARAM1(P1 IN VARCHAR2) RETURN NUMBER IS
    BEGIN
    param1 := P1;
    return 1;
    END;
    FUNCTION GET_PARAM1 RETURN VARCHAR2 AS
    BEGIN
    return param1;
    END;
    FUNCTION SET_PARAM_MBO(p_anno IN VARCHAR2) RETURN NUMBER IS
    BEGIN
    anno := p_anno;
    return 1;
    END;
    FUNCTION GET_PARAM_MBO RETURN VARCHAR2 AS
    BEGIN
    return anno;
    END;
    END SETPARAM;
    ----------------------------------------------------------------------

  • Date Parameter in Discoverer Custom Folder

    Hi All,
    We have a requirement where i need to filter sql query data in the where condition as below.
    WHERE 1=1
    AND TRANSACTION_DATE BETWEEN :PARAMETER_DATE-90 AND :PARAMETER_DATE-9
    Can anyone of you help me on achieving that in discoverer.
    Thank You
    gt0990

    Hi,
    to do that inside the custom folder you can use DB contexts, read the following :
    http://learndiscoverer.blogspot.com/2008/11/metalink-note-304192.html
    Re: Passing multiple parameters into Custom Folder...
    Tamir

  • Passing parameter into select statement by using function in discoverer

    I have created two functions in database named Period_in and Period_out and a global variable  g_period_name
    I have called Period_out function in VIEW(Select statement where condition).
    I have registered Period_in function in discoverer admin then created calculation (called Period_in(:input parameter))in discoverer plus.
    My expectation is user will enter period name and that will hit Period_in function and returns 1 and stores entered period name in g_period_name at runtime. then VIEW will executed and fetches data.
    But i am getting no data found.
    Problem is 2 functions running at the same time in select statement. Please help me to overcome this. Thanks in advance
    FUNCTION period_in (p_period VARCHAR2)
          RETURN NUMBER
       AS
       BEGIN
          g_period_name := p_period;
          RETURN 1;
       END period_in;
       FUNCTION period_out
          RETURN VARCHAR2
       AS
       BEGIN
          RETURN g_period_name;
       END period_out;

    You can use this code: 
    WITH cte
    AS ( SELECT EmpID ,
    EmpName ,
    [dbo].[udf_testFunction](EmpID) AS testfunctionvalue
    FROM #Temp
    SELECT EmpID ,
    EmpName ,
    testfunctionvalue ,
    testfunctionvalue * EmpID ,
    testfunctionvalue + 2
    FROM cte
    But using scalar functions in select clause can hurt the performance. Please see this link: 
    SQL Server Scalar User Defined Function Performance
    T-SQL Articles
    T-SQL e-book by TechNet Wiki Community
    T-SQL blog

  • How to find out PL/SQL function usage in Discoverer workbooks?

    We have to make changes to one PL/SQL function that has been registered in Administrator. Is it possible to find out in which reports the function is used? The function is called in calculations and it returns certain time information. We have to add one argument to the function and therefore have to change calculations where the function is called. We have too many workbooks to manually check them all.
    I am aware how to find out which folders and items are used in workbooks but can't find the same information about functions. We are using Discoverer 10.1.2.2
    Thanks in advance!

    Hi,
    If you calculation is in the EUL you can look at the item dependencies, but if your calculation is in the workbook there is no way other than using the workbook dump (d51wkdmp.exe) utility or opening the workbook and manually checking.
    You might want to consider overlaying the PL/SQL function definition so that there are 2 variants of the function. You can then add the extra parameter as an optional parameter in Discoverer. The correct variant will be called depending on how many parameters are used.
    Hope that helps,
    Rod West

  • Parameter passing to custom SQL query using PL/SQL FUNCTION

    Hi
    In order to pass a parameter to the query in custom folder of a business area I created a function and mapped it to the Custome query using Discoverer Desktop. There is no error in mapping as the system does not throw any error. When I am inputting the Parameter for the input values everytime the query doesnot return any rows.
    Can anybody help in this regard

    Hi,
    I need to take the request Id as input from the user and then fetch only the data pertaining to that requet Id. As a lot of complex joins are involved I need to pass request id as parameter to the custome folder.
    The package i greated:
    CREATE OR REPLACE PACKAGE SETPARAM
    AS
    param1 varchar2(25);
    param2 varchar2(25);
    FUNCTION SET_PARAM1(p1 IN varchar2) RETURN NUMBER ;
    FUNCTION GET_PARAM1 RETURN varchar2;
    END SETPARAM;
    CREATE OR REPLACE PACKAGE BODY SETPARAM AS
    FUNCTION SET_PARAM1(p1 IN varchar2) RETURN NUMBER IS
    BEGIN
    fnd_client_info.set_org_context('138');
    param1 := p1;
    dbms_output.put_line(param1);
    RETURN 1;
    END;
    FUNCTION GET_PARAM1 RETURN varchar2 AS
    BEGIN
    RETURN param1;
    END;
    END SETPARAM;
    I registered the set_param1 function as a pl/sql function in discoverer admin.
    This function is called on the condition associated with the parameter in Discoverer Desktop when i run the report.
    In the custom folder query i have this piece in the where clause
    WHERE tnfo.request_id = NVL(APPS.SETPARAM.GET_PARAM1,7383588)
    And everytime i get the data pertaining to request id =7383588,
    Please suggest where i went wrong
    thanks
    Ashwini

  • Passing a comma in a parameter within a URL

    I am trying to pass a parameter whose value contains a comma into Discoverer Viewer using a URL. I have followed the instructions that are given in the Disco documentation, substituting ~44 into the URL where the comma appears. Here's how it looks:
    http://elvis.rock.local:7777/discoverer/viewer?us=anyuser&db=prod&eul=prodeul&wbk=ACT001TESTURL&wsk=2234&qp_Drivers=Smith~44+Shad+A+/+ssmith,Brady~44+Tom++/+brady&qp_Company=Mycompany
    The problem is that the parameter values show up as 'Smith~44 Shad A / ssmith','Brady~44 Tom / brady' rather than what I expected: 'Smith, Shad A / ssmith','Brady, Tom / brady'. I have tried using ~32 and 002c instead, also tried enclosing in quotation marks, i.e., '~44'.
    Obviously I don't get any results because the values passed in the parameters don't match up with the values in my table.
    Any suggestions?
    Thanks in advance,
    Tricia

    Hi,
    It looks like you have a multivalued parameter and Discoverer cannot distinguish between a comma as a delimiter and a comma within the a parameter value. It is because you are using both multivalued parameters and commas within your parameters that you have the problem. If you have a list values like Smith,Brady,Cooke then the URL parameter qp_names=Smith,Brady,Cooke will be translated to 'Smith','Brady','Cooke'. On the other hand if you have a single parameter like Smith, Shad A then qp_name='Smith,+Shad+A' will be translated to 'Smith, Shad A'. I cann't think of any workaround other than using your own encoding.
    So for example, if you encoded comma as ~2c then you would change you condition for the parameter from item_name IN (:Drivers) to REPLACE(item_name, ',','~2c') IN (:Drivers)
    But then all users would have to enter the encoded comma not just when the URL was used.
    Rod West

Maybe you are looking for

  • Purpose of folder "Ipod Photo Cache"?

    What is the purpose of this folder? Should it be deleted automatically by iTunes after syncing? I've seen several posts here suggesting to delete the folder to try to resolve photo syncing issues. A co-worker tells me that this folder on his machine

  • File Does Not Have Proper Content

    Hello, I'm working on rebuilding a project file after some knucklehead at work deleted many of the files in the project (don't worry, the person is still alive). After re-transcoding and re-synching all the files (interviews, to be precise), most of

  • Using in-house tools vs hosted service

    I was recently on a web event and heard about your hosted test service. My client has a small license of e-Load and I am trying to understand when I should use tools versus when I should use the hosted service...are there specific cases where hosted

  • How to install Dual OS in Mid MB pro?

    How to install Dual OS in Mid MB pro? let me know the way to back up the Mac OS in my PC.

  • HTML5 Publish Not Working On iPad - Blank White Page

    I have the most current version of Captivate 6 (6.0.1.240) and have a simple single slide project using the green theme that produced a blank white page on iPad and iPhone.  I publish it clicking the SWF and HTML5 options and the multiscreen.html lin