Selection color not working with table that has DefaultTableModel
hi folks,
I noticed if a table has a AbstractTableModel, when you select a row, by default the highlight color is light blue. However, if a table has a DefaultTableModel, even if you invoke table.setSelectionBackgroun(color) and table.setSelectionForefround(color), the highlight color stays invisible. is this a bug? what's the cause of this problem?
thanks!!
Read this section from the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#renderer]Using Table Renderers. Here is a simple example to get you started
class SimpleRenderer extends DefaultTableCellRenderer
public Component getTableCellRendererComponent(
JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
if (hasFocus)
setBackground( Color.cyan );
else if (isSelected)
setBackground( table.getSelectionBackground() );
else
setBackground( table.getBackground() );
return this;
}
Similar Messages
-
Layout adjustment not working with tables
Hi all
Why will layout adjustment not work with tables?
I am trying to re-format from A4 landscape to A4 portrait.
The text box containing the table will resize but not the table.
Any clues why this might be, I don't want to manually resize every table in the document.
Many thanks,
RobThanks Jongware,
Having resized the table and got the little red ovals, I tried various things like changing the font size etc but the best workaround I found was to select the table and change the cell inset value to 0, this got rid of all red ovals and I didn't need to change the font size.
Cheers,
Rob -
Oracle equals_path condition NOT working with table and materialized view
The user i am using is xdb with dba role.
1.When i try to use the statement
SELECT PATH FROM xdb.path_VIEW
WHERE
EQUALS_PATH(res, '/home/OE/PurchaseOrders/2002')=1
the result is
/home/OE/PurchaseOrders/2002
2. When i drop the path_view and recreated it like materialized view with statement
create MATERIALIZED view path_view as
select /*+ ORDERED */ t2.path path, t.res res,
xmltype.createxml(xdb.xdb_link_type(NULL, r2.xmldata.dispname, t.name,
h.name, h.flags, h.parent_oid, h.child_oid),
'http://xmlns.oracle.com/xdb/XDBStandard.xsd', 'LINK') link,
t.resid
from ( select xdb.all_path(9999) paths, value(p) res, p.sys_nc_oid$ resid,
p.xmldata.dispname name
from xdb.xdb$resource p
where xdb.under_path(value(p), '/', 9999)=1 ) t,
TABLE( cast (t.paths as xdb.path_array) ) t2,
xdb.xdb$h_link h, xdb.xdb$resource r2
where t2.parent_oid = h.parent_oid and t2.childname = h.name and
t2.parent_oid = r2.sys_nc_oid$
then the equals_path condition STOP working !!!
3. The same experiment, but i recreate it like table
create table path_view as .... using the rest of the statement ...
Can someone help me to understand why equals_path is NOT working on table and materialized view !Thanks Jonah. I was under the impression that I already had it but seems like it has to be a direct priv - thru a role doesn't work.
I granted the reqd privs and then it worked fine. Thx for your help! -
Select all not working in TABLE menu
Hi all,
I am using normal table, displaying some values and selecting record i am copying to another table. If i select manually one record and i use CTRL to select multple records it is working.
Table has menu option select and deselect all, if i use select all it is showing as selected but while copying giving error null objects.
And anotherthing i observed here is if i select first record and i use select all menu option it is working??
I have to do any setting for this? any ideas?
Thanks,
Venkat.I have used this functionality with out a problem. How do you copy ?
you mean to say that after select_all, node->get_selected_elements( ) return 0 elements ? -
Re: EJB Control not working with methods that contain arguments
John,
I'm not qualified to answer your EJB control question, but before you
become too disillusioned with page flows I'd like to mention that the
request scoped data form and and the return-to="page" issues you
mentioned have been addressed for the next service pack. We've
introduced the ability to specify a page flow scoped form bean which
lives for the life of the page flow, and we've clarified the return-to
values to include both "currentPage" and "previousPage" which should
clarify the expected behavior.
I hope you give it a try.
Thomas
John Hundley wrote:
Oh well guess you guys gave up on this one. Thats ok, I have utilized a workaround
that forgoes your non working controls just like I have workarounds for your dataforms
that do not maintain their data between pages, your retrun to page that does not
work etc.... At this rate I should have just used struts and JBoss.
"John Hundley" <[email protected]> wrote:
oop's attached the wrong one here is the right one.
"John Hundley" <[email protected]> wrote:
Ok I have attached one of my beans.
"Anurag" <[email protected]> wrote:
John,
For a stateless session bean, the ejbCreate() method is called for
every
individual method call. This is because the bean instance is returned
to the
pool after every method call, it does not hold any state.
I am still surprised about the behaviour you are seeing.
Can you just attach your stateless session bean. You need not sendthe
dependent files, since we only want to sniff the call made to the stateless
EJB method, and are not concerned with the implementation.
Regards,
Anurag
"John Hundley" <[email protected]> wrote in message
news:[email protected]...
Anurag,
I am using the GA release. My control looks identicle toTraderEJBControl.jcx
except of course it is extending a different home and bean interface.The
bean
itself does not exacly match the traderbean but it does look very
similar
to MusicBean.java
in the tutorialsApp. One thing that has me a bit confused is the
fact
the
create()
method is being called every time I make a method call on the control.Shouldn't
the bean only be created once at the first method call and persistfor the
life
of the session?
John
"Anurag" <[email protected]> wrote:
John,
Have you tried running the ejbControl/TraderEJBClient.jws in SamplesApp.
It
does involve calling methods on the stateless EJB TraderEJB through
an
EJB
control, which accept parameters and run fine.
Could you also confirm that you are using the 8.1 GA release, andnot
the
beta.
Regards,
Anurag
"John Hundley" <[email protected]> wrote in message
news:[email protected]...
Raj,
I cannot attach them here. I am not sure how you would test them
anyway
as I
would have to send you my Oracle schema and you would have to
set
up
a
database
instance. There is no way I can do that. If you could please
send
me an
e-mail
I can attach the relevant files in reply and you could take a
look
at them
and
see if you see any obvious problems.
Thanks,
John
"Raj Alagumalai" <[email protected]> wrote:
John,
Can you attach the ejb jar, the jcx and the jws files that you
have
created.
I will test and get back to you.
Thanks
Raj Alagumalai
WebLogic Workshop Support
"John Hundley" <[email protected]> wrote in message
news:[email protected]...
Hi,
I have created an EJB control on a stateless session bean.
For
some
reason when
I attempt to call a method on my control that takes any number
of
arguments I
get a java.lang.IllegalArgumentException yet if I call a method
that
takes
no
arguments everything works fine. I used the debugger to walk
through
the
code
and have discovered that every time I call any method on the
control
the
create()
method gets called, this is exactly where the error is occurring.It is
almost
like the control is trying to pass my method args to the create()
method
instead
of the method I am calling. I have tested all of the methods
in
the
ejb
by manually
coding everything (getInitialContext ejb.create etc) in a .jsp
and
calling
all
of the methods within that .jsp. There they all work fine
so
I
am
pretty
sure
the control is doing something funky. Any ideas as to what
is
going
on
and how
I can fix it?
Thanks,
JohnWas this issue ever resolved ? We are running into the same problem.
The last response is "I'm not qualified to answer your EJB control question."
Can this be escalated to someone who can please ?
Regards
Shahriar -
Flowed subforms not working with table
Hi,
I am having trouble getting nested subforms to "flow" correctly, without the content of the top subform expanding on top of the content for the second subform. Here's my situation:
I have a document saved in "dynamic format" that has 1 page, PageA, whose Content property is set to "Positioned".
On the page are 2 subforms, SubformQ & SubformR. These both have the subform Content property set to "Positioned". A 3rd subform, SubformB, is wrapped around SubformQ & SubformR. SubformB has the Content property set to "Flowed". SubformQ & SubformR are the same dimensions, and are aligned with SubformQ directly above SubformR.
Inside SubformQ are 2 fields - FieldX & TableY. Table Y is dynamic, and has the Row Min Count set to 2. In design mode only the header and 1 row; there is a button to add more rows dynamically when the form is compiled.
SubformR has 2 fields - FieldL & FieldM.
Here's the structure:
PageA - Positioned
SubformB - Flowed
SubformQ - Positioned
FieldX
Dynamic TableY + AddRowButton
SubformR - Positioned
FieldL
FieldM
My problem is that SubformQ keeps overlapping SubformR when the file is compiled. The "flow" isn't right. There are 2 situations in which this happens:
1) When the file is displayed in "Preview", TableY shows 2 rows which correspond to the value I set with Min Count. Unfortunately, this extra row does not push SubformR down like I want, it overlays SubformR.
2) When the "Add Row" button is hit for TableY, a new row is dynamically added. But this row once again further covers SubformR rather than dynamically pushing SubformR down the page.
Help! I don't know what I am doing wrong. Thanks.
JeffHi Jeff!
I have the same problem!
Did you get the solution?
Kind regards!
Luiza -
EJB Control not working with methods that contain arguments
Hi,
I have created an EJB control on a stateless session bean. For some reason when
I attempt to call a method on my control that takes any number of arguments I
get a java.lang.IllegalArgumentException yet if I call a method that takes no
arguments everything works fine. I used the debugger to walk through the code
and have discovered that every time I call any method on the control the create()
method gets called, this is exactly where the error is occurring. It is almost
like the control is trying to pass my method args to the create() method instead
of the method I am calling. I have tested all of the methods in the ejb by manually
coding everything (getInitialContext ejb.create etc) in a .jsp and calling all
of the methods within that .jsp. There they all work fine so I am pretty sure
the control is doing something funky. Any ideas as to what is going on and how
I can fix it?
Thanks,
JohnOh well guess you guys gave up on this one. Thats ok, I have utilized a workaround
that forgoes your non working controls just like I have workarounds for your dataforms
that do not maintain their data between pages, your retrun to page that does not
work etc.... At this rate I should have just used struts and JBoss.
"John Hundley" <[email protected]> wrote:
>
>
>
oop's attached the wrong one here is the right one.
"John Hundley" <[email protected]> wrote:
Ok I have attached one of my beans.
"Anurag" <[email protected]> wrote:
John,
For a stateless session bean, the ejbCreate() method is called for
every
individual method call. This is because the bean instance is returned
to the
pool after every method call, it does not hold any state.
I am still surprised about the behaviour you are seeing.
Can you just attach your stateless session bean. You need not sendthe
dependent files, since we only want to sniff the call made to the stateless
EJB method, and are not concerned with the implementation.
Regards,
Anurag
"John Hundley" <[email protected]> wrote in message
news:[email protected]...
Anurag,
I am using the GA release. My control looks identicle toTraderEJBControl.jcx
except of course it is extending a different home and bean interface.The
bean
itself does not exacly match the traderbean but it does look very
similar
to MusicBean.java
in the tutorialsApp. One thing that has me a bit confused is the
fact
the
create()
method is being called every time I make a method call on the control.Shouldn't
the bean only be created once at the first method call and persistfor the
life
of the session?
John
"Anurag" <[email protected]> wrote:
John,
Have you tried running the ejbControl/TraderEJBClient.jws in SamplesApp.
It
does involve calling methods on the stateless EJB TraderEJB through
an
EJB
control, which accept parameters and run fine.
Could you also confirm that you are using the 8.1 GA release, andnot
the
beta.
Regards,
Anurag
"John Hundley" <[email protected]> wrote in message
news:[email protected]...
Raj,
I cannot attach them here. I am not sure how you would test them
anyway
as I
would have to send you my Oracle schema and you would have to
set
up
a
database
instance. There is no way I can do that. If you could please
send
me an
e-mail
I can attach the relevant files in reply and you could take a
look
at them
and
see if you see any obvious problems.
Thanks,
John
"Raj Alagumalai" <[email protected]> wrote:
John,
Can you attach the ejb jar, the jcx and the jws files that you
have
created.
I will test and get back to you.
Thanks
Raj Alagumalai
WebLogic Workshop Support
"John Hundley" <[email protected]> wrote in message
news:[email protected]...
Hi,
I have created an EJB control on a stateless session bean.
For
some
reason when
I attempt to call a method on my control that takes any number
of
arguments I
get a java.lang.IllegalArgumentException yet if I call a method
that
takes
no
arguments everything works fine. I used the debugger to walk
through
the
code
and have discovered that every time I call any method on the
control
the
create()
method gets called, this is exactly where the error is occurring.It is
almost
like the control is trying to pass my method args to the create()
method
instead
of the method I am calling. I have tested all of the methods
in
the
ejb
by manually
coding everything (getInitialContext ejb.create etc) in a .jsp
and
calling
all
of the methods within that .jsp. There they all work fine
so
I
am
pretty
sure
the control is doing something funky. Any ideas as to what
is
going
on
and how
I can fix it?
Thanks,
John -
C3 - Multiple Selection is not working with pencil...
Hello Guys,
Pencil key is not working for multiple selection while ctrl key is working.
Can any1 guide me how to do muliple selection......There was an issue with messaging in the original software on the C3, so make sure that you are up-to-date. To check your software version try *#0000#
Latest software release for Nokia C3-00 is 08.63
Your service provider may not have the latest nokia version available, but make sure you have the most recent you can get.
Menu > Settings > Phone> Phone Updates > Downl. phone software -
Select Query failing on a table that has per sec heavy insertions.
Hi
Problem statement
1- We are using 11g as an database.
2- We have a table that is partitioned on the date as range partition.
3- The insertion of data is very high.i.e. several hundreds records per sec. in the current partitioned.
4- The data is continuously going in the current partitioned as and when buffer is full or per sec timer expires.
5-- We have to make also select query on the same table and on the current partitioned say for the latest 500 records.
6- Effecient indexes are also created on the table.
Solutions Tried.
1- After analyzing by tkprof it is observed that select and execute is working fine but fetch is taking too much time to show the out put. Say it takes 1 hour.
2- Using the 11g sql advisior and SPM several baseline is created but the success rate of them is observed also too low.
please suggest any solution to this issue
1- i.e. Redisgn of table.
2- Any better way to quey to fix the fetch issue.
3- Any oracle seetings or parameter changes to fix the fetch issue.
Thanks in advance.
Regards
Vishal SharmaI am uploading the latest stats please let me know how can improve as this is taking 25 minutes
####TKPROF output#########
SQL ID : 2j5w6bv437cak
select almevttbl.AlmEvtId, almevttbl.AlmType, almevttbl.ComponentId,
almevttbl.TimeStamp, almevttbl.Severity, almevttbl.State,
almevttbl.Category, almevttbl.CauseCode, almevttbl.UnitType,
almevttbl.UnitId, almevttbl.UnitName, almevttbl.ServerName,
almevttbl.StrParam, almevttbl.ExtraStrParam, almevttbl.ExtraStrParam2,
almevttbl.ExtraStrParam3, almevttbl.ParentCustId, almevttbl.ExtraParam1,
almevttbl.ExtraParam2, almevttbl.ExtraParam3,almevttbl.ExtraParam4,
almevttbl.ExtraParam5, almevttbl.SRCIPADDRFAMILY,almevttbl.SrcIPAddress11,
almevttbl.SrcIPAddress12,almevttbl.SrcIPAddress13,almevttbl.SrcIPAddress14,
almevttbl.DESTIPADDRFAMILY,almevttbl.DestIPAddress11,
almevttbl.DestIPAddress12,almevttbl.DestIPAddress13,
almevttbl.DestIPAddress14, almevttbl.DestPort, almevttbl.SrcPort,
almevttbl.SessionDir, almevttbl.CustomerId, almevttbl.ProfileId,
almevttbl.ParentProfileId, almevttbl.CustomerName, almevttbl.AttkDir,
almevttbl.SubCategory, almevttbl.RiskCategory, almevttbl.AssetValue,
almevttbl.IPSAction, almevttbl.l4Protocol,almevttbl.ExtraStrParam4 ,
almevttbl.ExtraStrParam5,almevttbl.username,almevttbl.ExtraStrParam6,
IpAddrFamily1,IPAddrValue11,IPAddrValue12,IPAddrValue13,IPAddrValue14,
IpAddrFamily2,IPAddrValue21,IPAddrValue22,IPAddrValue23,IPAddrValue24
FROM
AlmEvtTbl PARTITION(ALMEVTTBLP20100323) WHERE AlmEvtId IN ( SELECT * FROM
( SELECT /*+ FIRST_ROWS(1000) INDEX (AlmEvtTbl AlmEvtTbl_Index) */AlmEvtId
FROM AlmEvtTbl PARTITION(ALMEVTTBLP20100323) where ((AlmEvtTbl.Customerid
= 0 or AlmEvtTbl.ParentCustId = 0)) ORDER BY AlmEvtTbl.TIMESTAMP DESC)
WHERE ROWNUM < 602) order by timestamp desc
call count cpu elapsed disk query current rows
Parse 1 0.10 0.17 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 42 1348.25 1521.24 1956 39029545 0 601
total 44 1348.35 1521.41 1956 39029545 0 601
Misses in library cache during parse: 1
Optimizer mode: FIRST_ROWS
Parsing user id: 82
Rows Row Source Operation
601 PARTITION RANGE SINGLE PARTITION: 24 24 (cr=39029545 pr=1956 pw=1956 time=11043 us cost=0 size=7426 card=1)
601 TABLE ACCESS BY LOCAL INDEX ROWID ALMEVTTBL PARTITION: 24 24 (cr=39029545 pr=1956 pw=1956 time=11030 us cost=0 size=7426 card=1)
601 INDEX FULL SCAN ALMEVTTBL_INDEX PARTITION: 24 24 (cr=39029377 pr=1956 pw=1956 time=11183 us cost=0 size=0 card=1)(object id 72557)
601 FILTER (cr=39027139 pr=0 pw=0 time=0 us)
169965204 COUNT STOPKEY (cr=39027139 pr=0 pw=0 time=24859073 us)
169965204 VIEW (cr=39027139 pr=0 pw=0 time=17070717 us cost=0 size=13 card=1)
169965204 PARTITION RANGE SINGLE PARTITION: 24 24 (cr=39027139 pr=0 pw=0 time=13527031 us cost=0 size=48 card=1)
169965204 TABLE ACCESS BY LOCAL INDEX ROWID ALMEVTTBL PARTITION: 24 24 (cr=39027139 pr=0 pw=0 time=10299895 us cost=0 size=48 card=1)
169965204 INDEX FULL SCAN ALMEVTTBL_INDEX PARTITION: 24 24 (cr=1131414 pr=0 pw=0 time=3222624 us cost=0 size=0 card=1)(object id 72557)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 42 0.00 0.00
SQL*Net message from client 42 11.54 133.54
db file sequential read 1956 0.20 28.00
latch free 21 0.00 0.01
latch: cache buffers chains 9 0.01 0.02
SQL ID : 0ushr863b7z39
SELECT /* OPT_DYN_SAMP */ /*+ ALL_ROWS IGNORE_WHERE_CLAUSE
NO_PARALLEL(SAMPLESUB) opt_param('parallel_execution_enabled', 'false')
NO_PARALLEL_INDEX(SAMPLESUB) NO_SQL_TUNE */ NVL(SUM(C1),0), NVL(SUM(C2),0)
FROM
(SELECT /*+ IGNORE_WHERE_CLAUSE NO_PARALLEL("PLAN_TABLE") FULL("PLAN_TABLE")
NO_PARALLEL_INDEX("PLAN_TABLE") */ 1 AS C1, CASE WHEN
"PLAN_TABLE"."STATEMENT_ID"=:B1 THEN 1 ELSE 0 END AS C2 FROM
"SYS"."PLAN_TABLE$" "PLAN_TABLE") SAMPLESUB
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 1 0.00 0.01 1 3 0 1
total 3 0.00 0.01 1 3 0 1
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 82 (recursive depth: 1)
Rows Row Source Operation
1 SORT AGGREGATE (cr=3 pr=1 pw=1 time=0 us)
0 TABLE ACCESS FULL PLAN_TABLE$ (cr=3 pr=1 pw=1 time=0 us cost=29 size=138856 card=8168)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 1 0.01 0.01
SQL ID : bjkdb51at8dnb
EXPLAIN PLAN SET STATEMENT_ID='PLUS30350011' FOR select almevttbl.AlmEvtId,
almevttbl.AlmType, almevttbl.ComponentId, almevttbl.TimeStamp,
almevttbl.Severity, almevttbl.State, almevttbl.Category,
almevttbl.CauseCode, almevttbl.UnitType, almevttbl.UnitId,
almevttbl.UnitName, almevttbl.ServerName, almevttbl.StrParam,
almevttbl.ExtraStrParam, almevttbl.ExtraStrParam2, almevttbl.ExtraStrParam3,
almevttbl.ParentCustId, almevttbl.ExtraParam1, almevttbl.ExtraParam2,
almevttbl.ExtraParam3,almevttbl.ExtraParam4,almevttbl.ExtraParam5,
almevttbl.SRCIPADDRFAMILY,almevttbl.SrcIPAddress11,almevttbl.SrcIPAddress12,
almevttbl.SrcIPAddress13,almevttbl.SrcIPAddress14,
almevttbl.DESTIPADDRFAMILY,almevttbl.DestIPAddress11,
almevttbl.DestIPAddress12,almevttbl.DestIPAddress13,
almevttbl.DestIPAddress14, almevttbl.DestPort, almevttbl.SrcPort,
almevttbl.SessionDir, almevttbl.CustomerId, almevttbl.ProfileId,
almevttbl.ParentProfileId, almevttbl.CustomerName, almevttbl.AttkDir,
almevttbl.SubCategory, almevttbl.RiskCategory, almevttbl.AssetValue,
almevttbl.IPSAction, almevttbl.l4Protocol,almevttbl.ExtraStrParam4 ,
almevttbl.ExtraStrParam5,almevttbl.username,almevttbl.ExtraStrParam6,
IpAddrFamily1,IPAddrValue11,IPAddrValue12,IPAddrValue13,IPAddrValue14,
IpAddrFamily2,IPAddrValue21,IPAddrValue22,IPAddrValue23,IPAddrValue24 FROM
AlmEvtTbl PARTITION(ALMEVTTBLP20100323) WHERE AlmEvtId IN ( SELECT * FROM
( SELECT /*+ FIRST_ROWS(1000) INDEX (AlmEvtTbl AlmEvtTbl_Index) */AlmEvtId
FROM AlmEvtTbl PARTITION(ALMEVTTBLP20100323) where ((AlmEvtTbl.Customerid
= 0 or AlmEvtTbl.ParentCustId = 0)) ORDER BY AlmEvtTbl.TIMESTAMP DESC)
WHERE ROWNUM < 602) order by timestamp desc
call count cpu elapsed disk query current rows
Parse 1 0.28 0.26 0 0 0 0
Execute 1 0.01 0.00 0 0 0 0
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.29 0.27 0 0 0 0
Misses in library cache during parse: 1
Optimizer mode: FIRST_ROWS
Parsing user id: 82
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 1 0.00 0.00
SQL*Net message from client 1 0.00 0.00
OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 13 0.71 0.96 3 10 0 0
Execute 14 0.20 0.29 4 304 26 21
Fetch 92 2402.17 2714.85 3819 70033708 0 1255
total 119 2403.09 2716.10 3826 70034022 26 1276
Misses in library cache during parse: 10
Misses in library cache during execute: 6
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
SQL*Net message to client 49 0.00 0.00
SQL*Net message from client 48 29.88 163.43
db file sequential read 1966 0.20 28.10
latch free 21 0.00 0.01
latch: cache buffers chains 9 0.01 0.02
latch: session allocation 1 0.00 0.00
OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
call count cpu elapsed disk query current rows
Parse 940 0.51 0.73 1 2 38 0
Execute 3263 1.93 2.62 7 1998 43 23
Fetch 6049 1.32 4.41 214 12858 36 13724
total 10252 3.78 7.77 222 14858 117 13747
Misses in library cache during parse: 172
Misses in library cache during execute: 168
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 88 0.04 0.62
latch: shared pool 8 0.00 0.00
latch: row cache objects 2 0.00 0.00
latch free 1 0.00 0.00
latch: session allocation 1 0.00 0.00
34 user SQL statements in session.
3125 internal SQL statements in session.
3159 SQL statements in session.
Trace file: ora11g_ora_2064.trc
Trace file compatibility: 11.01.00
Sort options: default
6 sessions in tracefile.
98 user SQL statements in trace file.
9111 internal SQL statements in trace file.
3159 SQL statements in trace file.
89 unique SQL statements in trace file.
30341 lines in trace file.
6810 elapsed seconds in trace file.
###################################### AutoTrace Output#################
Statistics
3901 recursive calls
0 db block gets
39030275 consistent gets
1970 physical reads
140 redo size
148739 bytes sent via SQL*Net to client
860 bytes received via SQL*Net from client
42 SQL*Net roundtrips to/from client
73 sorts (memory)
0 sorts (disk)
601 rows processed -
Select statment not working with variables
Hi experts,
Iam trying to select some data using the follwoing code
with radio buttons r6 & r7.
If r6 selected,it takes from parameter and
if r7 selected it takes from select options...
data: l_datbi type a005-datbi,l_datab type a005-datab.
if r6 = 'X'.
l_datbi = pvalid.
l_datab = pvalid.
elseif r7 = 'X'.
l_datab = svalid-low.
l_datbi = svalid-high.
endif.
select vtweg matnr knumh datbi datab into corresponding fields of i_itab
from A004
where kappl eq 'V'
and kschl eq pkschl
and vkorg eq pvkorg
and vtweg in svtweg
and matnr in smatnr
and datab le l_datab #######
and datbi ge l_databi. #######
This select statement is not working.
It is taking only one value at a time.(r6 value or r7value)
What might be the reason...?
reward gurarenteed
maggyHi,
You are trying to equate your low value with end date and high value with start date..
The correct logic will be,
data: l_datbi type a005-datbi,l_datab type a005-datab.
if r6 = 'X'.
l_datbi = pvalid. "Start Date
l_datab = pvalid. "End Date
elseif r7 = 'X'.
<b>*l_datab = svalid-low. "Wrong</b>
<b>l_datab = svalid-high. "Right</b>
<b>*l_datbi = svalid-high. "Wrong</b>
<b>l_datbi = svalid-low. "Right</b>
endif.
select vtweg matnr knumh datbi datab into corresponding fields of i_itab
from A004
where kappl eq 'V'
and kschl eq pkschl
and vkorg eq pvkorg
and vtweg in svtweg
and matnr in smatnr
and datab le l_datab ####### "This also doesnt look
and datbi ge l_databi. ####### "right to me, please check
Hope this helps..
Sri -
Code completion does not work with table alias
Hi all,
When i use SQL developer to create a simple query like below i alias my tables so i can oversee it better.
select
* from PRODUCTS p
inner join PRODUCT_TYPES pt on PRODUCT_TYPES.PRODUCT_TYPE_ID = p.But when i give the driving table a alias like p and i try to do a join like you see in the code SQL developer will not show the columns from table PRODUCTS.
What do i wrong or is this a bug?
Thanks in advance,
DanielHi,
Sue, there are lots of code completion don't work either.
Some of them are :
1. The code completion seems not working if we put double-quote ("") to enclosed the object name.
SELECT t. -- CTRL+Space the code completion won't work here
FROM MYSCHEMA."MYTABLE" t 2. The code completion also not working if we state some characters of the column name, although it still works for the uncomplete object name
i.e the name of the column is : MYFIELD
SELECT t.MY -- CTRL+Space, the code completion won't work here
FROM MYSCHEMA.MYTABLE t 3. Sometimes, I can see two code completion lists when I use CTRL + Space
Usually, it happens on the first connection's SQL Worksheet, the second and so forth are fine.
SELECT t. -- CTRL+Space, shows two lists which I can choose both of them
FROM MyTable t4. Code completion also not working when we try to access object from other schema. tbeech post it on
Re: Code Assist -- Table Alias
Are those code completion bugs are also logged?
Regards,
Buntoro -
Group messaging not working with groups that contain non iphone users
I have an Iphone 5 and for some reason I can't send/receive group messages with groups that contain non Iphone users. Basically I recieve single text messages/imessage from each person who responds to the group message. This is incredibly annoying.
Hello, megbu36.
Thank you for visiting Apple Support Communities.
Check to make sure that group messaging is enabled. Go to Settings > Messages and turn on Group messaging.
iOS: Understanding group messaging
http://support.apple.com/kb/HT5760
Cheers,
Jason H. -
Scenebuilder not working with FXML that works fine otherwise
Hi ~
I'm using the Mac version of Scenebuilder (1.0), integrated with NetBeans, and although it works fine for simple (sample) apps, for my application it does not.
IOW, I can run my application fine, looks great, but Scenebuilder gives the following error when I attempt to open the FXML file with Scenebuilder (rather than edit it with NetBeans):
"Error loading file"
"Cause is File is not a valid FXML file"
How do I troubleshoot this? (Also, is there a thread or link that shows how to download and install over my current version with the latest 'trunk' version of Scenebuilder for Mac OS X -- Lion in my case -- to try out later builds?)
Thanks
~ Brad
PS UPDATE: What I'm running (w/JavaFX 2.2):
Product Version: NetBeans IDE 7.2 (Build 201207171143)
Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09
System: Mac OS X version 10.7.4 running on x86_64; US-ASCII; en_US (nb)
Edited by: 960618 on Sep 21, 2012 10:32 AMI edited your sample fxml and made some changes (replaced the commented out lines other lines) which allowed the fxml to at least load in SceneBuilder.
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.image.*?>
<?import javafx.scene.text.*?>
<?import javafx.scene.paint.*?>
<AnchorPane id="AnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="1000.0" xmlns:fx="http://javafx.com/fxml">
<ImageView fitHeight="58.5" fitWidth="152.0" layoutX="15.0" layoutY="15.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@mygraphic.jpg" preserveRatio="false" smooth="false" />
</image>
</ImageView>
<!-- <Label fx:id="label1" alignment="CENTER" contentDisplay="CENTER" layoutX="167.0" layoutY="15.0" minHeight="16.0" minWidth="583.0" prefHeight="33.0" prefWidth="304.0" text="my title text" textFill="#004166">-->
<Label id="label1" alignment="CENTER" contentDisplay="CENTER" layoutX="167.0" layoutY="15.0" minHeight="16.0" minWidth="583.0" prefHeight="33.0" prefWidth="304.0" text="my title text" textFill="#004166">
<font>
<Font name="Optima Bold" size="28.0"/>
</font>
</Label>
<Label id="label2" alignment="CENTER" contentDisplay="CENTER" layoutX="167.0" layoutY="48.0" minHeight="16.0" minWidth="583.0" prefHeight="33.0" prefWidth="302.0" text="my subtitle">
<font>
<Font name="Optima Bold Italic" size="22.0"/>
</font>
<textFill>
<!-- <Color blue="0.400" green="0.255" red="0.000" fx:id="x1" />-->
<Color blue="0.400" green="0.255" red="0.000" />
</textFill>
</Label>
<VBox id="VBox" alignment="CENTER" layoutX="0.0" layoutY="104.0" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefWidth="217.0" spacing="4.0">
<children>
<!-- <Label id="myLabel" alignment="CENTER_RIGHT" contentDisplay="CENTER" font="$x2" minHeight="-Infinity" minWidth="-Infinity" prefHeight="22.0" prefWidth="185.0" text="label text:" textFill="$x1" VBox.vgrow="SOMETIMES" />-->
<Label id="myLabel" alignment="CENTER_RIGHT" contentDisplay="CENTER" font="$x2" minHeight="-Infinity" minWidth="-Infinity" prefHeight="22.0" prefWidth="185.0" text="label text:" VBox.vgrow="SOMETIMES" />
</children>
</VBox>
<VBox id="VBox" alignment="CENTER" layoutX="202.0" layoutY="104.0" prefHeight="235.0" spacing="4.0">
<children>
<ChoiceBox id="myChoiceBox" minHeight="-Infinity" minWidth="-Infinity" prefHeight="22.0" prefWidth="240.0" />
<TextField id="myTextField" minHeight="-Infinity" minWidth="-Infinity" prefHeight="28.0" prefWidth="240.0" promptText="myPromptText" />
<!-- <ChoiceBox fx:id="myChoiceBox" minHeight="-Infinity" minWidth="-Infinity" prefHeight="22.0" prefWidth="240.0" />
<TextField fx:id="myTextField" minHeight="-Infinity" minWidth="-Infinity" prefHeight="28.0" prefWidth="240.0" promptText="myPromptText" />-->
</children>
</VBox>
<!-- <Button layoutX="40" layoutY="505" text="Detect" onAction="#handleDetect" fx:id="buttonDetect" />
<TextArea layoutX="465" layoutY="104" minHeight="390" minWidth="450" fx:id="textAreaLog" />
<TextArea layoutX="465" layoutY="503" minHeight="55" minWidth="450" prefHeight="56" prefWidth="450" fx:id="textAreaMessage" promptText="Notifications" />-->
<Button layoutX="40" layoutY="505" text="Detect" onAction="#handleDetect" id="buttonDetect" />
<TextArea layoutX="465" layoutY="104" minHeight="390" minWidth="450" id="textAreaLog" />
<TextArea layoutX="465" layoutY="503" minHeight="55" minWidth="450" prefHeight="56" prefWidth="450" id="textAreaMessage" promptText="Notifications" />
</AnchorPane>While I was doing it SceneBuilder kept up popping up a number of error messages when it couldn't load it. Useful error messages were the ones which told you that you were missing an import (an autofix feature on the missing import might be a nice to have thing - I seem to recall NetBeans saying they might add extra editing features for fxml which included that). Another useful error message was when the line number of the error was reported, then at least the error could be localized. When the column number was reported with the line number it was usually the last column in the line and not the column index of the specific attribute in error, so that was less useful. Some of the error messages which were generated included fxml attribute info and that wasn't all that clear. Only one error message at a time was reported, rather than all errors in the file leading to a few fix edit and reload cycles. The automatic reloading in SceneBuilder of the file edited in NetBeans made these reload cycles pretty instantaneous which was nice.
The most useless error spat out by SceneBuilder was the following:
Error loading file 'C:\dev\javafx\JavaFXSamples\src\SceneTest_1.fxml'.
C:\dev\javafx\JavaFXSamples\src\SceneTest_1.fxml:0: error:
java.lang.ArrayIndexOutOfBoundsException: -1The above was reported because i placed an xml comment at the end of an otherwise perfectly good fxml file . . . who would have thought . . . -
FireFox Select List not working with Spry XML Data set.
I am having a problem with FireFox. I have a set of related select lists that allows a user to pick a state and then a market. The work in all browsers except FireFox. I'm totally stumped. Here is the link. Any assistance greatly appreciated!
http://myxpertise.pointinspace.com/create.php
Thanks,
Joe<span spry:region="dsCities dsStates dsStates" id="citySelector">
<select spry:repeatchildren="dsCities" id="citySelect" name="citySelect" tabindex="5" >
<option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}" value="{name}" selected="selected" tabindex="5" >{name}</option>
<option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}" value="{name}" tabindex="5" >{name}</option>
</select>
that should be a spry:detailregion, and you have a double dsStates
And when you are using multiple datasets inside a region, it might wise to prefix you template tags with the correct dataset
{ds_RowNumber} => {dsStates::ds_RowNumber} -
Cfdirectory action=list not working with directories that contain an ampersand
Our IT group just upgraded one of the our file share servers from Windows Server 2008 R2 to Windows Server 2012 R2. We quickly noticed a problem with CFDIRECTORY listing the contents of directories that contain an ampersand (e.g. //192.168.1.10/Simon & Garfunkel/). We are using ColdFusion 10 Update11 on Windows Sever 2012 R2 and everything worked fine prior to this upgrade. In addition, we created the same directory locally and tried running CFDIRECTORY and the same problem occurred. The cfm page doesn't crash or report an exception in the log, it just doesn't return any results. Thanks in advance for help on this issue.
Thanks Adam, I just found the problem. I think it was a
problem in the database, though I'm not sure why it works on the
development and not on the production. The field that I pull the
"thename" value from is a type varchar(10) and when cfoutputted
like this [#thename#] it would result in [O MAN], however I tried
outputting it into a textbox field and it showed [O MAN ] (<---
actually "O MAN" followed by 5 spaces). The value was padded to ten
characters. I'm baffled. Varchar is supposed to be variable width
only using the number of actual characters without padding, right?
Of my own folly I was trimming the results of the #thename#
#codeno# pair and not thename itself. Once I set thename to
trim(thename) it worked, of course. I'm still very confused why
this works in the development environment and not in production,
and to why the padding to begin with. But, I will not borrow any
more trouble and just be happy it is resolved!
Thanks for all your help!
Maybe you are looking for
-
My mini bridge, which worked just fine yesterday, has gone gray on me. The file names appear but the thumbnail is just a gray box. Does anyone know what may have caused this. No changes have taken place on the computer in the last 24 hours. I restart
-
Can't install Elements 12 due to error in installing "shared technologies."
Is there a definitive solution to installation problem of Elements 12, which toward the end returns an error message of "failure to install shared technologies?" I tried the suggested solutions such such deleted the .PPA files in the "Common Files" f
-
Best way to export from FCP X to iDVD?
I believe this question must have been dealt with a number of times already but since I could not find a clear answer with a reasonable amount of searching I post my question here. I have Apple ProRes 422 footage (HD 1920 x 1080) in FCP X out of whic
-
How to create/automate a picklist in I/O Field of a screenPainter?
Hi All, I have a screen: I/O box field and table control that will allow users to accept input. Please see the screen-shot below. http://img197.imageshack.us/img197/6526/ioboxnopicklist.jpg Declared in my top include as: DATA: P_WERKS LIKE T001W-WERK
-
Using Nomad Jukebox3 and Zen Micro on same
I use Nomad Jukebox3 and want to use another, smaller player (Zen Micro) for travelling. Are there any known problems with connecting and managing 2 separate Creative players on one PC? Would appreciate any advice. Thanks, Steve