Master detail using using java

Hi ,
I am using jdev 11.1.1 5
My requirement to create master detail using java code.My view don't have view link.How to achive through code

Why cant u use view link..
btw you can see this
http://www.techartifact.com/blogs/2013/08/master-detail-iterations-using-tree-component-by-managed-bean.html

Similar Messages

  • Implmenting Master Detail using dropdown box

    I am getting an exception when using a dropdown box and datatable to implement Master/Detail using the Pointbase db. I followed the directions provided in the tutorial, "Using Databound Components to Access Databases". I also used the code snipets suggested in this section. I have included a copy of the exception handler information.[
    Exception Handler
    Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
    Exception Details: javax.faces.el.EvaluationException
    javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'burgisgallery.Page1'.. class burgisgallery.Page1 : javax.faces.FacesException: java.sql.SQLException: Dynamic parameter markers and Bind variable count mismatch. Number of parameter markers: 1. Number of bind variables: 0.
    Possible Source of Error:
    Class Name: com.sun.faces.el.ValueBindingImpl
    File Name: ValueBindingImpl.java
    Method Name: getValue
    Line Number: 206
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Stack trace:
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206)
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
    com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:389)
    javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1018)
    javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1045)
    javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:742)
    javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:423)
    com.sun.faces.taglib.html_basic.FormTag.doStartTag(FormTag.java:345)
    org.apache.jsp.Page1_jsp._jspx_meth_h_form_0(Page1_jsp.java:151)
    org.apache.jsp.Page1_jsp._jspx_meth_f_view_0(Page1_jsp.java:125)
    org.apache.jsp.Page1_jsp._jspService(Page1_jsp.java:86)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:102)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:282)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
    org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:718)
    org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:478)
    org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:413)
    org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:77)
    org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:92)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:319)
    com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
    java.lang.Thread.run(Thread.java:534)
    Exception Details: javax.faces.FacesException
    javax.faces.FacesException: Can't instantiate class: 'burgisgallery.Page1'.. class burgisgallery.Page1 : javax.faces.FacesException: java.sql.SQLException: Dynamic parameter markers and Bind variable count mismatch. Number of parameter markers: 1. Number of bind variables: 0.
    Possible Source of Error:
    Class Name: com.sun.faces.application.ApplicationAssociate
    File Name: ApplicationAssociate.java
    Method Name: createAndMaybeStoreManagedBeans
    Line Number: 263
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Stack trace:
    com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:263)
    com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:78)
    com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:125)
    com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:146)
    com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
    com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:389)
    javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1018)
    javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1045)
    javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:742)
    javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:423)
    com.sun.faces.taglib.html_basic.FormTag.doStartTag(FormTag.java:345)
    org.apache.jsp.Page1_jsp._jspx_meth_h_form_0(Page1_jsp.java:151)
    org.apache.jsp.Page1_jsp._jspx_meth_f_view_0(Page1_jsp.java:125)
    org.apache.jsp.Page1_jsp._jspService(Page1_jsp.java:86)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:102)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:282)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
    org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:718)
    org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:478)
    org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:413)
    org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:77)
    org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:92)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:319)
    com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
    java.lang.Thread.run(Thread.java:534)
    Exception Details: javax.faces.FacesException
    Can't instantiate class: 'burgisgallery.Page1'.. class burgisgallery.Page1 : javax.faces.FacesException: java.sql.SQLException: Dynamic parameter markers and Bind variable count mismatch. Number of parameter markers: 1. Number of bind variables: 0.
    Possible Source of Error:
    Class Name: com.sun.faces.config.ManagedBeanFactory
    File Name: ManagedBeanFactory.java
    Method Name: newInstance
    Line Number: 210
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Stack trace:
    com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:210)
    com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:253)
    com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:78)
    com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:125)
    com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:146)
    com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
    com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:389)
    javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1018)
    javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1045)
    javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:742)
    javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:423)
    com.sun.faces.taglib.html_basic.FormTag.doStartTag(FormTag.java:345)
    org.apache.jsp.Page1_jsp._jspx_meth_h_form_0(Page1_jsp.java:151)
    org.apache.jsp.Page1_jsp._jspx_meth_f_view_0(Page1_jsp.java:125)
    org.apache.jsp.Page1_jsp._jspService(Page1_jsp.java:86)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:102)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:282)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
    org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:718)
    org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:478)
    org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:413)
    org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:77)
    org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:92)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:319)
    com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
    com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
    org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
    org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
    java.lang.Thread.run(Thread.java:534)
    Exception Details: java.lang.ClassNotFoundException
    class burgisgallery.Page1 : javax.faces.FacesException: java.sql.SQLException: Dynamic parameter markers and Bind variable count mismatch. Number of parameter markers: 1. Number of bind variables: 0.
    Possible Source of Error:
    Class Name: java.beans.Beans
    File Name: Beans.java
    Method Name: instantiate
    Line Number: 208
    Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
    Stack trace:
    java.beans.Beans.instantiate(Beans.java:208)
    java.beans.Beans.instantiate(Beans.java:48)
    com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:204)
    com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:253)
    com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:78)
    com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:125)
    com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:146)
    com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:243)
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:173)
    com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
    com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:389)
    javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1018)
    javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1045)
    javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:742)
    javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:423)
    com.sun.faces.taglib.html_basic.FormTag.doStartTag(FormTag.java:345)
    org.apache.jsp.Page1_jsp._jspx_meth_h_form_0(Page1_jsp.java:151)
    org.apache.jsp.Page1_jsp._jspx_meth_f_view_0(Page1_jsp.java:125)
    org.apache.jsp.Page1_jsp._jspService(Page1_jsp.java:86)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:102)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:282)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
    org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:718)
    org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:478)
    org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:413)
    org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:77)
    org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:92)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:319)
    com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
    com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
    org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
    org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
    org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
    java.security.AccessController.doPrivileged(AccessController.java:-2)
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
    org.apache.catalina.core.StandardWrapperValve.invoke(S

    I have a dropDownBox which has a database table containing artist names attached to it. I accomplished this by dragging the artist table onto the dropDownBox.
    I created a dataTable and dragged the table, Inventory, that contains a list of all the prints for an artist. The primary key for this table is the stock number, The primary key for the artist table is the artist code.
    I would like to be able to select an artist from the dropDownBox and have only the fineart related to that artist displayed in the dataTable.
    I followed the example in the tutorial, but its not working. I noticed that the way the master/detail relationship is done in the Application Model is totally different. I am new to java and web programming, so the way it was done in the application model I don't understand enough to replicate.
    If you look at my original post, I provided the error messages and a copy of my code. This application is a school project which needs to be turned in by Tuesday of this coming week, I would appreciate any help. Thanks.

  • Jdeveloper 11.1.1.2.0 : Master Detail Using Fragment Error

    Hi
    When developing a master detail solution, using a page fragment, I have encountered the following issues. I have followed forum articles and My Support solutions with success. The steps I used to create the solution is as follows;
    1. Create ADF model project with 2 entities sharing a master detail relatiuonship.
    2. Ensure that FK assocation has Behavior property Composition Association checked.
    3. Test application module. Create works on both master and detail tables.
    4. Create ADF view controller project.
    5. Create a new task flow, with page fragments and add page to flow.
    6. Add master detail VO to created page fragment.
    7. Surround tables with Panel Collection components.
    8. Add toolbar and buttons to createinsert into master and detail tables.
    9. Add PPR to both tables for refresh when createinsert actions are performed.
    10. Create test page.
    11. Add task flow as region to page.
    12. Run adfc-config.xml
    13. Click on createinsert of master table. Capture data.
    14. Click on createinsert of detail table.
    15. Error stack is generated, JBO-25030 Detail entity with row key null cannot find or invalidate it's owning entity.
    I then created a JSF page and added the tables directly onto the page. I successfully created a master and a detail record.
    I then checked the Cascade Update Key attributes on the association and added the following code to the master ViewRowImpl class;
    @Override
    public void setNewRowState(byte state) {
    if (state != Row.STATUS_INITIALIZED || getNewRowState() != Row.STATUS_NEW) {
    super.setNewRowState(state);
    I ran the page containing the region and the following error was generated;
    <Utils><buildFacesMessage> ADF: Adding the following JSF error message: Attribute RegionId in Regions is required.
    oracle.jbo.AttrValException: JBO-27014: Attribute RegionId in Regions is required.
    I then changed auto-submit to true for the PK on the master table. This produced no error, however only the master records PK is committed to the database, other attribute values are ignored and the detail record is not committed.
    Regards
    Leon.

    Have you seen this link
    - Juan Camilo

  • File Adapter with Master/Detail Use Case

    Hello,
    We are trying to model an inbound text file interface using the native format wizard to create a schema. The layout of this type of file would be fixed length with a header record followed by detail records like this:
    header1header1header1header1header1
    detail1detail1detail1detail1detail1detail1detail1detail1detail1detail1
    header2header2header2header2header2
    detail2detail2detail2detail2detail2detail2detail2detail2detail2detail2
    We tried everything to get the wizard to layout the fields in each of these formats using the multiple records, multiple types choice and with no success. Has anyone gotten this type of thing to work? The error we're getting is something about the first position of the second record needing to start after the last position of the first record which seems daft because each line is a separate record. There doesn't seem to be any detailed help on this wizard that I can find.
    Thanks.

    Hi,
    Here is an example of a Master/detail XML schema I made. Hope it helps.
    It would be intersting to jnow how people have implemented that.
    <?xml version="1.0" encoding="US-ASCII"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    targetNamespace="http://TargetNamespace.com/File4"
    xmlns:tns="http://TargetNamespace.com/File4"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified" nxsd:encoding="US-ASCII" nxsd:stream="chars" nxsd:version="NXSD">
    <xsd:element name="Root-Element">
    <xsd:complexType>
    <xsd:sequence maxOccurs="unbounded" minOccurs="0">
    <xsd:element name="Data">
    <xsd:complexType>
    <xsd:sequence maxOccurs="unbounded" minOccurs="0">
    <xsd:element ref="tns:Master" minOccurs="0" nxsd:startsWith="MASTER," maxOccurs="unbounded"/>
    <xsd:element ref="tns:Detail" minOccurs="0" nxsd:startsWith="DETAIL," maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <!-- Master -->
    <xsd:element name="Master" type="tns:MasterType"/>
    <xsd:complexType name="MasterType">
    <xsd:sequence>
    <xsd:element name="ID" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="MasterID" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="A1" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="A2" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="A3" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    <!-- Detail -->
    <xsd:element name="Detail" type="tns:DetailType"/>
    <xsd:complexType name="DetailType">
    <xsd:sequence>
    <xsd:element name="ID" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="MasterID" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="B1" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="," nxsd:quotedBy="&quot;">
    </xsd:element>
    <xsd:element name="B2" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>

  • Database Views and Master-Detail using ADF

    How would I create a master-detail form using a database view for the search-able master table and a database view as the detail table?
    The detail-view will need to be update-able (adf-table) using an instead-of trigger to perform the updates to the database table.
    Thanks in advance...

    There are several sections in the ADF Developer's Guide about using views (http://www.oracle.com/technology/documentation/jdev/b25947_01/index.html):
    - 26.4 Basing an Entity Object on a PL/SQL Package API
    - 6.2.4 Creating an Entity Object for a Synonym or View
    You can also try Steve Muench's web log: http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
    There are at least two (old) items there that involve view with instead-off triggers:
    -      Composite Entity Using Stored Procedure API to Create/Modify/Remove Master and Children
    - Entity Object Based on View With Instead Of Triggers Avoiding Returning Into Clause
    Jan Kettenis

  • Fetching NT Authentication details using java

    I am accesing a jsp page of tomcat server in my machine from a browser client in another machine.I have to fetch the OS User name with which the user logged in the client machine using java.I tried using request.getRemoteHost() but it returned null.
    I tried using NTLM .This is the code which i used
    <%@ page language="java" import="java.io.*,java.util.*,java.lang.* " %>
    <%@ page import="org.castor.util.*"%>
    <%
    String auth = request.getHeader("Authorization");
    if (auth == null)
      response.setStatus(response.SC_UNAUTHORIZED);
      response.setHeader("WWW-Authenticate", "NTLM");
      response.flushBuffer();
      return;
    if (auth.startsWith("NTLM "))
      byte[] msg = new sun.misc.BASE64Decoder().decodeBuffer(auth.substring(5));
      int off = 0, length, offset;
      if (msg[8] == 1)
        byte z = 0;
        byte[] msg1 = {(byte)'N', (byte)'T', (byte)'L', (byte)'M', (byte)'S', (byte)'S', (byte)'P', z,(byte)2, z, z, z, z, z, z, z,(byte)40, z, z, z, (byte)1, (byte)130, z, z,z, (byte)2, (byte)2, (byte)2, z, z, z, z, z, z, z, z, z, z, z, z};
        response.setHeader("WWW-Authenticate", "NTLM " + new sun.misc.BASE64Encoder().encodeBuffer(msg1));
        response.sendError(response.SC_UNAUTHORIZED);
        return;
      else if (msg[8] == 3)
        off = 30;
        length = msg[off+17]*256 + msg[off+16];
        offset = msg[off+19]*256 + msg[off+18];
        String remoteHost = new String(msg, offset, length);
        length = msg[off+1]*256 + msg[off];
        offset = msg[off+3]*256 + msg[off+2];
        String domain = new String(msg, offset, length);
        length = msg[off+9]*256 + msg[off+8];
        offset = msg[off+11]*256 + msg[off+10];
        String username = new String(msg, offset, length);
        out.println("Username:"+username+"<BR>");
        out.println("RemoteHost:"+remoteHost+"<BR>");
        out.println("Domain:"+domain+"<BR>");
    %>But it didnt work.Should i configure my environment in any way for NTLM to work?
    Is there anyother way to do this.Any code will be appreciated.
    Thanks,
    Vignesh

    JSP's execute on the server and not on the client machine. So I'm not sure how you exect to get details from the client here. Not to mention that JSP you wrote is pretty nasty IMO.

  • Attach multiple emails to one master email using Java mail API

    Java version: JDK 1.5.0_15
    Hi,
    I am using Java API to send email using our corporate microsoft exchange server. Everything is working fine, now I have a requirement to attach multiple emails to one master email and send.
    Question:
    Using JAVA API is it possible to attach multiple emails to one email?
    Regards,
    Arup

    The beginning of this FAQ entry tells you how to attach one message to another message:
    http://www.oracle.com/technetwork/java/javamail/faq/index.html#forward

  • Retrieve NT Authentication details using java

    Need to get the OS user name and password of the remote client machine from which accesses the server Application in my machine.
    How to do this using java? Is there any java API to get this?
    Also tried the NTLM code but its not working.
    Any code will be appreciated.

    Need to get the OS user name and password of the
    remote client machine from which accesses the
    server Application in my machine.
    How to do this using java? Is there any java API to
    get this?
    Also tried the NTLM code but its not working.
    Any code will be appreciated.Forget it. You can't get the password unless you ask the user for it.
    Kaj

  • Need help in getting MDM relationship details using Java Apis

    Hi,
    Is it possible to search records which are in relationship using Java Apis? Suppose Record A is Parent record and Record B,C,D ... are child records.
    I have to search all the records which are in relationship with record A.
    Can any one send code snippet on this.
    Regards,
    Niraj

    Hi Niraj,
    You can use RetrieveRelationshipsCommand api to get the relationship child of the Anchor Record.
    RetrieveRelationshipsCommand command = new RetrieveRelationshipsCommand(connectionAccesor);
    command.setSession(session);
    command.setAnchorRecord(anchorRecord); / command.setAnchorRecordId(anchorRecordId); (use any of the two statements)
    command.setRelationship(relationshipId); //For child int type is 10, and for Parent_child int type is 5
    command.setMemberResultDefinition(resultDefinition);
    command.execute();
    //Get Member Records' resuld definition
    ResuldDefinition rd = command.getMemberResultDefinition();
    Hope this helps you.

  • How to change the Product master details using BAPI

    Hello Friends,
    I need to change the few fields in product master like Safety Stock Method, Service Level (%) etc,
    can any one tell BAPI or any Function module to change Product Master.
    Thanks in Advance ,
    Ravi

    Hi,
    using this BAPI you can create or change products
    BAPI_PRDSRVAPS_SAVEMULTI2     - Create or Change Products
    Thanks
    sreeni

  • Master-Detail-Detail JSP/BC4J Sync Problem

    Hi everybody,
    im having a strange problem with my MDD schema in my custom BC4J/jsp page,
    I went through all other topics in the forum but couldnt find any analogue to my specific problem,
    Lets call schema as M->D1->D2
    What I need to do is to navigate my cursor on D1 using a rowkey, the problem is when i use <jbo:ROW ... action="find"> using the rowkey sent by DataEditComponent, it seeks the first row in my data source(in sync with Master) instead of seeking the actual row.
    FYI, the problem disappears when I omit the master ViewObject (normal master detail using D1->D2)
    Any comments appreciated (ofcourse ASAP ;))
    Here is the original code:
    <%@ page language="java" errorPage="errorpage.jsp" contentType="text/html;charset=utf-8" import = "oracle.jbo.html.*, oracle.jbo.JboException"%>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <jbo:ApplicationModule id="SalesModule" definition="SalesWeb.SalesModule" releasemode="Stateful" />
    <jbo:DataSource id="dsContact" appid="SalesModule" viewobject="SContactView1" rangesize="10" itermode="LastPagePartial"/>
    <jbo:DataSource id="dsOrder" appid="SalesModule" viewobject="SOrderView2" rangesize="10" itermode="LastPagePartial" />
    <jbo:DataSource id="dsItemList" appid="SalesModule" viewobject="SOrderItemView3" rangesize="10" itermode="LastPagePartial"/>
    <%
    RequestParameters params = HtmlServices.getRequestParameters(pageContext);
    boolean doRedirect=false;
    String PageID=this.getClass().getName();
    String sessJboRowkey=(String)session.getAttribute(PageID+"_jboRowKey");
    String paramJboRowkey=(String)params.getParameter("jboRowKey");
    if(sessJboRowkey!=null && paramJboRowkey==null && (params.getParameter("jboEvent")==null || params.getParameter("jboEvent").toString().compareToIgnoreCase("create")!=0))
    paramJboRowkey=sessJboRowkey;
    else
    if(paramJboRowkey!=null)
    session.setAttribute(PageID+"_jboRowKey",paramJboRowkey);
    String masterRowKey=params.getParameter("masterRowKey");
    if(masterRowKey!=null)
    %>
    <jbo:Row id="currRow" datasource="dsContact" action="find" rowkey="<%=masterRowKey%>" ></jbo:Row>
    <%
    %>
    <jbo:OnEvent name="update" datasource="dsOrder" >
    <jbo:Row id="myrow" datasource="dsOrder" rowkey="<%=paramJboRowkey%>" action="Update" />
    <jbo:Commit appid="SalesModule" />
    </jbo:OnEvent>
    <jbo:OnEvent name="create">
    <% if(paramJboRowkey!=null)
    %>
    <jbo:Row id="newrow" datasource="dsOrder" action="createinrange" ><%
    try
    { %>
    <jbo:SetAttribute dataitem="*" /><%
    } catch (JboException ex)
    newrow.remove();
    throw ex;
    } %>
    </jbo:Row>
    <jbo:Commit appid="SalesModule" />
    <%
    } //end if %>
    </jbo:OnEvent>
    <jbo:OnEvent name="delete">
    <jbo:Row id="delrow" datasource="dsOrder" rowkey="<%=paramJboRowkey%>" action="Delete" />
    <jbo:Commit appid="SalesModule" />
    <%
    doRedirect=true;
    %>
    </jbo:OnEvent>
    <%
    if(doRedirect)
    %>
    <jbo:ReleasePageResources />
    <%
    response.sendRedirect((String)params.getParameter("originURL"));
    %>
    <html>
    <head>
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <LINK REL=STYLESHEET TYPE="text/css" HREF="bc4j.css">
    <TITLE>Edit Order</TITLE>
    </head>
    <body>
    <% if(paramJboRowkey==null)
    %>
    <h3>Edit Order</h3>
    <jbo:DataEdit datasource="dsOrder" enctype="application/x-www-form-urlencoded" targetURL="SOrderView2_Edit.jsp"/>
    Cancel
    <%
    else
    %>
    <h3>Order Details</h3>
    <jbo:Row id="rowCur" datasource="dsOrder" rowkey="<%=paramJboRowkey%>" action="active">
    <table class="clsViewCurrentRecord" cellspacing="2" cellpadding="3" border="0">
    <jbo:AttributeIterate id="def" datasource="dsOrder">
    <tr class="clsTableRow">
    <td title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>"> <jbo:ShowHint hintname="LABEL">##Column</jbo:ShowHint> </td>
    <td title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>"> <jbo:RenderValue datasource="dsOrder">##Cell</jbo:RenderValue> </td>
    </tr>
    </jbo:AttributeIterate>
    </table>
    </jbo:Row>
    <%
    %>
    <br>
    <% if(paramJboRowkey!=null)
    %>
    <center>
    <h3>Order Items</h3>
    <table border="0">
    <tr>
    <td ALIGN="right"><jbo:DataScroller datasource="dsItemList" /></td>
    </tr>
    <tr>
    <td><jbo:DataTable datasource="dsItemList" edittarget="SOrderItemView3_Edit.jsp" /></td>
    </tr>
    </table>
    </center>
    <%
    %>
    <jbo:ReleasePageResources />
    </body>
    </html>

    Hi,
    you can use the column- or alias-name of the first query like:
    <dataQuery>
    <sqlStatement name="Q_MASTER">
    <![CDATA[
    select field1,field2 from master_table
    where field3 = 'ABC'
    ]]>
    </sqlStatement>
    <sqlStatement name="Q_DETAIL">
    <![CDATA[
    select field4,field5 from detail_table
    where field6 = :field2 (where field2 is a column of Q_Master)
    ]]>
    </sqlStatement>
    Pay attention that the column-names (aliases) are distinct
    regards
    Rainer

  • Is this a bug? master rowid value lost when saving on a master/detail form

    master/detail forms seem to lose the rowid after saving, if the unique identifier is set to ROWID
    to reproduce the problem:
    1) create a master detail form on DEPT/EMP
    -- choose 'Managed by Database (ROWID)' on the 'Define Primary Key' page.
    -- do not include master row navigation (but i don't think this matters)
    -- choose 'Edit detail as tabular form on same page' on the 'Choose Layout' page
    -- include the master report
    2) on the master/detail page, change the conditional branch that returns to the master report page
    -- the normal condition for this branch is request in SAVE,DELETE,CREATE
    -- change it to request in DELETE,CREATE
    3) run the form and save a change
    -- saves fine, session shows the ROWID value is still set
    4) save a second change
    -- change does not save, form reverts to Create mode
    this problem does not occur when using the primary key columns instead of rowid
    see http://apex.oracle.com/pls/apex/f?p=60813:7 for the ROWID version
    see http://apex.oracle.com/pls/apex/f?p=60813:11 for the PK column version

    Hi Saverio,
    Bug *13563808* has been logged to track the reported issue, and a fix will be made available in a future release. Just to clarify, this issue is only arising when the APEX-generated Master-Detail is modified post-generation, so for users who have not modified their Master-Details using ROWID to manage their DML processes, they should not experience this issue.
    In relation to my workaround, my suggestion works in my test environment, which I verified before posting the initial suggestion. Please note that the 'Reset Page' process is, by default, conditional on the "Delete" button being pressed. If you have made further modifications to your Master-Detail page, then this might explain why you're seeing different behaviour to me. You might using the "Debug" option on the Developer Toolbar useful. Viewing the debug information should help you to decipher what's going on/wrong on your page. If you still can't resolve the issue, then the safest option might be to revert the page back to it's original state, meaning the user navigates back to the Report page upon submitting changes to the Master-Detail Form page.
    Regards,
    Hilary

  • RFC to get the Vendor Master details

    Hi Experts,
    We have a requirement to create an RFC to get the Vendor Master details (Used for Searching the Suppliers), where the Input criteria : Vendor Name(First Name & Last Name), City, Purchase Organisation and the corresponding output is Address Data, Central Data, Bank Information, Sales Data of Customer. Is there any standard report or function module we can use for this requirement.?
    Thanks & Regards
    -Asim

    Hello,
    You may need to write your own RFC with the interface that you want. If all the input parameters are obligatory then you can use the following logic
    Select the vendor numbers from table LFA1 based on the name and city.
    Us these vendor numbers with the purchase organization from the input parameters and filter them using the table LFM1.
    Now the result will be all vendor numbers with the name specified in the city for the specified purchase organization.
    That may be multiple vendors so run a loop and inside the call the RFC BAPI_VENDOR_GETDETAIL and pass the vendor numbers to get the other details.
    Hope this helps in solving your query.
    Regards,
    Sachin

  • Master Detail Relation

    Can I design Master detail using one block for master and display like 5 records and each of this has 10 detail records. I am not sure if I can achieve this.
    Other scenario is have one master block(5 records) and have 5 detail blocks. Please give any information related

    Husna,
    1. To only show 5 reords in teh master block, just set the display record property to 5 (records displayed). Selecting one of teh master records queries the detail records (as many as there are available)
    2. Master/Detail navigation works only for the current selected master record. i get th eimpression that you want to show all detail records that belong to the five master records currently visible. If this is the case then I would'nt use a master-detail relation in Forms, but read the PK from the block record and set it as the where clause to one of the detail blocks.
    Frank

  • Customer master details

    hello guru's,
                    my requirment is i need to upload Customer Master details using BAPI  in LSMW. can anyone tell me the Business Object Type and Method name ..i know message type and idoc type for Customer Master bt i dont know how to search the Business Object type and Method...

    Hi,
    Object          0050  
    Method          0000
    Program Name    RFBIDE00
    As an alternative to using u2018Transaction Recordingu2019, you could also use a standard SAP object to update Customer Master Records. Business Object u20180050u2019 is already pre-defined in the system with standard Batch Input Interface Program u2018RFBIDE00u2019.
    Create an Object CUST_OBJ within Project as LSMW_DEMO and Subproject as CUSTOMERS as shown in Figure 20.
    Figure 20  LSMW Object with Standard SAP Object
    Note! Only steps that are different from the recording method are listed here.
    Step 1: Maintain Object attributes
    You will be updating the customer master records with the help of Standard Batch Input; therefore, choose radio-button Standard Batch/Direct Input as shown in Figure 21. Enter Object u20180050u2019 for Customer Master records and default method u20180000u2019 and click on Save. 
    Figure 21 Standard Batch/Direct Input Object Attributes
    Step 4: Maintain Structure Relations
    Sales view of Customer Master is stored in table KNVV. Accordingly, you need to update structure BKNVV. However, in addition, the Standard Object u20180050u2019 also requires updates to BGR00, BKN00 and BKNA1 structures. (If you do not maintain Structure relations for mandatory entries, you might get a message such as u2018Target structure BKNA1 needs a relation to a source structureu2019.) 
    Even though you donu2019t want to update any fields in these structures, you need to create a relationship with source structures. In all, you need to create relationship for four target structures. 
    Create relationship between source structures XD02S with these target structures with icon u2018Create Relationshipu2019  . 
    Keep Cursor on these four target structures and click on icon u2018Create Relationu2019 and structure relations are maintained as shown in Figure 22. 
    Figure 22 Structure Relation
    Step 5: Maintain field mapping and conversion rules
    -- Keep your cursor on u2018TCODEu2019 field and click on u2018Insert Ruleu2019 icon 
    Figure 23 LSMW Conversion Rules
    Choose radio button u2018Constantu2019 (Figure 23) to enter value u2018XD02u2019 transaction code.
    -- Keep your cursor on field u2018KUNNRu2019 and click on u2018Assign source fieldu2019 icon 
    Choose source field u2018Customeru2019 from source structure u2018XD02Su2019. (See Figure 24.)
    Figure 24 Assign Source fields
    -- Similarly, choose source fields for Sales Organization, Distribution Channel, and Division. (See Figure 25.)
    Figure 25 Field Mapping and Conversion Rules
    -- Scroll down to structure BKNVV fields and assign source fields to three fields Sales Office, Sales Group, and Customer Group (Figure 26).
    Figure 26 Field Mapping and Conversion Rules
    Save and go back to main screen.
    Step 12: Display Converted data
    When you convert data, LSMW automatically converts into the appropriate structure layouts, as required by Standard program (RFBIDE00). (See Figure 27).
    Figure 27 Converted data into multiple structures
    Note that if you had only one record in source file, the converted file has four records.
    Earlier, creating this input file, so that the standard interface program can read it, was a big nightmare, the primary reason being that it could have multiple record layouts. Even for a simple conversion with one input record, you would have to create this complex file with many record layouts. The advantage of LSMW is that it prepares these multi-layout files automatically.
    Step 13: Create batch input session
    Once source data is converted in internal format, you can create a BDC session to process the updates (Figures 28 and 29). 
    Figure 28 Create BDC Session
    Figure 29 BDC Session u2018CUST_OBJu2019 created.

Maybe you are looking for