Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2012-03-27
2
Medium Priority
?
2,838 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
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…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

688 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