Building Cascading Lists for Query Screens with ADF Business Components.
I build Cascading Lists for Query Screens with ADF Business Components. When I to select master list first working fine, but when I to select master list second returned error : JBO 25013 : Too many objects match the primary key oracle.jbo.key[CN]. CN dependences with key to detail list (Countries in this case). Please help me.
Andrew.
You would have a better chance, that someone answers your question, if you choose the right forum:
JDeveloper and ADF
Similar Messages
-
Building Cascading Lists for Query Screens
hi all:
i tries to follow the tutorial for Building Cascading Lists for Query Screens, but i get the following error:
oracle.jbo.InvalidOperException: JBO-25063: ?? ???? ?????? ?????? getCurrentRowSlot ??? ???? ?????? ????? ??? ??????. at oracle.jbo.common.ws.WSObject.invalidOperation(WSObject.java:49) at oracle.jbo.common.ws.WSRowSetIteratorBase.getCurrentRowSlot(WSRowSetIteratorBase.java:500) at oracle.adf.model.binding.DCIteratorBinding.internalGetCurrentRowInBinding(DCIteratorBinding.java:1628) at oracle.adf.model.binding.DCIteratorBinding.getCurrentRow(DCIteratorBinding.java:1605) at oracle.jbo.uicli.binding.JUCtrlListBinding.getSelectedIndex(JUCtrlListBinding.java:516) at oracle.jbo.uicli.binding.JUCtrlListBinding.toString(JUCtrlListBinding.java:933) at org.apache.commons.beanutils.BeanUtils.getArrayProperty(BeanUtils.java:558) at org.apache.struts.taglib.html.SelectTag.calculateMatchValues(SelectTag.java:309) at org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:244) at gonow.jspService(gonow.jsp:12) [gonow.jsp] at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:57) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)You would have a better chance, that someone answers your question, if you choose the right forum:
JDeveloper and ADF -
Building Cascading Lists for Query with ADF Business components and JSP
I build Cascading Lists for Query Screens with ADF Business Components. When I to select master list first Ok, but when I to select master list second returned error : JBO 25013 : Too many objects match the primary key oracle.jbo.key[CN]. CN dependences with key to detail list (Countries in this case). Please help me.
Excuse me for my English.
Andrew.You would have a better chance, that someone answers your question, if you choose the right forum:
JDeveloper and ADF -
How to Develop with ADF Business Components for Multiple Databases
Hi,
I developed business component by http://www.oracle.com/technetwork/developer-tools/jdev/multidatabaseapp-085183.html tutorial. it was work on mysql and oracle database. In mysql , Set Up Primary Key Generation is only one sequence share betweeen tables. How to make another sequence each mysql table?juddi,
As that article states, the built-in capability of ADF BC uses that single table for all entities (tables) - since it's just a surrogate key, it should not matter. If you wanted different sequences for different entities (tables), that is something you'd have to code for yourself.
Best,
John -
Concurrence with ADF business components
I need know, how do I do the concurrence control (connection of several users ) on business components
Hi,
concurrency is handled internally within ADF BC. Each user will have their own instances of Application Modules which represent a transaction and implicitly handle row locking and state management.
Brenden -
Refresh ADF Business Components
I create view(ADF business components) with my sql statiment
select e.*,d.* from scott.emp e, scott.dept d where e.deptno=d.deptno
on my first page JSP I drop ReadOnly table
on my second page JSP i drop InputForm for edit.
and so
I run my project, on first page have the button "Edit" which is bound my JSF Navigation Case with second page.
I try edit emp.DeptNo and commit change. When I back on first page i see that emp.DEPTNO changed but dept.DNAME not changed.
How I can refresh my first page that see all changed?Hi Frank!
I use JDeveloper 10.1.3 EA1.
I Create Application through Application Template (Web application [Default] -
This application template is configured for building a data-bound web application. It consists of one project for the view components (JSF, JSP) and controller (JSF), and another project for the data model (ADF Business Components))
I create page through faces-config.xml.
I create JSPX page. Then I Drag and Drop my VO from Data control palette.
My CommandButton from ADF Faces core from Component palette. -
Modifying SQL used by ADF Business components
How can we modify the query used by ADF Business components that are generated from database tables by dnd in JDeveloper?
I would like to change the where clause at runtime based on some configuration that can be changed while application is up and running. Can I just over ride the getWhereClause of the ViewObjetcImpl for that?
-
How to add drop down list for query manager report in sap business one
Hi Every one,
I need drop down list for parameter selection in sap business one Query Manager.I have two Parameters 'Sales Order','Invoice'.
Please suggest.
Thanks and Regards
DEVHi,
you need to use this :
/*select from [dbo].[OINV] T2*/
DECLARE @Invoice varchar(100)
/*where*/
set @Invoice =/* T2.DocNum */N'[%2]'
you can change the tables and the parameter number but you have to write it exactly that way.
when you run the query within the SBO you will get list of objects ( in this case list of invoices)
hope it was helpful
Shachar -
I shut of my Ipad and now i have a black screen with the "busy wheel" spinning on a black screen for 4 hours! Can't shut it off, can't turn it on!!! Is there a reset button somewhere?
HI,
Reset iPad.
Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appear
See Here:
If iPad won't turn on, or the display stops responding
From Here:
http://www.apple.com/support/ipad/basics/ -
Help required building ADF-Swing/ADF-Faces using ADF Business Components
My question is in regards to how you can go about building a light swing application to an ADF model?
In particular if I were to say that we were developing a 3-tier project whereby we had a database tier, a series of EJB-ADF façade session beans to the database (middle-tier), and a swing client communicating with the session beans (view-controller tier), how would you go about developing these screens?
In particular can we develop these screens using ADF-Faces and also ADF-Swing?
The EJB session façade beans of course are ADF app modules with customised methods. The methods would return back customised DTO objects. These DTO objects are wrappers to row objects ADF would create. This would be mainly due to making these facade beans web service enabled (Oracle state that these methods cannot return oracle.jbo objects if they are to be web service enabled).
This would be typically deployed to an app server, like Oracle App Server 10G.
Could you please have a look at this, as I am doing a lot of research into this.
eg. Taking example from oracle magazine sept/oct 2006
with slight enhancements
package oramag.frameworks.example.common;
import oracle.jbo.ApplicationModule;
import oramag.frameworks.customdto.EmployeeDTO;
public interface HRService extends ApplicationModule {
void deleteCurrentEmpAndCommit();
EmployeeDTO findEmployee(int employeeId); // new method
import oramag.frameworks.customdto.EmployeeDTO;
public class HRServiceImpl extends ApplicationModuleImpl {
public void deleteCurrentEmpAndCommit() {
Row empRow = getEmpView().getCurrentRow();
if (empRow != null) {
empRow.remove();
getDBTransaction().commit();
public EmployeeDTO findEmployee(int employeeId)() {
EmployeeDTO employeeDTO = null;
EmployeesImpl employees = getEmployees();
employees.setNamedWhereClauseParam("EmployeeId", employeeId);
employees.executeQuery();
if(employees.hasNext()) {
EmployeesRowImpl employee = (EmployeesRowImpl)employees.next();
employeeDTO = new EmployeeDTO(employee);
return employeeDTO;
public EmployeesImpl getEmployees() {
return (EmployeesImpl)findViewObject("Employees");
Now given the above code snippet, how could you turn this into an ADF-Swing/ADF Faces application so that if a user using the swing application enters an employee id, then the application will execute the query on the app server, the app server in turn returns the results to the client, and the client finally display the results. Typical MVC example.
Cheers
RodneyThe tutorial is for ADF BC used with JavaServer Faces.
While the tutorial doesn't cover it, we also support drag and drop development for Swing and visual WYSIWYG layout for Swing panels and windows, too. For a very simple example, watch screencast #4 on my blog here:
http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html
One thing I have noticed is that when using ADF business components, when the app module returns a custom DTO object like the above example, it returns the data in a element structure according to the data control palette.
You don't generally ever need to create your own custom DTO's when working with ADF for use by client UI's. The only situation where can be necessary -- until we simplify this in the JDeveloper/ADF 11g release -- is when you desire to expose custom methods that can return sets/arrays of typed row structures through a web service. However, web services are not involved/required in building 3-tier Swing applications.
When dropping onto a page it does so like a string and doesnt give option to display the data in a read only form etc. Is there anything we need to do, to get the functionality.
It's more of what you don't need to do :-)
Just leverage the active data model that the ADF application module provides. You can read more about it in section 4.5 "Understanding the Active Data Model" of the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html). Your UI's bind to view object instances in the data model, and your UI's are automatically kept up to date without needing to write methods that return data. I short article I wrote that preceeded my writing the ADF Developer Guide content on this topis is here:
http://radio.weblogs.com/0118231/stories/2006/01/26/theAdfBusinessComponentsActiveDataModel.html
I know that when dropping a view object you get this functionality. Also was wondering if we were to pass an object of thios type back to the model it might not give us the rich functionality like input forms, like what Oracle provides if we were to drop a enitity view object.
Just use the active data model and everything becomes totally easy, with no changes required to switch between local or three-tier deployment configurations.
Trying to do everything with hand-coded DTO beans is really going the hard way.
Could you help us regarding this? -
ADF Business Components - Cascading Tables
I am using Oracle Jdeveloper 11.1.1.4.0
I have tried an approach to cascade two tables using ADF Business Components.
A single column is declared as Foreign key.
I have used 2 drop downs. During the value change of the first drop down, the values of second sholud be populated from data base.
How to achieve this using cascading tables.
Kindly help.Hi,
For creating cascading(dependent) LOV in adf,list of values in ADF Application using BC4J as model.please follow below links,
https://blogs.oracle.com/aramamoo/entry/how_to_create_multi_level
http://mjabr.wordpress.com/2011/04/01/cascade-list-of-values/
Best Regards
Siva Sankar -
Problem to deploy to a WebService interface for ADF Business Components to Weblogic Server
Hi,
I'm trying to deploy a custom application ,in which i have exposed ADF Business Components through a WebService interface, to a standalone weblogic server.
Application Module is configured with a Service Interface for ordinary ViewObjects.
Now I want to create a EAR file of this application to deploy it on the weblogic server.
But I got an error while deploying it.The error i am getting is shown below.
ERROR: No Java EE modules detected in EAR archive. Deployment aborted. == (oracle.jdevimpl.deploy.ear.WeblogicAssembler)
I have followed the steps mention in the below link :
http://technology.amis.nl/2010/12/29/quickly-creating-reploying-and-testing-a-webservice-interface-for-adf-business-components/
I'm using Jdeveloper 11.1.2.4 on windows.
Please suggest what i could be doing wrong.
Regards,
HimanshuDoes the deployment profile include Java EE modules?
Refer
Java EE Developer: ERROR: No j2ee modules detected in EAR archive. Deployment aborted. == (oracle.jdeveloper.deploy.Veto… -
Hello Everyone,
I would like to have a discussion on the issues, which I am facing at the time of Exporting the Sales Price List and Purchase Price List for the Materials from
SAP Business ByDesign (SAP Cloud).
(1). Sales Price List :
We have maintained Customer Group Specific Sales Price List for the Materials in the following Location.
Location : Product and Service Portfolio Work Center > Pricing > Price Lists > Customer Group Specific Price List (Type of Price List)
Target : We want to export the entire records in some reports or excel sheet.
Records : Number of Materials in the Customer Group Specific Price List is more than 2,00,000
Issues :
(A). In the SAP Business ByDesign Screen we can filter by number of records but we can export till 50,000 records.
And if we are trying to export records more than that limit, then it throws "HTTP 500 Internal Server Error".
(B). We could not find any SAP standard reports in Product and Service Portfolio and/or Business Analytics Work Center
for getting the entire record set of the Sales Price List, so that we can have the entire set of records together.
Searching For :
(A). Is there any SAP reports or data source available for getting the entire Sales Price List records?
(B). Can we have any other filter conditions for exporting the Sales Price List records in a single shot or module wise?
(2). Purchase Price List :
We have maintained the Purchase Price List for the Materials in the following Location.
Location : Product Portfolio Work Center > List Prices > Active List Prices (Type of Price List)
Target : We want to export the entire records in some reports or excel sheet.
Records : Number of Materials in the Purchase Price List is more than 4,00,000.
Issues :
(A). In the SAP Business ByDesign Screen we can not see more than 10,000 records and the actual number of
records are more than 4,00,000. We could able to download the records till 10,000 but that is not sufficient.
We want to export the entire records in an excel sheet.
(B). We could not find any SAP standard reports in Product Portfolio and/or Business Analytics Work Center for
getting the entire record set of the Purchase Price List, so that we can have the entire set of records together.
Searching For :
(A). Is there any SAP reports or data source available for getting the entire Purchase Price List records?
(B). Can we have any other filter conditions for exporting the Purchase Price List records in a single shot or module wise?
Please go through the attached screen shots for the references and more clarity on the issues.
I am waiting for the valuable responses.
Thanks and regards,
Susanta Dey Sarkar
Bangalore, India
19th March, 2015Dear Michael,
The number of records :
2 Million (Approximately) is for the Sales Price List Material Price Data
4 Million (Approximately) is for the Purchase Price List Material Price Data.
Regards,
Susanta Dey Sarkar -
Multiple ADF Business Components projects for one ADF project
I have an ADF project where I have my own ADF Business Components Model, with View Objects, etc. Can I add another ADF Business Components from another project - they access a different database than I do with queries that I could use.
I see two options:
1. rename one of your Model.jpr to somthing else and then try again to add a dependency.
2. create a jar out of the second model project and import the applcation module out of the jar into the other project. To import use file->import and select 'Business Components' from the list. Check tho docs ("Importing Business Components Created by Someone Else") -
ADF Business Components with SQLITE db connection
Dear Experts,
I just started exploring JDev+ADF. I tried to create business components from a SQLITE db connection, but it seems that the Wizard windows stuck at the first steps even though I have successfully tested the SQLITE db connection.
Has anyone tried to create ADF Business Components from sqlite db connection using the wizard windows? Do I have to code this manually?
JDev: 11.1.1.6
JDBC Driver: sqlitejdbc-v056.jar
SQLite: 3.6.0
ThanksSince ADF BC are just java classes and jars - I don't see a reason why not.
But I would be interested to know what specifically are you going to build with velocity.
Maybe you are looking for
-
Installation problem 8.0.5 on RH6.2
I've installed this many times on various Dell machines with no problems, following the guide on jordan.fortwayne.com. However, I am having problems with the latest box from DELL. It's poweredge 2400 with RH6.2. Upon creating database objects, the in
-
Separate amount for each individual customer to valuate quantity
Hi, I have a requirement where the amount to valuate the quantity for each customer can be different. If the customer is generating power, the credit that he gets paid is dependent on the contract price which was agreed at the time of signing up the
-
Essbase 11.1.2 in a distributed environment
Totally Newbie here - I have installed 11.1.2 in a distributed 2008: "Front End Server" and a "Essbase server" Validation tool info: 11.1.2.0.0 drop 26-0 build 5383-on-03/29/2010 04:29 PM OS name: Windows Server 2008 OS version: 6.0 Workspace, Shared
-
Actual line items KSB1 some line items missing
Hello friends i am facing a issue related with transaction code KSB1 , i have posted cost center through FB60 and able to view the same document by fb03 & actual cost document by KSB5 but i am not able to see that item from standard ksb1. when
-
XMLAGG cannot work in PL/SQL in UTL_FILE
I developed a simple xml file generation procedure from my purchase order master and detail tables in my database. query: SELECT XMLELEMENT("OrderMessage", XMLATTRIBUTES('updateorder' as "messageType"), XMLELEMENT("MessageHeader", XMLATTRIBUTES(e.ver