Parameter in view

Hi,
I am totally confused.
I am trying to create a report which uses 3 parameters. The user uses 2 parameters to get the 3rd parameter. the 3rd parameter is also being used in creating view. The report uses the view to get the data for the report. I need help!!!
In parameter property - data selection,
I have a query:
select batch
from table1
where plt = &parm1
and bt_no = &para2
and stat <> 10
and line <> -1;
(parm1 and parm2 are the parameters selected by the user)
This query should create only 1 row. But when I run the report,it looks like this query does not recognized parm1&2 and creatsmany more rows.
Any help will be appreciated.
Thanks.
null

Hi,
No need to be confused.
There is no way to use parameters (:bind or &lexical) in your parameter Query-based list of values. Both types of parameters are allowed in DataModel queries.
The error should be "REP-0781: Bind Variables are not allowed in the Select statement."
Possible workarounds are:
if calling this report from Forms, create your parameters using Forms list items.
if calling this report from a Web Browser, create a HTML form with list items.
There is currently absolutely no way to do this in Reports. This is already registered as an enhancement request.
Hope this helps,
Pedro.

Similar Messages

  • Discoverer -- Pass parameter to viewer in URL

    I would like to pass a parameter to viewer via the URL. In plus this is possible using &param_. Is anything like this possible in viewer?

    to viewer parameters are passed with "&qp_" (instead "&param_").

  • Any pitfalls in using parameter driven views ?

    I suppose the exec dbms_application_info.set_client_info('xxxx') will remain active only for the session and will be cleaned up at the end of the session.
    I am working on oracle 9i.

    I'm not sure what the title-- using parameter driven views-- has to do with the DBMS_APPLICATION_INFO package...
    The information that DBMS_APPLICATION_INFO sets is at a session level. Once the session ends, that data disappears.
    If you are trying to build a parameter driven view, however, you're better off using application contexts.
    Justin

  • How to use bind parameter in view object

    in my view object has parameter as below
    where :organization_id IS NULL
    :organization_id parameter get value from LOV
    I can run the page but it show following error :
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT hou.name organization_name
    ,hapf.name position_name
    ,hapf.attribute1 position_fund
    ,pg.name grade_name
    ,pbd.budget_detail_id
    ,hapf.position_id
    ,pbd.budget_version_id pbd_budget_version_id
    ,pbv.budget_version_id pbv_budget_version_id
    ,'Y' VIEW_DETAIL
    ,'Y' VIEW_DETAIL_OCC
    ,greatest(hapf.effective_start_date, pbv.date_from) effective_date
    FROM pqh_budget_details pbd
    ,hr_all_positions_f hapf
    ,hr_all_organization_units hou
    ,per_grades pg
    ,pqh_budget_versions pbv
    WHERE pbd.budget_version_id = pbv.budget_version_id
    AND pbd.position_id = hapf.position_id
    AND hapf.effective_end_date = hr_general.end_of_time
    AND hou.organization_id = hapf.organization_id
    AND pg.grade_id = hapf.entry_grade_id
    AND EXISTS (
    SELECT 'X'
    FROM hr_all_positions_f hapf1
    WHERE hapf1.position_id = hapf.position_id
    AND hapf1.availability_status_id = 1
    AND (pbv.date_from BETWEEN hapf1.effective_Start_date AND hapf1.effective_end_date
                        OR
                   hapf1.effective_Start_date BETWEEN pbv.date_from AND pbv.date_to))
    and :gl_organization = 10)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01008: not all variables bound
    Thank you very much

    Is it a seeded view or a custom view? Ideally, in OAF you do parameter binding in the style
    organization_id = :1
    Also make sure to call setWhereClauseParams(null) on your view object before going for binding.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to pass parameter to view object

    hi, I want to create lov with "where clause" depends on one attribute in ui fragment

    hi,
    think this will help u,
    http://technology.amis.nl/2011/11/28/synchronize-viewobject-queryies-by-dynamically-linking-bind-parameters/
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=2392894
    try to make lov passing parametor from view criteria. orelse set it in backing bean.
    http://andrejusb.blogspot.com/2008/12/cascading-lovs-in-oracle-adf-11g-update.html
    http://www.jobinesh.com/2011/03/initializing-bind-variables-in-query.html
    thks.

  • Use ? style Parameter for View Object

    I'm guess that if you set the ViewObject to use ? style parameter. You have to use the whereclause to pass in the parameter, correct? If so then how do you pass in parameter (use input) to the whereclause in a jsp page?

    Never mind I was trying to set the whereclause in the tag, whereclause="application_id=<%=appId%>".

  • ADF Passing Parameter to View Object

    I created a view object that has, as part of it's where clause, ":1 = field". :1 can also be replaced with ?. I added this Object to my AppModule and was wondering how to bind that value from a "web tier" object. (I'm new to the "whizzy wig" development, maybe this isn't possible) thanks for any help
    -Alan

    Check out the following posting on my blog.
    http://radio.weblogs.com/0129487/2003/10/06.html#a3
    raghu
    JDev Team

  • How to create materialized  view with parameter and index ?

    Hi all,
    i am using oracle 11g.
    i want to create  parameter materialized view  with two parameter (STORED_VALUE, LOV_NAME) with  an index .
    i have below view
    CREATE OR REPLACE FORCE VIEW SR_MY_TEST(DISPLAYED_VALUE, STORED_VALUE, LOV_NAME) AS
      SELECT  DISPLAYED_VALUE , LOVVALUE.STORED_VALUE , lovname.lov_name
               FROM (SELECT T.LOV_VALUE_ID,
          T.LOV_ID,
          T.ORG_ENTITY_ID,
          T.STORED_VALUE,
          T.DISPLAYED_VALUE,
          T.ENTERPRISE_ID
         FROM MS_QS_LIST_OF_VALUES_T T) lovvalue, ms_qs_lov_names lovname
              WHERE lovvalue.lov_id = lovname.lov_id
                AND lovvalue.org_entity_id = 1
                and LOVVALUE.ENTERPRISE_ID = 100000
                AND LOVNAME.ENTERPRISE_ID = 100000;
    i want to create index on   STORED_VALUE, LOV_NAME
    Thanks
    Damby

    No.AFAIK, there's nothing called as "parameterized MV".
    Materialized View store data like tables (and not like Views). So, does it make sense when you say - "table with parameters" ?
    Could you please explain your business requirement?
    What is the purpose behind those 2 parameters?

  • Access VIEW parameter(IF_WD_VIEW) outside of WDDOMODIFYVIEW

    Hi all,
    Within the WDDOMODIFYVIEW event there is a parameter called VIEW which provides certain functionality such as setting focus on certain field etc. I was just wondering if anyone could provide me with the code required to access this functionality outside of the WDDOMODIFYVIEW event.
    Regards
    Mart

    Well i dont really have a requirement I have manged to do it but thought there would be a better way. Currently I have created an attribute within my view called GD_VIEW(type ref to IF_WD_VIEW) and within event WDDOMODIFYVIEW I have put the following code
    wd_this->GD_VIEW = view.
    I can then access this anywhere using the following code
    data: lv_v_elem type ref to if_wd_view_element.
      lv_v_elem = wd_this->gd_view->get_element( 'PWORD' ).
      if lv_v_elem is bound.
        wd_this->gd_view->request_focus_on_view_elem( lv_v_elem ).
      endif.
    But just thought there would be a way without having to copy it within the WDDOMODIFYVIEW event. But then again maybe not!
    Regards
    Mart

  • View with parameter

    Is there any way to set parameter in view.
    Regards,
    GPS.

    Depending on the goal of passing parameters to a view, you can potentially use a context, as I discussed earlier...
    SCOTT @ nx102 Local> create package ctx_package
      2  as
      3    procedure set_parameter( p_param IN VARCHAR2 );
      4  end;
      5  /
    Package created.
    Elapsed: 00:00:01.92
    SCOTT @ nx102 Local> create package body ctx_package
      2  as
      3    procedure set_parameter( p_param IN VARCHAR2 )
      4    as
      5    begin
      6      dbms_session.set_context( 'MY_CONTEXT', 'PARAMETER', p_param );
      7    end;
      8  end;
      9  /
    Package body created.
    Elapsed: 00:00:00.11
    SCOTT @ nx102 Local> create context my_context using ctx_package;
    Context created.
    Elapsed: 00:00:00.14
    SCOTT @ nx102 Local> ed
    Wrote file afiedt.buf
      1  create view ctx_view
      2  as
      3* select SYS_CONTEXT( 'MY_CONTEXT', 'PARAMETER' ) ctx_parameter from dual
    SCOTT @ nx102 Local> /
    View created.
    Elapsed: 00:00:00.10
    SCOTT @ nx102 Local> exec ctx_package.set_parameter( 'foo' );
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.03
    SCOTT @ nx102 Local> select * from ctx_view;
    CTX_PARAMETER
    foo
    Elapsed: 00:00:00.01Justin

  • Hierarchy on HANA Calculation View with Optional Input Parameters Fails

    Hi,
    Has anyone succeeded in building a hierarchy on top of a calculation view with optional input parameters, where an input parameter is not filled?
    The original requirement came from the wish to create a parent child hierarchy on a calculation view that was copied into the customer space from a HANA Live Financial Statement query view, but I have found the following when creating a simple level hierarchy on a calculation view that consumes one table. The Calculation View has one Input Parameter where the 'mandatory' box is unchecked.
    Calculation view reads ECC table FAGLFLEXT
    Simple level based hierarchy on fields PRCTR, RACCT and SEGMENT
    Input parameter is used as a filter for PRCTR with logic ("EMPTY" = '$$P_PROFITCTR$$' or "PRCTR" = '$$P_PROFITCTR$$')
    When I run the view I see the following behaviour in HANA Studio and Analysis for Excel
    Before building the hierarchy I could run the view with or without the Input Parameter
    After building the hierarchy I can run the view with the Input Parameter filled, but it fails when the Input Parameter is not filled.
    Error message is "error: search table error:  [2426] missing placeholder; missing value for mandatory parameter P_PROFITCTR"
    P_PROFITCTR is not a mandatory parameter, but the selection for the hierarchy view thinks it should be. I don't find any notes around this issue, so I don't think it's version related, however the version I have used for this test is 1.00.70.
    It's a shame we can't currently build the hierarchy as the parent child relationship is provided in HANA Live view NewGLFinancialStatementQuery.
    Thanks,
    Ken

    Hi Ken,
    We have been facing similar issue. We have even tried to set default value and as optional parameter. View still fails to create hierarchy (we are not using HANA live). As mentioned on page 97 of HANA modelling guide input parameter is mandatory from engine point of view. Hierarchy is generated as column view during the initial activation of calculation view and therefore expect a value by caller.
    This seems to be a product error. Some one from HANA development team should explain this issue in detail. I would expect someone like Thomas Jung reply to us.
    At the moment, we cant use input parameter for date prompt which gives us calendar popup feature for date selection. Hierarchies just don't work with input parameter. We are missing something.
    Regards
    Angad

  • How to view HTML page source in CR2011 CrystalViewer

    We are migrating from CR2008 SP3--> CR2011 (Unmanaged RAS SP5, OEM Edition 14.0.5.882)
    We have JSP page which wraps the CrystalViewer output between a ReportMenu page
    viewer.setOwnPage> FALSE Ensure that it is not generated with tags
    response.setBufferSize(4096);
    response.setContentType("text/html; charset=UTF-8");
    Writer out = response.getWriter();
    request.getRequestDispatcher("/webrpts/header.jsp").include(request,response);
    viewer.processHttpRequest(request, response, servletContext,response.getWriter());
    When we upgrade to CR2011, the viewer is showing the report in a BOX
    if we right click view Source, the report content are not shown.
    Is there any parameter to view the report source?
    I tried to print the output using viewer.getHtmlContent(request, response, servletContext);
    It does not output the Report Content....
    I am attaching a document to show how it is output in CR2008 and CR2011
    What is the difference between CR2008 and CR2011 Viewer?
    Please help.

    We are using JAVA SDK and already we are hiding the ToolBar by setting
    viewer.setDisplayToolbar(false);
    viewer.setToolPanelViewType(crToolPanelViewTypeEnum.none);
    The documentation says if
    viewer.setOwnPage(false);  then the <HTML></HTML> will not be generated by the
    viewer.processHttpRequest(....)
    But if I output the data generated by this method it does not have the report output....
    We are expecting that and process further using javascript
    What is the difference in behaviour of 2008 and 2011 Crystal Viewer?
    Previous flow explained below
    Ex
    <html>
    <head>.......
    <javascript...............>
    </head>
    <body onload=callCustom()>
    viewer.processHttpRequest(......)
    </body>
    </html>

  • Controller and view problem

    When I call a Controller from a View there is any way to get in the controller the name of the View who calls the controller?

    How about
    <bsp:call url="sms.do" comp_id="SMSSUB">
       <bsp:parameter name="VIEW" value="sms_bop.htm"/>
    </bsp:call>
    view is a public attribute type string in the controller.

  • Passing Master VO attribute to Child VO query as Bind Parameter

    jdev : 11.1.1.1.6.0
    I have a very basic requirement. I have a master child vo relationship, where query of the child vo has to use one of the attributes from master vo.
    they have a view link in place. I tried setting expression in Bind_variable through view link accessor, it is not working.
    The master gets executed but with this approach child gives 'MISSING IN AND OUT PARAMETERS' with no rows.
    Any help please?
    Regards,
    Dish
    Edited by: Dish on Aug 29, 2012 3:36 AM

    Thanks for replying. I tried with that earlier but it does not work.
    But i have found the solution.
    You can set the parameter in View link itself. By adding it as part of view link parameters list.
    The view link will take care of where clause.
    For eg : u wanted to compare id1 of ur child with some parameter p1 in parent.
    Set p1 and id1 in view link along with foreign keys.

  • Pass parameter betwen modules

    I have a main application with a "login.jsf" and "home.jsf". It also has modules(bounded task flows) created as adf libraries. I am working with my own UIShell and want to pass a parameter from the main application to one of my modules to query some results.
    For example i have a "UserBean " class with the attribute "codInternal" and my security bounded task flow need this parameter to make a query.
    How can i do this?. I am working with JDeveloper 11.1.2.3
    Thanks.

    I have done this:
    public String goToModuloSeguridad() {
    taskFlowId = "/WEB-INF/seguridad-task-flow.xml#seguridad-task-flow";
    FacesContext context = FacesContext.getCurrentInstance();
    Application application = context.getApplication();
    TaskFlowDefinition definition = MetadataService.getInstance().getTaskFlowDefinition(tfi);
    Map<String, TaskFlowInputParameter> parameters = definition.getInputParameters();
    for (TaskFlowInputParameter parameter : parameters.values()) {
    String name = parameter.getName();
    String expression = parameter.getValueExpression();
    ValueExpression expressionValue = null;
    ExpressionFactory elFactory = application.getExpressionFactory();
    ELContext elContext = context.getELContext();
    expressionValue = elFactory.createValueExpression(elContext, expression, Object.class);
    expressionValue.setValue(elContext,"codInternal");
    Object value = application.evaluateExpressionGet(context, expression, Object.class);
    System.out.println(value);
    return null;
    I have defined mi input parameter in the called task flow:
    <task-flow-definition id="seguridad-task-flow">
    <default-activity>seguridad</default-activity>
    <input-parameter-definition id="__1">
    <name>codigo</name>
    <value>#{pageFlowScope.cod}</value>
    <class>java.lang.String</class>
    </input-parameter-definition>
    <view id="seguridad">
    <page>/seguridad.jsff</page>
    </view>
    <use-page-fragments/>
    </task-flow-definition>
    In my page of the called task flow I have:
    <af:outputText value="Code is : #{pageFlowScope.cod}" id="ot2"/>
    But the value of the outpuText is not updated.

Maybe you are looking for