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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

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

  • How to pass parameter to LOV through program

    Hi,
    I have a requirement where an lov should be populated depending on the parameter passed. I have gone through the dev guide and lot of threads in forum but i didnt get a suitable solution for this.
    My LOV Query is:
    select
    distinct
    pg.name grade_name,
    pg.grade_id,
    'Yes' valid_for_job
    from
    per_valid_grades pvg,
    per_grades pg
    where pvg.grade_id = pg.grade_id
    and pvg.job_id = :1
    union all
    select
    distinct
    pg.name grade_name,
    pg.grade_id,
    'No' valid_for_grade
    from
    per_grades pg
    where not exists (select pvg.job_id
    from
    per_valid_grades pvg
    where pg.grade_id = pvg.grade_id
    and pvg.job_id = :1)
    What i have done:
    1. I have created an LOV named GradeLovVO with above query.
    2. I have created a new controller to this LOV.
    3. For now i have hard coded job_id to 2345 and passing it to AM as below.
    String jobId = "2345";
    Serializable[] parameters = {jobId};
    am.invokeMethod("InitQuery",parameters);
    4. In the AM i have written InitQuery method as below.
    public void InitQuery(String jobId)
    GradeLovVOImpl vo1=getGradeLovVO1();
    vo1.setWhereClauseParams(null);
    vo1.setWhereClauseParam(0,jobId);
    vo1.setMaxFetchSize(-1);
    vo1.executeQuery();
    I am getting the following error.
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select
    distinct
    pg.name grade_name,
    pg.grade_id,
    'Yes' valid_for_job
    from
    per_valid_grades pvg,
    per_grades pg
    where pvg.grade_id = pg.grade_id
    and pvg.job_id = :1
    union all
    select
    distinct
    pg.name grade_name,
    pg.grade_id,
    'No' valid_for_grade
    from
    per_grades pg
    where not exists (select pvg.job_id
    from
    per_valid_grades pvg
    where pg.grade_id = pvg.grade_id
    and pvg.job_id = :1)) QRSLT WHERE (( UPPER(GRADE_NAME) like UPPER(:1) AND (GRADE_NAME like :2 OR GRADE_NAME like :3 OR GRADE_NAME like :4 OR GRADE_NAME like :5)))
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2406)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1759)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
         at OA.jspService(OA.jsp:33)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01008: not all variables bound
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4525)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
         at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
         at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(OAViewObjectImpl.java:716)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(OAWebBeanHelper.java:2314)
         at oracle.apps.fnd.framework.webui.OAListOfValuesHelper.processRequestAfterController(OAListOfValuesHelper.java:766)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:645)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAListOfValuesHelper.processRequest(OAListOfValuesHelper.java:439)
         at oracle.apps.fnd.framework.webui.beans.layout.OAListOfValuesBean.processRequest(OAListOfValuesBean.java:413)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2360)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1759)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
         at OA.jspService(OA.jsp:33)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    java.sql.SQLException: ORA-01008: not all variables bound
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4525)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
         at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
         at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.initQuery(OAViewObjectImpl.java:716)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.setCriteriaOnVO(OAWebBeanHelper.java:2314)
         at oracle.apps.fnd.framework.webui.OAListOfValuesHelper.processRequestAfterController(OAListOfValuesHelper.java:766)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:645)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.OAListOfValuesHelper.processRequest(OAListOfValuesHelper.java:439)
         at oracle.apps.fnd.framework.webui.beans.layout.OAListOfValuesBean.processRequest(OAListOfValuesBean.java:413)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2360)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1759)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
         at OA.jspService(OA.jsp:33)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    Please help me fixing this error.
    I am storing JobID as formValue on base page. How do i pass this value to GradeLovVO?
    Thanks
    Pavan

    I have updated the LOV query to use two different bind variables (:1 & :2) instead of one and updated the code in processRequest method of CO as follows.
    String jId = "2345";
    System.out.println("job Id: "+jId);
    EmployeeLovAMImpl am = (EmployeeLovAMImpl)pageContext.getApplicationModule(webBean);
    GradeLovVOImpl vo = (GradeLovVOImpl) am.getGradeLovVO1();
    if (!vo.isPreparedForExecution())
    vo.setWhereClause(null);
    vo.setWhereClauseParams(null);
    try
    vo.setWhereClauseParam(0,new oracle.jbo.domain.Number(Integer.parseInt(jId)));
    vo.setWhereClauseParam(1,new oracle.jbo.domain.Number(Integer.parseInt(jId)));
    catch(Exception e)
    e.printStackTrace();
    vo.executeQuery();
    Now it doesn't throw any error but LOV doesn't behave as expected.
    Base Page by default assigns a value for Grade. When i click the flash light, after the LOV window pops up i search for % and it still displays only the record with default assigned grade. Now i closed the LOV popup window and click on Flash light again, nothing happens.
    Can somebody please help.

  • '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.

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

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

  • Pass Parameter to LOV-FORM

    How do i pass 1 or more parameters from a FORM to a LOV-FORM ?
    The purpose is to restrict the query in the LOV-FORM with values(*) from the calling FORM.
    (*)( values = 1 or more items )
    The LOV-FORM is called from an item with template/library = 'QMSSO$LOV_FORM_ITEM' !

    Paulo,
    The code to call the LOV Form is generated automatically by Designer. It generates the following line of code in the KEY-LISTVAL trigger of the item in question.
    call_form('module',NO_HIDE,NO_REPLACE,QUERY_ONLY);
    You could try adding application logic to override this code. (See Designer online help for how to do this.)
    Regards,
    Lauri

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

  • 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

  • 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

  • Pass one parameter to lov

    Hi,
    I need to pass a parameter for one lov and am trying to pass with the code:
    In the page that calls the Lov step (vinculo = 1)
    <bc4j:messageLovField
    name="CodPessoaAluno"
    attrName="CodPessoaAluno"
    columns="10"
    required="yes"
    message="Informe o Nome do Aluno"
    prompt="Codigo"
    shortDesc="Clique no botao para escolher o Nome do Aluno"
    onClick="openWindow(window,
    '../../sigep/lov/LovPessoas.uix?vinculo=1',
    'lovWindow',
    {width:700, height:525},
    true,
    'dialog',
    FunLovRetorno);
    return false;">
    </bc4j:messageLovField>
    In the event of the Lov page I try to catch vinculo.
    public static EventResult SgCreate( BajaContext bc, Page page, PageEvent event)
    int vinculo = Integer.parseInt(event.getParameter("vinculo").toString());
    String quantTrains =
    "select max(nvl(rownum,0)) quant "+
    "from           pe_vinculos                         a " +     
    "                    ,pe_vinculo_grp_inf          b " +
    "where          a.vinc_cod_vinculo          = b.vinc_cod_vinculo " +
    "and               b.vigi_sta_ativo      = 'S' " +
    "and           a.vinc_cod_vinculo           = " + vinculo + " " +
    "order by b.vigi_num_ordem " ;
    However, null arrives in vinculo. How I can catch this value?
    Fernando. parameter to lov and I try pass

    Hard to say; does the URL in the browser still contain "vinculo"? If you call PageEvent.getParameterNames(), do you see all (or any) of the parameters you expect?

  • 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

  • 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