Solved

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

Posted on 2012-03-27
2
2,561 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Migrating an SQL 2008 database to Oracle 12c 3 89
Migrate Oracle Database from ASM to Non-ASM on a Windows server. 1 33
sql query 9 38
How to free up undo space? 3 29
This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
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 how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to recover a database from a user managed backup

920 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now