Don't know which triggers to use, please help.
Hi,
I'm a newbie to forms. I have a question about what triggers to use for my situation. I can't seem to find many examples for what I want to accomplish. I have tried using the online help (within forms) but sometimes they don't always have examples for their triggers).
Here's my scenario:
I have six items, five of which are text database items and one is a non-database display item (TOTAL). Each of the first 5 items holds a numeric value and the TOTAL item will store the sum of the previous 5. Of first 5 items, only the 4th item (POINTS) can be updated within the form (and I have set the Enabled propety to 'No' for the first 3 items). I have a function, TOTAL_COUNT, that will do the sum calculation and it works fine in a POST-QUERY trigger populating the value into TOTAL. However, what I'd like to do is anytime a user enters a new value in POINTS and then tabs or mouse clicks into the next item TOTAL, I'd like to call my function to update and display the new total value in TOTAL.
Does anyone know which triggers and/or code I can use to accomplish this? The code I use to call a function is:
:block_name.item := function_name(:parameter)
For your recommed triggers, can I just use that code to call my function or will I need any other syntax i.e. BEGIN...END, etc within the trigger body?
Any quidence would be greatly appreciated.
Thank you,
Eric
Hi!
1. Set Calculation Mode property of ITEM_5 to Formula.
Formula property:
nvl(:Block_Name.ITEM_1, 0) + nvl(:Block_Name.ITEM_2, 0) + nvl(:Block_Name.ITEM_3, 0) + nvl(:Block_Name.ITEM_4, 0)
OR
Function_Name(Param_1,... Param_N);
Have in view of, that the ITEM_5 data will not be saved in DataBase.
2. When-Validate-Item trigger is usfull when is necessary to store calculated item data in DataBase.
Rename you Post-Query trigger to When-Validate-Item.
Modify trigger: Store calculation result in the variable.
(Don't forget to round variable value!)
Then compare it with ITEM_5. If they are different - :ITEM_5 := var_name.
I prefer the first method.
Similar Messages
-
I don't know which folder to use clearing out old messages, spam, junk and other detrious I might want to recover in the future and which folder for highly sensitive or personal in formation I want to keep confidential.
More to my question regarding standard Mail folders, how do Trash and Delete differ in function?
-
My iPhoto keeps quitting unexpectedly and won't open. I don't know what to do. Please help!
Do you get a crash report? If so post just the first 50 lines of it.
OT -
I had my ipod this week, so I do not know which applications to install. please help me
I had my ipod this week, so I do not know which applications to install please help me thank you in advance
You can buy any apps that you want.
-
I have a 2007 macbook that is stuck on the loading page and after a while it shuts down by itself. I don't know what to do anymore please help!!!
Hello Sebas4224
Start with the article below to troubleshoot issues with your MacBook starting up and staying on. Let me know how it goes in case it does not help and I or others can assist you further.
Mac OS X: Gray screen appears during startup
http://support.apple.com/kb/TS2570
Regards,
-Norm G. -
i reset my iPhone 3gs by erase all data and settings. After the process i was waiting till morning but its still shows the apple logo.its been 8 hours but i don't know what to do? please help me to fix it.
Something has gone wrong. Force the phone into recovery mode, as described here, & restore it:
http://support.apple.com/kb/ht1808 -
Whenever I open my notes it crashes, sending me back to my gome screen. I have tried turning my ipad off, closing it down fully, backing up my ipad... I don't know what to do. Please help.
Reset it by holding the power and home buttons at the same time until you see the Apple logo, then release. This just restarts it, you won't lose any data by doing this.
-
My iPod shuffle is not working. It just blinks in green then orange, orange, orange, then shutdown. Don't know what to do. Please help! Thanks!
According to this article, that means the Shuffle's buttons are disabled.
iPod shuffle (2nd generation): Understanding status light behavior
To re-enable the buttons, press and hold the Play/Pause button for about 3 seconds or until the status light blinks green three times.
B-rock -
I used the Amazon downloader for the first time last night. Today, my entire itunes library vanished: ITunes opened as if it were a brand new installation, with no content at all. I had a very large library. I had 50 playlists. I had many purchased songs from iTunes. None of it is in iTunes right now.
I have two problems.
First, I want to know how and why this happened.
Second, I want to know how to restore my iTunes library and iTunes data (ratings, playlists, etc) into iTunes.
I have an HP Simple Save drive that is hooked up to the computer, and presumably backed up the iTunes data. I don't know how to restore it though, and I don't know why this happened.
Please, dear iTunes Gurus, help me fix this!beckijc wrote:
now do I have to do that everytime i open it? or should i change it somehow?
No, you should not have to do it everytinme.
However, as part of your regular backup plan (you do have one, yes?) make sure to backup the entire /Music/iTunes/ folder. -
Hi, the trial period of the windows 8.1 installed at my HP 14-d003tx Notebook PC expired already so I installed a new windows 8.1 Pro 64-bit OS. I went here: http://support.hp.com/us-en/drivers/selfservice/HP-14-Notebook-PC-series/6529958/model/6753958 to check the drivers to be installed but I got confused because I don't know which is which or which drivers I need to install in my laptop. For example, for the bluetooth and wlan drivers, there are 2 drivers to choose from, MediaTek(Ralink) 802.11 Wireless LAN (WLAN) Adapter and Mediatek 802.11 Wireless LAN Adapter Driver, same for the bluetooth and other drivers. Can you please assist me which drivers is compatible or which drivers do I need to install at my laptop? Or how will I know which drivers I need to install. Thanks!
This question was solved.
View Solution.Hi:
Looking at another forum post regarding that model, it indicated that your model has an Atheros wireless/bluetooth card.
So, you would need to install these wireless and bluetooth drivers...
Qualcomm Atheros QCA9000 Series Wireless LAN Driver for Microsoft Windows
File name: sp65048.exe
Qualcomm Atheros QCA9000 Series Bluetooth 4.0+HS Driver for Microsoft Windows
File name: sp65049.exe -
I downloaded and installed itunes, but itunes will not connect to ;internet (I do have internet. I don't know what too do, can you help?
I'm having the exact same issue. I'm connected to the VPN, but I can't mount or otherwise connect to the shared drive. Did you ever resolve this?
-
Lately I have been trying to download some apps but when i click install, the appstore comes up with a message saying that my apple ID can't be used in the iTunes store. This has hever happened to me before and when I go to the settings and the Appstore, then click see Apple ID, it doesn't open. Please help, I don't know what to do. Is this a bug from iOS7.0.4???
JUst experienced the exact same problem after changing password.Getting same message. Hope someone has an answer for this.
-
I can't find which carrier to use on my refurbished I phone 3 G. The screen says I need a sim card and has the message IMEI 01 181100 937 9394. Also ICCID unknown.
They are free at Corporate Verizon stores; retailers usually charge for them. You also can call Customer Service and have them send you one.
And you don't need a SIM card to activate an iPhone 4S on VzW's network. -
I need help, my MacBook Pro keeps restarting itself for the last two hours saying there's a problem. I can't get past the grey screen without it restarting and i don't know what to do...please help me
Reinstall Lion, Mountain Lion, or Mavericks
Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
COMMAND and R keys until the Utilities 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 Utilities menu.
Repair the Hard Drive and Permissions as follows.
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, Mavericks: Select ReinstallLion/Mountain Lion, Mavericks from
the Utilities menu, 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. -
I really don't know what else to do anymore i've tried everything! i saw i tried re installing itunes I downloaded quicktime but whatever i try i can't sync any videos into my itunes 11 as in there is nothing I click "Open" like how i usually sync things and then clicked on the video. after that the little window will just dissapear and nothing happens, i'm serious i tried looking for it in the recently added, in the music, in the movies, TV shows, home videos nothing i can't find it anywhere and i know that i SHOULD be able to synce those videos because i synced those videos before. please help me I'm losing my mind!
Generally i found this thread because i've also got troubles with coax output my problem is in choppy sound with scratches and clipping in Windows 7, when i try to play Dolby Digital or DTS audio in movies or even test sounds from speaker control panel. In win xp all works fine - and in win7 only pcm stereo can normaly being output.
I try with different drivers (official and from daniel) and nothing helps...
yep...bios of my motherboard was configured to lower CPU ratio and voltage when idle (C1E option). I turn this option off and all works fine now)
Maybe you are looking for
-
Hi, I created a Sub VI that creates a chart, formats it and exports the chart to JPG format. Now when I call the Sub Vi this doesn't work. I am only getting an empty chart displayed in the JPG format. It only works if I have the Sub Vi open at the sa
-
Apple wireless keyboard multimedia key not working well??
it's strange, i cannot use the multimedia key at all with a mini, no matter with fn combination or not. i cannot activate playbacak function on f7 to f9. even change speaker volume with f11 n f12 key. i have check system preference with the fn key as
-
Hi, I've been using iTunes for several years, but lately I cannot get the Crossfade to activate. I've tried changing it, restarting the app, rebooting, even deleting the iTunes preference file. Nothing works. Every song goes right until the last seco
-
How do I stop system sounds when using AirPlay on my MacBook Pro?
Hi all, Probably a quick question, but I'm fairly new to Macs. I've a Macbook Pro 13 Late 2011 and now I've got an Apple TV, I use AirPlay. But how do I stop system sounds when using AirPlay? Many thanks in advance, Jon.
-
How to improve performance of my query
Hello Friends, Good Morning. I am having the following query which is never ending - Can any one throw some light on how to improve the performance of my said said query ..This is the query generated in ODI ( ORACLE DATA INTEGRATOR 11G ) The only thi