use the anterior region iterator binding in the workflow

Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923
Hello

I use a region with stubborn workflows. in my first area I use a query and an array of result. in my table is a link to us a flow of control in the detail area (jsff).
I like to use next, previous navigation in the detail page, but how can I use the iterator from the first page of the operation (next, previous)?

THX Thomas

Thomas,

Just use the iterator of the data control in the second jsff then.

John

Tags: Java

Similar Questions

  • Application of a few framework using the workflow of discussion. As an option you

    Application of a few framework using the workflow of discussion. Optionally you can click to watch the forum/topic and then there are option, I want to understand just what that (subscribe) means. Look at the topics/forum email user what value subscribed the Add option.

    Everything that applies to Framework portal application.

    Especially for the Discussions, Yes. Note that the Discussions and subscriptions are independent services of spaces (one year previously there used a license called 'WebCenter Services', where spaces have not been included). The button 'Subscribe' is, then implemented in a workflow, you can add to your application. In fact, Services can be consumed by other portals (such as Weblogic Portal) - in this case, the workflow must be implemented through the other environment.

  • Error 500 by using the workflow setting

    I use the parameter number to call bounded task flows


    java.lang.IllegalArgumentException: Cannot convert 10 of type class oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding to class oracle.jbo.domain.Number
         at com.sun.el.lang.ELSupport.coerceToType(Unknown Source)
         at com.sun.el.parser.AstValue.setValue(Unknown Source)
         at com.sun.el.ValueExpressionImpl.setValue(Unknown Source)
         at oracle.adf.controller.internal.util.ELInterfaceImpl.setExpression(ELInterfaceImpl.java:122)
         at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.setInputValues(TaskFlowCallActivityLogic.java:848)
         at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.enterTaskFlow(TaskFlowCallActivityLogic.java:592)
         at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.invokeLocalTaskFlow(TaskFlowCallActivityLogic.java:324)
         at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.invokeTaskFlow(TaskFlowCallActivityLogic.java:227)
         at oracle.adfinternal.controller.engine.ControlFlowEngine.invokeTaskFlow(ControlFlowEngine.java:223)
         at oracle.adfinternal.controller.state.ChildViewPortContextImpl.invokeTaskFlow(ChildViewPortContextImpl.java:107)
         at oracle.adfinternal.controller.state.ControllerState.createChildViewPort(ControllerState.java:1246)
         at oracle.adfinternal.controller.ControllerContextImpl.createChildViewPort(ControllerContextImpl.java:80)
         at oracle.adf.controller.internal.binding.DCTaskFlowBinding.createRegionViewPortContext(DCTaskFlowBinding.java:416)
         at oracle.adf.controller.internal.binding.DCTaskFlowBinding.getViewPort(DCTaskFlowBinding.java:313)
         at oracle.adf.controller.internal.binding.TaskFlowRegionModel.doProcessBeginRegion(TaskFlowRegionModel.java:159)
         at oracle.adf.controller.internal.binding.TaskFlowRegionModel.processBeginRegion(TaskFlowRegionModel.java:115)
         at oracle.adf.view.rich.component.fragment.UIXRegion$RegionContextChange.doChangeImpl(UIXRegion.java:1392)
         at oracle.adf.view.rich.context.DoableContextChange.doChange(DoableContextChange.java:91)
         at oracle.adf.view.rich.component.fragment.UIXRegion._beginInterruptibleRegion(UIXRegion.java:762)
         at oracle.adf.view.rich.component.fragment.UIXRegion.processRegion(UIXRegion.java:525)
         at oracle.adf.view.rich.component.fragment.UIXRegion._preRenderView(UIXRegion.java:1043)
         at oracle.adf.view.rich.component.fragment.UIXRegion.processEvent(UIXRegion.java:1005)
         at oracle.adfinternal.view.faces.lifecycle.PreRenderViewUtils$1.visit(PreRenderViewUtils.java:122)
         at oracle.adfinternal.view.faces.lifecycle.PreRenderViewVisitContext._invokeVisitCallback(PreRenderViewVisitContext.java:152)
         at oracle.adfinternal.view.faces.lifecycle.PreRenderViewVisitContext.invokeVisitCallback(PreRenderViewVisitContext.java:131)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:531)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:437)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:415)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:437)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:415)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:437)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:415)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:437)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:415)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:437)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:415)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitAllChildren(UIXComponent.java:437)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:415)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
         at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
         at org.apache.myfaces.trinidad.component.UIXDocument.visitTree(UIXDocument.java:82)
         at javax.faces.component.UIComponent.visitTree(UIComponent.java:1496)
         at oracle.adfinternal.view.faces.lifecycle.PreRenderViewUtils._visit(PreRenderViewUtils.java:110)
         at oracle.adfinternal.view.faces.lifecycle.PreRenderViewUtils.__deliverPreRenderViewEvents(PreRenderViewUtils.java:61)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:992)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:334)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:232)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    Hello

    you place a link as an input, bit of the bind value. So instead of

    #{bindings.attributeName}, you need to #{bindings.attributeName.inputValue}

    Frank

    PS. : Please read this: https://forums.oracle.com/forums/ann.jspa?annID=56 for your next question

  • Cannot download files to the application of the portal WebCenter uses the workflow Document Manager

    Hi all

    I'm developing a portal WebCenter application where I am integrating the UCM content for portal using UCM content repository application.

    I have a problem when downloading documents, creation of HTML file, sending document wiki in DOCUMENT MANAGER TASKFLOW.

    with the following warning: -.


    (i) Information

    -Impossible to download the document.

    -Typical causes are that you may not, or one or more children are currently in an active workflow.

    -Please refresh to see the latest content (view > refresh content).

    I did it after the sine qua non for this process: -.

    (1) I configured the security of ADF applications.

    (2) I added users as Admin role to the application.

    (3) creating UCM repository connection successfully.

    (4) Enabled Folder_g, WebCenterConfigure in UCM11g components.

    (5) I use "contentadmin' user to connect to the repository of the AAU and session JDeveloper.

    (6) SAT same error when I use the "weblogic" user credentials


    Here is my log of the UCM server: -.


    < 3 July 2014 19:42:47 IST > < WARNING > < oracle.adf.share.ADFContext > < BEA-000000 > < automatically a DefaultContext of getCurrent initialization.

    The caller must ensure that a DefaultContext is suitable for this purpose.

    Memory leaks or unexpected behavior may occur if the automatic initialization completed successfully.

    This message can be avoided by doing initADFContext before using getCurrent().

    For more information please activate logging for oracle.adf.share.ADFContext at the HIGHEST level. >

    < 3 July 2014 19:45:57 IST > < error > < oracle.ucm.idccs > < CMU-CS-060003 > < event generated by the user "contentadmin' host 'CIS '. >

    < 3 July 2014 19:45:57 IST > < error > < oracle.ucm.idccs > < CMU-CS-000001 > < general exception

    intradoc.common.ServiceException:! csUnableToCheckIn, (null)! csSecurityGroupNotDefined

    at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2173)

    at intradoc.server.Service.buildServiceException(Service.java:2402)

    at intradoc.server.Service.createServiceExceptionEx(Service.java:2396)

    at intradoc.server.Service.createServiceException(Service.java:2391)

    at intradoc.server.ServiceSecurityImplementor.determinePrivilege(ServiceSecurityImplementor.java:785)

    at intradoc.server.DocumentAccessSecurity.checkSecurity(DocumentAccessSecurity.java:183)

    at intradoc.server.DocumentAccessSecurity.checkSecurity(DocumentAccessSecurity.java:138)

    at intradoc.server.ServiceSecurityImplementor.checkSecurity(ServiceSecurityImplementor.java:500)

    at intradoc.server.Service.checkSecurity(Service.java:2981)

    at intradoc.server.Service.checkSecurity(Service.java:2959)

    at sun.reflect.GeneratedMethodAccessor267.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)

    at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:310)

    at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:295)

    at intradoc.server.Service.doCodeEx(Service.java:637)

    to webdavcomponent. WebdavHandler.checkSecurity (WebdavHandler.java:719)

    at sun.reflect.GeneratedMethodAccessor266.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)

    at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)

    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)

    at intradoc.server.Service.doCodeEx(Service.java:620)

    Collections. CollectionUserHandler.checkSecurity (CollectionUserHandler.java:1454)

    at sun.reflect.GeneratedMethodAccessor265.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)

    at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)

    at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)

    at intradoc.server.Service.doCodeEx(Service.java:620)

    at intradoc.server.Service.doCode(Service.java:592)

    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1693)

    at intradoc.server.Service.doAction(Service.java:564)

    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1483)

    at intradoc.server.Service.doActions(Service.java:559)

    at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1346)

    at intradoc.server.Service.executeSubServiceCode(Service.java:4109)

    at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:1222)

    at intradoc.server.Service.executeServiceEx(Service.java:4104)

    at intradoc.server.Service.executeService(Service.java:4088)

    at intradoc.server.Service.doSubService(Service.java:3998)

    at sun.reflect.GeneratedMethodAccessor288.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:606)

    at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)

    at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:310)

    at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:295)

    at intradoc.server.Service.doCodeEx(Service.java:637)

    at intradoc.server.Service.doCode(Service.java:592)

    at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1693)

    at intradoc.server.Service.doAction(Service.java:564)

    at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1483)

    at intradoc.server.Service.doActions(Service.java:559)

    at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1415)

    at intradoc.server.Service.executeActions(Service.java:545)

    at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:751)

    at intradoc.server.Service.doRequest(Service.java:1974)

    at intradoc.server.ServiceManager.processCommand(ServiceManager.java:486)

    at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)

    at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)

    to weblogic.work.SelfTuningWorkManagerImpl$ WorkAdapterImpl.run (SelfTuningWorkManagerImpl.java:545)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    >

    Reference:

    Exception of the UCM Server Service

    Thank you

  • Create an opportunity using the workflow rule

    Hello

    Is there a way to create an opportunity record with a workflow rule.

    We want to be able to create an opportunity for service to be triggered automatically by the seller by updating a flag or the box which inturn triggers
    a workflow rule that can create an opportunity.

    I know to use a web link to copy an existing opportunity.

    Any ideas?

    Thank you
    Swami

    Currently, it is possible using the events using web services and integration. CRMOD does not support the workflow that allows you to automatically create an opportunity using a workflow

  • Cancellation of the virtual using the ExternalWFStubs.MachineDisposing computer

    Using the workflow ExternalWFStubs.MachineDisposing I see sporadic failures put at the disposal of the virtual machine into thinking that the virtual computer is not available to collect the properties of her during the commissioning phase.   I take custom properties to understand what the VCO workflow will remove etc.  Any ideas on this one?  The machine has, but the VCO workflow isn't what it needs to succeed.  The VCAC get accessories fails with null or the Vcenter workflow that gets the IP Address of the virtual machine to address.  Continuing its investigation of it.  1/2 of the decommissioned VM are successful.

    Thank you

    -Stephen

    I try to use the WFStubUnprovisionMachine stub and see how it goes.  Thanks for the great info.

  • Can not find all the workflow integrated

    I think I saw them once. But now I try to use the workflow integrated into orchestrator and can not find them...

    I just see http * snmp * documentation workflow - but where are all the other workflow integrated?

    found this article, it has resolved.

    vCenter Orchestrator 5.5 has no vCenter workflow in the library.

  • Send an email at the end of the workflow

    Hi, I need to send and email at the end of the workflow, how can I do this? destinatary address is an entry workflow...

    Thank you

    You can use the workflow 'Send Notification' under the Mail folder. You need to set the appropriate parameters for the mail server and port, but there are some good examples in the Mail\Example Interaction with Email workflow.

    Hope this helps

  • Create the Scheduler in the workflow

    Hi all

    I question even once, I try to create workflows for the provision of the vm... The provision of vm for the test environment for the virtual machine would have expired time... Let's say that my request of the VM user with a week time out time, I want to create clone vm workflow who have the ability to set the VM to suspend the State until the user send the time extend confirmation but if not the virtual machine will automatically be deleted. Is it possible to create the Planner like this?... Thanks for the suggestion

    For a quick/simple implementation, the following could be done:

    create a workflow to "Deploy new VM" which returns a 'VC:VirtualMachine' object - it could be something simple as one of the Clone with the customization of the library packaging workflows.

    Then, create the user workflows, for example "available with Timeout and Decom":

    After you have created the virtual machine, use a scriptable for calculation date task to set the retirement date. Pass this date, e-mail of the user and the virtual computer object in the element of regular workflow at the end of the workflow. When you are prompted for the workflow to run when you put the "Annex Workflow" element on the diagram, you will need to have your ready 'Delete VM' workflow.

    The workflow to delete VM should look approximately like this:

    When the workflow runs through the scheduled task created in the workflow of the provision, it will be:

    1. E-mail address of the user specified for the workflow of provision of interaction
    2. Sets a timeout for the user to answer
    3. (possibly set a time-out on the user interaction (shown with red dotted lines) Re-send the e-mail message)
    4. Interaction with the user prompt user if they wish to extend
    5. If so, set a new date of decommissioning and schedule the task to run the workflow delete VM on this date
    6. If not, use the workflow Library to 'delete virtual machine '.

    Above is a quick mock-up and dirty of what this solution pourrait look like. When something like that put into production, a lot of things happen and should be considered. These things can vary from environment to environment. Good luck.

    I must emphasize that vCloud Automation Center has integrated similar functionality and includes even a portal facing the user.

  • refresh the iterator binding

    Dear experts.

    I created EO of mySQL database then simple VO (SELECT Sounds.idresources, Sounds.resourceaccess OF resources sounds). On site jspx, I joined VO tabular and created a button to INSERT a new row in table of mySQL directly via the command preparedStatement.

    At the end of a method, I executed:

    DCBindingContainer DCB = BindingContext.getCurrent () .getCurrentBindingsEntry () (DCBindingContainer);

    DCIteratorBinding iter = DCB.findIteratorBinding ("VO_SOUNDS1Iterator");

    iter.getViewObject () .clearCache ();

    iter.executeQuery ();

    iter.clearForRecreate ();

    AdfFacesContext.getCurrentInstance () .addPartialTarget (this.getT1 ());

    to update the table and see new inserted row. Unfortunately modifications are not visible. I have to navigate between the other pages to see a correct result.

    Any help would be appreciated.

    Kind regards.

    Hello

    I checked your application, the problem seems to be that the VO is using different transactions than the transaction used for insertion.

    Quite simply, use AppModule commit to posting your changes instead of conn.Commit () in your method.

    To do this, add Commit action binding to your pagedef and use this validation instead of Conn.Commit (); in your insertRecord method

    or use the same transaction AppModule uses for insertion

    Example Code:

        public void insertRecord(String tbl, String connStr) {
            String sql = "INSERT INTO " + tbl + "(col1,col2) VALUES(?,?)";
            PreparedStatement preparedStatement = null;
            DBTransaction trans = null;
    
            try {
                DCIteratorBinding iter =
                    (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("VO_mySQL1Iterator");
    
                DCDataControl dc = iter.getDataControl();
                ApplicationModuleImpl appModule = (ApplicationModuleImpl) dc.getDataProvider();
    
                trans = appModule.getDBTransaction();
    
                //Following section is needed only when you connect to different datasource other than the one defined in AppModule
                InitialContext ctx = new InitialContext();
                DataSource ds;
                ds = (DataSource) ctx.lookup("jdbc/mysqlDS");
                if(trans.isConnected())
                {
                    trans.disconnect(true);
                    trans.connectToDataSource(ds, false);
                }
    
                preparedStatement = appModule.getDBTransaction().createPreparedStatement(sql, DBTransaction.DEFAULT);
                preparedStatement.setString(1, "user");
                preparedStatement.setString(2, "name");
                preparedStatement.executeUpdate();
    
                trans.commit();
            } catch (Exception e) {
                e.printStackTrace();
            }finally{
                try {
                    if(preparedStatement != null)
                        preparedStatement.close();
                    if(trans != null)
                        trans.closeTransaction();
                } catch (SQLException sqle) {
                    sqle.printStackTrace();
                }
            }
        }
    

    Jean Lou

  • Iterator binding: access the value of a column

    Hello

    Is there a way to access the value of a specific column from an af:table by EL, using the iterator binding? I know how to do this by adding an < attributeValues > affair in the pageDef file. But I'm just curious to know if it is possible without this 'thing '.

    For example, suppose we have a table, linked to a view object:
    <af:table id="t1" value="#{bindings.Employees1.collectionModel}" var="row" ...>
      <column headerText="Emp Id" id="c1" ...>
        <af:outputText value="#{row.EmployeeId}" id="ot1" .../>
      </column>
    </af:table>
    And below, a simple command button:
    <af:commandButton text="test button"/>
    Now, how can I set the disabled property of the CommandButton to be true, THAT when the selected row in the table has an EmployeeId of 200? So what I would do:
    <af:commandButton text="test button" 
    disabled="#{bindings.Employees1.collectionModel.currentRow.EmployeeId eq '200'}"/>
    But so far, I have not found the correct EL expression to do. I realize that it is quite an abstract example, but it is a concept that I need a lot, and I wonder what is the cleanest solution... :-)

    Thank you!

    Chris

    Published by: Chris Schryvers on December 1st, 2009 03:22

    Hi Chris,

    .... I use JDev 11.1.1.2.0...

    I have to do this:

    1. drag an EmployeeId (from your display in your dataControl) in the page as an outputText.
    2. make this false outputText visibility.
    3. in your Disabled property wirte commandButton control this EL:
    #{bindings. EmployeeId.inputValue is '200'}
    Or
    #{bindings. {EmployeeId.inputValue-eq ' 200'}.
    PartialTrigger 4-set of the outputText and the CommandButton with the table ID.

    your command button will be like this:


    ID = "cb1".
    Disabled = ' #{bindings. " EmployeeId.inputValue is '200'}'
    partialTriggers = "t1" / >

    Sameh Nassar

  • Understand the iterator binding relationship of the current page

    Dear all

    in my quest to understand the behavior of the ADF framework, I sometimes do some experimentation. When a result is unlike what I think, it suggests that there is something wrong with the understanding

    I belong to those who can not work if I do not receive an overview comprehesive of what I am working with (ADF)

    Here's a simple experiment that I could use some help to understand

    I created a simple application based on ADF BC and JSF (10.1.2)

    The model is simple EO based on the EMP table and updatable VO based on the entity

    I slipped and fell to the control of data collection in a page as a Table with record selector

    I created a button with the following code

    Public Sub commandButton_action(ActionEvent a)
    {
    Am is AppModule_rs (AppModule_rs) ADFFacesHelper.getAppplicationModule ("AppModule_rsDataControl");. / / This just a helper class to get AM name DC
    ViewObject vo1 = am.findViewObject("EmpView1");
    VO1. Next();
    VO1. Next();
    System.out.println (VO1. GetCurrentRow(). GetAttribute ("empno")); -Read the valur of the iterator of VO
    DCIteratorBinding bd = ADFFacesHelper.getIteratorBinding ("EmpView1Iterator");
    System.out.println (BD. GetCurrentRow(). GetAttribute ("empno")); -Read the value of the iterator binding
    }

    Just simple code for in-house advance lines of two pointer line and then see how this is reflected in the page. This test is just for me to understand how the iterator binding refers to the actual set of rows.

    Scenario (1)

    -Run the page, the first line on the page is selected - planned, VO rowselector points on the first line
    -Click on the commandbutton control, the code above is executed
    -the rowselector forward twice and should point to the third row on VO
    -on the page of the third row must be selected
    RESULT: Match perfect and both command Print print the same value
    -Press and hold the control button, line guard page selector advances two lines at a time... which is good

    Scenario (2)

    -Run the page, the first line on the page is selected - planned, VO rowselector points on the first line
    -use the mouse and select the fourth row on the screen (not pressed) - VO is always level 1, screen on set, iterator binding binds to the rowset VO is always the first row referenes
    -Press the button
    -the page maintains its fourth selected line, while the System.out.println (vo1.getCurrentRow ().getAttribute("Empno")); prints the 7521 value which is the third - row
    -I don't feel happy, the current iterator of VO is on the third row, visually, it's fourth, which means that the selection of the user on the Web page did not consider. And this goes against my intiution


    -Press again, I find that line of page selector is the sixth line (4 + 2), therefore the iterator to all VO lines (synchornized times)

    Scenario (3)

    Run the page, the first line on the page is selected - planned, VO rowselector points on the first line
    -use the mouse and select the fourth row on the screen (not pressed) - VO is always level 1, screen on set, iterator binding binds to the rowset VO is always the first row referenes
    -Press the button SUBMIT - 4th place is always selected as expected
    -Now press the order button, you will see that line on the screen selector forward two rows and print indicates that the VO has also progressed to the same value
    -Se TRANSLATE only after pressing send, the frame cought his breath and synchronized things

    Coming background FORMS, things of this nature never would have happened with Disk Manager.

    I tried to project what has happened to the lifecycle ADF to try to understand how the interaction of the user affects the selection of lines, but was unable to reach a unified solution. What follows as an attempt for scenario (2)

    The user moves the selection to the fourth line
    The command button is pressed.
    Life cycle JSF begins with the RESTORATION of the VIEW.
    Apply request values (I guess the lines selection made by the user to become an integral part of request values?)
    Prepare the model (this is a post (postback), property of refreshment has ifNeeded, Binidng is created again and VO is always first in the poinitng)
    Validation process (no validation as no data entry)
    Model update (don't know if at this point the update of the line VO iterator? if so it should point to the fourth line)-doesn't seem to be the case
    Invoke the application, the listener of the action is executed and the VO is forced to move twice under the command button code
    Prepare the Render: it is a step where the link needs to be updated and reflect the currernt VO (rank 6) line
    Render: The page where the sixth line is selected

    where I am wrong! appreciate your comments

    It's what makes the difficult framework, if it is not clearly documented so the flow is very well understood by developers in one day, the developer must spend days and days debugging problems. This sure beats the idea of using frames to increase productivity

    I have

    Quick question - is the button that you add code to the same area (the "select and" area) as the button submit table?
    I'm guessing that it isn't and that the explanation is that just by clicking on a specific record in the table is not actually indicate to the controller layer is a selected line.
    The Send button did this update.
    One solution might be to set the autosubmit to the selected component to be true.

  • Adjusts the gain in the region Inspector using the shortcut or control surface

    to adjust gain while working its very difficult to go to the region every time and adjust it if I want to use the shortcut key or the control surface to adjust gain option available in the Inspector in the region that someone can help on this. I use logic prox & I have s3 avid leadership as well.

    me too, and I also have a S3. !

  • I used up to the allocation for the region 1 & 2 DVD for help. stuck on region 1 now. I need to use the two regions for my DVD. Help, please. Beryl

    I used up to the allocation for the region 1 & 2 DVD for help. Stuck on region 1 now.  I need to use the two regions for my DVD. Help, please. Beryl.

    It isn't a MS solution, there are solutions to third parties not supported by MS

  • pass the binding variable to the af:table using the menu drop-down

    I need to create an af:table to pull all employees belonging to a Department. I created the table based on a viewobject.

    The query in the view object has a variabe bind, for example:

    Select * from employee where deptname to (select deptname of Department where deptid =: deptid)

    My question is how to get the deptid selected in a drop-down list value passed to the query of the table of the adf?

    The user, what version jdev you use?

    Where is the location THAT LOV located on the page? Once you have the service ID, you can use the executeWithParams to run the query and display the result in the table.

    If this isn't what you want to elaborate on the use case.

    Timo

Maybe you are looking for

  • I need to recover the password for AOL from my iPhone 6

    I need to enter the password for my AOL on my Mac account. The password works on my iPhone6. How can I get to use on my MAC? At the moment, I can only access my email via my phone.

  • Well, he started...

    Rampant speculation of course. http://www.droid-life.com/2013/02/24/original-droid-RAZR-and-Razr-Maxx-jelly-bean-soak-test-about-to-go-down/ Why? What did you think I was talking?... It is a debate when the real General update of Jelly bean will begi

  • Mouse SideWinder 3 failure

    I have a usb sidewinder gaming mouse, left-sife canned button power off.  Is it a design/hardware problem that I reinstalled the drivers/software, nothing and I noticed this problem on other forums.  Can it be fixed or guess who will never buy again

  • Pavilion 15p142n: how to decrease the memory assigned material

    We (my wife and I) also have two laptops same. Pavilion 15-p142n, AMD - A10, 12 GB of Ram and separate video card (no video memory on Board / shared?). One of the portable is slower than the other and after inspection, I think I found the problem. 8

  • Error Code 80072f8f: windows update fails. Outlook2010 auto config account Exchange 2013 fails 'no available encrypted connection '.

    The user's mobile final has all of a sudden a problem. Windows 7 Pro. Disconnects account Exchange 2013 in Outlook2010 cannot connect...... .. Windows Update fails with error Code 80072f8f... A cert security problem? ---- The user did issue out-of-th