Solved

How do I test if a block has a new record?

Posted on 2004-09-13
2
1,168 Views
Last Modified: 2013-12-12
I want to allow modifications to a certain key field in another block only on condition that the record in another block is a new record that so far has not been saved.  How do I test if this is so in PL/SQL?
0
Comment
Question by:desmondg
[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 22

Accepted Solution

by:
Helena Marková earned 125 total points
ID: 12051599
IF Get_Record_Property(1,'another_block',STATUS) = 'NEW' THEN ...
0
 
LVL 8

Expert Comment

by:sapnam
ID: 12055433
Syntax of Get_record_property

GET_RECORD_PROPERTY(record_number, block_name, property);

So I think we should code this as

IF Get_Record_Property(:SYSTEM.CURSOR_RECORD,'another_block',STATUS) = 'NEW'

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

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