OMB binding parameter

Hi,
I'm creating a process flow in OMB that includes a mapping loading data from a float file.
I'm creating a parameter in the process flow and want to bind this parameter to the DATA_FILE_NAME of the mapping.
How is this done?
Part of my OMB script:
OMBCREATE PROCESS_FLOW 'FF_$P_RNAME' \
SET PROPERTIES (DESCRIPTION, BUSINESS_NAME) \
VALUES ('MS ProcessFlow', 'FF_$P_RNAME') \
ADD PARAMETER 'INPUTFILE' \
ADD MAPPING ACTIVITY 'XX_$P_RNAME' \
SET REFERENCE MAPPING '/MS_RUNTIME/MS/XX_$P_RNAME' \
OMBCOMMIT
I want to bind the INPUTFILE parameter to the DATA_FILE_NAME of the 'XX_$P_RNAME' mapping...
Regards
OTtar.

Hi Ottar,
try this
OMBALTER PROCESS_FLOW 'FF_$P_RNAME' \
MODIFY MAPPING ACTIIVTY 'XX_$P_RNAME' \
MODIFY PARAMETER 'INPUTFILE' \
SET PROPERTIES (BINDING) VALUES ('DATA_FILE_NAME')
Regards,
Oleg

Similar Messages

  • How can I set bind parameter as Default Display Value in JHeadstart

    Hi,
    I am using -
    JDeveloper Studio Edition Version 10.1.3.1.0.3984
    JHeadstart Release 10.1.3.1.26
    Can anybody help me for the following:
    I am using a super class of ViewObjectImpl where I am definning a bind parameter (Student ID) using login userid:
    if ("p_std_id".equals(bindParam[0])) {
    sLog.debug("executeQueryForCollection: found bind param p_std_id, setting value to " + studentNumber_from_LDAP);
    bindParam[1] = studentNumber_from_LDAP;
    Then I defined p_std_id in Bind Variables tab in VO Editor and used that in Where clause in the SQL Statement tab.
    This is working fine.
    Now what I want to do is:
    I want to put the value of p_std_id as Default Display Value for a field.
    Can anybody let me know how I can put the value of p_std_id in JHeadstart Application Definition?
    Thanks
    Syed Jabbar
    University of Windsor
    Windsor, ON, Canada

    Hi Jan and Steven,
    Thanks for your reply.
    I need to show the default value in the table layout.
    Steven, could you please give some more hints about EL Expression?
    To obtain the value of p_std_id now and pass it on as bind param, I am using a class extending ViewObjectImpl. Inside that class I am using the following method:
    I'd appreciate if you could help for the EL Expression.
    Thanks
    protected void executeQueryForCollection(Object Object, Object[] bindParams,
    int i) {
    String userId = ((ApplicationModuleImpl)getApplicationModule()).getUserPrincipalName();
    try{
    getLdapInfo(userId);
    catch(Exception e) {
    sLog.debug("executeQueryForCollection: Userid = " + userId);
    if (bindParams != null)
    for (int j = 0; j < bindParams.length; j++)
    Object[] bindParam = (Object[])bindParams[j];
    if ("p_user_id".equals(bindParam[0])) {
    sLog.debug("executeQueryForCollection: found bind param p_user_id, setting value to " + userId);
    bindParam[1] = userId;
    if ("p_emp_id".equals(bindParam[0])) {
    sLog.debug("executeQueryForCollection: found bind param p_emp_id, setting value to " + employeeNumber_from_LDAP);
    bindParam[1] = employeeNumber_from_LDAP;
    if ("p_std_id".equals(bindParam[0])) {
    sLog.debug("executeQueryForCollection: found bind param p_std_id, setting value to " + studentNumber_from_LDAP);
    bindParam[1] = studentNumber_from_LDAP;
    super.executeQueryForCollection(Object, bindParams, i);
    Thanks
    Syed

  • Query bind parameter in Advanced Search

    Hi,
    We are using a query bind parameter in an Advanced Search . The parm that is passed is on an Lov field which works when we use the lov to populate the field but doesn't get passed if we enter the value manually instead.We are using the setActionListener tag in a copy of the findLovItem.vm file:
    &lt;af:setActionListener from="#{searchxxxx.criteria.xxxx+attributename+}"
    to="#{QueryBindParamBean.+attributename+}"
    The 'from' value is taken from the 'value' field in SelectInputText tag of that attribute ('+attributename+') found in the Advanced_Search_Lov_Item in the .jspx. We are doing the exact same thing in a form view (not the search) for the same attributes but are using the corresponding value for that attribute instead and it works no problem:
    &lt;af:setActionListener from="#{xxxx+attributename+LovItem.lovFieldValue}"
    to="#{QueryBindParamBean.+attributename+}"
    any ideas why the value isn't being passed in the search page when entered manually?
    thanks!

    Hi,
    It does not directly ring a bell for me why you cannot copy this value. But since JHeadstart is simply using a bean with a Map to store it's values, it does not sound like a JHeadstart issue per se.
    To simplify the test case, you could create a simple drag-and-drop ADF application without JHeadstart and see if the same problem occurs there. If so, can you please log a TAR at MetaLink ( http://metalink.oracle.com/ ), or ask this question at the JDeveloper forum? Thanks.
    Evert-Jan de Bruin
    JHeadstart Team

  • Binding parameter to SQL/xpath query using java/jdbc

    I'm trying to execute a query containing an xpath.
    The query looks like this:
    select * FROM table  t where t.column.existsNode('/RootElement[contains(SubElement, "someVal")]/SubElement')In java replacing the "someVal" with a bind parameter "?" will not work:
    PreparedStatement ps = c.prepareStatement("select * FROM table t where t.column.existsNode('/RootElement[contains(SubElement, ? )]/SubElement') = 1");
    ps.setString(1,"someVal");
    =EXCEPTIONOn this forum I found that you can also use '||:namedParam||'
    So the query in java would be executed like;
    PreparedStatement ps = c.prepareStatement("select * FROM table t where t.column.existsNode('/RootElement[contains(SubElement, '||:1||' )]/SubElement') = 1");
    ps.setString(1,"someVal");This seems to work (I have no idea what the '|| ||' construct does, I don't seem to find any info about it)
    HOWEVER, it seems that doing it this way the value being bound is NOT escaped.
    So, doing this will yield in an orcale SQL/xpath exception:
    ps.setString(1,"som'eVal");
    I've went to all the oracle xml manual stuff I could find, but nowhere do they address this.
    Any one an idea how I can bind the value and still have escaping ?
    Edited by: user5893566 on Nov 27, 2008 12:06 AM
    Edited by: user5893566 on Nov 27, 2008 12:15 AM

    Would you mind explain me what the replace actually does?The idea is like this:
    Let's start with a string like some'V"al and surround it by the concat function:
      '...concat("' || some'V"al || '") ....' {code}
    replace the inner (i.e. all) double quotes with +",''","+ to obtain '...concat("' || some'V",''"'',"al || '") ...' {code}
    So this concatenates three parts of the original string where the double quotes are now enclosed by two single quotes. The resulting string should look like
    {code} '...concat("some'V",''"'',"al") ...'i.e. first argument of concat is enclosed by double quotes, the second one by two single quotes and the third one again by double quotes.  This is just a rewritten form of our original string!.
    Now incorporate the whole thing in the xpath expression  as shown in my previous example and it should work ;)
    hth
    michael                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Using JhsUserRole in Query Bind Parameter

    Hi there,
    I'm working with JDeveloper 10.3.4.0.
    I've define a bind variable, and I want to fill it in Jheadstart as "Query Bind Parameter".
    It should be a conditional statement which checks user permissions, like this:
    BindUserID=#{JhsUserRoles['Issue.OwnOrg'] ?  413 : 412} Using this statement, I receive this error message:
    javax.faces.FacesException: javax.faces.el.ReferenceSyntaxException: '#{JhsUserRoles['Issue.OwnOrg'] ?   413 : 412}'It seems that the ' (single quote) character causes problem in the bean file (XML syntax, nested single quotes):
    <key>BindUserID</key>
              <value>#{'#{JhsUserRoles['Issue.OwnOrg'] ? 413 : 412}'}</value>As I've searched, the character escaping mechanism in XML, is based on using Unicode, so I changed the statement to this:
    {noformat}<key>BindUserID</key>
              <value>#{'#{JhsUserRoles[#39;Issue.OwnOrg#39;] ? 413 : 412}'}</value>{noformat}But It interprets #39; to ' and I still get the same error message. (Obviously the Unicodes start with &, I've omitted them to be able to display it in this message)
    So, I want to know if there is anyway to fix this problem.
    Thank you in advance
    Farnoush

    Steven,
    Thanks for your reply.
    But, it seems that .xml bean files are not case sensitive, so JhsUserRoles works as well.
    About your suggested expression it does not work either.
    I solved the problem in this way, I edited the bean file and replace the outer *'* with *"*.
    {code}<key>BindUserID</key>
    <value>#{"#{JhsUserRoles['Issue.OwnOrg'] ? 413 : 412}"}</value>
    {code}
    And then I removed the tick of "Generate Controller Group" of the my jheadstart group.
    This solves the problem.
    Farnoush

  • QBE style(Find-Execute) Query not executing when VO has bind parameter

    I have an Entity Based ViewObject that is composed of 3 Entities so the entities are related through an Assoc. Then the ViewObject also has a bind paremeter defined and used in the WHERE clause.
    In my page everything is fine until when I use/click on the Find operation on the JSF page. When the Find operation is executed the page/form goes blank so I can enter by QBE query. Now when I Execute my search by executing the ExecuteWith params operation. Nothing is happening to the screen, it seems that query was not executed. Although there was no errors or exceptions displayed.
    However if I remove the bind parameter, and execute the Execute operation instead after going to Find mode, the query is executed properly and I get expected results.
    My problem is a bit general, but are there anyone who had a similar problem like this? Im still in the process of creating a test case.
    regards,
    Anton

    Hi Frank,
    But the "ExecuteWithParams" operation provides the bind variable right? (i had the value hardcoded on the pagedef). So it must have supplied a value. I also noticed that this is happening only when if the VIewObject contains two or more Entities. If the Viewobject has only 1 entity, the ViewObject queries properly.
    Anyway Frank, I had found a fix for this. I set an InvokeAction on the pagedef that binds to the ExecuteWithParams that is invoked during page load only(!postback condition). and then I just use the Find-Execute operations instead of the Find-ExecuteWithParams operations that I used previously.
    I will try to replicate the issue again to investigate what's really going on. I just want to know if its a bug or just an expected behavior or i just made a mistake.
    regards,
    Anton

  • How to set bind parameter in vo in execute method

    Hi,
    I m using this Query in VO.There are 7 bind variables i want to set the bind parameter before calling the execute Query of VO
    but i m unable to set values in bind parameter.
    I am getting the values in sysout but when trying to print the query by using get Query the bind parameter does not get the values.
    can any one help me?
    plz give me solution.I m waiting for ur response.
    Thanks&Regards
    Mansoor Syed
    select '' MNDT_ORD_ID,
    '' MNDT_CUST_ID,
    '' MNDT_FOLIO_ID,
    SUM(NVL(DECODE(MNDT_PLCMNT_QTY,0,MNDT_AMT_FC,MNDT_PLCMNT_QTY),0)) Mandate_Qty_Amt,
    SUM(NVL(DECODE(MNDT_PNDG_QTY,0,MNDT_PNDG_AMT_FC,MNDT_PNDG_QTY),0)) Pending_Qty_Amt,
    SUM(NVL(DECODE(MNDT_PLCMNT_QTY,0,MNDT_AMT_FC,MNDT_PLCMNT_QTY),0)) Placement_Qty_Amt,
    MNDT_POOL_YN , max(substr(sys_connect_by_path(t.MNDT_SYS_ID, ','), 2)) List
    from
    (select MNDT_INSTR_ID, MNDT_TRANS_TYP,MNDT_SYS_ID,MNDT_PLCMNT_QTY,MNDT_AMT_FC,MNDT_PNDG_AMT_FC,MNDT_PNDG_QTY,
    MNDT_POOL_YN ,row_number() over (partition by MNDT_INSTR_ID order by MNDT_SYS_ID ) rn
    from XBT_TRD_ORD_MNDT
    WHERE MNDT_ACLS_ID = nvl(:Bind_Acls_Id,MNDT_ACLS_ID)
    AND MNDT_ATYP_ID = nvl(:Bind_Atyp_Id,MNDT_ATYP_ID)
    AND MNDT_POOL_YN = nvl(:Bind_Pool_Yn,MNDT_POOL_YN)
    AND MNDT_TRANS_TYP = nvl(:Bind_Trans_Type,MNDT_TRANS_TYP)
    AND MNDT_INSTR_ID = nvl(:Bind_Instr_Id,MNDT_INSTR_ID)
    AND :Bind_Price Between MNDT_FROM_PRC_FC and MNDT_TO_PRC_FC
    AND 'P' = :Bind_Union
    ) t
    start with rn = 1
    connect by rn = prior rn + 1
    and MNDT_INSTR_ID = prior MNDT_INSTR_ID
    group by t.MNDT_INSTR_ID,t.MNDT_POOL_YN,t.MNDT_TRANS_TYP
    UNION
    SELECT MNDT_ORD_ID,
    MNDT_CUST_ID,
    MNDT_FOLIO_ID,
    NVL(DECODE(MNDT_PLCMNT_QTY,0,MNDT_AMT_FC,MNDT_PLCMNT_QTY),0) Mandate_Qty_Amt,
    NVL(DECODE(MNDT_PNDG_QTY,0,MNDT_PNDG_AMT_FC,MNDT_PNDG_QTY),0) Pending_Qty_Amt,
    NVL(DECODE(MNDT_PLCMNT_QTY,0,MNDT_AMT_FC,MNDT_PLCMNT_QTY),0) Placement_Qty_Amt,
    MNDT_POOL_YN ,concat(MNDT_SYS_ID,'') List
    from XBT_TRD_ORD_MNDT
    WHERE MNDT_ACLS_ID = nvl(:Bind_Acls_Id,MNDT_ACLS_ID)
    AND MNDT_ATYP_ID = nvl(:Bind_Atyp_Id,MNDT_ATYP_ID)
    AND MNDT_POOL_YN = nvl(:Bind_Pool_Yn,MNDT_POOL_YN)
    AND MNDT_TRANS_TYP = nvl(:Bind_Trans_Type,MNDT_TRANS_TYP)
    AND MNDT_INSTR_ID = nvl(:Bind_Instr_Id,MNDT_INSTR_ID)
    AND :Bind_Price Between MNDT_FROM_PRC_FC and MNDT_TO_PRC_FC
    AND 'N' = :Bind_Union

    Do you mean to say that you are overriding "execute" in the impl class? If you do this, you should call setNamedWhereClauseParam for each of your named bind variables before you call "super". But if you are doing this, I have to wonder why you are using bind variables at all instead of constants because you wind up setting the bind variables to the same thing every time you execute the query. I'd write a brand new method that CALLS "execute" after setting the bind variables. I've even written a method that sets bind variables with setNamedWhereClauseParam and DOESN'T call "execute" - it leaves the execute for another page.
    I'm also trying to understand what you mean by "all the values i m trying to set are transient variables". Maybe instead of telling us what doesn't work, you should tell us more about your use case. Tell us what it should look like to the user - what it should do, and let us give you some suggestions about how to do it.

  • LOV with a query Bind Parameter

    Hello,
    I am following the JHeadStart PDF tutorial over the HR Schema. On the page 45 this tutorial shows how to make a Dynamic Lookup with a Query Bind Parameter to choose the employees of a department with the expresion "p_dpt_id=#{bindings.DepartmentsDepartmentId.inputValue}".
    After that I tried to make the same using a LOV instead of a Lookup but on the popup window opened with the LOV table the "#{bindings.DepartmentsDepartmentId.inputValue}" value is null and I can´t access to this information. If on the LOV definition I write for example "p_dpt_id=30" this work ok and filters the query for the employees of the departen 30, but not with "p_dpt_id=#{bindings.DepartmentsDepartmentId.inputValue}"
    There is another way to do that?
    Thank you very much

    I have done this task using the aid of the JHeadstart manual and these two previously posted threads,
    Group Used as LOV does not return records
    Query Bind Parameters and LOV's [JHS 10.1.3.1]
    The actual process to do it feels rather unintuitive and complicated, but I've tested it and thus far is works flawlessly.
    I whipped up a demo of this using the HR schema and JHeadstart, maybe I will post it on here.

  • Text Box Value in the Query Bind Parameter

    Hi
    I have to use text box value in the query bind parameter
    Thanks to help...

    Hi,
    - drag Execute with params
    - use EL
    Frank

  • Declaratively set the value of a bind parameter in a view query

    Can I declaratively set that I want the value of the bind parameter in the view query to be the value of a specific field in the current row of a specific iterator in my data bindings? Thanks :D

    user11976105 wrote:
    Hm I guess I should mention I'm doing the retrieval in Java, using a ValueChangeListenerIn this case, you will still need to bind an ExecuteWithParams action to your page definition and execute it from your ValueChangeListener after supplying its named data.
    In the code spinet, the new value from the ValueChangeEvent is passed to the bind variable.
    public void yourValidChangeListener(ValueChangeEvent valueChangeEvent) {
        // get the ExecuteWithParameters operation binding from the bindings
        OperationBinding executeWithParameters = ADFUtils.findOperation("yourExecuteWithParametersBindingId");
        // setup bind variable using the new value from the valueChangeEvent
        executeWithParameters.getParamsMap().put("yourParameterId", valueChangeEvent.getNewValue());
        // execute
        executeWithParameters.execute();
        // check for errors
        if(executeWithParameters.getErrors().size() != 0) {
            // error(s) occured
    }

  • Business Component Browser dies when using bind parameter

    Hi,
    I'm using JDeveloper 11.1.1.0.2 on Windows XP
    When I start the Business Component Browser and open a ViewObject using a bind parameter, causing to query more than one row, CPU goes to 100%
    Half the time I get an java.lang.OutOfMemoryError: Java heap space
    The table I use containts only 100 rows...
    Is this a bug perhaps?
    Greetings,
    HJH

    same here . . .
    any others?

  • Query bind parameter

    Hi,
    I have version JHeadStart 10.1.2.1
    I use the same way as "UserContext" for my session values.
    I have a view with a "where clause" id_number = to_number(:1)
    In my field "Query bind parameter" I put ${jhsUser.p_idnumber}.
    When I execute, I get an error ORA-01722: invalid number...
    How can I resolve or debug this problem?
    Any help is appreciated.
    Thanks.
    Luc

    Luc,
    For ${jhsUser.p_idnumber} to work, the Java class implementing JhsUser (that is, UserContext) must have a method getP_idnumber() or getP_Idnumber(). I'm not sure about the capitalization because in Java Beans usually there are no underscores in variable or method names.
    To prevent this confusion, it's best to create a method getIdNumber() in your UserContext class, and use the JSTL expression ${jhsUser.idNumber}.
    For an example, see the JhsDemo shipped with JHeadstart 10.1.2.1, and look in the Model project for the UserContext class (in package oracle.jhsdemo.model), it has a method getDisplayName(), which is called when the standardPageLayout.uit references ${jhsUser.displayName}.
    When you have the JHeadstart logging turned on, and you run the application in Embedded OC4J, the OC4J Log window in JDeveloper will show a message when the binding parameter is applied, and which value it uses.
    Hope this helps,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • Bind parameter, Q1

    Good Morning Everyone,
    We are doing great to User Input Parameters. We used the report wizard and changed data by adding: where table.date BETWEEN :Enter_Start AND :Enter_End
    We got the message, " Note: The query 'Q-1' has created the bind parameter(s) 'Date_Start', 'Date_End".
    We did not pay attentions following couples:
    1. 'Q-1'
    2. bind parameter(s)
    We just clicked OK, Next, Next buttons only. We were happy Labels: Enter Start and Enter End.
    Nothing is simple!
    We have challenges when we need to change :Enter_Start AND :Enter_End to :First_Date AND :Second_Date.
    where table.date BETWEEN :First_Date AND :Second_Date
    Now, we have 4 Labels: Enter Start, Enter End, First Date, and Second Date. We only want 2 labels and 2 input parameters.
    If you have any experience about the issue, please share with us.
    Thanks in advance,
    NY

    Hi,
    From the Object Navigator (If you are not in Object Navigator window press F3).
    Under your report > Data Model > User Parameters you can find all the 4 Parameter ENTER_START, ENTER_END, DATE_START, DATE_END.
    Delete the 2 which are not used in the query report.
    Even from the Parameter form (If you are not on Parameter form click on the button besides Layout Model) to go to Parameter form)
    Delete the not required label and Parameter fields.
    Hope I understood your problem correctly.
    Best Regards
    Arif Khadas

  • Non-reproducable issue dynamic domain based dropdownlist and bind parameter

    [JDeveloper 10.1.3. SU5]
    [JHeadstart 10.1.3. build 91]
    Hi,
    Some dropdown lists in our application, which are based on a dynamic dropdown list using a bind parameter (value for the parameter set in Application Definition File, property 'Query Bind Parameters', i.e. theCodeType=LANGUAGE) most of the time work fine, but sometimes (not structural, not reproducable) do not fill and throw the error "Missing IN or OUT parameter at index: 1".
    This is the case for example in LOV's with Advanced search: one of these advanced search fields uses such a dropdown. When entering the LOV, the error is sometimes raised (and the dropdown list is empty), but when you cancel and try again, it always fills successfully without error. So the mechanism works almost always, but in rare cases gives this error, but not always...and a retry always works as well.
    Sounds like a known error?
    Toine

    I have run into a similar issue recently, using Jdeveloper 10.1.3.1.0 (currently the latest release)
    It's intermittent and next to impossible to repeat. Here's the debug-output:
    ...sql query) QRSLT WHERE SOMEID = :Bind_Someid
    06/12/11 15:12:37 [7494] Bind params for ViewObject: SomeView2
    06/12/11 15:12:37 [7495] Binding param "Bind_Someid": 212
    06/12/11 15:12:37 [7496] ViewObject: SomeView2 close single-use prepared statements
    06/12/11 15:12:38 [7497] QueryCollection.executeQuery failed...
    06/12/11 15:12:38 [7498] java.sql.SQLException: Missing IN or OUT parameter at index:: 1
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:175)
         at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1566)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2996)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3043)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:857)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:666)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3655)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:742)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:687)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2657)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2915)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2085)
         at oracle.jbo.server.ViewRowSetImpl.refreshRowSet(ViewRowSetImpl.java:4839)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyDetailRowSets(ViewRowSetIteratorImpl.java:3408)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3549)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3509)
         at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3293)
         at oracle.jbo.server.ViewRowSetIteratorImpl.setCurrentRow(ViewRowSetIteratorImpl.java:1000)
         at oracle.jbo.server.ViewRowSetIteratorImpl.activateIteratorState(ViewRowSetIteratorImpl.java:3851)
         at oracle.jbo.server.ViewRowSetIteratorImpl.getRangeSize(ViewRowSetIteratorImpl.java:627)
         at oracle.jbo.server.ViewRowSetImpl.getRangeSize(ViewRowSetImpl.java:2251)
         at oracle.jbo.server.ViewObjectImpl.getRangeSize(ViewObjectImpl.java:6090)
         at oracle.adf.model.binding.DCIteratorBinding.initSourceRSI(DCIteratorBinding.java:1550)
         at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1421)
         at oracle.adf.model.binding.DCIteratorBinding.getRowSetIterator(DCIteratorBinding.java:1404)
         at oracle.adf.model.binding.DCIteratorBinding.setRangeSize(DCIteratorBinding.java:2642)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2487)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2260)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:99)
         at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:73)
         at oracle.adf.controller.v2.lifecycle.Lifecycle$8.execute(Lifecycle.java:210)
         at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:33)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$4.after(ADFPhaseListener.java:331)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:94)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:254)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:231)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:200)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:122)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:106)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Once the problem occurs, it is persistent and is not resolved except by logging the user out (session.invalidate()) or starting a new session.
    Is there anything I can do to resolve this?

  • Binding parameter with H-Grid

    I am having some problem binding parameter in H-Grid and here is the scenario.
    Here is the SQL for the H-Grid VO. I am binding the unit because I only want to displays the account for the selected "UNIT"
    SELECT account_id
    ,account_number
    ,account_name
    ,account_type
    ,account_category
    ,parent_account_id
    ,unit
    FROM cc_ia_accounts_v
    WHERE unit = :1
    I have also defined the view link where parent_account_id = account_id and in the view link sql is:
    :1 = PARENT_ACCOUNT_ID
    During run time I execute the following code:
    this.setWhereClause(null);
    this.setWhereClauseParams(null);
    this.setWhereClauseParam(0, pUnit);
    this.executeQuery();
    My H-Grid display no record with this binding. But if I replace the VO binding with a hard code value like below the H-Grid works:
    SELECT account_id
    ,account_number
    ,account_name
    ,account_type
    ,account_category
    ,parent_account_id
    ,unit
    FROM cc_ia_accounts_v
    WHERE unit = '23222'
    I think the problem is pUnit not properly binded to my VO. I have changed the VO binding parameter to ":2" to avoid the possible binding position in View Link but I get a run time error say "Not all parameter are binded"
    How can I work around this?
    Thanks in advance

    Hi,
    create a client interface method in viweobjectimpl, somewhat like this
        public void executeForBranches(int[] branch_code){
            ViewCriteria newVc = createViewCriteria();
            ViewCriteriaRow vcr = newVc.createViewCriteriaRow();
            StringBuilder sb=new StringBuilder();
            for(int bc:branch_code){
                if(sb.length()>0){
                    sb.append(",");
                sb.append(bc);
            String str="(" + sb.toString() + ")";
            //System.err.println("Param = " + str);
            vcr.setAttribute("OriginBranch", " IN " + str);
            newVc.insertRow(vcr);
            applyViewCriteria(newVc);
            //System.err.println(getQuery());
            executeQuery();
        }just dragand drop the clientmethod to your taskflow..
    for this you would need to remove the inclause from query
    SELECT DISTINCT d.dep_id, d.dep_name, e.emp_name from Department d, Employee e where
    d.dep_id = e.dep_id
    --and e.emp_type IN (:param)Regards,
    Santosh

Maybe you are looking for