Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

oracle table handlers

Posted on 2004-09-03
3
Medium Priority
?
619 Views
Last Modified: 2010-08-05
This is regarding the custom form which i'll be registering in apps

I have created a form and the base table is a view.
The table is having around 70 columns and i have created view with rowid and all the columns from the base table.

 i'll be displaying only 13 columns in the screen and updating only one column
out of 13 columns some are not null columns and some accept null values alos
I have written two table handlers on the block, on-update and on-lock

my question is how do i need to frame the on-lock procedure logic....
do i need to include all the 70 columns in the lock-row logic
or do i need to check for the 13 columns which are displayed on the screen
or is it enough if i check for the non-null colums in the lock-row procedure..

FYI : i'm following the same steps as mentioned in the oracle applications developer guides ..
topic : Example Client–Side Table Handler  page 4-21
0
Comment
Question by:hiswapna
1 Comment
 
LVL 15

Accepted Solution

by:
andrewst earned 500 total points
ID: 11971979
Interesting question.  My initial thought is that you only need to check the 13 columns, because the user is unconcerned with the other 57.  Here's my reasoning:

Suppose you check them all, and find that someone else has changed col66, which your form doesn't use.  The error is raised telling the user the he/she needs to requery the record as it has been changed.  The user requeries the record, which comes back looking exactly the same as before, and then successfully locks it.  So nothing has been gained by the initial lock failure.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
Suggested Courses

879 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