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

Similar Messages

  • Unable to pass parameter to EBS Form from external system (OBIEE)

    I set up the OBIEE to EBS Navigation as per a metalink note to the form PA_PAXTRAPE_SINGLE_PROJECT. I tried to pass a PROJECT_ID parameter. The form opens up but I do not see any indication of the parameter being passed through.
    In general, when you pass a parameter to a EBS form from an external system, is it suppose to open the FORM with that specific value? In this case should it open up the Project for the PROJECT_NUMBER that I passed through?
    Any way for me to diagnose the issue?

    Hi,
    Rather than giving the name of the Block and Field name there create a parameter in the form itself and pass value to that parameter. You can use this values using :PARAMETER.<field_name>.
    Regards,
    Viral

  • Can't pass parameter from HTML form of multipart/form-dta type to JSP

    I am using request.getParameter(passed variable name) to pass data from HTML form to JSP with no problem. WHen I try to pass data from HTML form of multipart/form-dta type to JSP as following:
    < form enctype="multipart/form-data" name="theForm" method="post" ACTION="http://titan.ssd.loral.com:7778/ifs/jsp-bin/ifs-cts/stringsecond.jsp">
    The passed value is null. Why?
    How can I pass data successfully from this form to JSP?
    How can I pass data from JavaScript to JSP?
    Thank you

    I am using request.getParameter(passed variable name)
    to pass data from HTML form to JSP with no problem.
    WHen I try to pass data from HTML form of
    multipart/form-dta type to JSP as following:
    < form enctype="multipart/form-data" name="theForm"
    method="post"
    ACTION="http://titan.ssd.loral.com:7778/ifs/jsp-bin/if
    -cts/stringsecond.jsp">
    The passed value is null. Why?because the jsp most likely does not handling of POST parameters like this.
    How can I pass data successfully from this form to
    JSP?jsp's are not meant to read such amounts of data. this (= uploading) is a typical task for a specialized servlet. there you have full control over input and output. if you need to, you can still forward to a jsp after processing in the servlet.
    How can I pass data from JavaScript to JSP???? i'm not sure what exactly you mean. normally you put it into an url and submit it.
    robert

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

  • Passing Parameter to a form

    I am trying to create a link from my report to a form, this form is based on a procedure that brings up a detailed report. I tried to create a link from the wizard that would pass the parameter from the report to the form. My problem is that the link that is created won't pass the value from the report to the form/procedure. Is anyone developing an application in this way.
    Vivek

    hi,
    u can do this by using sessions;
    make a search in this forum with the key word: V_session;
    or take a look to this site: http://www.arrowsent.com/oratip/frames.htm
    hope this help;
    Mohamed

  • Passing parameter to Called form through Web.Show_document.

    i am calling a form say 'form2.fmx' from 'form1.fmx' using web.show_document. the parameter is concatenated with the URL string properly but this parameter is not accessible in the called form.
    Please Help
    thanks

    i am running forms Of 10G developer suit. i want to call and pass a parameter
    'emp_no'(employee no) to a form say 'form2.fmx' from the form say 'form1.fmx' on button
    click. so i have created a parameter named "emp_no" in the object navigator of "form2.fmx".
    in form1.fmx, i am using web.show_document(URL) function as given below.
    web.show_document('http://111.111.111.11:8889/forms90/f90servlet?form=form2.fmx&emp_no=7156&userid=scott/tiger@mysid','_blank');
    This function successfully call the "form2.fmx" but in this form the value of parameter
    "emp_no" is null even when i have passed it in the URL (as shown in the above code line)
    i.e; the value of emp_no is null.
    Note :
    7156 is the value of emp_no parameter.
    111.111.111.11 is the supposed ip address. etc.

  • Passing parameter in URL (forms 10g)

    Hi,
    I'm using forms 10g (904) and I need to pass in a paramter when the form starts. I have created a parameter and it works when I debug.
    But when I run it on Oracle Application Server, how do I pass the parameter in the URL? I have tried &parameter_name=parameter_value, but it does not seem to work.
    Thanks.
    WJ

    Hi everyone,
    When I tried the prior suggestion that parameter was not actually passed into the URL. Instead it is passed into the set of named parameters defined in the generated <Object> tag for the forms applet.
    That is useful to know but what I want to do is permit the forms applet to access name-value pairs in the actual forms URL.
    Does anybody know how this is done?
    Also if anybody knows how to permit the forms applet to access client side environment variables (or even registry keys) without resorting to using java I would be grateful for the advice.
    Basically it seems to there are several ways to access such values server side but I cannot find any way to access those values client side.
    The task I have in mind is to load some properties which are configured on the clients' machine and which differ from client to client.
    Thanks everybody,
    Chris

  • ATrouble in passing parameter to PO Form from a Custom OAF Page

    Hi All,
    I have created a custom OAF page from where I am calling the standard purchase order screen, the URL which i am using is as below;
    form:Respapplshortname:Respkey:STANDARD:PO_POXPOEPO:po_header_id={@PoHeaderId}
    I have done the below Form Personalization for the same
    Create a when-new-form-instance personalization and create following actions
    1)
    Type: Builtin
    Builtin Type: DO_KEY
    Argument: ENTER_QUERY
    Create a WHEN NEW ITEM INSTANCE personalisation and create the following actions
    1)
    Type: Builtin
    Builtin Type: GO_ITEM
    Argument: PO_HEADERS.SEGMENT1
    2)
    Type: Property
    Object Type: Item
    Target Object: PO_HEADERS.SEGMENT1
    Property Name: VALUE
    Value :==:'PO_HEADER_ID'
    3)
    Type: Builtin
    Builtin Type: DO_KEY
    Argument: EXECUTE_QUERY
    Here in the below mentioned step
    Type: Property
    Object Type: Item
    Target Object: PO_HEADERS.SEGMENT1
    Property Name: VALUE
    Value =:253253
    If I hard code the value 253253(which is the header_id for PO_NUMBER 10031791) in the field 'value' then the PO_NUMBER form works as expected(PO Form opens up in queried mode and all the data of the PO_NUMBER is pre-populated)
    My query here is how do I pass a parameter from OAF page to PO_NUMBER form so that we are able to pass the value dynamically instead of hard coding the value(253253 as mentioned above).
    Please revert back as soon as possible in case anyone has inputs or better ways of achieving the above problem statement

    Did you ever figure out how to resolve this issue. We are facing the same issue and developer is not able to figure out.
    Thanks.

  • How to pass parameter from one form to another

    Hi,
    I have created a form based on a procedure . Now i want to pass a filed value from this form to another form . How can i do this.
    How can i pass a vlue from one form to another form in oracle portal.
    Thanks

    At last - I've managed to get this to work! Is this documented anywhere at all - I just guessed it based on other people's code!
    OK, to prove the example here is what I did:
    I have a form referencing the DEPT table.
    I created a item called 'Search' and of type button.
    I created a 'custom' PL/SQL block and added the following code:
    declare
    v_deptno NUMBER;
    begin
    v_deptno := p_session.get_value_as_NUMBER(
    p_block_name=> 'DEFAULT',
    p_attribute_name => 'A_DEPTNO');
    PORTAL30.wwa_app_module.set_target('http://server/pls/portal30/app_schema_name.EXAMPLE_SQL_REPORT.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values= 25&p_arg_names=_portal_max_rows&p_arg_values=25&p_arg_names=DEPTNO&p_arg_values='&#0124; &#0124;LTRIM(TO_CHAR(v_deptno)),'CALL');
    end;
    Note: you need to reference the column with an 'A_' prefixing the columm name.
    I left the name 'DEFAULT' as it is.
    OK so I set this to a variable and now want to call a Report called EXAMPLE_SQL_REPORT which was created with the following code:
    select * from scott.emp where deptno = :deptno;
    The bind variable being the custom parameter for the report.
    I called the new report with the PORTAL30.wwa_app_module.set_target procedure and put in the full URL path (in this example) of the server and report.
    I hope this helps!
    John
    null

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Master-detail relationship - passing parameter from form to form

    Hello.
    I have a question about master detail relationship.
    In first form we have master-detail relationship.
    Example on dept, emp tables:
    We query dept (master), so we can get one or many emp (detail) records. Then we have a third table - tasks. Tasks table (detail) can have many records for one employee.
    Tasks table is in another form, which is called with call_form built_in. So we pass a parameter from master to detail - parameter empno. Because of that, we can only see tasks for one employee and can't navigate to another employee. This is normal.
    Now comes the question.
    Is it possible to call a form (with tasks table) with deptno parameter (so we can navigate through all employees with that department), but first show employee that was last used in first form?
    Example of our goal.
    Master: deptno = 20
    Detail: navigate to JONES employee
    Call new form (tasks)
    Tasks for JONES employee are first shown
    Can navigate to another employee - without requery
    Is this possible?
    If we pass deptno parameter, we can navigate through all employees - but must navigate to the employee we last used in first form.
    If we pass empno parameter to second form, we see last used employee but cannot navigate to another employee without requery.
    Hope you understand my problem.
    Thanks.

    Hi
    yes you can pass parameter from one form to another.
    In your master detail form set the trigger when-new-instance and there define the global variable like
    :GLOBAL.G_CIRCLE_ID := NULL;
    and in your task table set the trigger when-new-instance and there define the global variable like and also write this code
    :GLOBAL.G_DIVISION_ID := NULL;
    IF :GLOBAL.G_CIRCLE_ID IS NOT NULL THEN
         GO_BLOCK('DIVISION');
         SET_BLOCK_PROPERTY('DIVISION',DEFAULT_WHERE,'CIRCLE_ID ='||''''||:GLOBAL.G_CIRCLE_ID||'''');
         EXECUTE_QUERY;
    END IF;
    :GLOBAL.G_CIRCLE_ID := NULL;
    now you maintain your trigger according your need.
    Regards,

  • Hw to pass parameter from report to forms

    Dear Friends,
    I m working on Forms n Reports 6i,
    I m running report n passing parameter from the forms now the requirement is that if report run successfully it shuld give the msg otherwise give an user define error msg.
    Hw do i pass any parameter from report to form for acknowledgment.
    Thanking yours
    Chandan

    Hi Rajat,
    using run_product built in i can pass parameter from forms to reports but hw can i get some parameter value from reports to forms as mentioned earlier my post
    Thanking Yours,
    Chandan

  • How to pass Parameters between two forms

    im trying to do this but i could not find any way for this.
    can any one help me how can i pass parameters between two forms
    in forms4.5. any help will be appreciated
    thanks.
    null

    Global variables can be used, but you can do what the online help
    says ...
    Parameters are passed to called forms by means of a parameter
    list. A parameter list is a named programmatic construct that is
    simply a list of parameter names (called keys) and their values.
    You can pass parameter values to forms invoked by the built-in
    subprograms CALL_FORM, OPEN_FORM, and NEW_FORM. In addition, you
    can pass parameter values to other Oracle tools with the
    RUN_PRODUCT procedure.
    A parameter you include in a parameter list can be either a text
    parameter or a data parameter. The parameter type determines how
    its value is interpreted.
    Text Parameters The value of a text parameter being passed to a
    called product is a CHAR string that can represent the following:
    n a user-defined form parameter defined in a form invoked
    by the CALL_FORM, OPEN_FORM, or NEW_FORM built-in subprograms
    n a command line or user-defined parameter for a product
    invoked with the RUN_PRODUCT built-in subprogram
    Data Parameters The value of a data parameter being passed to a
    called product is always the name of a record group defined in
    the current form. (A record group is a data structure that
    stores records derived from a query or through programmatic
    assignment.) Data parameters are used to pass data to products
    invoked with the RUN_PRODUCT built-in subprogram. You cannot
    pass data parameters to forms.
    The following table shows the structure of a parameter list that
    contains four parameters:
    Key Paramtype Value
    CITY Text_Parameter 'BOGOTA'
    CATEGORY Text_Parameter 'EXPORTS'
    MULTIPLIER Text_Parameter '.0275'
    NEW_DATA Data_Parameter 'RECORD_GROUP8'
    arun reddy (guest) wrote:
    : im trying to do this but i could not find any way for this.
    : can any one help me how can i pass parameters between two forms
    : in forms4.5. any help will be appreciated
    : thanks.
    null

  • Passing a parameter from one form to another

    Hi
    I'm trying to pass a parameter from one form to another. I've read lots of postings about this, and I have succeeded in calling the second form using code behind one of the existing Portal buttons (insert). Here is the code:
    DECLARE
    pro_id NUMBER;
    pro_link VARCHAR2(1200);
    BEGIN
    pro_id := p_session.get_value_as_number(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_PRO_ID');
    pro_link := portal30.wwv_user_utilities.get_url(
    'CINTRA_APP.PRO_LINK_1',
    'WKG_PRO_ID',pro_id,
    '_WKG_PRO_ID_cond','=');
    PORTAL30.wwa_app_module.set_target(pro_link,'CALL');
    END;
    Trouble is, the parameter does not get passed. This could be because:
    the field I'm trying to populate is based on an LOV ?
    the target form is not set up to receive parameters? (I read this somewhere, but how do you do it?)
    Thanks
    Manfred

    Dear InoL
    My Header Form coding as follows.
    When I press the button to move to the lines the following code executes
    PASSING FORM CODING;
    DECLARE
         pl PARAMLIST := GET_PARAMETER_LIST('PL_AT');
    BEGIN
         IF NOT ID_NULL(pl) THEN
              DESTROY_PARAMETER_LIST(pl);
         END IF;
         pl := CREATE_PARAMETER_LIST('PL_AT');
         ADD_PARAMETER(pl,'P_AT',TEXT_PARAMETER,:HWSI_ASSET_TAG);
         CALL_FORM('E:\IT_SYSTEM\6i\HWDYNAMICINFO.FMX',NO_HIDE,DO_REPLACE,NO_QUERY_ONLY,PL);
    END;
    RECEIVING FORM CODING;
    Written on WHEN_NEW_FORM_INSTANCE
    BEGIN
         IF :PARAMETER.P_AT IS NULL THEN
              GO_ITEM('NZK_HW_DYNAMIC.OS_ASSET_TAG');
              ENTER_QUERY;
         ELSE
              SET_BLOCK_PROPERTY('NZK_HWSTATIC_INFO',DEFAULT_WHERE,'HWSI_ASSET_TAG ='||:parameter.p_at);
             SET_BLOCK_PROPERTY('NZK_HWSTATIC_INFO',DEFAULT_WHERE,'HWSI_ASSET_TAG ='||:parameter.p_at);
              EXECUTE_QUERY;
              GO_ITEM('NZK_HW_DYNAMIC.OS_ASSET_TAG');
         END IF;
    END;
    Created PARAMETER as P_AT, Data Type CHAR, MAX LENGTH 30
    Thank you
    NZK

  • Passing parameter to a LOv

    hi all,
    i have a select statement like
    select v_code,v_location,v_name
             from v_master
            where trunc(v_date) between :block.item1 and :block.item2
            and v_job = :block.job
            and v_status <> 'C'the v_job i should pass it as a LOV.
    the lov for v_job should be like
    select v_job from
    v_master
    where trunc(v_date) between :block.item1 and :block.item2
    and v_status <> 'C'my question is can we pass parameter value to an LOV?
    Please suggest me..

    Hi,
    Do you want to use form parameter value instead of block item? And what is the issue you are facing?
    You can use Block item as well as parameter item in the Record Group of LOV.
    Regards,
    Manu.

Maybe you are looking for