Prevent all instances of a table to run the same code set?
Hi, as the title suggests, how would you prevent that from happening? Basically, I have a game where the players reproduce units that move automatically to the point of arrival, and there towers throughout the screen which fires to the unit, the unit is in the range. However, the towers that I put in a table all draw to the device when it has reached in the range of one of the towers. (To say things in a different way, I have 3 turns on screen, everyone is supposed to get their own range. However, when the device comes in range of one of the towers, all 3 rounds fire.) In addition, because of the executed code three times, towers fire 3 balls at once more, makes the health of the device decreases by 3 instead of 1. Any help would be appreciated. Thank you! Here's the part of my code. Most of the code for tables is in my Main.as.
private function level1(e:MouseEvent):void { gotoAndStop(1, 'level1'); //Initialise variables //Variables for Creep 1 buttonCreep1 = new btnCreep1; stage.addChild(buttonCreep1); buttonCreep1.x = 0; buttonCreep1.y = 600; //Variables for Creep 2 buttonCreep2 = new btnCreep2; stage.addChild(buttonCreep2); buttonCreep2.x = 100; buttonCreep2.y = 600; //Arrays for Creeps creep2Array = new Array; creep1Array = new Array; //Arrays for towers tower1Array = new Array; tower1BulletArray = new Array; //PLACE TOWER POSITIONS HERE var tower1New1:MovieClip = new mcTower1; tower1New1.x = 313; tower1New1.y = 340; tower1Array.push(tower1New1); MovieClip(root).addChild(tower1New1); // var tower1New2:MovieClip = new mcTower1; tower1New2.x = 590; tower1New2.y = 340; tower1Array.push(tower1New2); MovieClip(root).addChild(tower1New2); // var tower1New3:MovieClip = new mcTower1; tower1New3.x = 466; tower1New3.y = 180; tower1Array.push(tower1New3); MovieClip(root).addChild(tower1New3); // //Other Variables money = 500; gamePaused = false; currentLevelMinutes = 0; currentLevelSeconds = 0; //Event Listeners stage.addEventListener(Event.ENTER_FRAME, update); buttonCreep1.addEventListener(MouseEvent.CLICK, spawnCreep1Lv1); buttonCreep2.addEventListener(MouseEvent.CLICK, spawnCreep2Lv1); btnBack.addEventListener(MouseEvent.CLICK, exitLevel); btnPause.addEventListener(MouseEvent.CLICK, pauseGame); btnResume.addEventListener(MouseEvent.CLICK, resumeGame); } private function update(e:Event):void { //trace ("update function is working") creep1Lv1(); creep2Lv1(); tower1Handler(); pauseControl(); timeControl(); updateTimeTxt(); //trace (tower1BulletArray.length); //trace (creep1Array.length); } private function tower1Handler():void { for (var i:int = tower1Array.length - 1; i >= 0; i--) { var tower1 = tower1Array[i]; tower1.tower1Update(); if (!tower1.isReady()) continue; for each (var creep1:mcCreep1 in creep1Array) { if (tower1.canShoot(creep1)) { tower1Fire(tower1, creep1); tower1.gotoAndPlay(110); tower1.reset(); break; } } } } private function laser1Handler(e:Event):void { //Make laser move in direction of turret. var newLaser1:MovieClip = e.currentTarget as MovieClip; newLaser1.x += Math.cos(newLaser1.rotation * Math.PI / 180) * laser1Speed / creep1Array.length; newLaser1.y += Math.sin(newLaser1.rotation * Math.PI / 180) * laser1Speed / creep1Array.length; for (var i:int = creep1Array.length - 1; i >= 0; i--) { var thisCreep = creep1Array[i]; //Boundary checking if (newLaser1.x < -50 || newLaser1.x > 800 || newLaser1.y > 600 || newLaser1.y < -50) { newLaser1.gotoAndPlay(2); tower1BulletArray.splice (0, 1); } else if (newLaser1.hitTestObject(thisCreep)) { newLaser1.gotoAndPlay(2); newLaser1.removeEventListener(Event.ENTER_FRAME, laser1Handler); tower1BulletArray.splice (0, 1); if (thisCreep.currentLabel == "ChickenIdel" || thisCreep.currentLabel == "chickenIdle") { if (thisCreep.updateHealth(-1) <= 0) { thisCreep.gotoAndPlay(201); creep1Array.splice(i, 1); } } } } }
It's my mcLaser1.as file.
public class mcLaser1 extends MovieClip { public function mcLaser1() { stop(); var angle:Number; addEventListener(Event.ADDED_TO_STAGE, onAdd); } private function onAdd(e:Event):void { removeEventListener(Event.ADDED_TO_STAGE, onAdd); addEventListener(Event.ENTER_FRAME, bullet1Loop); } private function bullet1Loop(e:Event):void { if (currentLabel == "destroyedComplete") { destroyBullet1(); } } public function destroyBullet1() { this.parent.removeChild(this); removeEventListener(Event.ENTER_FRAME, bullet1Loop); } }
In addition, when a bullet kills a creep, and there is no another goose bumps left on the stage, all the other balls is simply disappear.
Any help would be appreciated. Thank you!
for each (var tower1:mcTower1 in tower1Array)
{
won't. There should be no loop for in this function. use:
private function tower1Fire(tower1:mcTower1, creep:mcCreep1):void { var angle:Number = Math.atan2(creep.y - tower1.y, creep.x - tower1.x) / Math.PI * 180; var newLaser1:mcLaser1 = new mcLaser1(); newLaser1.rotation = angle; newLaser1.x = tower1.x + Math.cos(Math.atan2(creep.y - tower1.y, creep.x - tower1.x) / Math.PI * 180 * Math.PI / 180) * 60; newLaser1.y = tower1.y + Math.sin(Math.atan2(creep.y - tower1.y, creep.x - tower1.x) / Math.PI * 180 * Math.PI / 180) * 60; newLaser1.addEventListener(Event.ENTER_FRAME, laser1Handler); tower1BulletArray.push(newLaser1); addChild(newLaser1); }
and I don't see where you are by checking if a creep is at the tower.
Tags: Adobe Animate
Similar Questions
-
Check all instances within a table
Hello new question - how to test to see if all instances in my table is hitting movieclip?
What I want to do is some like this_
If (all instances in AliveCharacters.hitTestObject (Flag))
{
Then run function;
}
If they all hit to trigger your function:
function allHitF (): void {}
var allHit:Boolean = true;
for (var i: int = AliveCharacters.length - 1; i > = 0; i--) {}
If (!.) {AliveCharacters [i] .hitTestObject (Flag))}
allHit = false;
break;
}
}
{if (allHit)}
Run function
}
}
-
I tried to install a wireless adapter USB on my laptop, but I can't seem to get the driver from the installation CD files to load. I have no problem loading and use of the adapter on my desktop. They are in C:\winnt\system32. On my laptop (Dell Inspiron 700 m, running the same WinXP Pro, SP3), no there no. C:\winnt folder. This would explain why the CD with the driver files will not charge in the computer and so why the adapter won't work. Why would this file be C:\winnt... not being on my laptop using the same operating system? It would be possible that Dell to have intentionally omitted when they loaded 'their version' of XP?
Some XP system files in C:\WinNT store computers, and some store in C:\Windows . I don't think that the difference due to the problem with your wireless network card.
The driver installation should ask Windows XP where to install the files, using the value of the environment variable SystemRoot . Its value, click Start > all programs > Accessories > command prompt , type the following command and press enter :
echo % SystemRoot %
That shows the Manager of devices for the network adapters? The wireless card is installed, and it has a driver installed? There are some unknown devices?
-
Lean how to run the stop code when the highest level VI ends
Hi people.
I am a newbie of LV with 30 years of experience in embedded SW engineering. I searched for how to run the stop code when a VI of highest level ends. I found many examples, but they are horribly complicated. A little birdie told me that such a model of simple design should not be so compilicated.
My application is an application of high tension control to disable all HV checkpoints when the SW ends. My VI code is running in a while loop with a stop button that leads out of the loop. I can easily accomplish my requirement by programming with a sequence of plate that runs after the end of the main loop. The technique of flat sequence does not work when the user clicks the Cancel button in the toolbar of façade, more than that market when the user clicks the close button of the application (X button) when you run the exe application.
Can someone tell me please a simple technique, the code example that can show me a lean and elegant way to accomplish my task? It doesn't have to be an obvious solution (for example a stop induced watchdog seems simple enough).
Thank you - John Speth
1. place this code in a VI:
(also attached)
Calling code in your VI of highest level like this:
-
Move all other organisers to another drive on the same computor
I would move all the photos in my Organizer to another drive on the same computer to free up space and have all future uploaded images go directly on the same drive. In other words is it possible to have the program on the operating system drive and photos in the Organizer on a different drive on the same computer.
ChazzzS wrote:
I would move all the photos in my Organizer to another drive on the same computer to free up space and have all future uploaded images go directly on the same drive. In other words is it possible to have the program on the operating system drive and photos in the Organizer on a different drive on the same computer.
Yes.
The new drive can be another internal drive or external.
Two ways:
1. move the files by 'drag and drop' in the left panel of "folders". You can move folders (with their subfolders) to another location (another drive or main folder). That works just like drag and drop in Solution Explorer / finder with the difference that the catalogues guard trace the location of the files. that doesn't create files "disconnected".
Tips: you can do so for only a part of the your folder tree or the entire folders tree. Takes it to process on the same time as the drag and drop in Solution Explorer / finder. No dialog box to indicate that the process is running, be patient! For a big move, I would do a full backup before.
2 - the backup and restore process recommended (move Adobe elements Organizer catalog by using the backup and restore |) Photoshop and first Elements 6 or later version) also works at your needs. While it is specifically intended to move to another computer, it works the same for a move to another drive.
I could mention a third way: move the folders from the Explorer / Finder, then immediately run the function 'reconnect', but it is usually much easier and safer to use one of the solutions above.
If your goal is to move all your media files from several readers to a single, backup / restore is the solution. The restoration will put the result on a single master folder with a master subfolder for each former player.
-
Error running the same application
Hello
I was able to run the same application in another machine in another place.
But when I run the app even here now, by putting the following host name instead of the IP address (I used when I ran the same application in another place) in the connection string.
String url = "jdbc:oracle:thin:@ibmpc_may:1521:xe";
(I have no problem to connect to this DB XE by here)
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = ibmpc_may) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
)
)
But I had the problem below when you run the application itself.
# Cannot run application app12 due to the deployment on IntegratedWebLogicServer error.
[16: 09:42] # incomplete deployment. ####
[16: 09:42] remote deployment failed
[Application app12 interrupted and cancelled Server Instance IntegratedWebLogicServer]
Either by the way, where is the log file? The host name that I used above may be the reason for the problem?
Published by: user12233770 on May 10, 2011 16:23You can check with the removal of system folder?
It will be in C:\Documents and Settings\utilisateur\Application Data\JDeveloper
-
On a five year MAcPro, when you try to open a document, all stored documents seem to open at the same time and any attempt to close results in the MacPRo gel for a long period. Ideas for cause and ideas for a solution?
You have a Mac Pro or a MacBook Pro?
-
Folder Windows Mail system replaces the text by e-mail
In Windows Mail when I drop an email into a subfolder change all emails in that folder to be the same as the first? How can I stop this please? It of weird and happens most of the time but not all the time, I read the email in the Inbox, drag it to the subfolder and when I open it in the subfolder is a completely different email and then when I check the rest in the subfolder they are all the same as the first on in the folder. ?Search for antivirus interference. This is what it sounds like. See www.oehelp.com/OETips.aspx#3
Also try to compact and repair the database (www.oehelp.com/WMUtil/).
See if help them.
Steve
-
Raising the event "output" from a drop-down list in all instances of a table row
I have a drop-down list in a row of table with multiple instances that performs a calculation on the exit event. This calculation takes information from 2 other drop-down lists listed above not repetitive rows of the same table.
The behavior desired is: If the user change their choices above, all instances of the drop-down list below to execute the "Exit" event script to access the new values above.
My script is:
RowOptionalCoverage.DdlCoverageType.execEvent ("exit"); It works, sort of
It updates only the first instance of RowOptionalCoverage and any subsequent instances. The user can 'Tab' through instances and trigger output for each instance event, but this isn't a reasonable solution.
I tried using the method resolveNodes without success. I understand, using the method resolveNodes may be required when you reference multiple instances of an object:
this.resolveNodes ("RowOptionalCoverage [*]. DdlCoverageType [*] ") .execEvent ("exit");" does not work
xfa.resolveNodes ("RowOptionalCoverage [*]. DdlCoverageType [*] ") .execEvent ("exit");" does not work
No doubt, I have to be incorrectly using the resolveNodes or rate something? Probably something simple.
All the tips are greatly appreciated.
Stephen
Hello Stephen,
You need to loop through each instance of the line and force the exit event. Without the form, it should look like:
var oRows = xfa.resolveNodes ("RowOptionalCoverage [*]");
oNodes var = oRows.length;
for (var i = 0; i)< onodes;="">
{
xfa.resolveNode ("RowOptionalCoverage [" + i + "]"). DdlCoverageType.execEvent ("exit");
}You could also index table to determine the number of row repeat:
var oNodes = RowOptionalCoverage.instanceManager.count;
You may change this to make it work.
Good luck
Niall
-
Run the same synchronization project at a stage of DPRProjection using different workflows
Hi all
In the synchronization Editor, I have a project with 2 workflow.
I run the synchronization in a stage of the process, and then I change with a step of sql query the workflow attached to it to run the synchronization even with a different workflow.
request to change the workflow:
Value = "update DPRProjectionStartInfo set UID_DPRProjectionConfig = (select UID_DPRProjectionConfig from the DPRProjectionConfig where DisplayName = 'Workflow 2') where DisplayName ="SynchProject"
but when I run the second sync I get this error:
Error messages [2134003] = error executing a screening complete!
[1777018] error running workflow (ITS Application Portfolio import) of the project of synchronization (synchronization Costa).
Invalid revision store [1777263]. The store belongs to a different configuration of the synchronization and can not be used!I missed something. Should I update another table with the workflow to use?
Is not possible to programmatically determine what workflow performed in a stage of the process?
Forget the attempt to update the startup configuration when you deal with enforcement.
Create a second configuration of starting with your second workflow instead which is not an affected grid.
In your process chain, have two step run the FullProjection. One runs the startup configuration 1, the other a startup configuration 2.
-
Creating a PL/SQL procedure to run the following code but the landing upwards errors!
Hey all!
This is my first time with PL/SQL. I created the following procedure to load a major part of the update instructions at the same time to read the DB performance. I need to print a sysdate timestamp before and after the load so that I can know how long it takes for the DB update prescribed lines. I gave 100 lines initially and will keep changing. When I run this code, I came across some errors. Could you please help me with it.
CODE:
PROCEDURE FACT_UPDATE
IS
DECLARE
CNT NUMBER: = 0;UPD CURSOR is
SELECT
'UPDATE XXAFL_MON_FACTS_F SET TASK_WID =' | NVL (TO_CHAR (TASK_WID), 'NULL') |', EXECUTION_PLAN_WID =' | NVL (TO_CHAR (EXECUTION_PLAN_WID), 'NULL').
', DETAILS_WID =' | NVL (TO_CHAR (DETAILS_WID), 'NULL') |', SOURCE_WID =' | NVL (TO_CHAR (SOURCE_WID), 'NULL') |', TARGET_WID = ' | NVL (TO_CHAR (TARGET_WID), 'NULL').
', RUN_STATUS_WID =' | NVL (TO_CHAR (RUN_STATUS_WID), 'NULL') |', SEQ_NUM =' | NVL (TO_CHAR (SEQ_NUM), 'NULL') |', NAME = "' | NVL (TO_CHAR (NAME), 'NULL').
"', NO_POSITION =" ' | NVL (TO_CHAR (INSTANCE_NUM), e ') | " ', INSTANCE_NAME = "' | NVL (TO_CHAR (INSTANCE_NAME), 'NULL').
"', TYPE_CD =" ' | NVL (TO_CHAR (TYPE_CD), e ') | " ', STATUS_CD = "' | NVL (TO_CHAR (STATUS_CD), e ') | " ', START_TS =' | Decode (START_TS, null, "to_date('''|| to_char (START_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
', END_TS =' | Decode (END_TS, null, "to_date('''|| to_char (END_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', DURATION = ' | NVL (TO_CHAR (DURATION), 'NULL') |', STATUS_DESC = "' | NVL (TO_CHAR (STATUS_DESC), 'NULL').
"', DBCONN_NAME =" ' | NVL (TO_CHAR (DBCONN_NAME), e ') | " ', SUCESS_ROWS =' | NVL (TO_CHAR (SUCESS_ROWS), 'NULL').
', FAILED_ROWS =' | NVL (TO_CHAR (FAILED_ROWS), 'NULL') |', ERROR_CODE = ' | NVL (TO_CHAR (ERROR_CODE), 'NULL') |', NUM_RETRIES =' | NVL (TO_CHAR (NUM_RETRIES), 'NULL').
', READ_THRUPUT =' | NVL (TO_CHAR (READ_THRUPUT), 'NULL') |', LAST_UPD = ' | Decode (LAST_UPD, null, "to_date('''|| to_char (LAST_UPD,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', RUN_STEP_WID = "' | NVL (TO_CHAR (RUN_STEP_WID), 'NULL').
"', W_INSERT_DT = ' | Decode (W_INSERT_DT, null, "to_date('''|| to_char (W_INSERT_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', W_UPDATE_DT = ' | Decode (W_UPDATE_DT, null, "to_date('''|| to_char (W_UPDATE_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
', START_DATE_WID =' | NVL (TO_CHAR (START_DATE_WID), 'NULL') |', END_DATE_WID = ' | NVL (TO_CHAR (END_DATE_WID), 'NULL') |', START_TIME =' |
NVL (TO_CHAR (START_TIME), 'NULL') |', END_TIME =' | NVL (TO_CHAR (END_TIME), 'NULL'). "WHERE INTEGRATION_ID ="' | INTEGRATION_ID | " « ; » AS a Column OF XXAFL_MON_FACTS_F;BEGIN
dbms_output.put_line (sysdate);
to record in a loop of the UPDdbms_output.put_line (record.col_name);
immediately run record.col_name;CNT: = cnt + 1;
If cnt > 1000
and then commit;
CNT: = 0;
dbms_output.put_line (sysdate);
end if;
end loop;
dbms_output.put_line (sysdate);
END; -ProcedureERRORS:
Error starting line: 1 at the controls.
PROCEDURE FACT_UPDATE
Error report-
Unknown commandError from line: 2 in command.
IS
Error report-
Unknown command
Error from line: 3 in command.
DECLARE
CNT: = 0;UPD CURSOR is
SELECT
'UPDATE XXAFL_MON_FACTS_F SET TASK_WID =' | NVL (TO_CHAR (TASK_WID), 'NULL') |', EXECUTION_PLAN_WID =' | NVL (TO_CHAR (EXECUTION_PLAN_WID), 'NULL').
', DETAILS_WID =' | NVL (TO_CHAR (DETAILS_WID), 'NULL') |', SOURCE_WID =' | NVL (TO_CHAR (SOURCE_WID), 'NULL') |', TARGET_WID = ' | NVL (TO_CHAR (TARGET_WID), 'NULL').
', RUN_STATUS_WID =' | NVL (TO_CHAR (RUN_STATUS_WID), 'NULL') |', SEQ_NUM =' | NVL (TO_CHAR (SEQ_NUM), 'NULL') |', NAME = "' | NVL (TO_CHAR (NAME), 'NULL').
"', NO_POSITION =" ' | NVL (TO_CHAR (INSTANCE_NUM), e ') | " ', INSTANCE_NAME = "' | NVL (TO_CHAR (INSTANCE_NAME), 'NULL').
"', TYPE_CD =" ' | NVL (TO_CHAR (TYPE_CD), e ') | " ', STATUS_CD = "' | NVL (TO_CHAR (STATUS_CD), e ') | " ', START_TS =' | Decode (START_TS, null, "to_date('''|| to_char (START_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
', END_TS =' | Decode (END_TS, null, "to_date('''|| to_char (END_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', DURATION = ' | NVL (TO_CHAR (DURATION), 'NULL') |', STATUS_DESC = "' | NVL (TO_CHAR (STATUS_DESC), 'NULL').
"', DBCONN_NAME =" ' | NVL (TO_CHAR (DBCONN_NAME), e ') | " ', SUCESS_ROWS =' | NVL (TO_CHAR (SUCESS_ROWS), 'NULL').
', FAILED_ROWS =' | NVL (TO_CHAR (FAILED_ROWS), 'NULL') |', ERROR_CODE = ' | NVL (TO_CHAR (ERROR_CODE), 'NULL') |', NUM_RETRIES =' | NVL (TO_CHAR (NUM_RETRIES), 'NULL').
', READ_THRUPUT =' | NVL (TO_CHAR (READ_THRUPUT), 'NULL') |', LAST_UPD = ' | Decode (LAST_UPD, null, "to_date('''|| to_char (LAST_UPD,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', RUN_STEP_WID = "' | NVL (TO_CHAR (RUN_STEP_WID), 'NULL').
"', W_INSERT_DT = ' | Decode (W_INSERT_DT, null, "to_date('''|| to_char (W_INSERT_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', W_UPDATE_DT = ' | Decode (W_UPDATE_DT, null, "to_date('''|| to_char (W_UPDATE_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
', START_DATE_WID =' | NVL (TO_CHAR (START_DATE_WID), 'NULL') |', END_DATE_WID = ' | NVL (TO_CHAR (END_DATE_WID), 'NULL') |', START_TIME =' |
NVL (TO_CHAR (START_TIME), 'NULL') |', END_TIME =' | NVL (TO_CHAR (END_TIME), 'NULL'). "WHERE INTEGRATION_ID ="' | INTEGRATION_ID | " « ; » AS a Column OF XXAFL_MON_FACTS_F;BEGIN
dbms_output.put_line (sysdate);
to record in a loop of the UPDdbms_output.put_line (record.col_name);
immediately run record.col_name;CNT: = cnt + 1;
If cnt > 1000
and then commit;
CNT: = 0;
dbms_output.put_line (sysdate);
end if;
end loop;
dbms_output.put_line (sysdate);
END; -Procedure
Error report-
ORA-06550: line 2, column 6:
PLS-00103: encountered the symbol "=" when expecting one of the following conditions:constant exception < an ID >
< a between double quote delimited identifiers > double long Ref table
char time timestamp interval date binary national character
NCHAR
The symbol '< identifier >' has been substituted for "=" continue.
06550 00000 - "line %s, column % s:\n%s".
* Cause: Usually a PL/SQL compilation error.
* Action:
Error starting line: 1 at the controls.
PROCEDURE FACT_UPDATE
Error report-
Unknown commandError from line: 2 in command.
IS
Error report-
Unknown command
Error from line: 3 in command.
DECLARE
CNT NUMBER: = 0;UPD CURSOR is
SELECT
'UPDATE XXAFL_MON_FACTS_F SET TASK_WID =' | NVL (TO_CHAR (TASK_WID), 'NULL') |', EXECUTION_PLAN_WID =' | NVL (TO_CHAR (EXECUTION_PLAN_WID), 'NULL').
', DETAILS_WID =' | NVL (TO_CHAR (DETAILS_WID), 'NULL') |', SOURCE_WID =' | NVL (TO_CHAR (SOURCE_WID), 'NULL') |', TARGET_WID = ' | NVL (TO_CHAR (TARGET_WID), 'NULL').
', RUN_STATUS_WID =' | NVL (TO_CHAR (RUN_STATUS_WID), 'NULL') |', SEQ_NUM =' | NVL (TO_CHAR (SEQ_NUM), 'NULL') |', NAME = "' | NVL (TO_CHAR (NAME), 'NULL').
"', NO_POSITION =" ' | NVL (TO_CHAR (INSTANCE_NUM), e ') | " ', INSTANCE_NAME = "' | NVL (TO_CHAR (INSTANCE_NAME), 'NULL').
"', TYPE_CD =" ' | NVL (TO_CHAR (TYPE_CD), e ') | " ', STATUS_CD = "' | NVL (TO_CHAR (STATUS_CD), e ') | " ', START_TS =' | Decode (START_TS, null, "to_date('''|| to_char (START_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
', END_TS =' | Decode (END_TS, null, "to_date('''|| to_char (END_TS,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', DURATION = ' | NVL (TO_CHAR (DURATION), 'NULL') |', STATUS_DESC = "' | NVL (TO_CHAR (STATUS_DESC), 'NULL').
"', DBCONN_NAME =" ' | NVL (TO_CHAR (DBCONN_NAME), e ') | " ', SUCESS_ROWS =' | NVL (TO_CHAR (SUCESS_ROWS), 'NULL').
', FAILED_ROWS =' | NVL (TO_CHAR (FAILED_ROWS), 'NULL') |', ERROR_CODE = ' | NVL (TO_CHAR (ERROR_CODE), 'NULL') |', NUM_RETRIES =' | NVL (TO_CHAR (NUM_RETRIES), 'NULL').
', READ_THRUPUT =' | NVL (TO_CHAR (READ_THRUPUT), 'NULL') |', LAST_UPD = ' | Decode (LAST_UPD, null, "to_date('''|| to_char (LAST_UPD,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', RUN_STEP_WID = "' | NVL (TO_CHAR (RUN_STEP_WID), 'NULL').
"', W_INSERT_DT = ' | Decode (W_INSERT_DT, null, "to_date('''|| to_char (W_INSERT_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")') |', W_UPDATE_DT = ' | Decode (W_UPDATE_DT, null, "to_date('''|| to_char (W_UPDATE_DT,' jj/mm/aaaa hh) |")) ((', "dd/mm/yyyy hh")').
', START_DATE_WID =' | NVL (TO_CHAR (START_DATE_WID), 'NULL') |', END_DATE_WID = ' | NVL (TO_CHAR (END_DATE_WID), 'NULL') |', START_TIME =' |
NVL (TO_CHAR (START_TIME), 'NULL') |', END_TIME =' | NVL (TO_CHAR (END_TIME), 'NULL'). "WHERE INTEGRATION_ID ="' | INTEGRATION_ID | " « ; » AS a Column OF XXAFL_MON_FACTS_F;BEGIN
dbms_output.put_line (sysdate);
to record in a loop of the UPDdbms_output.put_line (record.col_name);
immediately run record.col_name;CNT: = cnt + 1;
If cnt > 1000
and then commit;
CNT: = 0;
dbms_output.put_line (sysdate);
end if;
end loop;
dbms_output.put_line (sysdate);
END; -Procedure
Error report-
ORA-00911: invalid character
ORA-06512: at line 24
00911 00000 - "invalid character".
* Cause: identifiers may not start with any character other than ASCII
letters and numbers. $# _ are allowed after the first
character. May contain identifiers surrounded by doublequotes
any character other than a quotation mark. Other quotes
(q' #... #') cannot use spaces, tabs or as carriage returns
delimiters. For all other settings, consult the SQL language
Reference manual.
* Action:In addition to the other reviews, and apart from the quality of the code, you should really (really!) learn how to format your code for better "read-ability. This will also contribute to a better quality. If you are unsure how to format, then use a development as a SQL developer tool. It will not format "as you type", but a frequent use of the shortened format keyboard (Ctrl + F7 in SQL Dev) will keep your code readable and coherent.
And then you learn to keep this format when you post on the forum.
Like this:
PROCEDURE FACT_UPDATE
IS
DECLARE
CNT NUMBER: = 0;
CURSOR UPD
IS
SELECT "UPDATE XXAFL_MON_FACTS_F SET TASK_WID ='"
|| NVL (TO_CHAR (TASK_WID), 'NULL')
|', EXECUTION_PLAN_WID ='
|| NVL (TO_CHAR (EXECUTION_PLAN_WID), 'NULL')
|| ', DETAILS_WID ='
|| NVL (TO_CHAR (DETAILS_WID), 'NULL')
|', SOURCE_WID ='
|| NVL (TO_CHAR (SOURCE_WID), 'NULL')
|', TARGET_WID = '
|| NVL (TO_CHAR (TARGET_WID), 'NULL')
|| ', RUN_STATUS_WID ='
|| NVL (TO_CHAR (RUN_STATUS_WID), 'NULL')
|', SEQ_NUM ='
|| NVL (TO_CHAR (SEQ_NUM), 'NULL')
|', NAME = "'
|| NVL (TO_CHAR (NAME), 'NULL')
|| ' ', NO_POSITION = "'
|| NVL (TO_CHAR (INSTANCE_NUM), 'NULL')
||'' ', INSTANCE_NAME = "'
|| NVL (TO_CHAR (INSTANCE_NAME), 'NULL')
|| ' ', TYPE_CD = "'
|| NVL (TO_CHAR (TYPE_CD), 'NULL')
||'' ', STATUS_CD = "'
|| NVL (TO_CHAR (STATUS_CD), 'NULL')
||'' ', START_TS ='
|| DECODE (START_TS, ",' to_date(''e))
|| To_char (START_TS, "mm/dd/yyyy hh)
||'' ((', "dd/mm/yyyy hh")')
|| ', END_TS ='
|| DECODE (END_TS, ",' to_date(''e))
|| To_char (END_TS, "mm/dd/yyyy hh)
||'' ((', "dd/mm/yyyy hh")')
|', DURATION = '
|| NVL (TO_CHAR (DURATION), 'NULL')
|', STATUS_DESC = "'
|| NVL (TO_CHAR (STATUS_DESC), 'NULL')
|| ' ', DBCONN_NAME = "'
|| NVL (TO_CHAR (DBCONN_NAME), 'NULL')
||'' ', SUCESS_ROWS ='
|| NVL (TO_CHAR (SUCESS_ROWS), 'NULL')
|| ', FAILED_ROWS ='
|| NVL (TO_CHAR (FAILED_ROWS), 'NULL')
|', ERROR_CODE = '
|| NVL (TO_CHAR (ERROR_CODE), 'NULL')
|', NUM_RETRIES ='
|| NVL (TO_CHAR (NUM_RETRIES), 'NULL')
|| ', READ_THRUPUT ='
|| NVL (TO_CHAR (READ_THRUPUT), 'NULL')
|', LAST_UPD = '
|| DECODE (LAST_UPD, ",' to_date(''e))
|| To_char (LAST_UPD, "mm/dd/yyyy hh)
||'' ((', "dd/mm/yyyy hh")')
|', RUN_STEP_WID = "'
|| NVL (TO_CHAR (RUN_STEP_WID), 'NULL')
|| ' ', W_INSERT_DT = '
|| DECODE (W_INSERT_DT, ",' to_date(''e))
|| To_char (W_INSERT_DT, "mm/dd/yyyy hh)
||'' ((', "dd/mm/yyyy hh")')
|', W_UPDATE_DT = '
|| DECODE (W_UPDATE_DT, ",' to_date(''e))
|| To_char (W_UPDATE_DT, "mm/dd/yyyy hh)
||'' ((', "dd/mm/yyyy hh")')
|| ', START_DATE_WID ='
|| NVL (TO_CHAR (START_DATE_WID), 'NULL')
|', END_DATE_WID = '
|| NVL (TO_CHAR (END_DATE_WID), 'NULL')
|', START_TIME ='
|| NVL (TO_CHAR (START_TIME), 'NULL')
|', END_TIME ='
|| NVL (TO_CHAR (END_TIME), 'NULL')
||' WHERE INTEGRATION_ID = "'
|| INTEGRATION_ID
||''';' AS Column
OF XXAFL_MON_FACTS_F;
BEGIN
dbms_output.put_line (sysdate);
FOR registration in UPD
LOOP
dbms_output.put_line (record.col_name);
EXECUTE immediate record.col_name;
CNT: = cnt + 1;
IF cnt > 1000 THEN
COMMIT;
CNT: = 0;
dbms_output.put_line (sysdate);
END IF;
END LOOP;
dbms_output.put_line (sysdate);
END; -Procedure
-
CF8 cfquery multiple table join with the same names of columns - default
This seems to be a defect in the CF8 cfquery object. I'm at a loss as to a solution or a good work around. With regard to the substance, this query is generated dynamically on the fly based on what is happening in it a user. This isn't the most elegent SQL but work and return all columns. The app itself is a data viewer to look at the logs. Here is an example of a query being generated.
Select *.
of web_trans, web_info_trans, web_res_trans
where (web_info_trans.trans_dte > = '' 2008-12-1)
and web_info_trans.trans_dte < '' 2008-12-2)
and (web_info_trans.trans_dte = web_trans.trans_dte)
and (web_info_trans.trans_num = 5060345)
and (web_info_trans.trans_num = web_trans.trans_num)
and (web_res_trans.trans_num = 5060345)
and (web_res_trans.trans_num = web_trans.trans_num)
and (web_trans.web_trans_cde = "NTUI")
and (web_trans.web_status_cde = 'P')
and (web_trans. TRANS_NUM < 5060347)
order of web_trans. TRANS_NUM / / desc
These three tables contain a similar column called ZIP_CDE. They contain different values, and when this query is executed in Microsoft Query Analyzer results are displayed correctly. Run this same query SQL with CFQUERY and the value of one of the other tables (web_trans) will eventually replace the value for the other columns called ZIP_CDE. The exact amount columns are retruned only values some how get corrupted.
This is a defect of cf8 is a book autour or an update that resolves this problem that I may have missed?
Thank you for the ideas.
Thus it seems still as a default since CF is essentially where, except for the return value play. Other query tools return results correctly so for me, it turns out be CF bug at a certain level.
Actually I'm swinging to agree with you here, but not for the same reason. CF actually * is * get all the columns back (as you say), it just doesn't expose a way to tell the difference between a column called 'x' and an another column called 'x', because the way to access the data in columns is simple queryname [columnName] [rowNumber] (or a Variant fo this, but all the amount of variations to that or abbrev. it). This code shows how he has all four columns of the original two queries (being a stand-in for tables, in this case):
Q1 = queryNew("");
Q2 = queryNew("");
queryAddColumn (q1, 'id', [1,2,3,4]);
queryAddColumn (q1, "data", ["one", "two", "three", "four"]);
queryAddColumn (q2, 'id', [1,2,3,4]);
queryAddColumn (q2, "data", ["tahi", "rua", "toru", "wha"]); It's Maori, in case you are interested
SELECT *.
Q1, q2
WHERE q1.id = q2.id
So CF knows there are four columns (a call getMetadata (q3) get also demonstrates this), but it does not expose a way to approach the second (or even greater) column of the same name. This is the bug/shortfall.
However, relying on an underlying coldfusion.sql.QueryTable method, you can rename the columns, so:
Then you're OK.
I would be normally reluctant to recommend doing this, because these methods change from version to version of CF, but it's your call whether this approach will help you.
To be honest, I'm with Owain who, even in SQL one generally doesn't work with columns with the same name, an alias them qualified with a table name/alias. As the table columns from of is not returned by SQL with the result set, it must be evidence against this by folding the columns in the first place.
Also, I wonder at the bottom of the extraction of data, you don't really know the structure, that is to say, do SELECT *. How can you know not even that is ours as the first column, second column, etc.? I don't think that SQL applies in fact a contract that, t - it? (I don't know).
What are you actually do here?
--
Adam
-
I think that this error is related to my PlugandPlay Windows, but I can't figure out how to fix it. I have not seen this particular error appearing on the lists of any forum.
Hello
You really don't want MyWebSearch toolbar as it has malware that are associated with him.
M3PLUGIN. DLL, information
http://www.bleepingcomputer.com/startups/m3plugin.dll-23933.htmlHow to get rid of the Mywebsearch toolbar
http://www.ehow.com/how_4780067_rid-MyWebSearch-toolbar.htmlProducts Fun Web "My Web search" removal Instructions and help
http://www.pchell.com/support/MyWebSearch.shtml-------------------------------------------------------------
To ensure that his party and IE and system are clean:
IE - Tools - Internet Options - Advanced - tab click on restore, and then click Reset - apply / OK
IE - Tools - Internet Options - Security tab - click on reset all default areas - apply / OK
Close and restart IE
IE - tools - manage Addons (for sure disable SSV2 if she's here, is no longer necessary, but)
Java always install it and it causes problems - you never update Java to go back in and turn it off again.)
Search for other possible problems.Windows Defender - tools - software explore - look for problems with programs that do not look
right. Allowed are usually OK and "unauthorized" are not always bad. If a doubt
program to ask about it here.Could be a free - BHOremover - BHO - standalone program, needs no installation, download and
run - not all are bad but some can cause your question (toolbars are BHO).
http://securityxploded.com/bhoremover.phpStartup programs
http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.htmlAlso get Malwarebytes - free - use as scanner only.
Run the malware removal tool from Microsoft
Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.
You should get this tool and its updates via Windows Update - if necessary, you can
Download it here.Download - SAVE - go where go out you there - top - right click RUN AS ADMIN
(Then run MRT as shown above.)Malicious removal tool from Microsoft
http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=enalso install Prevx
Prevx - Home - free - small, fast, exceptional CLOUD protection, working with other security programs.
It is a single scanner, VERY EFFICIENT, if it finds something to come back here or use Google to see
How to remove.
http://www.prevx.com/Choice of PCmag editor - Prevx-
http://www.PCMag.com/Article2/0, 2817,2346862,00.asp--------------------------------
Try these to erase corruption and missing/damaged file system repair or replacement.
Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup
Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN
sfc/scannow
How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
generates in Windows Vista cbs.log
http://support.Microsoft.com/kb/928228Then, run checkdisk - schedule it to run at next boot, then apply OK your way out, then restart.
How to run the check disk at startup in Vista
http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html--------------------
Departure - in the search box, type-> order
at the top of the list to find COMMAND - CLICK RIGHT to it - RUN AS ADMIN
Type the following commands (or copy and paste one at a time), each followed by pressing on enter.
ipconfig/flushdns
nbtstat-r
nbtstat - RR
netsh int Reinitialis
netsh int ip reset
netsh winsock reset
RESET
That resets your TCP/IP stack
I hope this helps.
Rob - bicycle - Mark Twain said it is good.
-
How some users can run the same batch
Hello
FSCM9 and tools 8.49 on Windows,
How can we do that user1, user2, and user3 be able to run a web interface bath Peoplsoft?
Should we create series for each control? We must give them special guarantees or role?
Thank you.
See PeopleBooks:
Definition of the definition process Options
To access the Options of process definition page, select selectPeopleTools, and then selectProcess Scheduler, then selectProcesses, then selectand click on the Options tab of the process definition.
Image: Definition of process Options Page
This example illustrates the fields and controls on the Options of process definition page. You can find definitions for fields and controls later on this page.
Security process
Go to the Security section of process.
Component Attaching the process to the components. Adding a component to a process definition of the causes that address the definition to appear on the page application for process Planner when you select file, run in this component, if you have security to run the process.
Process group Make the process definition a member of the group. A process definition can belong to several groups of processes.
Select an existing group, or add a new group by entering a single process group name. To add new lines, click the Add button.
Process groups are then assigned to profiles of security administrator Security in PeopleSoft, which allows you to specify process queries the user classes can perform.
See PeopleBooks:Setting permissions of process
Access to the whitelists - process page (select selectPeopleTools, then selectSecurity, then selectPermissions & roles, then selectPermission lists and click on the processes tab).
Just as you set permissions for pages, a user can access, you must also specify the batch (and online) process that can call users through PeopleSoft process scheduler. In general, process groups are classified by Department or task. For example, batch programs used by your payroll probably all belong to the PAYROLL process group, or a group named the same way.
When you create a process permissions list, you add the groups of appropriate process so that a user belonging to a particular role can call the appropriate batch programs to complete their commercial transactions. To do this, use the process group permissions page.
The process authorization profile page allows you to specify when a user or role can modify certain parameters of the PeopleSoft process scheduler.
Note: You grant process profile directly to the profile user and group permissions of process through whitelists.
This page lists the groups of processes associated with a permissions list. Process groups are collections of process definitions that you create using the PeopleSoft process scheduler.
As a general rule, you group process definitions by groups of work within your organization, and this working group usually has a particular role that is associated with. No matter how you organize process definitions, you must assign process groups to a permissions list.
Users can run only processes that belong to groups of processes assigned to their roles. For example, you can have a set of process definitions that relate to your human resources department and another set for your production service.
In other words:Add the process to the runcontrol component, providing the user access to the runcontrol component.Add process group processes. Add process group to the permissions list. Assign the authorization list to user.Hope that answers your question. -
attach the same code for multiple instances (AS2)
Hi, here helpless.
I have the following code on the frame1 of my film I want to apply to multiple instances of the same clip:
mainClip_mc.subClip1_mc.specifiedClip_mc.onPress = function () {}
code starts
specifiedClip_mc is in subClip1 to 4. Is there a way to do it once without have to say:
mainClip_mc.subClip2_mc.specifiedClip_mc.onPress = function () {}
same code
mainClip_mc.subClip3_mc.specifiedClip_mc.onPress = function () {}
same code
mainClip_mc.subClip4_mc.specifiedClip_mc.onPress = function () {}
same code
Clip specifiedClip_mc parent is essentially what throws me here.
The code to be applied to the specifiedClip_mc is identical, and I can't help but feel I'm not the exact route of this repetitive way long.
Any help for this newb would be greatly appreciated.
There are two ways to do this, the other I'll show records much code...
(1) string them all along...
mainClip_mc.subClip1_mc.specifiedClip_mc.onPress = mainClip_mc.subClip2_mc.specifiedClip_mc.onPress = mainClip_mc.subClip3_mc.specifiedClip_mc.onPress = mainClip_mc.subClip4_mc.specifiedClip_mc.onPress = function () {}
same code
}
(2) assign the function dynamically by a loop using the array notation...
function someFunction() {}
same code
}
for (i = 1; i<5;>5;>
mainClip_mc ["subClip" + i + "_mc"]. specifiedClip_mc.onPress = someFunction;
}
Maybe you are looking for
-
migrated iPhotos library of Photos, but can not see the albums
I use an iMac 21.5 inch end 2013 with 2.9 GHz Intel Core i5. 16 GB of memory. 10.10.5 version iPhoto 9.6.1 Pictures 1.0.1 I want to be able to view my iPhotos photos and my albums on the Photos. I thought it was going to happen automatically in the
-
Hello Unfortunately, I can't get this update installed. It fails with error Code 643. I know, this isn't a specific error message, and I tried to follow the advice given here: http://social.answers.Microsoft.com/forums/en-us/vistawu/thread/89879c8d-a
-
I'm trying to connect to MS Money to access my checkbook. It shows the email address or password is incorrect. I even reset the password, but it doesn't always let me log in there.
-
in my bar there is always some icons for the programs that I removed. How IRB of icons in the system tray?
-
Why my system does not update my bios?
"I tried to update my bios from the last two days, but when I start Update say: part number of the file does not match your system" I don't know why I get this error I update my bios with the latest version (1.5). Here is my system information: Micro