Inserted rows not distributed to all GUI components
Hi there,
I have two RowSetInfo objects 'rsi1,rsi2' pointing to the same ViewObject 'vo' under one SessionInfo object 'si'. If I add new row to rsi1 it gets displayed in one GridControl that uses rsi1 but I can't see the new row in other GridControl using rsi2. Both of them reflect deleting or updating rows but not inserting. What am I doing wrong ?
Please advise, thanx in advance.
We use JDeveleper 3.2.2 Build 915.
Here is an example of the situation.
Suppose that I correctly fill the new row in entity's create method( not shown ).
package package1;
import javax.swing.*;
import java.awt.*;
import oracle.dacf.dataset.*;
import oracle.dacf.control.swing.*;
import oracle.dacf.dataset.connections.*;
import java.awt.event.*;
import oracle.jbo.*;
import javax.infobus.*;
public class Frame1 extends JFrame {
BorderLayout borderLayout1 = new BorderLayout();
JPanel jPanel1 = new JPanel();
GridControl gridControl1 = new GridControl();
SessionInfo sessionInfo1 = new SessionInfo();
RowSetInfo rowSetInfo1 = new RowSetInfo();
AttributeInfo DeptnorowSetInfo1 = new AttributeInfo(java.sql.Types.NUMERIC);
AttributeInfo DnamerowSetInfo1 = new AttributeInfo(java.sql.Types.VARCHAR);
AttributeInfo LocrowSetInfo1 = new AttributeInfo(java.sql.Types.VARCHAR);
GridControl gridControl2 = new GridControl();
RowSetInfo rowSetInfo2 = new RowSetInfo();
AttributeInfo DeptnorowSetInfo2 = new AttributeInfo(java.sql.Types.NUMERIC);
AttributeInfo DnamerowSetInfo2 = new AttributeInfo(java.sql.Types.VARCHAR);
AttributeInfo LocrowSetInfo2 = new AttributeInfo(java.sql.Types.VARCHAR);
JButton jButton1 = new JButton();
public Frame1() {
super();
try {
jbInit();
sessionInfo1.publishSession();
catch (Exception e) {
e.printStackTrace();
private void jbInit() throws Exception {
LocrowSetInfo2.setName("Loc");
DnamerowSetInfo2.setName("Dname");
DeptnorowSetInfo2.setName("Deptno");
rowSetInfo2.setAttributeInfo( new AttributeInfo[] {
DeptnorowSetInfo2,
DnamerowSetInfo2,
LocrowSetInfo2} );
LocrowSetInfo1.setName("Loc");
gridControl2.setDataItemName("infobus:/oracle/sessionInfo1/rowSetInfo2");
rowSetInfo2.setQueryInfo(new QueryViewInfo(
"DeptView",
rowSetInfo2.setSession(sessionInfo1);
rowSetInfo2.setName("rowSetInfo2");
jButton1.setText("jButton1");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
jButton1_actionPerformed(e);
DnamerowSetInfo1.setName("Dname");
DeptnorowSetInfo1.setName("Deptno");
rowSetInfo1.setAttributeInfo( new AttributeInfo[] {
DeptnorowSetInfo1,
DnamerowSetInfo1,
LocrowSetInfo1} );
this.getContentPane().setLayout(borderLayout1);
this.setSize(new Dimension(543, 500));
gridControl1.setDataItemName("infobus:/oracle/sessionInfo1/rowSetInfo1");
sessionInfo1.setAppModuleInfo(new ModuleInfo("package1", "Package1Module"));
sessionInfo1.setConnectionInfo(new LocalConnection("PRGORA_JDBC"));
sessionInfo1.setName("sessionInfo1");
rowSetInfo1.setQueryInfo(new QueryViewInfo(
"DeptView",
rowSetInfo1.setSession(sessionInfo1);
rowSetInfo1.setName("rowSetInfo1");
this.getContentPane().add(jPanel1, BorderLayout.CENTER);
jPanel1.add(gridControl1, null);
jPanel1.add(gridControl2, null);
jPanel1.add(jButton1, null);
sessionInfo1.publishSession();
public static void main(String[] args){
Frame1 f = new Frame1();
f.pack();
f.setVisible(true);
f.addWindowListener( new WindowAdapter() {
public void windowClosed(WindowEvent e) {
System.exit(0);
void jButton1_actionPerformed(ActionEvent e) {
ScrollableRowsetAccess ra = rowSetInfo1.getRowsetAccess();
try {
ra.newRow();
catch ( Exception ex ) {
System.out.println(ex.getMessage());
null
Similar Messages
-
Front Row not functioning at all
I can't get Front Row to launch at all. I just got my machine back after having the motherboard replaced and everything seems to work except Front Row won't launch. Not with the remote, which works otherwise, nor using Command + Esc.
Help.Why would it leave this file out when installing new system and how do I replace it without reinstalling?
Front Row, for now, isn't specifically included in a Mac OS X install. You need to install it after installing Mac OS X. You can put your OS X install disk in and double-click on the "Install Bundled Software" icon. On the "Installation Type" screen, there a button to "Customize" the install. Then you can be sure to check on "Front Row". There might be some of the other software, like the iLife suite, you could install from there as well. Be sure to run the Software Update afterwards to make sure you're up-to-date.
-Doug -
Why are inserted rows not shown in order?
Hi y'all,
I'm doing some experimenting. I've set up a table with 3 columns: decimal digit, binary digit, and the difference in length between the former two. Then I wrote a small anonymous PL/SQL block with a single FOR loop. It takes in cycles every integer between 1 and 10000, and computes its binary value, the length difference, and then inserts the three (dec_num, bin_num, diff) into the table. However, the records are not in order! The first row after the run is number 1298! The number 1 is computed in the row number 303.
When I change the code to only compute the numbers from 1 to 1000, everything is okay, but when I increase the upper border back to 10000, this weird ordering takes place. I understand there's some optimization and paralelism going on. But how do I steer it? It's really bothersome... TIA.
code snippet:
for dec_num in 1..10000 LOOP
bin_num := dec2bin(dec_num);
diff := length(bin_num) - length(to_char(dec_num));
insert into correlation values (dec_num, bin_num, diff);
end loop;Hello, thanks for the prompt answers, I don't request returning the rows in order, but would welcome having them inserted in order, in the first place! :) Of course, when I use ORDER BY to view the results, all is well. Is it really the only way?
Edited by: user5539369 on Nov 12, 2009 12:57 PM -
Rows not distributed evenly across processors
Values from execution plan:
thread 1 - 78 million rows
thread 2 - 756,000 rows
thread 3 - 836,000
thread 4 - 731,000
thread 5 - 182,000
thread 6 - 158,000
thread 7 - 193,000
thread 8 - 301,000
Is there a trick to evenly distributing the rows across the threads? I feel this might decrease the query execution time.It's hard to tell without knowing the query, data and schema if you can easily improve the distribution of data.
Up to date stats are a primer. But then if your data is very unevenly distributed, this may be hard to tune although not impossible.
I presume you are running with MaxDop 8 - did you test and prove this is the best configuration? If not, depending on your Processor architecture you may want to try or 4 as well. - Not so much for distribution but performance itself.
Andreas Wolter (Blog |
Twitter)
MCM - Microsoft Certified Master SQL Server 2008
MCSM - Microsoft Certified Solutions Master Data Platform, SQL Server 2012
www.andreas-wolter.com |
www.SarpedonQualityLab.com -
I have a new iMac, CS5.1 will not open, says all the components are not there, can you help?
We need the exact error message, info on how you installed it, exact system specs etc..
Mylenium -
Step progression not inserting row in Jobdata panel
I am trying to research step progression in Peoplesoft 9 & did all the setup.I can see the employee in review wage progression page with Approved status.As the final step, i ran HR_WP_ADV App Engine. .But is not inserting row into jobdata & giving error "Cannot Job data CI for employee 'emplid' ".
Any help please!!
ThanksThanks for the reply.
The Project was in version 11.1.3 before I migrated. I had the issue above so I migrated to 11.1.1.4 then to 11.1.1.5 then to the New GREAT 11.1.2 to go by the matrix of support The issue is still there.
Basic Page layout:
SEARCH-MASTER-PANELTABBED LAYOUT (Hold all the CHILDREN RECORDS)
PANEL TAB is made of ; SHOW DETAIL ITEM- PANEL COLLECTION- TABLE.
the panel collection has a toolbar with 2 buttons in it.
My issue varies:
Hit create insert==> record count goes up one but the table does not render (it goes all blank even if records existed in it)
Hit undo budo ==>table still not rendering. (click next on master record then click previous to come back, the table renders correctly.)
other tables do the following:
Hit Create insert == > table shows normally and I can enter new record.
Hit undo ==> table count goes down but table does not render at all anymore.
for this issue i noticed if i set cache results to false the table works after hitting undo
IF I CREATE A NEW SHOW DETAIL ITEM and put exactly what the other tabs have in them and use the same layouts and buttons the new table works great!!!!!!!!!!!!???????????????????? WTF?!?!?!?!
NO ERROR MESSAGES even at finest level are thrown.
I HAD NO ISSUES IN THE PREVIOUS VERSIONS OF JDEV IS THIS A JSF 2.0 BUG????
BY THE WAY JDEV 11.1.2 sometimes CRASHES or Hangs when viewing the Binding of Page when you click on Binding straight from the Design view. I have to open the Binding Page separate to view it. FYI
Edited by: Nottallah on Jul 11, 2011 9:48 AM
Edited by: Nottallah on Jul 11, 2011 9:51 AM -
Netweaver Error in Logs - JRA - Could Not Insert Row To ResultSet
Hi there
we have an MII 12.1.5 instance (with Patch) installed on a Netweaver platform (SP 3). We're using the JRA action blocks to call an RFC (we populate the request doc with multiple nodes first) and they're all executing completely without any problems at face value. When I look at the Netweaver logs (MII filter on), I'm getting quite a few entries per transaction run which hold the following Error Messages:
Message:
Could Not Insert Row To ResultSet
Category:
/Applications/XMII/Xacute
or
com.sap.xmii.storage.connections.JRAUtil
Location:
com.sap.xmii.storage.connections.JRAUtil
Application:
sap.com/xappsxmiiear
Has anyone seen these errors or know what could be causing them?
Thanks,
LawrenceHi.
This is a known issue and have been there in some versions, the JRA action block seems to be working (but causes this problem in the Netweaver log) and the JCO action block do not have this problem.
I have just reported as an OSS to SAP.
BR
Poul.
Edited by: Poul Klemmensen on Apr 12, 2010 4:57 PM -
GUI components not clearing from JDialog closing
Greetings,
I have developed an application which works on several different computers with several different JVMs, but which does not operate as anticipated on my (new) tablet PC. It leaves GUI components on the main JFrame from various Jdialog boxes (after closing them) that I throw at the user when the program starts.
I also have a username/password prompt at the beginning which is another JFrame that doesn't appear correctly. The input areas do not appear with a white background and the Username and Password JLabels have echoed themselves into that area.
I'm guessing this is Windows XP, Tablet Edition issue. I'd like to know if anyone else has experienced anything similar?
FYI, this programs works quite well on Windows 98, Windows XP Home and Professtional, Windows 2000, and Windows ME.
Any help would be most appreciated.
RegardsHi all,
I am trying to develop a Java application on the Tablet PC. I am new to this platform and could not find much information about Java related Tablet PC development .So I am posting this question here
Details
I have developed a Swing Application in Java (J2SDK 1.4.2) for a Client, which currently runs on Windows XP on the Standard Laptop. The application uses the following
1) Menus
2) Panels
3) Dialogs
It consists of an entry form, which is saved as an XML file on the user's computer. Also it uses an Access Database.
The other thing that the application uses is a Signature Capture Device to capture a user's signature
I would like to move this application to the Tablet PC.
I have the following questions
1) What SDK do I use for the Tablet PC? Also what version of Java web start and Run time?
2) What kind of changes do I need to make in my application?
3) Can I make use of the "Ink" feature, which is provided with a Tablet PC in Java?
4) Where can I find user samples if any for Java Tablet PC development?
BTW I am using Toshiba Prot�g� 3500 for my project.
Thanks,
Raja -
InsertRow does not show the inserted row on the view
hello:
The code below works well and shows the row on the view when added. However, when there are several existing rows and I have to scroll to next pages. an insert button on that page does not show the new Row at all. Is there a way for me to see the row even if I scroll over to the last page and try an insert?
ViewObject myVO = this.getMyView();
Row newRow = myVO.createRow();
newRow.setAttribute("Id", myId);
myO.insertRow(newRow);
ThanksHi,
I also have problems with code above for inserting a new row.
When I insert a new row in a table and click on column header (to change sorting), that row (and any other new row before committing) disappears from table. And if I commit that table (without missing row), the missing row reappears with next refresh.
Selection in that table (using SelectOne component with Autosubmit=true) also doesn't work with new rows (with existing rows it works fine). Selection allways sticks on first inserted row!
Something weird is happening here...
Please help. -
Not able to insert row programticaly
hi am trying to insert row to another viewObject from another viewobject programaticaly ,can somebody help me,i have recreate the problem i upload it in hostfile,am in jdeveloper 11.1.1.6.0
am geting this log error
Caused by: oracle.jbo.InvalidOwnerException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25030. Error message parameters are {0=UamUserdetails, 1=oracle.jbo.Key[marksn ]}
at oracle.jbo.server.EntityImpl.internalCreate(EntityImpl.java:1341)
at oracle.jbo.server.EntityImpl.create(EntityImpl.java:1020)
at oracle.jbo.server.EntityImpl.callCreate(EntityImpl.java:1197)
at oracle.jbo.server.ViewRowStorage.create(ViewRowStorage.java:1152)
at oracle.jbo.server.ViewRowImpl.create(ViewRowImpl.java:498)
at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:515)
at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:5714)
at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1993)
at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2492)
at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2533)
at oracle.jbo.server.ViewRowSetImpl.createAndInitRow(ViewRowSetImpl.java:2498)
at oracle.jbo.server.ViewObjectImpl.createAndInitRow(ViewObjectImpl.java:11042)
at worklis.view.beantest.addnew(beantest.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(Unknown Source)
at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at org.apache.myfaces.trinidad.component.UIXCollection.broadcast(UIXCollection.java:148)
at org.apache.myfaces.trinidad.component.UIXTable.broadcast(UIXTable.java:279)
at oracle.adf.view.rich.component.UIXTable.broadcast(UIXTable.java:145)
at oracle.adf.view.rich.component.rich.data.RichTable.broadcast(RichTable.java:402)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)Edited by: adf009 on 2013/02/15 4:43 PM
Edited by: adf009 on 2013/02/15 4:57 PM
Edited by: adf009 on 2013/02/15 7:22 PMthe code am using is below
public void addnew(ActionEvent actionEvent) {
// Add event code here...
// Add event code here...
//Code to get the bindings for TargetVO :
Map<Object,String> mp=new HashMap<Object, String>();
DCBindingContainer bindings2 =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
JUCtrlHierBinding obj = (JUCtrlHierBinding)bindings2.findCtrlBinding("UamUserdetailsView2");
ViewObject targetVO = obj.getViewObject();
DCBindingContainer bindings =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding empIter =
bindings.findIteratorBinding("DeltTable1Iterator");
//SourceVO1Iterator is the iterator under Executables section for the SourceVO1 bindings.
RowSetIterator roleRSIters = empIter.getRowSetIterator();
RowSetIterator rs1 = roleRSIters.getRowSet().getViewObject().createRowSetIterator(null);
rs1.first();
NameValuePairs nvp = null;
String username = null;
while (rs1.hasNext()) {
Row r = rs1.next();
nvp = new NameValuePairs();
// nvp.setAttribute("organisationid", r.getAttribute("organisationid"));
nvp.setAttribute("Organisationid", getorgid());
System.out.println("printedorgid" +getorgid());
nvp.setAttribute("Username",r.getAttribute("Username"));
nvp.setAttribute("Username1",r.getAttribute("Username"));
nvp.setAttribute("Firstname",r.getAttribute("Firstname"));
nvp.setAttribute("Surname",r.getAttribute("Surname"));
nvp.setAttribute("Emailaddress",r.getAttribute("Emailaddress"));
// username = (String)r.getAttribute("Username");
System.out.println("prininstead " + nvp);
// targetVO.createAndInitRow(nvp);
r = targetVO.createAndInitRow(nvp);
targetVO.insertRow(r);
//createAndInitRow(AttributeList nvp);
//Row row = targetVO.createAndInitRow(nvp);
// targetVO.insertRow(row);
rs1.closeRowSetIterator();
targetVO.getApplicationModule().getTransaction().commit();
}i have re-created the problem i upload in this hostfile,you can have the whole picture of what am trying to do
http://www.4shared.com/zip/RaZ07PWS/createRow.html
Edited by: adf009 on 2013/02/15 7:36 PM
Edited by: adf009 on 2013/02/15 7:38 PM
Edited by: adf009 on 2013/02/15 8:01 PM -
App-v packages not getting distributed with all files to DP's
Hi ,
I am migrating appv 4.6 packages from standalone to sccm 2012 , using application model in sccm,
all seems to be fine , but sccm is not distributing the folders,vbscripts, etc except osd,xml,sft,sprj.. to DP
what is the issue any resolution for this.
app has lot of dependency on vbscripts to run.
screenshot for reference.That's most likely fine because ConfigMgr stores the content in the contentlib. Also see that all files have the .INI extension. You can use Content Library Explorer (part of the R2 toolkit) to examine the package.
Torsten Meringer | http://www.mssccmfaq.de -
I have recently purchased Toshiba 1TB hard drive and I set it up and I was able to transfer all my files onto it such as my music, photos, documents. I had correctly ejected and used it again and all these files were safely stored and accessible afterwards. However after I rebooted my computer as it had been going slow and I had too much clogging it up once I reconnected the external hard drive I have error message saying 'The disk you inserted was not readable by this computer' Three options are Initialize, Ignore or Eject. How do I access all my files? I set it up to work on both mac and windows. I have tried both another mac and windows computer and same issue occurs?? I am worried that all my personal files are gone but am confused as the drive has had absolutely no damage to it as it was in a very short time frame and its never left the same spot. Any help would be greatly appreciated. Thanks
Thanks for your quick response. I had a look at your discussion... I tried it on a Windows machine and I thought that was compatible with ExFAT?
Therefore I need to attempt to use my external hard drive with a machine that boasts OS X 10.6.5 or above and then it should work?
Thanks -
ADF Table sorting not working for newly inserted rows
Hi,
I am using Oracle Jdeveloper 11.1.1.6.2
I am trying to sort the table after inserting the mew rows using ADF Table UI sort option, But the newly inserted rows are not getting sorted.
The code i am using to add a row is:
ComplianceLibraryAMImpl am = getDataControl();
EmKeywordVOImpl rep = am.getEmKeywordVO1();
NameValuePairs nvp = new NameValuePairs();
nvp.setAttribute("KeywordName", keyword);
Row row1 = rep.createAndInitRow(nvp);
rep.insertRow(row1);After this addition we are doing ppr on the table and then trying to sort using sort icon in table.
But the newly added rows are not taking part in sort.
What am i missing?
Thanks,
TripureshThis is the expected behavior. Check bug 9109010 - newly added and unsaved rows don't participate in sorting as per design. Try saving the rows and then sorting.
Regards,
Aditya -
Gets a created but not inserted row passivated?
Hi,
I'm facing a problem concerning that a VO looses its created but not inserted row after passivateState --> activateState.
The result is that the VO has another row a current row after activateState.
Any comments?
Is there a solution? Implement passivateState() and activateState() for that VO Class?
Configuation problem?
Thanks,
MarkusHi Steve,
sorry, I tried, but I can' t reproduce the problem with a sample application. This means that a created (yes, build-in operation) but not inserted row gets passivated and activated!
There is something fishy with my application because I can't set the state token validation to false. When it is set to false than the new row don't get passivated and activated. :-(
Thanks,
Markus -
Query the new inserted but not committed row join with db
Hi,
I have one vo based on two EOs, one is for update and another is for reference. When inserting a new row, is there any way I can retrieve the data from the reference EM based on the join condition for the new inserted row from the reference EO. If the inserted row is committed, it is not an issue. Before the commit, the join is between the memory and db. I tried to set the VO query mode to
ViewObject.QUERY_MODE_SCAN_ENTITY_ROWS|ViewObject.QUERY_MODE_SCAN_UNPOSTED_ENTITY_ROW, it does not get the column values from the reference EO.
If I use sql, I insert row in one table, then join query this table and another table, within the same transaction, I can get the new row joining with other table rows before committing the trans.
Thx
HuI think you don't need to change the query execution mode
check [url http://blogs.oracle.com/shay/entry/whenvalidateitem_trigger_in_ad]When-Validate-Item trigger in ADF with PPR
Maybe you are looking for
-
Cisco asa 5505 issues ( ROUTING AND PAT)
I have some issues with my cisco asa 5505 config. Please see details below: NETWORK SETUP: gateway( 192.168.223.191) - cisco asa 5505 ( outside - 192.168.223.200 , inside - 192.168.2.253, DMZ - 172.16.3.253 ) - ISSUES: 1) no route from DMZ to outs
-
Photoshop CS4 inexplicably goes dark when I am working on a file doing basic PS work after about 8-10 minutes. (Using lasso tool to delete areas, using pen tool to draw, etc.) No warning, it just goes dark and shuts down my whole system without a sou
-
CF/Flex3 and session management
Does anyone know how to manage user access to CF components so that a person must be authenticated before running the CFComponent? Otherwise, if I set access to a CF Component to "remote" anyone can call it without authentication. Thanks!
-
So I accidentaly messed up my files, and the greek passcode won't register on Itunes like the numerical passcode did. How am I to get into my phone thru itunes? Is there a way for me to take the greek from a website and copy and paste into the passco
-
Is OSX 10.6.8 compatible with FCP 7 and the Matrox MXO2 LE
Running a Mac Pro 8 Core/xeon 2.66, 12 GB Ram...with Snow Leopard OS X 10.6.7...the Matrox MXO2 LE and Final Cut Studio 3/FCP 7. No problems. I'm wondering about the new OSX 10.6.8 update. Any issues with compatibility?