Solved

oracle block item value copied

Posted on 2014-01-16
2
895 Views
Last Modified: 2014-01-18
have tabular block which have three record or fourth record.i want when create new record the previous values will be copied to the new created record now its upto the user whetherer he changed or leave it as above.
if there the two record the second record value should be copy to third one.
how i can handle it. on which triger?

i tried to use "duplicate_record"  can any one tell me how to use duplicate_REcord in form in my scenario.


Thanks
0
Comment
Question by:hinamansoor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 20

Accepted Solution

by:
flow01 earned 500 total points
ID: 39789274
try creating a
when-new-record instance trigger

if the : system.record_status = 'NEW' and system.cursor_record > 1 then
   if :itemx is null  then  -- itemx should be an item that always has to be filled (to prevent repetitive  duplicates)
          duplicate_record;
   end if;
end if;
0
 

Author Comment

by:hinamansoor
ID: 39791136
Gr8 answer Sir I was expecting from you.



Thanks
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question