HOWTO set ArrayCollection1 = ArrayCollection2 without making the underlying array the same object?
Hello
I fill an ArrayCollection collection from the server and use it as a DataProvider to a DataGrid control.
I want to send only what has changed (the delta) on the server.
So, I save the original in another collection ArrayCollection with the idea to use it to compare with the original. Like this:
public var ArrayCollection1:ArrayCollection = new ArrayCollection(); public var ArrayCollection2:ArrayCollection = new ArrayCollection(); (ArrayCollection1 populated from the server) ArrayCollection2 = ArrayCollection1;
However, the second collection of underlying table ArrayCollection has the ObjectId as well as the first. Therefore, when data is changed in the DataGrid, it replaces the two ArrayCollections.
Is there a way to force the second collection of ArrayCollection underlying table to be an object separated instead of a reference to the ArrayCollection1 table?
Thank you!
You'll need a full copy:
Tags: Flex
Similar Questions
-
How to set of Cluster nodes on the same network but on different gateways
Hello
We want to set of Cluster nodes on the same network but the connection through different gateways for Unicast (WKA). We strive to add sockets for < cluster-config > tangosol-coherence - override.xml file, pls help how to set.Looks like you are using the default configuration for the system property:
8088
true The probable reason for this question, it's the localport is unaffected as 8088 for communication on the machines. Either use the property system - Dtangosol.coherence.localport = 8088 and - Dtangosol.coherence.localport.adjust = false or see the node will connect and find node assigned to each node and open the nodes; recommended to use multiple addresses node as in unicast configuration below:
well-known-address >
XXX
8088
YYY
8088
See you soon,.
Neeraj -
Consecutive tweens to the same object?
I'm new to Flash, and I have a simple question that I can't find an answer to in the online help or tutorials topics. It is the following:
In CS4, it is possible to add two consecutive to the same object (symbol instance) tweens? I mean have a shape move from the left, wait a few seconds and then move back to the left. So far, the only method I've found is to create a copy of the object (a new instance of the coast) and animate it separately. But that creates additional objects and get the right positioning is very difficult. Is there a way to have a piece of tween and start another (possibly after a delay) on the same object in the same layer? Or in different layers, which would be better?
Any advice is welcome.
Gregory
You can do this with a single object. One way using the new method of interpolation in CS4, quoted above, would be as follows.
1. Select the object positioned at location lefmost, then choose Create a motion tween.
2. move the playhead when you want it to be interpolated in the right, then move it.
3. Select this image (Ctrl/Cmd-click), right-click, choose copy properties.
4. move the playhead when you want to * start * interpolation (after the break), right-click and choose Paste properties.
5. at the end of the duration, drag the object to the original position (so TI interpolations of return). OR, you can copy the properties of the first image.
Another way to do this would be:
1. Select the object positioned at location lefmost, then choose Create a motion tween.
2. move the playhead when you want it to be interpolated in the right, then move it.
3. Select this image (Cmd/Ctrl-click and release), press Alt and drag a copy of the image where you want to stop "a break."
4. at the end of the duration, drag the object to the original position (so TI interpolations of return).
It seems quite clear that I describe each click, but once you do the steps that you will notice it's very simple copy-pasta.
-
Hi all
I would like to pass a table to a cluster on my network. My group is typedef'ed, but I would avoid to pollute my project with an another redundant typedef.
Is it possible to use the option "From Custom Control... ' of the shared variable with an array without saving the table as a new .ctl file?
Oh, I didn't know you were using shared variables. I thought that you were just considered another option with TCP/IP or UDP or something like that. In this case, you will need to create a second custom control. This control would be a table with the cluster of typedef in there. Not need to make this new control itself a typedef however. Sorry, I know you were hoping for a different answer. I doubt a single file will really be "clutter" your project well
-
How to edit a photo without making the whole project
I'm working on a personal project, a collage. Is it possible to edit a photo in the collage without affecting the overall project?
Sure.
Photo Collage Toolkit
Scripts for Photoshop is powerful and I think that this package demonstrates this a video showing a collage of 5 model PSD image fills with images:
The package includes four simple rules to follow to make Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
- Models of photo collage for the desired print size - width and height of the size and DPI print resolution.
- Photo collage templates must have a background layer in Photoshop. The content of this layer can be anything.
- Photo collage templates must have alpha channels named "Picture 1", "Picture 2"... "Picture n".
- Photo collage templates layers above the background layers must provide transparent areas to reveal the images which will be placed below them.
There are twelve scripts in this package, they provide the following functions:
- TestCollageTemplate.jsx - used to test a model of Collage of Photo while you're doing it with Photoshop.
- CollageTemplateBuilder.jsx - can build models that are compatible with this toolkit scripts.
- LayerToAlphaChan.jsx - used to convert a stack of the Prototype Image layers in a document template.
- InteractivePopulateCollage.jsx - used to fill interactively model Any Photo Collage. Offers more user control insert images and text.
- ReplaceCollageImage.jsx - allows to replace an object layer dynamic image collage populated with another image resized and positioned correctly.
- ChangeTextSize.jsx - this script can be used to change the size of text Image stamps when the size used by the filling did not work well.
- PopulateCollageTemplate.jsx - used to fill a Photo Collage template and leave the populated copy automatically opened in Photoshop.
- BatchOneImageCollage.jsx - used for the models automatically batch fill Collage that have only a single image inserted. The Collage or picture may be stamped with the text.
- BatchMultiImageCollage.jsx - used to model automatically batch fill any Photo Collage with images in an image source folder. Easier to use than the interactive script. Recorded collages can be twisted.
- BatchPicturePackage.jsx - used to model automatically batch fill any Photo Collage with an image in the image source folder
- PasteImageRoll.jsx - paste Images into a document to print on roll paper.
- PCTpreferences.jsx - edit this file to customize Collage fill preset scripts and add your own layer styles.
-
External load VDO without repeating the same file while playing randomly
Hey! I almost did my programming Flash file. But I am so tired of making not to repeat the file VDO that it's playing.
I hope you guys will be the solution for me. *()*
It's my source code
////////////To Load any VDO/////////////// import flash.net.NetStream; import flash.net.NetConnection; import flash.media.Video; var video; var nc; var ns; nc = new NetConnection(); nc.connect(null); ns = new NetStream(nc); ns.client = this; video = new Video(550,400); addChild(video); video.attachNetStream(ns); /////////////////////////// /////////////Array for VDO Files///////////// var VdoStore:Array = new Array("westler.flv","TomAndJerry.flv","GetThere.flv"); /////////////////////////// /////////////Keyboard and Screen Show//////////////// import flash.events.KeyboardEvent; import flash.events.Event; stage.addEventListener(KeyboardEvent.KEY_DOWN,onDown); stage.addEventListener(KeyboardEvent.KEY_UP,onUP); function onDown(e:KeyboardEvent):void{ var SelectedVid = VdoStore[Math.floor(Math.random() * VdoStore.length)]; //var DontRepeat:Array = new Array(); << I tried create another array to keep the file which was played if (e.keyCode==49) { ns.play(SelectedVid); stage.removeEventListener(KeyboardEvent.KEY_DOWN,onDown); //onUP(null); } if (e.keyCode==69) { ns.play(SelectedVid); stage.removeEventListener(KeyboardEvent.KEY_DOWN,onDown); //onUP(null); } } function onUP(e:KeyboardEvent):void { if(e.keyCode==49) { stage.addEventListener(KeyboardEvent.KEY_DOWN,onDown); } if(e.keyCode==69) { stage.addEventListener(KeyboardEvent.KEY_DOWN,onDown); } }
And THST is the code that I removed all the things that I experimented on. Only code that works is shown above.
I don't need them all to be played before random new start. Just that he shouldn't play the same vdo who plays right now when I click on any button after.
For the record, I'll add more vdos, about 20 and more buttons keyboard click under the same numbers.
Anyone? * Pleaseeeeeeee > / / / <
One way would be to remove the video played to the table when it is played so that it can not yet be licked.
Another way, since you don't mind a repeat later would be to store the index of the video chosen when it is played in a variable that you compare the index selected. If the selection corresponds to the variable, then you run the selection processing again until you take successfully another video. To do this, it will be easier to have a separate function that performs the selection.
-
Thus, we are about to spread our first campaign of stream Nurture (woohoo!) and I'm trying to figure out how to do a segment that feed only new prospects (Eloqua contacts) who recently completed a form, without putting twice in the same person.
Is there sort of to do so and to ensure that they will not re-entered in our feed, Nurture, because we do not want to receive them the same e-mail twice and pushed all the way up until the beginning of the stream of the innate?
Aid or redirects to prior messages, that I may have missed would be super useful, thanks!
The canvas of default campaign will not accept that a contact enter the campaign once; This can be checked by navigating up the gear icon > settings, make sure that the checkbox "Allow contacts to get into the campaign more than once..." is unchecked.
-
I have to repeat the same steps and display in the Panel before (graphic fft and other indicators).
Do I need to repeat the same code for each entry/channel? I already have too many channels and whenever I change a measure (and code) for an input/channel, I have to repeat the changes to all the other entries.
Thank you
-
In the tree of ADF problem when I use 2 tree in a Page with the same object in view!
Hello world
I use 11.1.1.5 JDeveloper and ADF Faces in the user interface. I have 2 trees in a page that they are same view editable object but different instances in the module of the application. When I change the attribute value of one of them to manage Bean programmatically, two of them change? !! in my case, I put a checkbox in nodeStamp, when the user click on the checkbox, rank title needs to change but the title in both entities change?
I think it's a bug.
Please help me. Thank youHello
If I understand your case, then this is the expected behavior.
When multiple instances of objects from view based on feature in an application module is based on the same underlying object of the entity, then a change in one of them reflected on the other. -
selection of multiple grants on the same object
Hello
(The following SQl code will be run on 9i, 10g and 11g database versions)
Im trying to produce a list of the directory of the subsidies that are the same from 2 different users (but only display the details of a user grants)
to clarify...
lets say we have 100 directories and 2 users who have granted permissions on them, user A and user B.
Permissions can be granted on a directory by just A user, to any user B or the same permission granted on the same directory by users A and B.
I want to make a list that displays the details of the directories where user A and user B are granted this permission (but in the list only display the details of A user grants)
If the following SQL code will give me all the directory permissions that are granted by user A
Select p.table_name, p.grantee, p.owner, p.grantor, p.privilege, o.object_type
of dba_tab_privs p
dba_objects o inner join
on o.object_name = p.table_name
where o.object_type = 'DIRECTORY '.
and p.grantor = 'USER ';
so I want to make the same list of grants by USERA just, but only if these directories have also been granted the same permission by USERB
any ideas on the best way to do it?
Thank you882817 wrote:
What's the advantage I have this solution on the previous?Well, I just introduced two solutions. Depending on the particular case compare you execution plans and choose a better. Here we have quite complex views, but I would say the analytical solution is a little bit faster:
SQL> explain plan for 2 select p.table_name, 3 p.grantee, 4 p.owner, 5 p.grantor, 6 p.privilege, 7 o.object_type 8 from dba_tab_privs p 9 inner join 10 dba_objects o 11 on ( 12 o.object_type = 'DIRECTORY' 13 and 14 o.owner = p.owner 15 and 16 o.object_name = p.table_name 17 and 18 p.grantor != 'U2' 19 ) 20 where not exists ( 21 select 1 22 from dba_tab_privs p1 23 where p.owner = p1.owner 24 and p.table_name = p1.table_name 25 and p.grantee = p1.grantee 26 and p.privilege = p1.privilege 27 and p1.grantor = 'U2' 28* ) SQL> / Explained. SQL> @?\rdbms\admin\utlxpls PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------ Plan hash value: 1557554763 ---------------------------------------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time | ---------------------------------------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 494 | 131K| | 864 (5)| 00:00:11 | |* 1 | HASH JOIN | | 494 | 131K| | 864 (5)| 00:00:11 | |* 2 | TABLE ACCESS FULL | USER$ | 73 | 1095 | | 3 (0)| 00:00:01 | |* 3 | HASH JOIN ANTI | | 494 | 124K| | 861 (5)| 00:00:11 | |* 4 | HASH JOIN | | 522 | 96570 | | 681 (5)| 00:00:09 | | 5 | TABLE ACCESS FULL | USER$ | 74 | 1110 | | 3 (0)| 00:00:01 | PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------ |* 6 | HASH JOIN | | 522 | 88740 | | 678 (5)| 00:00:09 | | 7 | TABLE ACCESS FULL | USER$ | 74 | 1110 | | 3 (0)| 00:00:01 | |* 8 | HASH JOIN | | 38597 | 5842K| 1752K| 674 (5)| 00:00:09 | |* 9 | HASH JOIN | | 24484 | 1458K| | 172 (5)| 00:00:03 | |* 10 | HASH JOIN | | 24221 | 685K| | 23 (9)| 00:00:01 | | 11 | INDEX FULL SCAN | I_TABLE_PRIVILEGE_MAP | 24 | 240 | | 1 (0)| 00:00:01 | |* 12 | TABLE ACCESS FULL | OBJAUTH$ | 24221 | 449K| | 21 (5)| 00:00:01 | | 13 | TABLE ACCESS FULL | OBJ$ | 52647 | 1645K| | 147 (3)| 00:00:02 | | 14 | VIEW | DBA_OBJECTS | 49670 | 4559K| | 164 (10)| 00:00:02 | | 15 | UNION-ALL | | | | | | | |* 16 | FILTER | | | | | | | PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------ |* 17 | HASH JOIN | | 52627 | 2826K| | 162 (10)| 00:00:02 | | 18 | TABLE ACCESS FULL | USER$ | 74 | 1110 | | 3 (0)| 00:00:01 | |* 19 | TABLE ACCESS FULL | OBJ$ | 52627 | 2055K| | 158 (9)| 00:00:02 | |* 20 | TABLE ACCESS BY INDEX ROWID | IND$ | 1 | 8 | | 2 (0)| 00:00:01 | |* 21 | INDEX UNIQUE SCAN | I_IND1 | 1 | | | 1 (0)| 00:00:01 | |* 22 | TABLE ACCESS BY INDEX ROWID| SUM$ | 1 | 8 | | 1 (0)| 00:00:01 | |* 23 | INDEX UNIQUE SCAN | I_SUM$_1 | 1 | | | 0 (0)| 00:00:01 | |* 24 | FILTER | | | | | | | |* 25 | HASH JOIN | | 9 | 513 | | 5 (20)| 00:00:01 | | 26 | INDEX FULL SCAN | I_LINK1 | 9 | 378 | | 1 (0)| 00:00:01 | | 27 | TABLE ACCESS FULL | USER$ | 74 | 1110 | | 3 (0)| 00:00:01 | PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------ | 28 | VIEW | VW_SQ_1 | 1530 | 109K| | 179 (4)| 00:00:03 | |* 29 | HASH JOIN | | 1530 | 158K| | 179 (4)| 00:00:03 | | 30 | TABLE ACCESS FULL | USER$ | 74 | 1110 | | 3 (0)| 00:00:01 | |* 31 | HASH JOIN | | 1530 | 135K| | 176 (4)| 00:00:03 | |* 32 | HASH JOIN | | 1514 | 89326 | | 27 (8)| 00:00:01 | | 33 | TABLE ACCESS FULL | USER$ | 74 | 1110 | | 3 (0)| 00:00:01 | |* 34 | HASH JOIN | | 1514 | 66616 | | 24 (9)| 00:00:01 | | 35 | INDEX FULL SCAN | I_TABLE_PRIVILEGE_MAP | 24 | 240 | | 1 (0)| 00:00:01 | | 36 | NESTED LOOPS | | 1514 | 51476 | | 22 (5)| 00:00:01 | | 37 | TABLE ACCESS BY INDEX ROWID | USER$ | 1 | 15 | | 1 (0)| 00:00:01 | |* 38 | INDEX UNIQUE SCAN | I_USER1 | 1 | | | 0 (0)| 00:00:01 | PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------ |* 39 | TABLE ACCESS FULL | OBJAUTH$ | 1514 | 28766 | | 21 (5)| 00:00:01 | | 40 | TABLE ACCESS FULL | OBJ$ | 52647 | 1645K| | 147 (3)| 00:00:02 | ---------------------------------------------------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 1 - access("OA"."GRANTOR#"="UR"."USER#") 2 - filter("UR"."NAME"<>'U2') 3 - access("U"."NAME"="NAME" AND "O"."NAME"="NAME" AND "UE"."NAME"="NAME" AND "TPM"."NAME"="NAME") 4 - access("OA"."GRANTEE#"="UE"."USER#") PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------ 6 - access("O"."OWNER"="U"."NAME" AND "U"."USER#"="O"."OWNER#") 8 - access("O"."OBJECT_NAME"="O"."NAME") 9 - access("OA"."OBJ#"="O"."OBJ#") 10 - access("OA"."PRIVILEGE#"="TPM"."PRIVILEGE") 12 - filter("OA"."COL#" IS NULL) 16 - filter(("O"."TYPE#"<>1 AND "O"."TYPE#"<>10 OR "O"."TYPE#"=1 AND (SELECT 1 FROM "SYS"."IND$" "I" WHERE "I"."OBJ#"=:B1 AND ("I"."TYPE#"=1 OR "I"."TYPE#"=2 OR "I"."TYPE#"=3 OR "I"."TYPE#"=4 OR "I"."TYPE#"=6 OR "I"."TYPE#"=7 OR "I"."TYPE#"=9))=1) AND DECODE("O"."TYPE#",0,'NEXT OBJECT',1,'INDEX',2,'TABLE',3,'CLUSTER',4,'VIEW',5,'SYNONYM',6,'SEQUENCE',7,'PROCEDURE',8,'FUNCTION',9,'PACKAG E',11,'PACKAGE BODY',12,'TRIGGER',13,'TYPE',14,'TYPE BODY',19,'TABLE PARTITION',20,'INDEX PARTITION',21,'LOB',22,'LIBRARY',23,'DIRECTORY',24,'QUEUE',28,'JAVA SOURCE',29,'JAVA CLASS',30,'JAVA PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------ RESOURCE',32,'INDEXTYPE',33,'OPERATOR',34,'TABLE SUBPARTITION',35,'INDEX SUBPARTITION',40,'LOB PARTITION',41,'LOB SUBPARTITION',42,NVL( (SELECT DISTINCT 'REWRITE EQUIVALENCE' FROM SYS."SUM$" "S" WHERE "S"."OBJ#"=:B2 AND BITAND("S"."XPFLAGS",8388608)=8388608),'MATERIALIZED VIEW'),43,'DIMENSION',44,'CONTEXT',46,'RULE SET',47,'RESOURCE PLAN',48,'CONSUMER GROUP',51,'SUBSCRIPTION',52,'LOCATION',55,'XML SCHEMA',56,'JAVA DATA',57,'SECURITY PROFILE',59,'RULE',60,'CAPTURE',61,'APPLY',62,'EVALUATION CONTEXT',66,'JOB',67,'PROGRAM',68,'JOB CLASS',69,'WINDOW',72,'WINDOW GROUP',74,'SCHEDULE',79,'CHAIN',81,'FILE GROUP','UNDEFINED')='DIRECTORY') 17 - access("O"."OWNER#"="U"."USER#") 19 - filter("O"."LINKNAME" IS NULL AND "O"."NAME"<>'_NEXT_OBJECT' AND "O"."NAME"<>'_default_auditing_options_' AND BITAND("O"."FLAGS",128)=0) 20 - filter("I"."TYPE#"=1 OR "I"."TYPE#"=2 OR "I"."TYPE#"=3 OR "I"."TYPE#"=4 OR "I"."TYPE#"=6 OR PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------ "I"."TYPE#"=7 OR "I"."TYPE#"=9) 21 - access("I"."OBJ#"=:B1) 22 - filter(BITAND("S"."XPFLAGS",8388608)=8388608) 23 - access("S"."OBJ#"=:B1) 24 - filter(NULL IS NOT NULL) 25 - access("L"."OWNER#"="U"."USER#") 29 - access("U"."USER#"="O"."OWNER#") 31 - access("OA"."OBJ#"="O"."OBJ#") 32 - access("OA"."GRANTEE#"="UE"."USER#") 34 - access("OA"."PRIVILEGE#"="TPM"."PRIVILEGE") 38 - access("UR"."NAME"='U2') PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------ 39 - filter("OA"."COL#" IS NULL AND "OA"."GRANTOR#"="UR"."USER#") 89 rows selected. SQL> explain plan for 2 select table_name, 3 grantee, 4 owner, 5 grantor, 6 privilege, 7 object_type 8 from ( 9 select p.table_name, 10 p.grantee, 11 p.owner, 12 p.grantor, 13 p.privilege, 14 o.object_type, 15 count(case when p.grantor != 'U2' then 1 end) over(partition by p.table_name,p.grantee,p.owner,p.privilege) u2_indicator 16 from dba_tab_privs p 17 inner join 18 dba_objects o 19 on ( 20 o.object_type = 'DIRECTORY' 21 and 22 o.owner = p.owner 23 and 24 o.object_name = p.table_name 25 ) 26 ) 27 where u2_indicator = 1 28 / Explained. SQL> SQL> SQL> @?\rdbms\admin\utlxpls PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------ Plan hash value: 1974693759 ------------------------------------------------------------------------------------------------------------------------ | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time | ------------------------------------------------------------------------------------------------------------------------ | 0 | SELECT STATEMENT | | 522 | 59508 | | 674 (5)| 00:00:09 | |* 1 | VIEW | | 522 | 59508 | | 674 (5)| 00:00:09 | | 2 | WINDOW SORT | | 522 | 101K| | 674 (5)| 00:00:09 | |* 3 | HASH JOIN | | 522 | 101K| | 673 (5)| 00:00:09 | | 4 | TABLE ACCESS FULL | USER$ | 74 | 1110 | | 3 (0)| 00:00:01 | |* 5 | HASH JOIN | | 522 | 96570 | | 670 (5)| 00:00:09 | PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------ | 6 | TABLE ACCESS FULL | USER$ | 74 | 1110 | | 3 (0)| 00:00:01 | |* 7 | HASH JOIN | | 522 | 88740 | | 666 (5)| 00:00:08 | | 8 | INDEX FULL SCAN | I_TABLE_PRIVILEGE_MAP | 24 | 240 | | 1 (0)| 00:00:01 | |* 9 | HASH JOIN | | 522 | 83520 | | 665 (5)| 00:00:08 | | 10 | TABLE ACCESS FULL | USER$ | 74 | 1110 | | 3 (0)| 00:00:01 | |* 11 | HASH JOIN | | 38597 | 5465K| 1512K| 661 (4)| 00:00:08 | |* 12 | HASH JOIN | | 24484 | 1219K| | 170 (4)| 00:00:03 | |* 13 | TABLE ACCESS FULL | OBJAUTH$ | 24221 | 449K| | 21 (5)| 00:00:01 | | 14 | TABLE ACCESS FULL | OBJ$ | 52647 | 1645K| | 147 (3)| 00:00:02 | | 15 | VIEW | DBA_OBJECTS | 49670 | 4559K| | 164 (10)| 00:00:02 | | 16 | UNION-ALL | | | | | | | PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------ |* 17 | FILTER | | | | | | | |* 18 | HASH JOIN | | 52627 | 2826K| | 162 (10)| 00:00:02 | | 19 | TABLE ACCESS FULL | USER$ | 74 | 1110 | | 3 (0)| 00:00:01 | |* 20 | TABLE ACCESS FULL | OBJ$ | 52627 | 2055K| | 158 (9)| 00:00:02 | |* 21 | TABLE ACCESS BY INDEX ROWID | IND$ | 1 | 8 | | 2 (0)| 00:00:01 | |* 22 | INDEX UNIQUE SCAN | I_IND1 | 1 | | | 1 (0)| 00:00:01 | |* 23 | TABLE ACCESS BY INDEX ROWID| SUM$ | 1 | 8 | | 1 (0)| 00:00:01 | |* 24 | INDEX UNIQUE SCAN | I_SUM$_1 | 1 | | | 0 (0)| 00:00:01 | |* 25 | FILTER | | | | | | | |* 26 | HASH JOIN | | 9 | 513 | | 5 (20)| 00:00:01 | | 27 | INDEX FULL SCAN | I_LINK1 | 9 | 378 | | 1 (0)| 00:00:01 | PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------ | 28 | TABLE ACCESS FULL | USER$ | 74 | 1110 | | 3 (0)| 00:00:01 | ------------------------------------------------------------------------------------------------------------------------ Predicate Information (identified by operation id): --------------------------------------------------- 1 - filter("U2_INDICATOR"=1) 3 - access("OA"."GRANTEE#"="UE"."USER#") 5 - access("OA"."GRANTOR#"="UR"."USER#") 7 - access("OA"."PRIVILEGE#"="TPM"."PRIVILEGE") 9 - access("O"."OWNER"="U"."NAME" AND "U"."USER#"="O"."OWNER#") PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------ 11 - access("O"."OBJECT_NAME"="O"."NAME") 12 - access("OA"."OBJ#"="O"."OBJ#") 13 - filter("OA"."COL#" IS NULL) 17 - filter(("O"."TYPE#"<>1 AND "O"."TYPE#"<>10 OR "O"."TYPE#"=1 AND (SELECT 1 FROM "SYS"."IND$" "I" WHERE "I"."OBJ#"=:B1 AND ("I"."TYPE#"=1 OR "I"."TYPE#"=2 OR "I"."TYPE#"=3 OR "I"."TYPE#"=4 OR "I"."TYPE#"=6 OR "I"."TYPE#"=7 OR "I"."TYPE#"=9))=1) AND DECODE("O"."TYPE#",0,'NEXT OBJECT',1,'INDEX',2,'TABLE',3,'CLUSTER',4,'VIEW',5,'SYNONYM',6,'SEQUENCE',7,'PROCEDURE',8,'FUNCTION',9,'PACKAGE' ,11,'PACKAGE BODY',12,'TRIGGER',13,'TYPE',14,'TYPE BODY',19,'TABLE PARTITION',20,'INDEX PARTITION',21,'LOB',22,'LIBRARY',23,'DIRECTORY',24,'QUEUE',28,'JAVA SOURCE',29,'JAVA CLASS',30,'JAVA RESOURCE',32,'INDEXTYPE',33,'OPERATOR',34,'TABLE SUBPARTITION',35,'INDEX SUBPARTITION',40,'LOB PARTITION',41,'LOB SUBPARTITION',42,NVL( (SELECT DISTINCT 'REWRITE EQUIVALENCE' FROM SYS."SUM$" "S" WHERE PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------ "S"."OBJ#"=:B2 AND BITAND("S"."XPFLAGS",8388608)=8388608),'MATERIALIZED VIEW'),43,'DIMENSION',44,'CONTEXT',46,'RULE SET',47,'RESOURCE PLAN',48,'CONSUMER GROUP',51,'SUBSCRIPTION',52,'LOCATION',55,'XML SCHEMA',56,'JAVA DATA',57,'SECURITY PROFILE',59,'RULE',60,'CAPTURE',61,'APPLY',62,'EVALUATION CONTEXT',66,'JOB',67,'PROGRAM',68,'JOB CLASS',69,'WINDOW',72,'WINDOW GROUP',74,'SCHEDULE',79,'CHAIN',81,'FILE GROUP','UNDEFINED')='DIRECTORY') 18 - access("O"."OWNER#"="U"."USER#") 20 - filter("O"."LINKNAME" IS NULL AND "O"."NAME"<>'_NEXT_OBJECT' AND "O"."NAME"<>'_default_auditing_options_' AND BITAND("O"."FLAGS",128)=0) 21 - filter("I"."TYPE#"=1 OR "I"."TYPE#"=2 OR "I"."TYPE#"=3 OR "I"."TYPE#"=4 OR "I"."TYPE#"=6 OR "I"."TYPE#"=7 OR "I"."TYPE#"=9) 22 - access("I"."OBJ#"=:B1) PLAN_TABLE_OUTPUT ------------------------------------------------------------------------------------------------------------------------------------ 23 - filter(BITAND("S"."XPFLAGS",8388608)=8388608) 24 - access("S"."OBJ#"=:B1) 25 - filter(NULL IS NOT NULL) 26 - access("L"."OWNER#"="U"."USER#") 70 rows selected. SQL>
SY.
-
It Possible to work with the same object instance Calendar?
Dear Experts
Can you please help me with this one... I get the same experience for all employees even if I changed the dates:
Maybe to get the complete code you will be an overview
Published by: standman on March 14, 2011 12:37import java.util.Calendar; class Employee { private Calendar doj; private String empname; void setEmpName(String empname) { this.empname = empname; } String getEmpName() { return this.empname ; } void setDoj(Calendar doj) { this.doj = doj; } Calendar setDoj() { return this.doj ; } int ExperienceInYears(Calendar now) { int todayday=0,dobday=0; if (doj.after(now)) { throw new IllegalArgumentException("Date Error! Doj > today"); } int year1 = now.get(Calendar.YEAR); int year2 = doj.get(Calendar.YEAR); int yrs = year1 - year2; int todaymonth = now.get(Calendar.MONTH); int dobmonth = doj.get(Calendar.MONTH); if (dobmonth > todaymonth) { yrs--; } else if (todaymonth == dobmonth) { todayday = now.get(Calendar.DAY_OF_MONTH); dobday = doj.get(Calendar.DAY_OF_MONTH); if (dobday > todayday) { yrs--; } } return yrs; } } public class Main { public static void main(String[] args) { Calendar doj,today; int yrs; today = Calendar.getInstance(); doj = Calendar.getInstance(); today.set(2011, 3, 14); Employee e1 = new Employee(); Employee e2 = new Employee(); Employee e3 = new Employee(); e1.setEmpName("John Denver"); doj.set(1990, 1, 2); // First Time e1.setDoj(doj); e2.setEmpName("Olivia Newton"); doj.set(2002, 12, 12); // Second Time e2.setDoj(doj); e3.setEmpName("Neil Diamond"); doj.set(2005, 3,3); //Third time e3.setDoj(doj); yrs=e1.ExperienceInYears(today); System.out.println("The Employee " + e1.getEmpName()+ " has " + yrs + " years of exprience" ); yrs=e2.ExperienceInYears(today); System.out.println("The Employee " + e2.getEmpName()+ " has " + yrs + " years of exprience" ); yrs=e3.ExperienceInYears(today); System.out.println("The Employee " + e3.getEmpName()+ " has " + yrs + " years of exprience" ); } }
standman wrote:
If I have three different dojs can I get the right answer! But why?What said Kayaman; However, now that you know this, you see that there is a much better way to set up your employees? (Hint: think of an employee (String, int, int, int) constructor).
Winston
-
How can I run two sequences simultaneously on the same object to measure
I'm turning two sequences in parallel on even the UUT (own USE) so that I can put a piece of equipment to a certain State while starting a timer at the same time. How can I do this in the sequencer teststand?
You can run a sequence (or a subsequence if you just need a timer) in a new thread (just choose "use new thread" in the call of the sequence)
-
How can I add two different colors on the same object?
Hello
Say if I have something that I have a circle and I want the black semicircle and the other half with white. How can I do this?
Thank you
actually, sorry, forget something: you can fill it with a gradient that has two color stops in the same place. It is maybe a little more ordered according to what you need.
-
I have a chart of the letters from A to Z.
I add the child to the scene with a discreet button represents the letter of the alphabet.
I can add different letters to step up to 4 letters (I have a condition 'if', limiting the number of children on the stage). But if I try to add 4 of the SAME letter, added the first, the second is added and removed from the first, the third is added and removed from the second (and the first has already been removed) and so on. So I can never have the same letters as if I want to spell out MMMM as the expression of a feeling.
How can this be? I think I used a similar method before in a previous prototype where new children were loading on the scene from an image file on the disk. In this case, all the children are integrated MovieClips in the FLA file (the FLA is huge!... because I have about 10 types of lettering images for each letter of the alphabet). And I'm calling those with class constructors and pushing Classes in an array and then call this table a for loop iterating from 0 to less than 27 with i being a uint.
Any help is greatly appreciated.
-markerline
:
initialize
var wordDisplayA:Array = [];
var btnA:Array = [btn_A, btn_B],
for (var i: int = 0; i<>
btnA [i] .addEventListener (MouseEvent.CLICK, letterDisplayF);
}
use wordDisplayA to remove objects in the scene and null them.
can change but do not change significantly
function letterDisplayF(e:MouseEvent):void {}
var C: Class = Class (getDefinitionByName ("Alpha_01_" + e.currentTarget.name.split ("btn_") [1] .toUpp erCase()));
var instance: MovieClip = new C();
addChild (instance);
wordDisplayA.push (instance);
instance.x = instance. Width * wordDisplayA.Length;
}
Call when you want to remove the letters.
function removeWordF (): void {}
for (var i: int = wordDisplayA.length - 1; i > = 0; i--) {}
removeChild (wordDisplayA [i]);
}
wordDisplayA.length = 0;
}
-
Is it possible to set up several questionnaires in the same presentation of Captivate?
I'm trying to set up a training project which has several sections corresponding to the different categories within the training. After each section, I would install a quiz which draws a few questions in the pools of question to make a check of the knowledge. After the verification of knowledge I would like to allow the user to review the questions in the previous section before moving on to the next section. Due to the nature of the random questions I use graded questions from question pools. In a training project with 4 sections, I need 4 slides examination of quiz. It seems that currently review quiz slide is generated automatically for all quiz questions in the presentation.
You are right. Review of Quiz is triggered by the button on the Quiz results slide. Examining the quiz will automatically terminate any possibility to use other attempts on the quiz on the session.
Captivate projects are really only designed to have a quiz (as well as the possibility of a preliminary test). What you want to do, the best option is to have several projects.
Maybe you are looking for
-
This a Walgreen through. I can get on the site, but cannot connect to the dashboard when I connect my steps every day.I called and they sid they couldn't help, but suggested dumping the cookies.
-
After the installation of El Capitan, I was prompted to install legacy Java SE 6 to use CS5 applications. I did and CS5 runs. My problem is that I have recently become much more security conscious and have read that running Java may pose security ris
-
Hi where can I buy these nidec fan for 3rd Gen x 1 carbon? Just to know where to find the original type and not a copy or so?
-
How to send emails to the MS Exchange Server 2010 distribution group?
Well, I'm not well versed in Exchange, (that I'm learning) so please forgive me for the lack of details correct / lingo. I try to create email for my church, distribution groups.We must be able to send a single email to a group and do it before out t
-
Hello I am stuck on this program, I can't seem to understand. can someone guide me in the right direction please. I did this program, and it is properly take a reference image and other images rotated and attract crosshair while the images are shot.