Solved

oracle block item value copied

Posted on 2014-01-16
2
908 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to recover a database from a user managed backup
Suggested Courses

617 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