Before Delete_record I want to check block changes
I want to check if the user made any changes before deleting the record how can I ?
when you update one record and then press delete record it will be deleted directly i want to check before delete if the user change the record data i should give message like ... You want to update or delete your record
Hi!
You have to check each item for changes.
But you do not need to go to the item, just check the database value like:
declare
l_item varchar2(30) := get_block_property ( 'YOUR_BLOCK', first_item );
begin
loop
if
get_item_property ( 'YOUR_BLOCK.' || l_item, item_type ) = 'BUTTON'
then
null;
elsif
get_item_property ( 'YOUR_BLOCK.' || l_item, database_value ) != name_in ( 'YOUR_BLOCK.' || l_item ) OR
( get_item_property ( 'YOUR_BLOCK.' || l_item, database_value ) is null AND name_in ( 'YOUR_BLOCK.' || l_item ) is not null ) OR
( get_item_property ( 'YOUR_BLOCK.' || l_item, database_value ) is not null AND name_in ( 'YOUR_BLOCK.' || l_item ) is null )
then
message ( 'Record is changed. Do you want to to delete or ...' );
your_code ...
end if;
exit when l_item = get_block_property ( 'YOUR_BLOCK', last_item );
l_item := get_item_property ( 'YOUR_BLOCK.' || l_item, nextitem );
end loop;
exception
when others then message ( l_item || ': ' || nvl ( error_text, dbms_error_text ) );
raise;
end;Regards
Similar Messages
-
Checking block corruption, why in alert it is saying Error in trace file
Hi,
I am using Oracle 10g 10.2.0.1 with linux 32 bit
I wanted to check block corruption using RMAN by following statement
backup validate check logical database;
when i executed the statement, following was the output
Starting backup at 09-MAY-08
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=91 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00004 name=/u01/app/oracle/oradata/test/users01.dbf
input datafile fno=00008 name=/u01/app/oracle/oradata/test/workflowuser
input datafile fno=00001 name=/u01/app/oracle/oradata/test/system01.dbf
input datafile fno=00003 name=/u01/app/oracle/oradata/test/sysaux01.dbf
input datafile fno=00010 name=/u01/app/oracle/oradata/test/ifan
input datafile fno=00002 name=/u01/app/oracle/oradata/test/undotbs01.dbf
input datafile fno=00007 name=/u01/app/oracle/oradata/test/taker
input datafile fno=00009 name=/u01/app/oracle/oradata/test/testing1
input datafile fno=00005 name=/u01/app/oracle/oradata/test/brokerdb
input datafile fno=00006 name=/u01/app/oracle/oradata/test/moneio
input datafile fno=00011 name=/u01/app/oracle/oradata/test/web1
input datafile fno=00012 name=/u01/app/oracle/oradata/test/e1
input datafile fno=00013 name=/u01/app/oracle/oradata/test/ind1
channel ORA_DISK_1: backup set complete, elapsed time: 00:06:57
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
including current SPFILE in backupset
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
Finished backup at 09-MAY-08
and when i do the following query
select * from v$database_block_corruption in sqlplus
then there was no row
so it means there is no logical corruption, but when i am looking at alert log file it is giving following lines
Fri May 9 10:14:04 2008
Errors in file /u01/app/oracle/admin/test/udump/test_ora_6606.trc:
Fri May 9 10:14:04 2008
Errors in file /u01/app/oracle/admin/test/udump/test_ora_6606.trc:
Fri May 9 10:14:04 2008
Errors in file /u01/app/oracle/admin/test/udump/test_ora_6606.trc
and in above trace file following contents
/u01/app/oracle/admin/test4/udump/test_ora_6606.trc
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1
System name: Linux
Node name: test
Release: 2.6.18-5-686
Version: #1 SMP Wed Oct 3 00:12:50 UTC 2007
Machine: i686
Instance name: test
Redo thread mounted by this instance: 1
Oracle process number: 61
Unix process pid: 6606, image: oracle@test (TNS V1-V3)
*** 2008-05-09 10:14:04.093
*** ACTION NAME:(0000040 STARTED19) 2008-05-09 10:14:04.071
*** MODULE NAME:(backup full datafile) 2008-05-09 10:14:04.071
*** SERVICE NAME:(SYS$USERS) 2008-05-09 10:14:04.071
*** SESSION ID:(91.40318) 2008-05-09 10:14:04.071
Is it normal, why the in alert file it is saying that Error in.
And it did not create any backupset in folder of flash recovery but in Enterprise manager it is showing last backup on 09-may-2008, why ?
Regards,See logical corruption is normally termed as the internal inconsistancy within the block which is not caused by Oracle but by the user.So if you find internal inconsistancy than the best option is to look at the user and ask him to get the values sorted out.If the internal inconsistancy is some thig like index fragmentation sort of things or index entry pointing to a null rowid than they are termed as the logical corruption and they should not impact your normal as he data is already there and there is no issue in reading the block as such.
The term "corrupted blocks" I would call both in the tables and backup for those data blocks which are unreadable by Oracle which actualy is Physical corruption.
If i am doing the checking at 2:00 am, does it take more than two hours.I didnt understand this.
what can we do for Physical corruptionThis will need the block to be recovered with the Block Recover command of RMAN and a good backup.Read about it here,
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta010.htm
About the Logical and Physical corruption checks , check here
http://download-west.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmconc1012.htm
Aman.... -
How to check the change log of a variant
Dear Gurus,
I want to check the changes done (Change log) in a variant of a program. But i could not find any options around. Please suggest me how can I find the changes done on a variant.
Thanks in advance.
RathiMHi Koteswar!!
Vishal was perfect in his reply to your query. But still as you insisted here comes a step by step elabu2026
1. Execute the transaction SE38
2. Give the program name in the field against the Program
3. In the sub objects section select the radio button variants
4. Click on Display
5. You will now lead to the ABAP: Variants initial Screen where you enter the variant name in the field against the Variant
6. Now traverse through the path utilities-Find from the main menu
7. You will be prompted with a Find variant Popup where you can give the respective variant name and click on execute.
8. Yow will be returned with a screen having information regarding Variant name, short description, Environment, Protected, Changed by and Last Changed.
Trust that suffice to your query!!
Regards,
Damanaidu J
Edited by: Damanaidu jawaharlal on May 22, 2011 1:01 PM -
Hi experts,
I need to change something in a smart form, but I'm afraid someone change sth in dev, and don't transport to QA/prod.
I know I can download forms/style from prod,and upload to dev. I just want to check the change list. Who can tell how to do this?
Thanks.Hi,
In the Production, you go to Utilities -> Download smartform
Then in your Dev, you create a smartform, upload the form you've download,
Then compare with the original form in Dev
Hope that helps,
Rgrds,
Paul -
I can sign on to the iTunes store using my ID but when I want to check my billing information (to change the existing info) it wont accept my password? What do I do?
Adding Open DNS codes to your Network Preferences, should give good results in terms of speed-up as well as added security, (including anti-phishing and redirects) (Full information about Open DNS is here: http://www.opendns.com/home/nobloat ) and further independent information can be read here:
http://reviews.cnet.com/8301-13727_7-57338784-263/free-dnscrypt-tool-enhances-ma c-web-security/?tag=mncol;txt
and here:
http://www.macworld.com/article/1146064/troubleshootdns.html?t=234
Open System Preferences/Network. Double click on your connection type, or select it in the drop-down menu, and in the box marked 'DNS Servers' add the following two numbers:
208.67.222.222
208.67.220.220
(You can also enter them if you click on Advanced and then DNS)
Sometimes reversing the order of the DNS numbers can be beneficial in cases where there is a long delay before web pages start to load, and then suddenly load at normal speed:
http://support.apple.com/kb/TS2296 -
How do I stop pop up that asks me, Do you want to save changes to doc... before closing? I have made no changes only printed the file. Using Adobe Reader DC, Windows 7 64 bit.
This is very annoying and we need this stopped as we have made no changes to any of the adobe files. Please advise how to do this.
Customer Service DCCI first tried the version without the deflated stream (so everything uncompressed) against the online repair tool to check/analyse it @ https://www.pdf-tools.com/osa/repair.aspx
And it says no error found, but the reader still want to save it when closing so i still had no clue at this point.
Fortunately, i finally found what was wrong with my generated PDF.
In my xref table, each object reference was not end by a full EOL, i only did put a newline char.
Now i have "carriage return" "newline" which is the full EOL and the reader is happy and close the file silently.
As suspected i did not follow correctly the specs on xref table
Now i'll go and figure what i did wrong with the deflate filter
Thanks for your help. -
Many people have posted frantic questions about problems downgrading from FF4 to FF3.6, because of incompatabilities with their Addons. I use a LOT of addons. I don't want to check each and every one of them manually for compatability. (And then repeat that in a few weeks, to see what's changed....) And I don't want to try upgrading to FF4 on spec, and then discover I need to downgrade because one or more of the addons I rely on doesn't work.
How can I check the addon compatabilities WITHOUT actually upgrading?You can try the Is It Compatible? add-on which adds compatibility information to the add-ons manager - https://addons.mozilla.org/en-US/firefox/addon/is-it-compatible/
-
I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website
Here's two popup test sites.
http://www.kephyr.com/popupkillertest/test/index.html
http://www.popuptest.com/ -
How to have a check on change bars and/or tags before generating a PDF
Hi All,
There were many instances where I have generated very huge books (over 1300 pgs), and realize that some chapter(s) (files) are printed along with the tags or the change bars on.
To resolve this, I had to go back and regenerate the same book after removing those properties which is cumbersome.
Is there any solution where I can have a check/popup, before generating the PDF, if any file(s) within a book has tags or the change bars on?
Thanks and regards,
SubhakarHi Michael,
Thanks for your response and apologies for not mentioning the FM version (9)
that I am using.
I am now able to clear the tags in all the files within a book by your
suggestion to:
1. Select all files within the book
2. Go to View and select
3. Select Show Element Boundaries (as tags)
This will show the element tags in all the files
4. Select Hide Element Boundaries. This option is visible and enabled only
when I select the Show Element Boundaries.
I am just curious and waiting for your response to have a check on Change
Bars.
Regards,
Subhakar
On Thu, Feb 3, 2011 at 2:29 AM, Michael Müller-Hillebrand -
Apple store,just wanted to check on how to change my area settings in itunes from United States to United Arab Emirates(that's where i stay).it got changed when i tried to download google maps from the US store in itunes.please help me out here.Thanks
Please please help me, if you know how.
-
Is it possible to have a window open for my Itunes Library and Itunes store at the same time so that I can toggle back and forth between the two. I want to check my library before I buy songs to make sure that I don't duplicate.
Thanks!No.
-
how to remove an account balance of itunes, but my mind is Mexican American was before, and I want to change the country to see my purchases in the store hise U.S.
Buy something for more than the balance and charge the remainder to a credit card, or write Apple and ask them to keep the balance.
iTunes Customer Service Contact - http://www.apple.com/support/itunes/contact.html > Get iTunes support via Express Lane > iTunes > iTunes Store -
I am buy used iphone and i want to check it blocked or not
i want to check my iphone 4 carrier?
any body tell me i want to check my iphone is unlock or lock
-
Before nothing happened until just recently when box messages would appear and tell me to click "yes or no" if I want the program to change my laptop. I clicked "No", but sometimes it didn't work, and when it didn't work. When it failed, fire fox changed some of the settings in my laptop. For example, the task bar's color would be changed. Also, it seemed as if fire fox had changed some of the settings into an old version. Yesterday I restarted my laptop, and it just went back to normal like nothing happened. But, for a few minutes later, the box will appear and you have to click yes or no. I clicked the "x" button, and it just changed automatically.
Check that you do not run Firefox as Administrator.<br />
Right-click the Firefox desktop shortcut and choose "Properties".<br />
In the Compatibility tab, make sure that Privilege Level: "Run this program as Administrator" is not selected.<br />
You also need to check the Properties of the firefox.exe program in the Firefox program directory.<br /> -
How to suppress 'Do u want to save the changes?' When there are no changes
Hi All,
I have developed one form,which contains 3 blocks in that 2 are database blocks and one is control block.It's working fine.When I close the form without doing any change also it is showing an alert as 'Do you want to save the changes you have made?'. How can I suppress that alert when I haven't made any change to the form.
I am displaying one filed in the database block as 'null' until check box is checked.For that I have written code in when-new-block-instance trigger of that block.
There I wrote SET_RECORD_PROPERTY (GET_BLOCK_PROPERTY (:SYSTEM.TRIGGER_BLOCK, CURRENT_RECORD), :SYSTEM.TRIGGER_BLOCK, STATUS, QUERY_STATUS); also to change the block status as query.
But it is not working, still I am getting the alert,How can I solve this could anyone please give me a suggestion..
Thanks in advance.So, this functionality can be done through CHECK BOX itself. Why you are making null by WHEN-NEW-BLOCK-INSTANCE. You can just set the update and insert property for that fields and rest things you can control from chexbox. And WHEN-BLOCK-INSTANCE-TRIGGER will fire once when you will access that block. If you want to set the same functionality for each record. Then you must use WHEN-NEW-RECORD-INSTANCE. for ex.
Trigger = WHEN-NEW-RECORD-INSTANCE (BLOCK-LEVEL)
Here i will assume that if check box is checked then he can update that fields.
IF :CHECKBOX='Y' THEN
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_TRUE);
ELSE
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_FALSE);
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_FALSE);
END IF;In the above code no need for set value to NULL.
And on CHECK BOX you can write like this...
Trigger WHEN-CHECKBOX-CHANGED (ITEM-LEVEL)
IF :CHECKBOX='Y' THEN
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_TRUE);
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_TRUE);
ELSE
:FIELD_NAME:=NULL; -- here if check box is unchecked then it will set value to NULL
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',INSERT_ALLOWED,PROPERTY_FALSE);
SET_ITEM_PROPERTY('BLOCK_NAME.ITEM_NAME',UPDATEABLE,PROPERTY_FALSE);
END IF;-Ammad
Maybe you are looking for
-
I have problem with my iphone 5 the battery still running so fast
i have problem with my iphone 5 the battery still running so fast
-
Error with (supposedly) missing i586-poky-linux-uclibc-g++ in Galileo
I'm trying to compile sketches for the Intel Galileo (1st Gen) in the Galileo IDE and I'm getting a strange error. The IDE throws the following error: Cannot run program /home/joao/galileo/hardware/tools/sysroots/x86_64-pokysdk-linux/usr/bin/i586-pok
-
HT4847 How can I store my photos, now mobile me is no longer
Hi Guys Since mobile me has been scrapped, what's the best place to store a backup of your photos online Cheers Harvey
-
Whenever I use the Firefox browser to go to another site, Ican't get back to Firefox home page by simply pressing the Home button at the top left line of the page.
-
Can I use MainStage without owning Logic?
I use Pro Tools and Reaper in the studio, so I won't to jump ship to Logic; simply b/c however nifty it is, it's not worth the steep time-consuming learning curve. However, for live performance as a keyboardist, I'm looking for a Mac-based VST host