Solved

Oracle Forms: Validate-From-List property causes record status change

Posted on 2012-03-27
2
2,746 Views
Last Modified: 2012-03-28
Hi Everyone,
I have an Oracle Forms riddle for you.  I'm in Oracle Forms 11g.

I have non-base-table item which I change the value of programatically in a post-query trigger.  This should not cause the record status to change (since it's non-base-table), but it does!  When I set the item's Validate-from-List property to 'Yes' and change the value, the record status changes and the user gets prompted to save upon exit when they have not made any changes.  What's going on here and how do I get around this problem?

Thanks
0
Comment
Question by:leclaude
[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: 37774139
Did you check the column_mapping_property of your lov for return_items that are base-table-items.


In my 10g version I could't reproduce the behaviour.

create  a when_validate_item_trigger on the item and a when validate_record_trigger on the record
put a message in each
message('when valide item x :' ||   :SYSTEM.FORM_STATUS || ';' ||:SYSTEM.BLOCK_STATUS || ';' || :SYSTEM.RECORD_STATUS,ACKNOWLEDGE);
message('when valide record x :' ||   :SYSTEM.FORM_STATUS || ';' ||:SYSTEM.BLOCK_STATUS || ';' || :SYSTEM.RECORD_STATUS,ACKNOWLEDGE);


I  get each  message 2 times : 1 after the post_query and 1 after using the lov and leaving the record. All statusses are QUERY
0
 
LVL 1

Author Comment

by:leclaude
ID: 37776286
Yep turned out to be the cause of the problem.  In the LOV column mapping, I had a value being returned into a base table item.  When I took out that mapping the problem went away.
Thanks
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Suggested Courses

615 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