ExecuteWithParams

I am using Jdev11gR2 and ADF bc
I built a query page with ExecuteWithParams and af:table, my problem is :
after entering the page, query automatically run in the af:table before entering params in ExecuteWithParams and click the query button. how to control the automatical query in af:table? I want it to be blank before I click the query button.
I know if I build the query in view criteria and there is setting to control "Query Automatically" in UI hint. but I did not use it in my application as some speical reason.
Thanks in advance for guide!!!

Hi,
the iterator has a refreshCondition property. This property you set to e.g. #{viewScope.refreshIterator == null? false : true}. When the user hits the command button to execute the query, you use a setPropertyListener component added to teh command button to set
from: #{'true'}
to: #{viewScope.refreshIterator}
type: action
The refresh property would be set to deferred or ifNeeded
Frank
Ps.: Note that if this doesn't work then most likely the executeWithParams and the table don't share the same iterator, which is a coding mistake then
Edited by: Frank Nimphius on Nov 18, 2011 9:01 AM

Similar Messages

  • Using ExecuteWithParams and getting a null pointer error

    I'm new to Webcenter and have a question about using ExecuteWithParams. I want to know if anyone experienced a null pointer exception when using it. I was using the example from the followng page to create a parameter form to filter an adf table.
    http://www.oracle.com/technology/products/jdev/tips/muench/screencasts/threesearchpages/threesearchforms_partthree.html?_template=/ocom/technology/content/print
    I created the named bind variable in the View Object editor, changed the query and dragged the ExecuteWithParams Operation onto my page. However, when I go to run the page I get the following error:
    javax.faces.el.EvaluationException: java.lang.NullPointerException     at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)     at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)     at oracle.adf.view.faces.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:55)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.LabelAndMessageRenderer.getLabel(LabelAndMessageRenderer.java:618)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.LabelAndMessageRenderer.encodeAll(LabelAndMessageRenderer.java:157)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.InputLabelAndMessageRenderer.encodeAll(InputLabelAndMessageRenderer.java:94)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)     at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:246)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelFormRenderer.encodeColumnChild(PanelFormRenderer.java:275)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelFormRenderer.renderColumn(PanelFormRenderer.java:251)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelFormRenderer._renderColumns(PanelFormRenderer.java:545)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelFormRenderer._encodeChildren(PanelFormRenderer.java:153)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelFormRenderer.encodeAll(PanelFormRenderer.java:69)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)     at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)     at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:317)     at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262)     at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239)     at oracle.adfinternal.view.faces.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(ContextPoppingUINode.java:224)     at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)     at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)     at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)     at oracle.adfinternal.view.faces.ui.BaseRenderer.renderNamedChild(BaseRenderer.java:384)     at oracle.adfinternal.view.faces.ui.laf.base.desktop.PageHeaderLayoutRenderer.renderContent(PageHeaderLayoutRenderer.java:259)     at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)     at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)     at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)     at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)     at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)     at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)     at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)     at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)     at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)     at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)     at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)     at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)     at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.renderWithNode(UINodeRenderer.java:90)     at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.render(UINodeRenderer.java:36)     at oracle.adfinternal.view.faces.ui.laf.oracle.desktop.PageLayoutRenderer.render(PageLayoutRenderer.java:76)     at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177)     at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53)     at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)     at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:54)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:242)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:265)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:65)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:147)     at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)     at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)     at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:645)     at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:568)     at oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:100)     at mdssys.viewcontroller._public__html._SoluminaOrderStatus_jspx._jspService(_SoluminaOrderStatus_jspx.java:943)     [SRC:/mdssys/ViewController/public_html/SoluminaOrderStatus.jspx:4]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)     at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:724)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)     at oracle.mds.jsp.MDSJSPFilter.doFilter(Unknown Source)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:287)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)     at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)     at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)     at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)     at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)     at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)     at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)     at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)     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[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)Caused by: java.lang.NullPointerException     at oracle.adf.model.binding.DCVariableImpl.resolveSourceVariable(DCVariableImpl.java:64)     at oracle.adf.model.binding.DCVariableImpl.resolveResourceProperty(DCVariableImpl.java:142)     at oracle.jbo.common.VariableImpl.getLabel(VariableImpl.java:800)     at oracle.jbo.uicli.binding.JUCtrlValueBinding.getLabel(JUCtrlValueBinding.java:1384)     at oracle.jbo.uicli.binding.JUCtrlValueBinding.internalGet(JUCtrlValueBinding.java:1726)     at oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding.internalGet(FacesCtrlAttrsBinding.java:156)     at oracle.adf.model.binding.DCControlBinding.get(DCControlBinding.java:649)     at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:79)     at oracle.adfinternal.view.faces.model.FacesPropertyResolver.getValue(FacesPropertyResolver.java:92)     at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)     at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:171)     at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)     at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)     ... 97 more
    Can anyone help me with this?

    Please, post your question on JDeveloper forum (JDeveloper and ADF

  • ExecuteWithParams is not returning the rows from cache

    Hi,
    We have two VO's based on same entity ,whenever new row is inserted in one VO and we do executeWithParams on another VO ,It is not returning the rows which are uncommitted.
    I replaced the executeWithParams with a custom method in AM in which I am executing the query after applying the view criteria and setting query mode.Its returning rows which are uncommitted.
    Jdev Version which I am using is 11.1.1.7.0
    ExecuteWithParams used to work with uncommitted data in 11.1.1.6.0 .
    Do we need to raise a bug on framework or Am I missing something?
    Edited by: sharavnkumar_malla on Oct 18, 2012 1:02 AM

    Still the same answer, even after you updated the question. We (the public) don't have 11.1.1.7, know nothing about 11.1.1.7, and cannot help you with 11.1.1.7. Questions about internal builds belong on internal forums.

  • ExecuteWithParams in adf Task flow is not executing

    Hi,
    I have a generic page fragment(Task Flow) which accepts a parameter from the calling page, when I use it as a Region.
    Based on the value of the parameter passed I have to filter the table data or I have to execute a ViewObject .
    For that I used a bind variable in the View Object.
    And I dragged the ExecuteWithParams from DataControl to the Fragment defenition(TaskFlow).
    <method-call id="ExecuteWithParams">
          <method>#{bindings.ExecuteWithParams.execute}</method>
          <outcome id="__90">
            <fixed-outcome>ExecuteWithParams</fixed-outcome>
          </outcome>Now the Issue I am facing is when I run the page, the jsff page is returning as empty. It is showing a message like "No data to display"
    Also the Method call ExecuteWithParams is showing a warning that bindings is not known.
    Studio Edition Version 11.1.1.2.0
    Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
    Please Help....
    -Ranjith

    Hi Arun,
    I set the ExecutewithPrams as the default Activity, And I am getting the pageFlowScope parameter in the task flow, but while executing the execute with param I am getting a No data to display message in my table
    here is my task flow
    <?xml version="1.0" encoding="UTF-8" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="Test_definition">
        <default-activity id="__1">ExecuteWithParams</default-activity>
        <transaction id="__35">
          <new-transaction/>
        </transaction>
        <input-parameter-definition id="__21">
          <name id="__22">pCode</name>
          <value>#{pageFlowScope.pCode}</value>
          <class>java.lang.String</class>
        </input-parameter-definition>
        <input-parameter-definition id="__23">
          <name id="__24">pLabel</name>
          <value>#{pageFlowScope.pLabel}</value>
          <class>java.lang.String</class>
        </input-parameter-definition>
        <managed-bean id="__27">
          <managed-bean-name id="__25">TestCommonBean</managed-bean-name>
          <managed-bean-class>view.bean.TestCommonBean</managed-bean-class>
          <managed-bean-scope id="__26">request</managed-bean-scope>
        </managed-bean>
        <view id="TestCommon">
          <page>/TestCommon.jsff</page>
        </view>
        <method-call id="ExecuteWithParams">
          <method>#{bindings.ExecuteWithParams.execute}</method>
          <return-value id="__36">true</return-value>
          <outcome id="__7">
            <fixed-outcome>ExecuteWithParams</fixed-outcome>
          </outcome>
        </method-call>
        <task-flow-return id="rollback">
          <outcome id="__18">
            <name>rollback</name>
            <rollback/>
          </outcome>
        </task-flow-return>
        <task-flow-return id="commit">
          <outcome id="__19">
            <name>commit</name>
            <commit/>
          </outcome>
        </task-flow-return>
        <control-flow-rule id="__8">
          <from-activity-id id="__9">ExecuteWithParams</from-activity-id>
          <control-flow-case id="__11">
            <from-outcome id="__12">ExecuteWithParams</from-outcome>
            <to-activity-id id="__10">TestCommon</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <control-flow-rule id="__20">
          <from-activity-id id="__28">TestCommon</from-activity-id>
          <control-flow-case id="__30">
            <from-outcome id="__33">commit</from-outcome>
            <to-activity-id id="__29">commit</to-activity-id>
          </control-flow-case>
          <control-flow-case id="__32">
            <from-outcome id="__34">rollback</from-outcome>
            <to-activity-id id="__31">rollback</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <use-page-fragments/>
      </task-flow-definition>
    </adfc-config>

  • ExecuteWithParams with URL parameter doesn't work

    Hi!
    There are a lot of posts about executing VO with parameters, but I'm still stuck on it. I have a VO with WHERE condition like this:
    WHERE TABLE.ID = :IdParm
    I want this binded variable to get populated in jspx page by parameter in URL. I've created a binding for ExecuteWithParams in my pageDef like this:
    <action IterBinding="MyViewGIterator" id="ExecuteWithParams"
    InstanceName="AppModuleDataControl.MyViewG"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="95">
    <NamedData NDName="IdParm" NDValue="${param.IdParm}"
    NDType="java.lang.String"/>
    </action>
    and an executable on this:
    <invokeAction Binds="ExecuteWithParams" id="callExecuteWithParams"
    Refresh="ifNeeded"/>
    so the executables in my pageDef look like this:
    <executables>
    <iterator id="MyViewGIterator" RangeSize="10"
    Binds="MyViewG" DataControl="AppModuleDataControl"/>
    <variableIterator id="variables">
    <variable Name="parameterURL" Type="String"
    DefaultValue="${param.IdParm}"/>
    </variableIterator>
    <invokeAction Binds="ExecuteWithParams" id="callExecuteWithParams"
    Refresh="ifNeeded"/>
    </executables>
    I have a variableIterator that is binded on outputText control on my jspx just to test if parameter gets read correctly and it does.
    What am I doing wrong that query doesn't execute correctly and I don't have any data on my page? I've also tried with refresh condition "Always" but it doesn't help.
    Any help would be much appreciated.
    BB
    Message was edited by:
    Brokenbone

    Hi,
    do the following:
    - In the pageDef file (Executable section), create a "Parameter". The name of this parameter is up to you.
    - the value of this parameter point to #{param.IdParm}
    - In the ExecuteWithParam OperationBinding, select the agument item and select the NDVaue. Open the ExpressionLanguage editor and select the Parameter you just created
    Here's a working pageDef file example:
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                    version="10.1.3.41.57" id="RequestParamTestPageDef"
                    Package="adf.testcases.view.pageDefs">
      <parameters>
        <parameter id="param1" value="#{param.param1}"/>
      </parameters>
      <executables>
        <iterator id="DepartmentsVOWithBindVar1Iterator" RangeSize="10"
                  Binds="DepartmentsVOWithBindVar1"
                  DataControl="AppModuleDataControl"/>
        <invokeAction id="executeDepartments" Binds="ExecuteWithParams"/>
      </executables>
      <bindings>
        <table id="DepartmentsVOWithBindVar1"
               IterBinding="DepartmentsVOWithBindVar1Iterator">
          <AttrNames>
            <Item Value="DepartmentId"/>
            <Item Value="DepartmentName"/>
            <Item Value="ManagerId"/>
            <Item Value="LocationId"/>
          </AttrNames>
        </table>
        <action IterBinding="DepartmentsVOWithBindVar1Iterator"
                id="ExecuteWithParams"
                InstanceName="AppModuleDataControl.DepartmentsVOWithBindVar1"
                DataControl="AppModuleDataControl" RequiresUpdateModel="true"
                Action="95">
          <NamedData NDName="deptId" NDValue="${bindings.param1}"
                     NDType="oracle.jbo.domain.Number"/>
        </action>
      </bindings>
    </pageDefinition>Frank

  • Can't create an ExecuteWithParams activity in a bounded task flow

    I'm trying to replicate the application in the demo, Passing Parameters to a TaskFlow on the URL - http://www.youtube.com/watch?v=3cklxe1qq5I
    I created a ViewObject named PagerByLastName which has an iterator with the generated name, PagerByLastName1Iterator
    (in Data Controls, a node is created for PagerByLastName , named PagerByLastName1
    PagerByLastName1 has query with a parameter and binding variable for the parameter.
    Next, I created a bound task flow and tried to drop an ExecuteWithParams from within PagerByLastName1 onto the bounded task flow.
    However, in the Edit Action Binding dialog that opens, the Data Collection section is read-only and I'm unable to select a data collection to create
    the ExecuteWithParams activity.
    A warning message appears as I try to drop ExecuteWithParams -
    "WARNING: IteratorNameNotFound--AppModuleDataControl1.PagerByLastName1"
    However, the iterator name should be PagerByLastName1Iterator
    Known issue? Is there any workaround?
    Product Versions:
    Oracle JDeveloper 11g Release 1 11.1.1.4.0
    Studio Edition Version 11.1.1.4.0
    Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923
    Copyright 1997, 2011 Oracle and/or its affiliates. All rights reserved.
    IDE Version: 11.1.1.4.37.59.23
    Product ID: oracle.jdeveloper
    Product Version: 11.1.1.4.37.59.23
    Thanks,
    John

    Shay Shmeltzer wrote:
    What do you mean when you say:
    created a ViewObject named PagerByLastName which has an iteratorA view object should have a query in it with a bind parameter.Correction, I saw in the Data Bindings source an iterator is generated for the ViewObject .
    The ViewObject does have both a query and bind variable defined for the parameter in the query.
    The query is
    select BEEPER, FIRST_NAME, MIDDLE_NAME, LAST_NAME, OUN from PERSON_ALL_V4 where ( ( ( UPPER(LAST_NAME) LIKE UPPER('%' || :lastname) ) OR ( :lastname IS NULL ) ) ) and cyber_status='Active'
    lastname is the bind variable
    I DnD the ExecuteWithParams node to the task flow and the Edit Action Bindings dialog opens, but I cannot select a data collection, the collections are collapsed
    and can't be expanded.
    Edited by: JWB on May 23, 2011 4:55 PM

  • [SOLVED]ADF BC/JSF-how to execute a "ExecuteWithParams" from a b.-bean?

    Hello everyone. I am new to ADF BC/JSF web apps. and I have a situation where I have a form that inserts a record into the DB, the page has a backing bean attached to it and the "create" button on the form is attached to a method called "grabarButton_action()" on the backing bean... here I do some validation first and then I commit the changes.... until this moment everything works fine but the thing is that after the insert takes place I need to query and get the new row I just inserted in the DB to get a value from a column that gets inserted using a trigger on the DB.
    I have been trying to do this unsuccessfully, I created a ViewObject with bind variables to try to execute the query using the "executeWithParams" action but I dont know exactly how to send the values to the action and get the results from it...
    Can anybody point me in the right direction or give me some code examples here please???!!!
    Thanks.
    Message was edited by:
    dragonov7
    Message was edited by:
    dragonov7
    Message was edited by:
    dragonov7

    DragonV,
    Why not just mark the attribute in your EO as "refresh after insert" and/or "refresh after update?" These are there to support attributes that are populated by a trigger.
    Hope this helps,
    John

  • Error While using executewithparams Operation in ADF 11.1.1.1.0 version

    Hi all,
    jdev version :ADF 11.1.1.1.0
    I am trying to pass the values between the pages .for this i am drag and drop the Executewithparams Operation into the adfc-config file.but it is showing an error as "reference executewithparams not found".pls help me in this
    Code:
    <method-call id="ExecuteWithParams">
    *<method>#{bindings.ExecuteWithParams.execute}</method>* --error showing in this line
    <outcome>
    <fixed-outcome>ExecuteWithParams</fixed-outcome>
    </outcome>
    </method-call>
    Regards,

    Hi Dimitris,
    THANKS for your quick responce.this is my code in the page defination.can you pls guide me in this
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="11.1.1.54.7"
    id="adfc_config___ExecuteWithParamsPageDef"
    Package="soa_project_form.pageDefs" SkipValidation="true">
    <parameters/>
    <executables>
    <iterator Binds="hcpByparams1" RangeSize="25"
    DataControl="AppModuleAMDataControl" id="hcpByparams1Iterator"/>
    </executables>
    <bindings>
    <action IterBinding="hcpByparams1Iterator" id="ExecuteWithParams"
    RequiresUpdateModel="true" Action="executeWithParams">
    <NamedData NDName="p_id" NDValue="#{pageFlowScope.pid}"
    NDType="java.lang.String"/>
    </action>
    </bindings>
    </pageDefinition>

  • Java.lang.NullPointerExecption error with ExecuteWithParam data control

    Hello,
    my application has a database connexion ; with the wizards, I made a Businness Components from Tables ; after that, I've changed the querry of my one and only View (btw, there are 4 entity objects). I put on a view criteria with a bind variable and the query in the xml file view is like this :
    SELECT CRAH.JOURINPUT,
    CRAH.CODEPROJET,
    CRAH.CODEANA,
    CRAH.DUREE,
    CRAH.DESCRIPTION,
    CRAH.IDUSER
    FROM CRAH CRAH
    WHERE Iduser=:VarIduser
    In my jsf page, I've dragged and dropped the ExecuteWithParams data control (in the same view as above) as an ADF Parameter form. I finally create an ADF table by dragging'n'dropping this very same view's datacontrol.
    The problem is when I run, it works!!! but after like 2 click on the execute with parameter button, I get a java.lang.NullPointerExecption for every attribute in the table.
    Could anybody gets me a piece of advice on this ? The thing is it works when I test with the Application Module. What's the problem here ?

    Hello.
    Well, even with a simple EO/VO for a single table, one view criteria and its bind variable, I get the same error. It still works in the AM test run. I get this error message in the embedded OC4J log :
    08/07/09 09:19:20 [757] **** refreshControl() for BindingContainer :oracle_jbo_uicli_binding_JUFormBinding_140
    08/07/09 09:19:20 [758] DCUtil, returning:oracle.adf.model.binding.DCParameter, for AMCADataControl
    08/07/09 09:19:20 [759] Reusing DC transform for AMCADataControl_sessiondef.view_pageDefs_view2PageDef_VOCA1_0_DynamicRegion
    08/07/09 09:19:20 [760] INFO: getDCKey for data.view_view2PageDef yielded view.DataBindings.cpx
    08/07/09 09:19:20 [761] variables variables passivated >>> ExecuteWithParams_CAVAR=FG
    08/07/09 09:19:20 [772] WARNING: data control: oracle_jbo_uicli_binding_JUFormBinding_140 is unknown in: view.DataBindings.cpx
    08/07/09 09:19:20 [773] INFO: getDCKey for data.view_view2PageDef yielded view.DataBindings.cpx
    So, do you think I did something wrong with the data control ? Because the problems core seems to be here. The thing is that they are automaticly created... so is there something else to do ?
    Frédéric

  • ExecuteWithParams and URL parameter

    I am implementing a two pages scenario where the first page allows the user to select the Department ID from a menu, which gets passed to the second page via URL. The second page allows the user to refine the search on the employees within the selected department.
    I have created a View Object for the Employees table with bind parameter for the Department ID, and Following the guidance of an earlier post:
    ExecuteWithParams with URL parameter doesn't work
    managed to get the passed in Department ID URL to be used in the intial search.
    The problem is that this value is not retained on subsequent searches. Can someone help me on this?
    Please excuse if the question is trivial. I am new to JDeveloper. By the way, I am using ADF BC with JDeveloper 10.1.3

    Assuming that you are using JSF then instead of passing the parameter in the URL try passing it with the processScope scope.
    See: here

  • ExecuteWithParams not working in welcome page

    Hello everyone, I have build an application using ADF & JDev 11.1.2.3.0, When user performs a successful log-in he is redirected to the welcome-page of my application (lets say Page1). In Page1 I have some buttons that execute ExecuteWithParams operations. When I click in them nothing happens. It seems like no click was made. If I refresh the page and click again everything works fine. Does anyone know why does this happen? Thank you

    Hi 1006360,
    It seems strange and looks like with out refresh the action is not being invoked. Can you create a all new .jspx document and try , am sure it will resolve
    Thanks
    Sandeep

  • How to use JDBC Positional Binding Style & ExecuteWithParams?

    Can anyone provide any help here including any documentation on how to configure this (I've checked online help and the developer guide.)
    When defining multiple Bind Position variables on a View Object (using sql statement binding style: JDBC Positional), should I defined multiple bind variable names? Otherwise, if I don't, when I use ExecuteWithParams operation to create the data control, only one input variable field is displayed. I can get a single bind position variable to work, but am struggling on how to configure / get multiple bind position variables to work with ExecuteWithParams.
    Here's my current configuration:
    1. Define View Object with two JDBC Positional Binding Parameters
    -- Bind Variables: name=parm1 (???should I define a second bind variable name???)
    -- Bind Positions = 0,1
    -- SQL Statement add another position var in where clause: "match (zip) against (CONCAT(?,'*') IN BOOLEAN MODE) and "match (name) against (CONCAT(?,'*') IN BOOLEAN MODE)
    2. On a JSF page, drag ExecuteWithParams operation from data control onto the JSF page. If I have defined only one bind variable name, only one input field is displayed (and one field label that I defined for that bind variable), but I need two input fields - one for each bind position variable. How do I set this up?
    Back-end Database is MySQL 5.0.1 which is why I am using binding stye JDBC positional.
    Thanks, Tom
    Message was edited by:
    javaX

    I did some more testing and the problem is that the queries work with one bind position variable but not with two. I created two simple view objects off of the same entity object to test:
    #1 - ViewObject with one bind position variable - where clause: where id > ?
    #2 - ViewObject with two bind position variables - where clause: where id > ? and id < ?
    I created two separate .jspx pages, view1.jspx (one input field) and view2.jspx (two input fields), for each view object by dragging ExecuteWithParams operation onto the JSF page.
    The .jspx page with one input field works (returns result sets.) The view2.jspx page with two input fields does not work - the query does not return any result sets (no errors produced, it just does not return any rows) - I've tested my query outside of jdeveloper and it works fine. I also tried switching my inputs to make sure I did not have an illogical query (i.e., id >100 and id< 1).
    Is there anything different / extra I need to do to use two bind position variables?
    I'm STUCK HERE.
    Everything in this simple test was identical except for using 2 input variables versus 1.
    Technology stack is: jdeveloper 10.1.3, jsf/ADF BC, mySQL 5.01
    Since I now understand what the problem is better, I'm going to re-post this as a new topic that more appropriately describes the problem, "Queries not working with multiple bind position variables?"
    Message was edited by:
    javaX

  • JDev 11 - Date problem in executeWithParams form who rans fine in Jdev 10

    Hello everybody,
    Here is my case :
    I have a viewObject, here is its SQL code :
    select *
    from
      select req.*, ROW_NUMBER() OVER(ORDER BY 1) num
      from
        select distinct rvmage.mage_seq, mpr.nom||' '||mpr.prenom as medecin, mpr.nom, mpr.prenom, rvmage.ag_date, rvmage.heure, sst.lib_1, spr.spr
        from rvsexa, rvsexa_rvsnag, rvslag, spr, mpr, rvmage, rvsnag, sst
        where rvsexa.mnemo = rvsexa_rvsnag.rvsexa_mnemo
        and rvsexa_rvsnag.rvsnag_code = rvslag.rvsnag_code
        and rvsexa_rvsnag.rvsnag_code = rvsnag.code
        and rvsnag.rvsnag_sst like sst.sst
        and sst.lib_1 like '%' || :p_site || '%'
        and rvslag.spr_spr = spr.spr
        and rvsexa.lib_1 not like 'SERVICE%'          
        and spr.rsm = :p_rsm
        and rvsexa.lib_1 like :p_libExamChoisi
        and mpr.mpr = spr.mpr
        and rvmage.rvslag_lag = rvslag.lag
        and rvmage.etat = 1
        and mpr.nom||' '||mpr.prenom like '%' || :p_medecin || '%'
        and ((rvmage.ag_date) - to_date(:p_dateDeb)) >= 0
        order by rvmage.ag_date, rvmage.heure
      ) req
    where num between ( (:p_pos-1)* :p_nb)+1 and  (:p_pos*:p_nb)I have an executeWithParams form, here is a part of the code :
    // many parameters can ben modified
    <tr:inputDate         value="#{bindings['p_dateDeb'].inputValue}"
                                label="Date"
                                required="#{bindings['p_dateDeb'].mandatory}"
                                chooseId="choosedDate"
                                autoSubmit="true">
                                             <f:validator binding="#{bindings['p_dateDeb'].validator}"/>
                                             <f:convertDateTime pattern="#{bindings['p_dateDeb'].format}" dateStyle="shortish"/>
    </tr:inputDate>
    <tr:chooseDate id="choosedDate"
                                   minValue="#{backing_main.dateDemain}"
                                   maxValue="#{backing_main.dateLimite}" />
    <tr:commandLink        actionListener="#{bindings.ExecuteWithParams.execute}"
                                    text="Rechercher"
                                    disabled="#{!bindings.ExecuteWithParams.enabled}"/>
    // rest of the code is mainly a trinidad read-only table associated to my viewObjectIn the JDeveloper 10 version it was ok. Here I'm able to change the value of all my parameters except the date. I can enter any date, result stay already the same ignoring the date.
    If someone knows this problem..
    Valéry.
    Edited by: valery.s on 05-mai-2009 14:31

    I found my problem :
    the date is initialized in the viewObject executeQuery's method like this:
            Date d = getp_dateDeb();
            if(d==null)
                Date demain = new Date();
                demain = (Date)demain.getCurrentDate();
                demain.addJulianDays(1,1);
                setp_dateDeb(demain);
            }problem is that getp_dateDeb(); return always null. Thus I always execute my VO with the date of tomorow.
    Is there another way to see if the date parameter is call for the first time ?

  • How to use ExecuteWithParams to pass a list as parameter

    Hi All,
    I need to have a read-only View from SQL with the following script Select * from XXXX_Table where ID is in (:ID_LIST)"
    So for example, the script will be something like "Select * from XXXX_Table where ID is in ('d1','d2') "
    How do I compose the parameter :ID_LIST from the frond end? I try to use
    OperationBinding operationBinding = bindings.getOperationBinding("ExecuteWithParams");
    operationBinding.getParamsMap().put("ID_LIST", " 'd1','d2' "); // ID_LIST is set to expression (string type) in the view object
    It does not work. I also try to use operationBinding.getParamsMap().put("ID_LIST", an_arraylist); not working either.
    It is working fine if I input only one ID, i.e operationBinding.getParamsMap().put("ID_LIST", " d1 "). But operationBinding.getParamsMap().put("ID_LIST", " d1, d2 ") doesn't.
    I spend several hours in trying all kinds of combination in parameters types(String, Object, Array) and parameters composed, none of them work. I believe the problem is the single quoto...
    Any one had soloved it before?

    The first thing you need is a Nested Table type in the database. I created one with:
    CREATE TYPE vc_arraytype AS TABLE OF VARCHAR2(4000);This allows you to pass arrays to SQL. Now theoretically, you should now be able to do this in the where clause of your View Object's query:
    WHERE myfield in CAST(:myArrayParameter AS vc_arraytype)All you should have to do is specify the where clause parameter named myArrayParameter as a java.sql.Array, and ADF should do the conversions properly. But as of JDeveloper 10.1.3.5 it didn't work that way. I don't know if it works in 11g, because I'm not using it very much yet.
    So instead, I do some of my own conversions to make this work:
        private Connection getCurrentConnection() throws SQLException {
            PreparedStatement st =
                getDBTransaction().createPreparedStatement("commit", 1);
            Connection conn = st.getConnection();
            st.close();
            return conn;
        private synchronized void setupDescriptor(Connection conn) throws SQLException {
            descriptor = new ArrayDescriptor("COMMON.VC_ARRAYTYPE", conn);
        private Array toArray(ArrayList<String> theArray) {
            Array arr = null;
            try {
                Connection conn = getCurrentConnection();
                if (descriptor == null) {
                    setupDescriptor(conn);
                arr = new Array(descriptor, conn, theArray.toArray());
            } catch (SQLException s) {
                s.printStackTrace();
            return arr;
        }

  • SECURITY: permissions not allowed with ExecuteWithParams action

    Hello,
    I followed Frank Nimphius guide to get a secured web application based on adf bc
    and it seems to work ! (thank you Frank)
    i'm using a custom login module with a database containing users and roles. i can authenticate and be authorized for all actions that are necessary except for one (executewithparams) which is used on many pages, in spite of permissions "update" put on all the pagedef components.
    not using this action would make the application complety unusable.
    I've read that it is a bug but how can i fix it without recoding the function, have i to wait Jdev11 (we are going to deploy soon) and if i must recode this function how can i do?
    thanks for your help
    Mathieu

    Hi Guys,
    I think I am facing the same problem, and I am using the latest JDeveloper 10.1.3.3.0.
    My page is using an iterator based on the ExecuteWithParams method of a ViewObject.
    The page works correctly until I apply security. Than I get "no rows yet" in my ADF tables. I believe I set all the permissions possible, I am setting them using the Edit Authorization wizard, also manually editing the system-jazn-data.xml, using wildcards. Of course other tables based on View objects are working.
    This is kind of urgent, a show stopper for a demo application.
    Thanks,
    Istvan

  • Default values for executeWithParams

    ADF 11g
    I have a VO with a query :
    Select toto
    From aTable
    Where aDate between :pFrom and :pTo
    I've create a page view using the parameters from ExecuteWithParams
    The page has two af:inputDates bound to #{bindings.pFrom.inputValue} and #{bindings.pTo.inputValue}
    and a button bound to #{bindings.ExecuteWithParams.execute}.
    I can input two dates and the query is executed as expected.
    However I can't find how to set a default value for the 2 af:inputDate components.
    I would like to set the them to the first and last date of the current year.
    Anybody got any ideas ?
    Regards
    Paul

    You may do this by setting a default value on your variable definitions in the page definition file.

Maybe you are looking for

  • Opening a report in a new window on the web

    Hi I am displaying crystal reports using Tomcat and I am trying to get the hyperlink>'A website on the internet' to open up in a new window. At the moment it just opens up in the current window. This seems like it should be something very easy.

  • GRC 10.0: Customizing Reporting with field ID's

    Hi everybody, we need some reports which are delivering some special information. These informations aren't exist in any of the standard reports. So we would like to customize them. I know there is a customizing table V_GRFNREPCOLUMN how to adjust th

  • Special characters like hyphens cause problems in Text to Speech on Mac

    The Text to Speech function with the shortcut [option+esc] has helped me  a lot. But, the only problem is that when there is a hyphen in the paragraph selected it doesn't even start reading the paragraph. This problem occurs when reading pdf files fr

  • IOS 8.02 update cause iPad Air to auto reboot while playing games and always 'No Sim installed' appears

    I have updated my iPad 3 and iPad air to the latest update iOS 8.02 sinice a week ago. The iPad 3 is okay while the ipad air is having problems. Firstly it randomly auto reboots and apps auto shuts as well. Secondly the 'No Sim installed' always appe

  • Confirmation Reversal and Deletion

    Hi All, Is there a configuration to disable "Delete" and "Return Delivery" buttons for all POs? We have a requirement to do not allow users to perform above actions. We are using SRM 5.0 SP13 Thanks, Nikhil