Passing parameter to a query in Discoverer Admiin custome folder.

I am developing a report in which I need to paa in the request Id as parameter to display the user the data corresponding to that request Id. However the query is very complex and If I am enetering the request Id in Discoverer Desktop se as Condition for the workbook created the report takes a lot of time to generate. Is there any mechanism through which I can pass the parameter directly to the Custome folder query. As this will reduce my computation time since all the joins will be done only for the rows with that given request Id rather than for all the rows which is happenning correctly.
Thanks.

Hi,
Well there is no straight forward way to do that.
There is a work around to get that functionality by using outer tables or context.
Take a look at the following posts:
Re: Parameters in SubQuery
Re: Parameters in Discoverer Administration
Re: Passing multiple parameters into Custom Folder...

Similar Messages

  • How to pass parameter to the Query String of the Named Queries'SQL

    Firstly to say sorry,I'm a beginner and my English is very little.
    Now I want to know
    How to pass parameter to the Query String of the Named Queries'SQL in the Map editor.
    Thanks.

    benzi,
    Not sure if this is on target for your question, but see #5 in the link below for some web screencasts that show how to pass an input text form field value to the bind variable of a view object. If you're looking for something different, maybe provide some more details such as what you are trying to accomplish and what technology stack you are using - for example, ADF BC, JSF, etc.
    http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html
    Also see section 5.9 and chapter 18 in the developer's guide.
    thanks

  • Ho wto Dynamically Pass Parameters to a Query in Discoverer

    Hi All,
    I have a Query where I would to like to pass the Parameters Dynamically.In my query I have three selects and two UNION ALL's.In the three selects I have to pass Period & Year Parameters.In Each Select the Period Calculation is Different.Say in first & second select from the passed period parameter I calculate the previous Months.Whereas in the last select I do the the calculation with the Passed Period.How is it Possible with Discoverer..
    Thnx in Advance
    Rgds,
    Sai Srivatshav

    Hi,
    Well there is no straight forward way to do that.
    There is a work around to get that functionality by using outer tables or context.
    Take a look at the following posts:
    Re: Parameters in SubQuery
    Re: Parameters in Discoverer Administration
    Re: Passing multiple parameters into Custom Folder...

  • 'Driver]Parameter missing' Error while trying to pass parameter to MS query & Return Data to Microsoft Excel

    I am trying to set up a parameter query using ODBC-Microsoft Query
    to BMC Remedy The ODBC connection is "AR System ODBC Data Source".
    I want to pass a parameter to modified date field and get all the remedy tickets for which the modified date is<= to the passed parameter date.
    So in MS query, SQL- 
    the query looks like
     WHERE ("Trouble Ticket"."Create Date">={ts '2014-10-01 00:00:00'}) AND ("Trouble Ticket"."Modified-date"<=?)
    I am getting the data fetched from database in the MS query window, but unfortunately
    When I click File-Return Data to Microsoft Excel, its showing an error: Driver]Parameter missing
    I set the connection properties- parameter-Prompt for value using the following string.
    Please help

    Hi,
    Based on the error message, I recommend we try the suggestion: Replace all "..."  with [...]
    http://www.pcreview.co.uk/forums/error-parameter-query-odbc-remedy-bmc-software-com-t3232964.html
    Then, if you want to connect the Remedy's oracle database, please see the thread:
    http://www.tek-tips.com/viewthread.cfm?qid=1123112
    We may try the workaround: Write an Excel macro which connects to the database and fetch the data based on the SQL query.
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    If you have further question about write macro, I recommend you post the question to the MSDN forum for Excel
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Pass parameter to Bex Query via Query String

    Hello,
    I am trying to pass a parameter into a Bex Query from a 7.0 portal. I created a Bex query iView and I have tried various permutations with the Bex Query String property of the iview but nothing seems to work. The query runs but the parameter is not passed in.
    For example I have tried: cmd=ldoc&TEMPLATE=Z_TEMPLATE&QUERY=Z_QUERY&Z_QUERY_VARIABLE=12345678 and several other variations of doing this.
    Thanks,
    Bert

    Hi Satish,
    I had already tried that but it did not work.
    Thanks,
    Bert

  • Passing Parameter to SQL-Query

    Hello ,
    i have an SQL Query as Data Source of my Crystal Report . I d like to pass the parameter to my SQL-Query.
    Parameter ?city
    Query1
    select
    Order ID,
    City,      -- How to pass my ?city here
    Amount
    from Orders,
    thanx ..

    You can do this by using the 'Add Command' feature.
    Click Add Command -> Create your ?City Parameter -> type SQL statement:
    select
    Order ID
    where City='{?City}'
    Make sure you add single quotes around your parameter.
    Regards,
    Zack H.

  • Passing Parameter before execute-query?

    I want to do the following scenario, please I need help so I can do this.
    On Execute query i want a parameter to be passed.
    For Example
    I have a table of employees, and if any user executes query on employees form then before execution of query, form must first asks to give it a department name then it executes the query and of course we will get the result of that specific department.
    I hope i have made clear what i am looking to do. but i need help here.
    Thanks in advance.
    Maz

    Several ways
    May be the easiest:
    . define a non-DB Item (of apropriate type) ahead of your block to be queried,
    may be in a new non-DB-block (depends on lyout of forms
    . check on pre-query if there's a value given and abort if empty
    . define in the where clause of the block: emp.columns = :<block.crit_item>
    where crit item is the above mentioned non-DB-Item.
    More effort for the following alternative:
    . define a window
    . define a content canvas (for the new window)
    . define a non-DB-block with a non-DB-Item
    . set focus to that item on KEY-EYEQRY (assumes that key-Exeqry is called in your query process) and ask user to enter the value
    . redo query (KEY-EXEQRY on that block or add a button), this includes to set focus back to your daa block and do exe-qry there
    . set where claus in analogy to above.

  • Pass parameter to a link in Discoverer plus OLAP

    Hi,
    I have a worksheet 'test1' created in discoverer plus olap. I want to drilldown from 'test1' to display worksheet 'test2' based on the dimesion value of 'test1' as parameter.
    Can anybody help regarding this ?
    Thanks
    SA

    You can create a condition for sheet2, based on a subquery on sheet1.
    That condition looks something like:
    column_in_sheet2_you_want_to_filter_on IN
    (subquery on column_in_sheet1_you_want_to_filter_on)
    Regards,
    Sabine

  • Passing parameter to Lov query

    I want to display a Lov having a runtime parameterised query .
    like :
    select * from dept where deptno=? .where deptno will be taken from form field .
    How to resolve .
    for further details:[email protected]
    some help me

    Hi,
    You can get value from url paramtetre by
    String xx=pageContext.getParameter(<url param name>);
    and then set it as session variable by
    pageContext.putSessionValue(<param name>,xx);
    to set session variable in you base page controller.
    To retrieve the value you can use
    String xx=pageContext.getSessionValue(<param name>);
    on your lov page.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to pass parameters to Xacute Query

    hai all,
               Can we pass parametes to Xacute Query using java script with out using any applet in the page..
    Thanks,
    Vidhya

    Hi Vidhya,
    use this function
    service.useService(http://"hostname"/Lighthammer/Illuminator?QueryTemplate=Querytemplatpath&Content-Type=text/xml&Param.1=Param",_"Service1");
    Hope That helps,
    Regards,
    Musarrat
    Edited by: Musarrat Husain on Mar 4, 2008 2:22 PM

  • Adding dynamic 'start with' clause in Hierarchial query in Discoverer 4i

    I have created a custom folder based upon the following hierarchial guery:
    SELECT supervisor_name, level
    FROM xxhr084_hr_emps_v
    START WITH supervisor_name = 'TEST SUPER'
    CONNECT BY prior person_id = supervisor_id
    ORDER SIBLINGS by supervisor_name
    I want the 'START WITH' value to be based upon a parameter i.e. the User enters the value of supervisor name at runtime.
    However, I can't use a parameter within the custom folder and I can't generate the 'start with' condition in my workbook.
    Anyone have a solution for populating the start with clause at run-time?
    Thanks,
    Kevin

    Can you create the custom folder without a condition on supervisor_name - i.e. without the supervisor_name = 'X' starts with clause - in the EUL, and then define the condition on the supervisor_name field within the report?
    SELECT supervisor_name, level
    FROM xxhr084_hr_emps_v
    CONNECT BY prior person_id = supervisor_id
    ORDER SIBLINGS by supervisor_name
    You can then restrict the results that the hierarchical query returns (from the custom folder) within the report, by adding a condition on supervisor_name.
    Hope that makes some sense.

  • 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

  • How can i pass a parameter to the query to filter the result of this lookup

    Hello,
    i'm developping a web application with JDeveloper 10.1.2 and JHeadStart.
    i realy need to know how can i filter the lookup (LOV) query result.
    in other word, when i click on the lookup, it show all the row that exist in may data base table.
    what i want is how can i pass a parameter to the query to filter the result of this lookup ?
    Thank you

    Hi,
    have a look if this helps
    http://oracle.com/technology/products/jdev/tips/fnimphius/restrictlovlist/restrictlov.html
    Frank

  • From scorecard Pass parameter to be used as Measure in query of analytic Grid report in PPS in SP2013

    From scorecard Pass parameter  to be used as Measure in query of analytic grid report in PPS
    Any idea of how we can pass this parameter while connecting scorecard and report
    any use of MDX in connection formula ?
    Parameter needs to be assigned on click of scorecard cell

    Hi,
    That API has restrictions on its usage. Please see http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDICGDA
    The lines to be referred to are Also, this method requires that the parameters that describe the BLOB to be listed as the format of a valid item within the application. That item is then referenced by the function.Regards,
    PS: Your report must be on Page 98 , so it is able to reference the item P98_NAV_IMAGE. List being a Shared Component it may not be able reference that Item.
    Edited by: Prabodh on May 28, 2012 3:16 PM

  • Problem in passing parameter to query

    SELECT     OWOR.DocNum, OWOR.Series, OWOR.ItemCode AS Parent, WOR1.ItemCode, OWOR.PlannedQty, WOR1.BaseQty, WOR1.PlannedQty AS 'POD Qty',
                          WOR1.IssuedQty, IGE1.Quantity, IGE1.OpenQty, ITM1.Price, OITW.OnHand
    FROM         OITW INNER JOIN
                          IGE1 ON OITW.WhsCode = IGE1.WhsCode RIGHT OUTER JOIN
                          WOR1 INNER JOIN
                          OWOR ON WOR1.DocEntry = OWOR.DocEntry INNER JOIN
                          ITM1 ON WOR1.ItemCode = ITM1.ItemCode ON OITW.ItemCode = ITM1.ItemCode AND IGE1.BaseEntry = WOR1.DocEntry AND
                          IGE1.BaseLine = WOR1.LineNum
    WHERE     (ITM1.PriceList = 1) AND  OWOR.ItemCode='\[%0]'
    ORDER BY OWOR.DocNum
    This query runs if I remove parameter i.e AND  OWOR.ItemCode='\[%0]'.
    What correction should be done to pass parameter in the above query ?

    Dilip,
    You just need to qualify your query with an Alias.  I have fixed it for you..
    SELECT T3.DocNum, T3.Series, T3.ItemCode AS Parent, T2.ItemCode, T3.PlannedQty, T2.BaseQty, T2.PlannedQty AS 'POD Qty', T2.IssuedQty, T1.Quantity, T1.OpenQty, T4.Price, T0.OnHand
    FROM [DBO\].[OITW\] T0 INNER JOIN [DBO\].[IGE1\] T1 ON T0.WhsCode = T1.WhsCode RIGHT OUTER JOIN [DBO\].[WOR1\] T2
    INNER JOIN [DBO\].[OWOR\] T3 ON T2.DocEntry = T3.DocEntry
    INNER JOIN [DBO\].[ITM1\] T4 ON T2.ItemCode = T4.ItemCode ON T3.ItemCode = T4.ItemCode AND T1.BaseEntry = T2.DocEntry AND T1.BaseLine = T2.LineNum
    WHERE (T4.PriceList = 1) AND T3.ItemCode='[%0\]'
    ORDER BY T3.DocNum
    Suda

Maybe you are looking for