ASO MDX IsLevel weirds result when a parent with only a child
Hi,
I am using the function IsLevel but I find funny results when I apply it with a parent member with only a child.
The result of the function is the level of the child
I am doing it in Essbase 11.1.2.2
Has anyone had the same issue?
Hi Tim,
It is true, it is an implied share issue.
With the parent as never share works.
I don't remember that it happens with BSO, not with the attributes of the members (level, generation, UDA).
Similar Messages
-
Fastest way to find parents with only one child?
I have two very large tables (both >6 million rows) in an oracle 8i DB. They have a parent child relationship and I would like to construct a query to give me the parents that have only one child......syntactically, what's the best way to construct this query?
I was going to try:
select join_id
FROM parent
where join_id in (select join_id, count(join_id)
FROM child
group by join_id
having count(*)=1)
but then I realized that the subselect has two columns to return and the primary query is only expecting one column, so this will not work.
I suspect there's a quick and dirty way to find out what parents have only one child....
I thought of using rowid's but am not sure this is the best way and in the example below I tried, I'm having problems b/c of functions not being allowed in the where clause.....
select join_id
from child d
where rowid in (select min(rowid)
FROM child s
WHERE min(d.rowid)=max(s.rowid)
AND s.join_id=d.join_id))
Any thoughts?The two tables are order_header and order_detail. The order_header carries order specific information and the detail contains item specific information.
So if you had ordered three separate products, you would have:
one row in the order_header table (parent)
and three rows in the order_detail table (child)
They are linked by order_number.
I presented the problem this way to make it more accessible to more posters.....;)
One possible solution that I've thought of for my problem is this:
select join_id
from child_table d
where (d.rowid, d.rowid) IN (select min(rowid) MIN_ROW
,max(rowid) MAX_ROW
FROM child_table
WHERE s.str_order_number=d.str_order_number
AND s.date>='30-JAN-2005'
AND s.date<='31-JAN-2005'))
I think this might work because I think that we can safely assume that if the minimum rowid and the maximum rowid (with the same join_id ) are the same then there is only one child record.....is this logic correct? -
I get different result when I paste with mouse and shift+ins
Sometimes I get different result when I paste the clipboard content with mouse and shift+insert key combination. Why? What can I do to stop this annoyance?
Just to add a little to the above, there really is no universally applied standard (not even close) for how the primary, secondary, and clipboard buffers should be used. Any X program can use them however they wish. But there are some common patterns: selected text should be placed in the primary buffer, and X pastes from the primary buffer with either middle click or shift-ins by default.
This default can (and unfortunately often is) overriden by clipboard managers - I don't know why they don't stay true to their name and just manage the clipboard buffer, but they often don't.
<mini rant>with no clipboard tools installed, selected text in any program I have is in the primary selection, and shift+ins or middle click paste from this primary selection. Ctrl-C/Ctrl-V post to/from the clipboard buffer. No need for extra tools. If I install any clipboard manager, this default sanity of X11 goes strait to s(&*Y. I don't like clipboard managers </mini rant> <mini praise> X11 is great without any of that cruft added </mini praise>
Last edited by Trilby (2013-06-15 03:12:39) -
I hava an html webpage with css & print css. The print preview and print doesn't give correct output there is alignment problem when i connected with EPSONLX-300+II. But iam connected with hp laserjet they show the correct output with firefox. Please fix the problem as soon.....
I have same problem as you, but later I know how to deal with it.
1. change your print default preferences to
print quality into (120x144 dpi, or other which suites you)
mine goes well to 120x144 dpi
2. Before print enter File->Page setup, set true to option shrink to page width
in order to fit your page into your desired paper
(firefox will resize your content to suit the paper you choose).
If you dont want this you can disable this option.
3. Still in Page Setup, if checkbox "Print background (color & images)" is unchecked then
white text will be printed black.
Set this checked if you want to print white text as it is color.
I hope it answers your question.
Steve
http://www.dailymobilegames.com -
Weird results when using prompt
I have created a report in answers. When using a normal filter condition I get one set of results. When using a prompt with the same criteria and no filter I get no results! I played around with removing/adding certain columns (all from the same subject area and same underlying physical table ie no joins involved) and answers sometimes returns results and sometimes not, depending which columns I have added into the query! We are running OBI SE1 on windows 10.1.3.2.1 (Build 070411.1900) - has anyone come across a similar problem? I fear it may be a bug in the OBI software but couldn't find anything on metalink.
Hi Hurtn
Can you paste the Query Log?
Sunil S Ranka
Blog :: http://sranka.wordpress.com
"Superior BI is the antidote to Business Failure" -
Weird results when adding or validating nt:file-Node
Hello,
I'm trying to add the absolute path: /content/2012/201212/20121219_lh_lu_1442.pdf/jcr.content/renditions/original/jcr.content by this code:
Node parentNode = session.getNode("/content");
Verbose.message(3,"Add node " + folders[folders.length-1]);
if (session.nodeExists(parentNode.getPath()+"/"+"2012")) {
parentNode = session.getNode(parentNode.getPath()+"/"+"2012");
Verbose.message(3,parentNode.getPath() + " already there");
else {
parentNode = parentNode.addNode("2012", "sling:OrderedFolder");
Verbose.message(3,parentNode.getPath() + " created");
if (session.nodeExists(parentNode.getPath()+"/"+"201212")) {
parentNode = session.getNode(parentNode.getPath()+"/"+"201212");
Verbose.message(3,parentNode.getPath() + " already there");
else {
parentNode = parentNode.addNode("201212", "sling:OrderedFolder");
Verbose.message(3,parentNode.getPath() + " created");
// dam:Asset-Node named with the PDF-Name
Verbose.message(3,"Add node 20121219_lh_lu_1442.pdf ");
if (session.nodeExists(parentNode.getPath()+"/"+"20121219_lh_lu_1442.pdf") {
parentNode = session.getNode(parentNode.getPath()+"/"+"20121219_lh_lu_1442.pdf");
Verbose.message(3,parentNode.getPath() + " already there");
else {
parentNode = parentNode.addNode("20121219_lh_lu_1442.pdf", "dam:Asset");
Verbose.message(3,parentNode.getPath() + " created");
// jcr:content
if (session.nodeExists(parentNode.getPath()+"/"+"jcr.content")) {
parentNode = session.getNode(parentNode.getPath()+"/"+"jcr.content");
Verbose.message(3,parentNode.getPath() + " already there");
else {
parentNode = parentNode.addNode("jcr.content", "dam:AssetContent");
session.save();
Verbose.message(3,parentNode.getPath() + " created");
// metadata
Node metadata=null;
if (session.nodeExists(parentNode.getPath()+"/"+"metadata")) {
metadata = session.getNode(parentNode.getPath()+"/"+"metadata");
Verbose.message(3,metadata.getPath() + " already there");
else {
metadata=parentNode.addNode("metadata", "nt:unstructured");
session.save();
Verbose.message(3,metadata.getPath() + " created");
// renditions
if (session.nodeExists(parentNode.getPath()+"/"+"renditions")) {
parentNode = session.getNode(parentNode.getPath()+"/"+"renditions");
Verbose.message(3,parentNode.getPath() + " already there");
else {
parentNode = parentNode.addNode("renditions", "nt:folder");
Verbose.message(3,parentNode.getPath() + " created");
listChildren("--->", parentNode );
// orignal
Verbose.message(3,"Create node " + parentNode.getPath()+"/"+"orignal - Exists=" + session.itemExists(parentNode.getPath()+"/"+"orignal"));
if (session.nodeExists(parentNode.getPath()+"/"+"orignal")) {
parentNode = session.getNode(parentNode.getPath()+"/"+"orignal");
Verbose.message(3,parentNode.getPath() + " already there");
else {
parentNode = parentNode.addNode("orignal", "nt:file");
parentNode.addNode("orignal", "nt:file");
Verbose.message(3,parentNode.getPath() + " created");
// jcr:content
Verbose.message(3,"Add node 'jcr.content' to " + parentNode.getPath());
if (session.nodeExists(parentNode.getPath()+"/"+"jcr.content")) {
parentNode = session.getNode(parentNode.getPath()+"/"+"jcr.content");
Verbose.message(3,parentNode.getPath() + " already there");
else {
parentNode = parentNode.addNode("jcr.content", "nt:resource");
// session.save();
Verbose.message(3,parentNode.getPath() + " created");
session.save();
return parentNode.getPath();
private static void listChildren(String indent, Node node ) throws RepositoryException {
System.out.println("-->" + indent + node.getName()+ " Exists=" + session.nodeExists(node.getPath()));
NodeIterator ni = node.getNodes();
while(ni.hasNext()) {
Node nextNode=ni.nextNode();
listChildren(indent+" ", nextNode);
String NAME = nextNode.getName();
(Just to avoid irritations; the Verbose class does the logging.)
My program fails in the line "parentNode = parentNode.addNode("orignal", "nt:file");" with the messages:
Okt 29 16:33:14 --- Verbose(3): /content/2012 already there
Okt 29 16:33:14 --- Verbose(3): /content/2012/201212 already there
Okt 29 16:33:14 --- Verbose(3): Add node 20121219_lh_lu_1442.pdf
Okt 29 16:33:14 --- Verbose(3): /content/2012/201212/20121219_lh_lu_1442.pdf already there
Okt 29 16:33:14 --- Verbose(3): /content/2012/201212/20121219_lh_lu_1442.pdf/jcr.content already there
Okt 29 16:33:14 --- Verbose(3): /content/2012/201212/20121219_lh_lu_1442.pdf/jcr.content/metadata already there
Okt 29 16:33:14 --- Verbose(3): /content/2012/201212/20121219_lh_lu_1442.pdf/jcr.content/renditions already there
-->--->renditions Exists=true
-->---> original Exists=true
-->---> jcr:content Exists=true
Okt 29 16:33:15 --- Verbose(3): Create node /content/2012/201212/20121219_lh_lu_1442.pdf/jcr.content/renditions/orignal - Exists=false
Exception in thread "main" javax.jcr.nodetype.ConstraintViolationException: no matching child node definition found for {}orignal
at org.apache.jackrabbit.jcr2spi.nodetype.ItemDefinitionProviderImpl.getQNodeDefinition(ItemDefinitionProviderImpl.java:201)
at org.apache.jackrabbit.jcr2spi.nodetype.ItemDefinitionProviderImpl.getQNodeDefinition(ItemDefinitionProviderImpl.java:90)
at org.apache.jackrabbit.jcr2spi.NodeImpl.createNode(NodeImpl.java:1444)
at org.apache.jackrabbit.jcr2spi.NodeImpl.addNode(NodeImpl.java:187)
at com.lsy.test.lnnreader.lufthanseat.CRXrepository.addArchiveFolder(CRXrepository.java:120)
I've no idea, why this program fails. The node ../original is already there; have added it with CRXDE Explorer. Saving there didn't work before adding jcr.content with the property "jcr:data". But now you can see that there is a difference in the validating the existence of the relative path "original" in the ongoing routine (results in "Exists=false") and in the "listChildren-method" called immediately after validating the "renditions". This routines results in "Exists=true" for the node "original".
So I've got two questions left: What do I need to do to add the node with the WebDAV-Connected program and how can I make sure it recognizes correctly the existence of a node
best regards,
UlrichI am not sure why you have used addNode method on same parentNode two times (line by line) because you already have added node in first line and now you have to save it. May be this is causing issue.
parentNode = parentNode.addNode("orignal", "nt:file");
parentNode.addNode("orignal", "nt:file");
let me know if it does not help you. -
Inconsistent results when using queries with UDF
I have the following query that I can not get consistent results. Sometimes it will get the correct result but at other times it does not. I can not figure out what I am doing wrong.
The scenario is I have on the BP Contact several UDF that we are storing sales territory information. We want to pull based on the SalesRepNo the RegName. We have 2 user defined tables set up. I can accurately pull info when I am linking to the SLS_Person_Region table. On that table there is a field called region (a number). I am trying to use that number and pull the name from the Region_Major_reg table.
SELECT T0.[U_RegName] FROM [dbo].[@REGION_MAJOR_REG] T0 INNER JOIN [dbo].[@SLS_PERSON_REGION] T1 ON T1.U_Region = T0.U_Region INNER JOIN ocpr T2 on T1.[U_SlsPerNum] = T2.[U_SalesRepNo]
WHERE T1.U_SlsPerNum = $[OCpr.U_SalesRepno]
What is frustrating is that the query works fine for different terrioties.
Any help would be appreciated.
Thanks
Stevethe scheme is the first tow indicate the territory
The next two digits represent the rep
When a rep is replaced we assign an open territory or the next rep the next number
an example is 0105 was an open territory when we signed a new rep we gave them 0106
To answer your question we have nine
0106
0205
0303
0401
0503
0602
0702
0801
0904
I think that is what you are asking -
Inconsistent SQL results when using View with UNION-ALL and table function
Can any of you please execute the below scripts and check the output. In the table type variable, I am adding 4 distinct object ids, where as in the result, I get only the row pertaining to last id in the table type variable. Same row is returned 4 times (4= number of values in the table type).
This scenario is occurring in our product with a SQL with exactly same pattern. I could simulate the same issue with the sample script I have provided.
Database version: 11.2.0.3 Enterprise Edition, Single node
Thank you.
CREATE TABLE TEMP_T1 AS SELECT * FROM ALL_OBJECTS;
CREATE TABLE TEMP_T2 AS SELECT * FROM ALL_OBJECTS;
UPDATE TEMP_T2 SET OBJECT_ID = OBJECT_ID * 37;
CREATE UNIQUE INDEX TEMP_T1_U1 ON TEMP_T1(OBJECT_ID);
CREATE UNIQUE INDEX TEMP_T2_U1 ON TEMP_T2(OBJECT_ID);
CREATE OR REPLACE VIEW TEMP_T1T2_V AS
SELECT * FROM TEMP_T1 UNION ALL SELECT * FROM TEMP_T2;
CREATE OR REPLACE TYPE TEMP_OBJ_TYPE AS OBJECT (OBJ_ID NUMBER);
CREATE OR REPLACE TYPE TEMP_OBJ_TAB_TYPE IS TABLE OF TEMP_OBJ_TYPE;
SET SERVEROUTPUT ON;
DECLARE
TYPE TEMP_T1T2_V_ROW_TAB_TYPE IS TABLE OF TEMP_T1T2_V%ROWTYPE;
TEMP_T1T2_V_ROW_TAB TEMP_T1T2_V_ROW_TAB_TYPE;
TEMP_OBJ_TAB TEMP_OBJ_TAB_TYPE := TEMP_OBJ_TAB_TYPE();
PROCEDURE ADD_TO_TEMP_OBJ_TAB(OBJ_ID IN NUMBER) IS
BEGIN
TEMP_OBJ_TAB.EXTEND;
TEMP_OBJ_TAB(TEMP_OBJ_TAB.LAST) := TEMP_OBJ_TYPE(OBJ_ID);
END;
BEGIN
ADD_TO_TEMP_OBJ_TAB(100);
ADD_TO_TEMP_OBJ_TAB(116);
ADD_TO_TEMP_OBJ_TAB(279);
ADD_TO_TEMP_OBJ_TAB(364);
DBMS_OUTPUT.PUT_LINE('=====================');
FOR I IN TEMP_OBJ_TAB.FIRST..TEMP_OBJ_TAB.LAST
LOOP
DBMS_OUTPUT.PUT_LINE('OBJ_ID = '||TEMP_OBJ_TAB(I).OBJ_ID);
END LOOP;
DBMS_OUTPUT.PUT_LINE('---------------------');
SELECT * BULK COLLECT INTO TEMP_T1T2_V_ROW_TAB
FROM TEMP_T1T2_V VW
WHERE ((VW.OBJECT_ID) IN (SELECT OBJ_ID
FROM TABLE(CAST(TEMP_OBJ_TAB AS TEMP_OBJ_TAB_TYPE))));
FOR I IN TEMP_OBJ_TAB.FIRST..TEMP_OBJ_TAB.LAST
LOOP
DBMS_OUTPUT.PUT_LINE('OBJ_ID = '||TEMP_OBJ_TAB(I).OBJ_ID);
END LOOP;
DBMS_OUTPUT.PUT_LINE('---------------------');
IF TEMP_T1T2_V_ROW_TAB.COUNT > 0 THEN
FOR I IN TEMP_T1T2_V_ROW_TAB.FIRST..TEMP_T1T2_V_ROW_TAB.LAST
LOOP
DBMS_OUTPUT.PUT_LINE(TEMP_T1T2_V_ROW_TAB(I).OBJECT_ID||' : '||TEMP_T1T2_V_ROW_TAB(I).OBJECT_NAME);
END LOOP;
ELSE
DBMS_OUTPUT.PUT_LINE('NO ROWS RETURNED!');
END IF;
DBMS_OUTPUT.PUT_LINE('---------------------');
END;
/I can reproduce it:
SQL*Plus: Release 11.2.0.3.0 Production on Tue Oct 30 14:05:39 2012
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Enter user-name: scott
Enter password:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> select *
2 from v$version
3 /
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for 64-bit Windows: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
SQL> CREATE TABLE TEMP_T1 AS SELECT * FROM ALL_OBJECTS;
Table created.
SQL>
SQL> CREATE TABLE TEMP_T2 AS SELECT * FROM ALL_OBJECTS;
Table created.
SQL>
SQL> UPDATE TEMP_T2 SET OBJECT_ID = OBJECT_ID * 37;
72883 rows updated.
SQL>
SQL> CREATE UNIQUE INDEX TEMP_T1_U1 ON TEMP_T1(OBJECT_ID);
Index created.
SQL>
SQL> CREATE UNIQUE INDEX TEMP_T2_U1 ON TEMP_T2(OBJECT_ID);
Index created.
SQL>
SQL> CREATE OR REPLACE VIEW TEMP_T1T2_V AS
2 SELECT * FROM TEMP_T1 UNION ALL SELECT * FROM TEMP_T2;
View created.
SQL>
SQL> CREATE OR REPLACE TYPE TEMP_OBJ_TYPE AS OBJECT (OBJ_ID NUMBER)
2 /
Type created.
SQL> CREATE OR REPLACE TYPE TEMP_OBJ_TAB_TYPE IS TABLE OF TEMP_OBJ_TYPE
2 /
Type created.
SQL> SET SERVEROUTPUT ON;
SQL>
SQL> DECLARE
2 TYPE TEMP_T1T2_V_ROW_TAB_TYPE IS TABLE OF TEMP_T1T2_V%ROWTYPE;
3 TEMP_T1T2_V_ROW_TAB TEMP_T1T2_V_ROW_TAB_TYPE;
4 TEMP_OBJ_TAB TEMP_OBJ_TAB_TYPE := TEMP_OBJ_TAB_TYPE();
5 PROCEDURE ADD_TO_TEMP_OBJ_TAB(OBJ_ID IN NUMBER) IS
6 BEGIN
7 TEMP_OBJ_TAB.EXTEND;
8 TEMP_OBJ_TAB(TEMP_OBJ_TAB.LAST) := TEMP_OBJ_TYPE(OBJ_ID);
9 END;
10 BEGIN
11 ADD_TO_TEMP_OBJ_TAB(100);
12 ADD_TO_TEMP_OBJ_TAB(116);
13 ADD_TO_TEMP_OBJ_TAB(279);
14 ADD_TO_TEMP_OBJ_TAB(364);
15 DBMS_OUTPUT.PUT_LINE('=====================');
16 FOR I IN TEMP_OBJ_TAB.FIRST..TEMP_OBJ_TAB.LAST
17 LOOP
18 DBMS_OUTPUT.PUT_LINE('OBJ_ID = '||TEMP_OBJ_TAB(I).OBJ_ID);
19 END LOOP;
20 DBMS_OUTPUT.PUT_LINE('---------------------');
21 SELECT * BULK COLLECT INTO TEMP_T1T2_V_ROW_TAB
22 FROM TEMP_T1T2_V VW
23 WHERE ((VW.OBJECT_ID) IN (SELECT OBJ_ID
24 FROM TABLE(CAST(TEMP_OBJ_TAB AS TEMP_OBJ_TAB_TYPE))));
25 FOR I IN TEMP_OBJ_TAB.FIRST..TEMP_OBJ_TAB.LAST
26 LOOP
27 DBMS_OUTPUT.PUT_LINE('OBJ_ID = '||TEMP_OBJ_TAB(I).OBJ_ID);
28 END LOOP;
29 DBMS_OUTPUT.PUT_LINE('---------------------');
30 IF TEMP_T1T2_V_ROW_TAB.COUNT > 0 THEN
31 FOR I IN TEMP_T1T2_V_ROW_TAB.FIRST..TEMP_T1T2_V_ROW_TAB.LAST
32 LOOP
33 DBMS_OUTPUT.PUT_LINE(TEMP_T1T2_V_ROW_TAB(I).OBJECT_ID||' : '||TEMP_T1T2_V_ROW_TAB(I).OBJECT_NAME);
34 END LOOP;
35 ELSE
36 DBMS_OUTPUT.PUT_LINE('NO ROWS RETURNED!');
37 END IF;
38 DBMS_OUTPUT.PUT_LINE('---------------------');
39 END;
40 /
=====================
OBJ_ID = 100
OBJ_ID = 116
OBJ_ID = 279
OBJ_ID = 364
OBJ_ID = 100
OBJ_ID = 116
OBJ_ID = 279
OBJ_ID = 364
364 : I_AUDIT
364 : I_AUDIT
364 : I_AUDIT
364 : I_AUDIT
PL/SQL procedure successfully completed.
SQL> column object_name format a30
SQL> select object_id,
2 object_name
3 from dba_objects
4 where object_id in (100,116,279,364)
5 /
OBJECT_ID OBJECT_NAME
100 ORA$BASE
116 DUAL
279 MAP_OBJECT
364 I_AUDIT
SQL> Works fine in:
=====================
OBJ_ID = 100
OBJ_ID = 116
OBJ_ID = 279
OBJ_ID = 364
OBJ_ID = 100
OBJ_ID = 116
OBJ_ID = 279
OBJ_ID = 364
100 : ORA$BASE
116 : DUAL
364 : SYSTEM_PRIVILEGE_MAP
279 : MAP_OBJECT
PL/SQL procedure successfully completed.
SQL> select object_id,
2 object_name
3 from dba_objects
4 where object_id in (100,116,279,364)
5 /
OBJECT_ID OBJECT_NAME
100 ORA$BASE
116 DUAL
364 SYSTEM_PRIVILEGE_MAP
279 MAP_OBJECT
SQL> select *
2 from v$version
3 /
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL>SY.
Edited by: Solomon Yakobson on Oct 30, 2012 2:14 PM -
Oracle Text does not return results when String starts with two consecutive vowels
Hi,
I hope someone can shed some light on a strange problem we're facing.
Oracle Database 11g R2 (11.2.0.4) EE 64-bit running on Windows 2008 Server R2.
When I create a context index on a varchar2 column (surname) it works fine when the surname starts with either a consonant or one vowel. But when the surname starts with two vowels it fails to return the record?
Please see worked example below:
create table t1 (surname varchar2(50));
insert into t1 values ('OURS');
insert into t1 values ('JOURS');
insert into t1 values ('ONES');
commit;
-- sync every 10 mins
CREATE INDEX PERSON_SURNAME_IDX ON t1
(SURNAME)
INDEXTYPE IS CTXSYS.CONTEXT
PARAMETERS('MEMORY 50M sync (every "SYSDATE+10/1440")')
NOPARALLEL;
-- no rows
SELECT surname
FROM t1
WHERE CONTAINS(surname, 'OURS') > 0;
-- 1 row
SELECT surname
FROM t1
WHERE CONTAINS(surname, 'JOURS') > 0;
-- 1 row
SELECT surname
FROM t1
WHERE CONTAINS(surname, 'ONES') > 0;
Any help or guidance greatly appreciated.
Thanks,Wtf?
https://docs.oracle.com/database/121/CCREF/astopsup.htm#i634475
only then where
all do into onto there whether
almost does is or therefore which
also either it our these while
although for its ours
select
from v$version
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production 0
PL/SQL Release 12.1.0.2.0 - Production
CORE 12.1.0.2.0 Production
TNS for Linux: Version 12.1.0.2.0 - Production
NLSRTL Version 12.1.0.2.0 - Production
SELECT spw_stoplist, spw_word FROM ctx_stopwords
WHERE spw_stoplist ='DEFAULT_STOPLIST'
order by nlssort(spw_word, 'NLS_SORT=LATIN')
---- snip ----
DEFAULT_STOPLIST not
DEFAULT_STOPLIST of
DEFAULT_STOPLIST on
DEFAULT_STOPLIST one
DEFAULT_STOPLIST only
DEFAULT_STOPLIST or
DEFAULT_STOPLIST other
DEFAULT_STOPLIST out
DEFAULT_STOPLIST over
DEFAULT_STOPLIST s
---- snip ---- -
Lots of blank space when printing array with only last element printed
I have a slight problem I have been trying to figure it out for days but can't see where my problem is, its probably staring me in the face but just can't seem to see it.
I am trying to print out my 2 dimensional array outdie my try block. Inside the trying block I have two for loops in for the arrays. Within the second for loop I have a while to put token from Stringtokeniser into my 2 arrays. When I print my arrays in this while bit it prints fine however when I print outside the try block it only print the last element and lots of blank space before the element.
Below is the code, hope you guys can see the problem. Thank you in advance
import java.io.*;
import java.net.*;
import java.lang.*;
import java.util.*;
import javax.swing.*;
public class javaflights4
public static final String MESSAGE_SEPERATOR = "#";
public static final String MESSAGE_SEPERATOR1 = "*";
public static void main(String[] args) throws IOException
String data = null;
File file;
BufferedReader reader = null;
file = new File("datafile.txt");
String flights[] [];
//String flightdata[];
flights = new String[21][7];
int x = 0;
//flightdata = new String[7];
int y = 0;
try
reader = new BufferedReader(new FileReader(file));
//data = reader.readLine();
while((data = reader.readLine())!= null)
data.trim();
StringTokenizer tokenised = new StringTokenizer(data, MESSAGE_SEPERATOR1);
for(x = 0; x<=flights.length; x++)
for(y = 0; y<=flights.length; y++)
while(tokenised.hasMoreTokens())
//System.out.println(tokenised.nextToken());
flights [x] [y] = tokenised.nextToken();
//System.out.print("*"+ flights [x] [y]+"&");
System.out.println();
catch(ArrayIndexOutOfBoundsException e1)
System.out.println("error at " + e1);
catch(Exception e)
finally
try
reader.close();
catch(Exception e)
int i = 0;
int j = 0;
System.out.print(flights [j]);
//System.out.println();A number of problems.
First, I bet you see a lot of "error at" messages, don't you? You create a 21x7 array, then go through the first array up to 21, going through the second one all the way to 21 as well.
your second for loop should go to flights[x].length, not flights.length. That will eliminate the need for ArrayIndexOutOfBounds checking, which should have been an indication that you were doing something wrong.
Second, when you get to flights[0][0] (the very first iteration of the inner loop) you are taking every element from the StringTokenizer and setting flights[0][0] to each, thereby overwriting the previous one. There will be nothing in the StringTokenizer left for any of the other (21x7)-1=146 array elements. At the end of all the loops, the very first element in the array (flights[0][0]) should contain the last token in the file.
At the end, you only print the first element (i=0, j=0, println(flight[ i][j])) which explains why you see the last element from the file.
I'm assuming you have a file with 21 lines, each of which has 7 items on the line. Here is some pseudo-code to help you out:
count the lines
reset the file
create a 2d array with the first dimension set to the number of lines.
int i = 0;
while (read a line) {
Tokenize the line;
count the tokens;
create an array whose size is the number of tokens;
stuff the tokens into the array;
set flights[i++] to this array;
} -
Variable Definitions - weird results
Using Flash8 I am getting some weird results when defining
variables.
In my Actionscripts I am trying to define and assign
variables on the same line and then trace it as below :
var light_critical_colour:String = "#FF0000";
trace ("light_critical_colour = " + light_critical_colour);
If I create an new blank fla file and place this in the first
frame, scene 1, it works as you would expect and opens a trace
window and returns "light_critical_colour = #FF0000". Also if I
remove the first line then the result is "light_critical_colour =
undefined" again as expected.
My issue is that I have another fla file which i have created
from scratch as per the example above. I have 2 scenes, scene 1 is
the preloader and scene 2 is the main user screen. It does not
matter where I place the code even in the the first frame of scene
1, the var definition seems to be ignored and if I remove the var
definition line and just have "trace ("light_critical_colour = " +
light_critical_colour);" I get "light_critical_colour =" rather
than "light_critical_colour = undefined" as expected.
Does anyone have any idea's ?
ThanksMore Information:
I have managed to get around this by cutting and pasting my
ActionScript and objects into a new fla and its now working fine.
If I was not such a ActionScript newbee I would suggest that
this is a Flash8 bug !
This sure managed to waste lots of my time......... -
When I export slideshows the result is a file with only the first picture then a blank white screen with music. Apple bug or am I missing the obvious?
Usually when the phone shows just the white Apple logo, it indicates an issue with the system software that prevents the phone from finishing it's boot sequence. When this happens, you will need to restore the phone, which removes all data and replaces the system software with a fresh set.
Since the phone is not seen in iTunes when it's in this state, you will have to put it into DFU mode for iTunes to see it.
To put the phone in DFU mode:
- make sure the phone is connected to a computer with the current version of iTunes on it.
- hold the sleep/wake button and the home button simultaneously for 8 seconds.
- let go of the sleep/wake button and continue pressing the home button. The iTunes screen will show a short progress bar then show a dialog box stating that an iPod was detected that is in recovery mode.
-click OK
-click the Restore button in the middle of the iTunes page
After the restore the phone should be back up and running and you can sync your data back. -
Group by Parent with Child Records
Basically i have three Tables
Request ID Parent ID Account Name Addresss
1452 1254789 Wendy's Atlanta Georgia
1453 1254789 Wendy's Norcross Georgia
1456 1254789 Waffle House Atlanta Georgia
Bid_ID Bid_Type Bid_Volume Bid_V Bid_D Bid_E Request_ID Parent ID
45897 Incentive 10 N/A N/A N/A 1452 1254789
45898 Incentive 10 N/A N/A N/A 1453 1254789
45899 Incentive 10 N/A N/A N/A 1456 1254789
Bid_Number Bid_Name Request_ID Parent ID
Q789456 Wendy'Off 1452 1254789
Q789457 Wendy'Reba 1452 1254789
Q789456 Wendy'Off 1453 1254789
Q789457 Wendy'Reba 1453 1254789
Q789456 Wendy'Off 1456 1254789
I want the Result
Parent ID Bid_Type Bid_Volume Bid_V Bid_D Bid_E AutoGeneratedCol
1254789 Incentive 10 N/A N/A N/A 1
1254789 Incentive 10 N/A N/A N/A 2
Bid Number AutoGeneratedCol_Link
Q789456 1
Q789457 1
Q789456 2
Request ID AutoGeneratedCol_Link
1452 1
1453 1
1456 2
In the above example Group parent with respect to child information .If all the Bid numbers are same (even number count) and Bid details same then group that request as one .
then same Bid number but other Bid number is not present then group into other
Like similar example the number of bids may vary and bid numbers may varyI was expecting below results .
Group By Child tables i.e. AccountBids,AccountBidInformation
AccountBidInformation will be one to one relationship with AccountTable table
AccountBids will be one to many relationship with AccountTable
During Group by AccountBidInformation will have one record and AccountBids are combined with budnumber is one column
Select distinct GSR,CustomizedClaims,TotalWeeklyVolume,ParentOrVendor,PP,CWT,(Select top 1
substring(
Select ','+ST1.BidNumber AS [text()]
From dbo.AccountBids ST1
Where ST1.AccountTable_ID = ST2.AccountTable_ID--Combine Bids to one row with respect to reference Key
ORDER BY ST1.BidNumber
For XML PATH ('')
), 2, 1000) [Bids]
From dbo.AccountBids ST2 WHERE ST2.AccountTable_ID = AccountBids.AccountTable_ID)
FROM AccountBids
INNER JOIN AccountBidInformation On AccountBids.AccountTable_ID = AccountBidInformation.AccountTable_ID
ORDER BY GSR,CustomizedClaims,TotalWeeklyVolume,ParentOrVendor,PP,CWT
After grouping AccountBids,AccountBidInformation .Select AccountTable records for each group by record
SELECT Main.Account_Number,Effective_Date,Details FROM AccountTable Main
INNER JOIN AccountBids ON AccountBids.AccountTable_ID = Main.AccountTable_ID
INNER JOIN AccountBidInformation ON AccountBidInformation.AccountTable_ID = Main.AccountTable_ID
WHERE BidNumber in ('P120012','P120014')--First Record from previous select
AND TotalWeeklyVolume = 452 --First Record from previous select
AND ParentOrVendor = 'P' --First Record from previous select
AND PP = 'N/A' --First Record from previous select
AND CWT = 'N/A' --First Record from previous select
Exists make sure Number of bids remain same
Example : If you remove Exists then Second below query will return two duplicate record which is already selected in this .
AND EXISTS(
SELECT AccountTable_ID --
FROM AccountBids SUB --
WHERE Main.AccountTable_ID = SUB.AccountTable_ID
GROUP BY AccountTable_ID
HAVING COUNT(*) = 2 --Pass number of bids selected from first result w.r.t commo seperated
GROUP BY Main.Account_Number,Effective_Date,Details having count(BidNumber) = 2
SELECT Main.Account_Number,Effective_Date,Details FROM AccountTable Main
INNER JOIN AccountBids ON AccountBids.AccountTable_ID = Main.AccountTable_ID
INNER JOIN AccountBidInformation ON AccountBidInformation.AccountTable_ID = Main.AccountTable_ID
WHERE BidNumber in ('P120012')AND
TotalWeeklyVolume = 452
AND ParentOrVendor = 'P'
AND PP = 'N/A'
AND CWT = 'N/A' AND
EXISTS(
SELECT AccountTable_ID --
FROM AccountBids SUB --
WHERE Main.AccountTable_ID = SUB.AccountTable_ID
GROUP BY AccountTable_ID
HAVING COUNT(*) = 1
GROUP BY Main.Account_Number,Effective_Date,Details having count(BidNumber) = 1
SELECT Main.Account_Number,Effective_Date,Details FROM AccountTable Main
INNER JOIN AccountBids ON AccountBids.AccountTable_ID = Main.AccountTable_ID
INNER JOIN AccountBidInformation ON AccountBidInformation.AccountTable_ID = Main.AccountTable_ID
WHERE BidNumber in ('P120012','P120014')
AND TotalWeeklyVolume = 453
AND ParentOrVendor = 'N'
AND PP = 'N/A'
AND CWT = 'N/A'
AND EXISTS(
SELECT AccountTable_ID --
FROM AccountBids SUB --
WHERE Main.AccountTable_ID = SUB.AccountTable_ID
GROUP BY AccountTable_ID
HAVING COUNT(*) = 2
GROUP BY Main.Account_Number,Effective_Date,Details having count(BidNumber) = 2 -
Runtime ik springs: child nodes break when a parent node is moved
There is something wrong with IK armature springs when used in runtime mode. Child nodes become disjointed with user interaction of parent nodes.
Drag spring on right from different points to see bug here: http://gardenofpossibilities.org/flash/ik_spring_runtime_bug/spring_runtimebug.html
I filed this as a bug, but wanted to mention it here in case others have a similar problem or anyone has a workaround:
Steps to reproduce bug:
1. Build simple movieclip based armature
2. add springs to bones
3. set armature to runtime and publish
Results:
Armature child nodes become disjointed with user interaction of parent nodes. Same disjointed behavior occurs when armature is moved with actionscript 3 ik.mover.
Expected results:
Armature nodes should remain properly connected when user or actionscript 3 ik_mover moves any node.
My Analysis:
When springs are 0 (no spring) armature works correctly. It appears that the problem is caused by child nodes pivoting at parent node head, when they should actually pivot at parent node tail. Also, when armature becomes disjointed, dragging or moving tail node (furthest from root) restores joints.
I've posted and example of the bug here: http://gardenofpossibilities.org/flash/ik_spring_runtime_bug/spring_runtimebug.html
...and a .zip archive of the fla: http://gardenofpossibilities.org/flash/ik_spring_runtime_bug/
Please enlighten me on what is wrong, how to fix (if possible). If this is a documented bug, please provide a reference to it.
Thanks!I posted this two months ago. Does anybody have anything to add on this issue? Are there any Adobe programmer/engineers out there? I've even filed a bug report, but have not received any feedback. Not a peep. Please?
-
Hello
I'm currently developping an image processing algorithm using Labview 7.1 and the associated IMAQ Vision tools. After several tests, I found a weird result. Indeed, I put the labview algorithm - including the IMAQ VI on the library to get sure that I use all the time the same VI - on my memory stick and used it on two different computers. I tested the same picture (still in my memory stick) and had two very different results.
After several hours trying to understand why, I found that there were a difference between the results given by both computers at the very begining of the algorithm. Indeed, I used a JPEG file.
To open it, I first create an Image with IMAQ Create (U8). Then, I open it.
Then in my first sub-VI, I use IMAQ Cast Image to be sure that the picture is a U8 grayscale picture.
Right after that, I use the IMAQ Linear Averages. The results of this VI are different on the two computers.
I tried several time on the same picture : one computer always give me the same result but the two computers give me a different result. So there is no random variable on the results.
So my question is : Do IMAQ Cast Image or IMAQ Linear averages give different results when using different computers that are running under Windows XP ?
My bet is on IMAQ Cast Image but I'm not quite sure and I do not undestand why. The labview and IMAQ are the same on both computers.
The difference between the two computer are above :
Computer 1 :
Pentium(R) 4 CPU 3.20GHz with a RAM of 1Go. The processor is an Intel(R).
The OS is windows XP Pro 2002
Computer 2 :
Pentium(R) 4 CPU 2.80GHz with a RAM of 512Mo. The processor is an Intel(R).
The OS is windows XP Pro 2002.
If anybody can help me on this problem, it would be really helpful.
Regards
Florence P.Hi,
Indeed it's a strange behaviour, could you send me your VI and your JPEG file, (or another file that reproduces) so that I could check this inthere ?
I'll then try to find out what's happening.
Regards
Richard Keromen
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
>> Découvrez, en vidéo, les innovations technologiques réalisées en éco-conception
Maybe you are looking for
-
.html appears as .html in browser
My uploaded local index.html file appears as .html rather than as text on two of my Macs X.4 in Safari, IE, Firefox, and iCab. It appears as .html also on Optimum Online who gives me cable and on GoDaddy.com. In Easy-cgi.com however they say it appea
-
Filtering Internet access?
+PAX Greetings all, and a Merry Christmas! We're a small monastery. And due to this, we need to implement some Internet filtering. Unfortunately, it's not the basic kind of filtering. Frankly, I'm not sure that all of what we're looking to do can be
-
Hi, We are trying to implement jms messaging to transfer data from siebel to an external database...using the following architecture: 1. create jms queue (web logic web server) 2. use EAI JMS transport business service in siebel to send data to this
-
While other features of the product are of appropriate quality, the UML support however is pretty much unusable for any sort of serious modeling. Resize to content doesn't work - shapes remain too big (try on Use Cases); Extension Points, though poss
-
My FTP login is to the root, and the website is in /web/, so in my site definition access is by ftp, ftp host is the www.mydomane.com, host directory is /web/, and I am using passive FTP. This is all working fine except for when I need to change a sc