Trigger with sequence question
figured it out
Edited by: Jay on Apr 24, 2012 9:49 AM
If we believe that your BEFORE INSERT trigger compiles successfully (it will not if your CREATE SEQUENCE DDL is actually using case-sensitive identifiers)
CREATE OR REPLACE TRIGGER user_UPDATE
AFTER UPDATE ON table1
FOR EACH ROW
BEGIN
INSERT INTO table2
change_id,
change_date
user,
address,
phone
VALUES
SEQ_user_update.NEXTVAL,
sysdate
:new.user,
:new.address,
:new.phone
END;If we believe that the CREATE SEQUENCE DDL statement you posted is correct and that your BEFORE INSERT trigger does not compile then you'd need to put double-quotes around the sequence name
CREATE OR REPLACE TRIGGER user_UPDATE
AFTER UPDATE ON table1
FOR EACH ROW
BEGIN
INSERT INTO table2
change_id,
change_date
user,
address,
phone
VALUES
"SEQ_user_update".NEXTVAL,
sysdate
:new.user,
:new.address,
:new.phone
END;Justin
Similar Messages
-
Sequence Questions - Captivate 5
I like using Sequence-type questions, but upon user review of the quiz, not all the answers appear. Only the first two correct answers are shown. If I have the user arrange five items in the correct order, only the first two correct responses are given in the quiz review. I have carefully scrutinized all the setup parameters for this question type and don't appear to be doing anything wrong.
Any suggestions would be appreciated?I've had a few issues with Sequence questions that were migrated from Cp4 to Cp5. I usually found it best to just recreate the questions entirely in Cp5 to get everything working properly.
-
Fill In The Blank / Sequence Questions
Is it possible to have a fill in the blank question in captivate (4 or 5) that is scored according to how many options the user got correct?
For example:
If you use 4 grams of 'b' you will need _____ grams of 'x', _____ grams of 'y' and ____ grams of 'z' to complete the forumula.
In this example if they answered all 3 blanks correctly they would get 3 points, 2 correct answers would give them 2 points and so on.
Also, is it possible to score sequence questions according to how many items were correctly sequenced?Hello,
For the moment partial scoring (as I'm calling it) is not possible in Captivate, at least not in the included Question slides. If you want that feature, and you are certainly not alone, please fill in a Feature Request to get this feature on the priority list of the Adobe team.
If you do not mind the work, it is possible to create question slides yourself using the available objects, user variables and advanced actions. I wrote several articles and blogged about those workarounds, one of them is about creating question slides with possibility for partial scoring (it is not a FIB-question but the principles are the same):
Question slide with partial score
Lilybiri -
My editor requires that I name a file as in the following example:
FI_RX_London(sequence number)
if I try this while importing using file name with sequence, there will be a - sign in front of the number. My question, how do I remove the - signIn the import dialog, pick Filename-Sequence from the drop down File Naming list. (you will have done this already). Now click the drop-down list again and choose Edit. You will now see the Filename Template Editor window; remove the hyphen from the text box that shows
{Filename>>}-{Sequence #(1)>>}. When you edit this, you will see the example just above it, reflect the change. -
File name generation with sequence number
Hi All,
My scenario is, File to File. I need to generate the filenames at the target side like File1.xml, File2.xml..File9999.xml for each file triggered from source system. The interface tiggesrs multiple times in a day.
For example, for the first time, 5 files triggered, need to generate File1.xml,File2.xml..File5.xml. After some time the interface might trigger with 10 files, then need to generate files as File6.xml,File7.xml....File15.xml . Once the file count reaches 9999 then need to generate the files from 1 (File1.xml)again.
Could you please suggest me the possible solutions. For this any Lookups required?
Regards,
Praveen KumarHi Praveen,
Case 1: If a field in source data carries the information regarding the sequence.
You can map this value ( Directly .. or using some transformation ) in some temporary field in the target and then use a Variable substitution at the receiver communication channel.
Case 2. If the source file name carries the sequence information. then you can enable the Adapter specific settings in the Sender communication channel , and then get the information of the source file name using the Container object in the mapping. Then assign the sequence number to a field in the target , use a Variable substitution at the receiver communication channel.
Case 3 : If Case 1 and Case 2 are not applicable ... then you have to use a Ztable to store the sequence number , a function module to fetch the number , and then use a UDF in which you will implement the RFC call logic.Then the same process .... assign the sequence number to a field in the target , use a Variable substitution at the receiver communication channel.
BR,
Sushil. -
I'm curious what others are doing with sequences in their AppEx applications. I know this isn't strictly an AppEx question - but I recently ran into serious problems because of my choice of how I'm using sequences.
The problem goes something like this: I create a new table and while I'm doing so I go ahead and create a new sequence for that table. Seems innocent enough. Now, I just happen to use this new table as a lookup table for some foreign key values in one of my main data tables. Not a problem. Works like a charm.
I start populating data into the main table and the lookup tables. Again, not a problem. The users want a little query mecanism for the report so I decide that I'm going to implement it in the UI with a checkbox based on an LOV that allows users to find records based on checking values and clicking a 'Find' button. OK, create a checkbox item, a named LOV, assign it to the checkbox item. Now amend the query for the report region to use the checkbox via an instr(:P1_MY_SEARCH_CHKBX, column_name)>0 kind of approach.
Ooops! I'm not getting what I want. The changes to the query are clearly working for some cases but I'm seeing John Doe's projects (like I want) and Mary Jane's too (which I don't). Turns out John Doe's ID is '1' and Mary Jane's is '11' and '1' is definitely in '11', so things are working as they should based on my implementation, but I'm getting 'unexpected results' from the users point of view.
Obviously, the root cause of this comes down to my choice to create that new sequence for each table and increasing the likelihood that this situation would occur. If I had used a single sequence value for the entire schema, that started with a large value (maybe a guid) and built all of my triggers off that one sequence then this little UI anomaly would likely not have occured.
Sorry for the long, boring story - but I'm curious what others are doing and how many people have run into this same kind of problem?
EarlPersonally I would do it in this sort of way. It may add an extra page or two, but I think in the long run it becomes easier.
Here is my sample app - click a couple, hit the search button, and it will show you your results.
http://htmldb.oracle.com/pls/otn/f?p=20233:1:17770724214406136839::NO:::
What I would do in your case is to do something similar - list out the project managers using htmldb_item.checkbox(1, manager_id). This will tie the exact id to that box. Create a before header process that creates a collection - this collection will hold your checked boxes. Add an after submit process to add items to that collection. On your next page, you would do something like this to restrict the rows:
select pro.project_number, pro.description
from project pro
where exists (select 1
from htmldb_collections col
where pro.manager_id = col.c001 and
col.collection_name = 'PROJECT_MANAGER')Personally I like collections a lot - that way someone can go back to that page, add a couple extra checks and it repopulates the collection. If you need to see the exact code, let me know and i'll post it on my application page.
As far as your 2nd question, its a matter of preference. There is nothing wrong or right about creating one sequence - yes you're right - the user never sees it, so it really doesnt matter. But I guess I am a creature of habit, and dont see what creating one sequence really saves you. Its sometimes nice to be able to see the next sequence value and have an approximate guess that you are creating the 243rd new employee instead of the 125,335th new object in the entire database.
To each their own! -
My MacBook screen is displaying a blank screen with a folder with a question mark on it. Can't get it to respond. Tried rebooting and folder with question mark comes back up. Does anyone know what to do? Thanks.
Question (?) Mark, Blinking Folder, or Gray Screen at Startup
These are related but not identical issues. Their causes are outlined in Intel-based Mac- Startup sequence and error codes, symbols. Solutions may be found in:
A flashing question mark appears when you start your Mac
Mac OS X- Gray screen appears during startup
In most cases the problems may be caused by:
Problem with the computer's PRAM - See Resetting your Mac's PRAM and NVRAM.
Boot drive's directory has been corrupted - Repair with Disk Utility.
Critical system files are damaged or deleted - Reinstall OS X.
The disk drive is physically non-functional - Replace the hard drive.
Repair the Hard Drive and Permissions
Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
The main difference if you are using Lion or Mountain Lion is that you must first boot from the Recovery HD:
Boot From The Recovery HD:
Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Reinstall Snow Leopard Without Erasing The drive
1. Repair the Hard Drive and Permissions
Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
2. Reinstall Snow Leopard
If the drive is OK then quit DU and return to the installer. Proceed with reinstalling OS X. Note that the Snow Leopard installer will not erase your drive or disturb your files. After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
Download and install Mac OS X 10.6.8 Update Combo v1.1.
Reinstalling Lion/Mountain Lion Without Erasing The Drive
Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless. -
Grey Screen with a Center Folder Icon with a Question Mark in it
I updated my MacBookPro 13 inch with hard drive to OS X Yosemite, I was having some issuies with the mac. I used it last night with no problems at all, I suspend the mac an let it charge for the night and today I try to use it and the mac log in was frozen, something that happen to me before, I close the Mac and open it again and still frozen. I decide to restart the Mac and I press the power botton, when I try to power it on again, a grey screen appears and suddenly a folder icon appears with a question mark in it.
What does that mean? what can I do to fix it? can I safe and keep my information?A flashing question mark or globe appears when you start your Mac
Question (?) Mark, Blinking Folder, or Gray Screen at Startup
These are related but not identical issues. Their causes are outlined in Intel-based Mac- Startup sequence and error codes, symbols. Solutions may be found in:
A flashing question mark appears when you start your Mac
Mac OS X- Gray screen appears during startup
In most cases the problems may be caused by one or more of these:
a. Problem with the computer's PRAM - See Resetting your Mac's PRAM and NVRAM.
b. Boot drive's directory has been corrupted - Repair with Disk Utility.
c. Critical system files are damaged or deleted - Reinstall OS X.
d. The disk drive is physically non-functional - Replace the hard drive.
Note that the information I have provided is what Apple recommends, If other users suggest different solutions than found here, then be sure what they recommend does not impact on your warranty, if any, or ability to get continuing Apple service.
Please don't start removing drives or changing cables unless you know what you are doing and have exhausted other non-invasive alternatives outlined here. If you perform any work yourself that is unapproved by Apple, then you will void any warranty you may have and lose all further Apple Support.
Repair the Hard Drive and Permissions
Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
The main difference if you are using Lion or Mountain Lion is that you must first boot from the Recovery HD. Simply boot from the Recovery HD to perform the above.
Reinstall Snow Leopard Without Erasing The drive
1. Repair the Hard Drive and Permissions
Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
2. Reinstall Snow Leopard
If the drive is OK then quit DU and return to the installer. Proceed with reinstalling OS X. Note that the Snow Leopard installer will not erase your drive or disturb your files. After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
Download and install Mac OS X 10.6.8 Update Combo v1.1.
Reinstalling Lion/Mountain Lion, Yosemite Without Erasing The Drive
Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless. -
Work with SEQUENCE, Help me, I'm a NeewbY!
Hi to all, I've a problem,
I want to create a form based on db that uses sequence (auto-number) for the primary key.
I'm working with Jdeveloper+ jheadstart (to build Model & view controller)
I don't want to insert the PK, i want that ID is inserted automatically in the form (in the master and also in detail form)....there are a way like p_session (of Portal) or where can I insert an simple PL/SQL (or sql) code??
Thabk you, I'm a very very beginner!
(Note the Master have a PK_1 with sequence but not a trigger, the detail have a form composed by a PK_2 (with sequence and trigger), FK_1 (linked to PK_1), and another FK_2)Hi,
Why you didn't create a trigger? With trigger you can create entry with ID=null, then trrigger calls the sequence automatically to populate the ID.
If needed:
CREATE OR REPLACE
TRIGGER ASSIGN_MYTABLE_ID BEFORE INSERT ON MYTABLE
FOR EACH ROW
BEGIN
IF :NEW.MYTABLE_ID IS NULL OR :NEW.MYTABLE_ID < 0 THEN
SELECT MYTABLE_SEQ.NEXTVAL
INTO :NEW.MYTABLE_ID
FROM DUAL;
END IF;
END;
Regards,
Tif -
I start my macbook air up and a file comes up with a question mark. When I go to Disk Utility I go to update things or erase everything and my disks don't show up or anything. Anyone know what to do?
Question (?) Mark, Blinking Folder, or Gray Screen at Startup
These are related but not identical issues. Their causes are outlined in Intel-based Mac- Startup sequence and error codes, symbols. Solutions may be found in:
A flashing question mark appears when you start your Mac
Mac OS X- Gray screen appears during startup
In most cases the problems may be caused by:
Problem with the computer's PRAM - See Resetting your Mac's PRAM and NVRAM.
Boot drive's directory has been corrupted - Repair with Disk Utility.
Critical system files are damaged or deleted - Reinstall OS X.
The disk drive is physically non-functional - Replace the hard drive.
Repair the Hard Drive and Permissions
Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
The main difference if you are using Lion or Mountain Lion is that you must first boot from the Recovery HD:
Boot From The Recovery HD:
Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Reinstall Snow Leopard Without Erasing The drive
1. Repair the Hard Drive and Permissions
Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
2. Reinstall Snow Leopard
If the drive is OK then quit DU and return to the installer. Proceed with reinstalling OS X. Note that the Snow Leopard installer will not erase your drive or disturb your files. After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
Download and install Mac OS X 10.6.8 Update Combo v1.1.
Reinstalling Lion/Mountain Lion Without Erasing The Drive
Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless. -
Sequence question drop-down list gets hung up on punctuation
I'm making a sequence question. In drag-and-drop mode, it
works fine. But in the drop-down list mode, it breaks. In other
words, even if it is displaying correctly, it is "wrong" when the
enduser tries to sequence the choices.
I assume that this is because one of my items has punctuation
in it.
It's a person's name, so it looks like this:
Lastname, FirstInitial.
Or it could be even two people:
Lastname, FirstInitial. & Lastname, FirstInitial.
Is there a way to escape the commas and periods? (I'm willing
to give up on ampersand!) Use ASCII, escape ActionScript or
JavaScript? I'm not likely to solve the problem by experimenting,
so I'm wondering if someone else has figured this out. THANKS.
(I tried searching the forum, but searching does not seem to
be working for me)I can't help you with this myself as I've not done it but there are quite a few tutorials kicking around the net.
Simple ODBC Connections in Adobe LiveCycle:
http://www.youtube.com/watch?v=C56_Cz-aE0c
Connecting a form to a database:
http://forms.stefcameron.com/2006/09/18/connecting-a-form-to-a-database/
Database connected forms:
http://acrobatusers.com/tutorials/database-connected-forms -
Does anyone know where I can find details on firing sequence of each type of triggers on Item, Block and Form levels?
Can I set the Debugger to trace the actual sequence of firing of triggers at run-time?
Message was edited by:
wyfwongi hope that the document may help!
(V45) Trigger Execution Sequence in Forms 4.5
=============================================
Introduction
This document lists the order in which triggers fire in Oracle Forms 4.5:
o The first column, Action, describes the function to be performed
(e.g. deleting a record).
o The second column, Trigger Firing Order, describes the order
in which triggers fire after a function is performed.
o The third column, Level, describes the level (form, block, item)
at which the trigger fires. This was accomplished by creating a form
with all the triggers invoked. If a trigger could fire at all levels,
it was included at all levels. Such a trigger fires at the lowest level
at which it is defined.
Key triggers and triggers which fire via buttons or check boxes are
not included.
This bulletin does not cover every contingency and covers only the
most commonly used actions.
Action Trigger Firing Order Level
Runform 1. Pre-Logon Form
2. On-Logon Form
3. Post-Logon Form
4. Pre-Form Form
5. When-Create-Record Block
6. Pre-Block Block
7. Pre-Record Block
8. Pre-Text-Item Item
9. When-New-Form-Instance Form
10. When-New-Block-Instance Block
11. When-New-Record-Instance Block
12. When-New-Item-Instance Item
Enter Query 1. Post-Text-Item Item
2. Post-Record Block
3. When-Clear-Block Block
4. When-New-Record-Instance Block
5. When-New-Item-Instance Item
Note: If you define the Key-ENTQRY trigger, this is the only trigger
which fires in an Enter Query situation.
Execute Query
After Enter Query 1. Pre-Query Block
2. Pre-Select Block
3. On-Select Block
4. When-Clear-Block Block
5. Post-Select Block
6. On-Fetch Block
7. On-Close Form
8. When-Clear-Block Block
Note: If you define the Key-EXEQRY trigger, this is the only trigger
which fires in an Execute Query situation.
Execute Query
Without Enter
Query 1. Post-Text-Item Block
2. Pre-Query Block
3. Pre-Select Block
4. On-Select Block
5. Post-Select Block
6. On-Fetch Block
7. On-Close Form
8. When_Create_Record Block
9. Pre-Record Block
10. Pre-Text-Item Item
11. When-New-Record-Instance Block
12. When-New-Item-Instance Item
Exit 1. Post-Text-Item Item
2. Post-Record Block
3. Post-Block Block
4. Post-Form Form
5. On-Rollback Form
6. Pre-Logout Form
7. On-Logout Form
8. Post-Logout Form
Next Field and
Previous field 1. When-New-Item-Instance Item
Next Record and
Previous Record 1. When-New-Record-Instance Block
2. When-New-Item-Instance Item
Next Block and
Previous Block 1. Post-Text-Item Item
2. Post-Record Block
3. Post-Block Block
4. When-Create-Record Block
5. Pre-Block Block
6. Pre-Record Block
7. Pre-Text-Item Block
8. When-New-Block-Instance Block
9. When-New-Record-Instance Block
10. When-New-Item-Instance Form
Records Are Queried 1. Post-Query Block
2. Post-Change Block
3. Post-Change Item
4. Post-Change Block
5. Post-Change Block
Go back to Post-Query
NOTE: This cycle is repeated for each record retrieved.
No Records Are Queried 1. When-New-Record-Instance Block
2. When-New-Item-Instance Item
NOTE: To observe this Trigger Firing Order:
a. Enter a query.
b. Enter a nonexistent record.
c. Execute the query.
The two triggers listed above, the Enter Query triggers, and
the Execute Query triggers fire.
Create Record 1. Post-Change Block
2. When-Validate-Item Block
3. Post-Text-Item Block
4. When-Validate-Record Block
5. Post-Record Block
6. Post-Block Block
7. On-Savepoint Form
8. Pre-Commit Form
9. Pre-Insert Block
10. On-Insert Form
11. Post-Insert Block
12. Post-Forms-Commit Form
13. On-Commit Form
14. Post-Database-Commit Form
15. Pre-Block Block
16. Pre-Record Block
17. Pre-Text-Item Block
18. When-New-Item-Instance Form
Update Record 1. When-Database-Record Block
2. Post-Change Block
3. When-Validate-Item Block
4. Post-Text-Item Block
5. When-Validate-Record Block
6. Post-Record Block
7. Post-Block Block
8. On-Savepoint Form
9. Pre-Commit Form
10. Pre-Update Block
11. On-Update Block
12. Post-Update Block
13. Post-Forms-Commit Form
14. On-Commit Form
Here the transaction is complete and one record added.
15. Post-Database-Commit Form
16. Pre-Text-Item Block
17. When-New-Item-Instance Form
NOTE: To observe this Trigger Firing Order:
a. Execute a query.
b. Change a value.
c. Choose Action->Save from the menu.
d. Record the triggers from that point.
Delete Record 1. On-Lock Block
2. When-Remove-Record Block
3. Post-Change Block
4. Post-Change Block
5. Post-Change Block
6. Post-Change Block
7. Post-Change Block
8. Post-Change Block
9. Post-Change Item
10. Post-Query Block
11. Post-Text-Item Block
12. Post-Record Block
13. Pre-Record Block
14. Pre-Text-Item Block
15. When-New-Record-Instance Block
16. When-New-Item-Instance Form
NOTE: To observe this Trigger Firing Order, delete a detail record. -
Responses showing over feedback in sequence question - Captivate 5
Hi all
I have an issue with the sequence question type. If you have feedback, the draggable responses show over the top. Please see grab.
Is this a bug? I can't find any mention of it. It only seems to do it with certain responses. Makes it completely unusable.
Suggestions?
MitchThis tends to happen if you add answer options AFTER creating the question and adding the feedback captions. The last thing added ends up on the upper layers of the quiz question slide, but since you cannot see these layers in the timeline, as you can for other slides, you cannot reorder the layers by normal means.
The solution is to turn your feedback captions off and then on again so that they then end up on the higher layers again.
Go to Quiz Properties for this slide and deselect/select the Correct and Incomplete captions to put them above the answer options. Then set Failure level to NONE and back to whatever it was before to set the Failure caption above everything else. This will erase any text you had in the captions, so if you've invested quite a lot of time adding text to these feedback captions, it's a good idea to copy that text somewhere else first, so that you can just paste it back in after recycling them. -
Drop Down Options in Captivate 6 Sequence Question
Hello!
I'm working on a project using Captivate 6. There is a Sequence question using the drop down option for Answer Type. For this particular question there are 5 items that need to be placed in order. When a learner clicks the drop down to answer the question only 4 of the 5 options display forcing the learner to scroll to see the last option. Is there a way to make the drop down display larger so the learner doesn't have to scroll?
Thanks in advance for your advice.
MarieThanks Lilybiri!
This was helpful. My team decided to stick with the drop down format, but by making the font size smaller we were able to fit all 5 options into the window (taking away the need to scroll.
Thanks again,
Marie -
I have tried unsuccessfully to use different methods in gumbo to replace tweenmax and had very little success the closest I have come is with parallel sequences but still not really achieving what I was hoping to do , targeting objects is the first issue(even with sequencing) as the only way I have suceeded so far is to target an object before playing a sequence as below, but I want to include multiple targets within a series of effects and declaring the target within a sequence just fails.
PageL.rotationY=180;
flipper.target=paperMod;
flipper.play();
TweenMax.to(PageL,2,{rotationY:1, delay:0.100}); <------ I really don't want this here
this is the sequence
<mx:Sequence id="flipper">
<mx:Parallel duration="500">
<mx:AnimateProperty property="force" fromValue="0" toValue="1.8"/>
<mx:AnimateProperty property="angle" fromValue="-1.00" toValue="-0.25"/>
<mx:AnimateProperty property="offset" fromValue="1" toValue="0.3"/>
</mx:Parallel>
<mx:Parallel duration="750">
<mx:AnimateProperty property="force" toValue="0" fromValue="1.8"/>
<mx:AnimateProperty property="angle" toValue="-1.00" fromValue="-0.25"/>
<mx:AnimateProperty property="offset" toValue="1" fromValue="0.3"/>
</mx:Parallel>
</mx:Sequence>
this is the tweening I want to replace
protected function button2_clickHandler(event:MouseEvent):void
PageL.rotationY=180;
paperMod.force = 0;
paperMod.offset = 0.95;
paperMod.angle = 0;
rev=true;
myTween = new TweenMax(paperMod, 0.75, {force:1.7, offset:0.22, angle:-0.35, bezier:[{offset:1.2, angle:-0.7, force:1}],
onComplete:reverseMe});
TweenMax.to(PageL,2,{rotationY:1, delay:0.100});
private function reverseMe():void
if (rev==true)
rev=false;
myTween.reverse(false,true);
http://gumbo.flashhub.net/flip/ - my test bed app
So am I totally off-track or is there a way I can replace the tweening cleanly, I've tried motionpaths, animation etc... but nothing seems to work, and the big one is can I have multiple targets in a set of sequences/animations that could rival tweening.
DavidHi David,
You should definitely be able to do this. The effects version is actually simpler than what you have below in Flex 4 beta (because of the new RepeatBehavior functionality and the ability for Animate to target multiple properties) (are you on Flex 4? Or using Flex 3?), but the key thing is that you have to specify the target (or multiple targets) either in the effect declaration or in the play() method when you launch it. Assuming you're okay with declaring the targets in the effects, here's how I'd rewrite your code using Flex4 effects:
<s:Animate targets="{[paperMod, bezier]}" repeatCount="2" repeatBehavior="reverse"/>
<s:SimpleMotionPath property="force" valueFrom="0" valueTo="1.8"/>
<s:SimpleMotionPath property="angle" valueFrom="-1" valueTo="-.25"/>
<s:SimpleMotionPath property="force" valueFrom="0" valueTo=".3"/>
</s:Animate>
If this is a question about Flex 3 effects, then I think the only thing you're missing is the targets. Add 'targets="{[paperMod, bezier]}"' to your Sequence declaration (the targets of composite effects propagate to the children unless the children override the targets).
Does this help?
Chet.
ps: I have various tutorial videos on effects (Flex3 and Flex 4) on my blog at http://graphics-geek.blogspot.com - check it out if you want to get the bigger picture on how this stuff works.
<mx:Sequence id="flipper">
<mx:Parallel duration="500">
<mx:AnimateProperty property="force" fromValue="0" toValue="1.8"/>
<mx:AnimateProperty property="angle" fromValue="-1.00" toValue="-
0.25"/>
<mx:AnimateProperty property="offset" fromValue="1" toValue="0.3"/>
</mx:Parallel>
<mx:Parallel duration="750">
<mx:AnimateProperty property="force" toValue="0" fromValue="1.8"/>
<mx:AnimateProperty property="angle" toValue="-1.00" fromValue="-
0.25"/>
<mx:AnimateProperty property="offset" toValue="1" fromValue="0.3"/>
</mx:Parallel>
</mx:Sequence>
>
Maybe you are looking for
-
I wonder if anyone can help with the above question about Elements 11 and my not being able to open Raw images, I have tried downloading and installing Cmaera raw 8.4 and DNG convertor but still not opening have not had truoble with D200 or lumix G5.
-
HT3819 Can I have two apple accounts on a single device?
Can I have two apple accounts on the same device?
-
How to impreove performance of 5 tables query?
Hello Experts, I am using 6 tables in my report.i want to display recores by AT NEW and Related stuff. Can i use following code for query and internal tables ? or Sujjest me Better code. to use loop within loop is not good idea. please sujjest me per
-
Output query result to a text file in ORACLE
I Need a procedure for generating output query into text file in Oracle. for Example, A table called Tab1 the columns are c1,c2,c3,c4,c5. I want to store the data in text file in... First row as a column name & then, appear the records in second row
-
Hi We have been using InDesign CS4 for several months now, and suffer repeated crashes. Our systems support contractors have looked at the network, and say its a software issue. Running it on 2 PCs, Windows 7 OS. Initaially we thought it was networ