Oracle forms [message #485603] |
Thu, 09 December 2010 00:47 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](//www.gravatar.com/avatar/d462b25150c3f240cbe16f0225764573?s=64&d=mm&r=g) |
srirushi
Messages: 6 Registered: December 2010
|
Junior Member |
|
|
Hi,
I have developed a new form.Something peculiar is happening for that form.
Let me list down the scenario
1)In the data base for the particular table my form is using, there are 1600 records.When i do a Query on Count Hits in the forms,it gives the same number.
2)However when i open the form ,i do not get some of the records.I found that on opening the form and making an Execute Query only those records that i have added through forms exist.
3) However,when i try to add a new record and do an Execute query again,i get all the records present in the database.
Please help me out
|
|
|
|
|
|
|
|
Re: Oracle forms [message #485617 is a reply to message #485616] |
Thu, 09 December 2010 02:24 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
Say you have a list item that recognizes the values A, B and C. If you then query a record where the column the list item is mapped to has value other than one of those oracle forms will silently discard it.
However it won't check this when doing count hits so it'll tell you it'll get everything.
Check the values the list items recognize and the what values are found in the corresponding columns in the DB.
|
|
|
|
Re: Oracle forms [message #485674 is a reply to message #485665] |
Thu, 09 December 2010 07:48 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
srirushi wrote on Thu, 09 December 2010 12:17Hi,
Thanks for your reply.But i tried doing everything u said.Its not working.
What exactly did you try?
srirushi wrote on Thu, 09 December 2010 12:17
I think some issue is there with the trigger.
The when-new-form-instance above? I doubt it. But if it is the issue is in one of the procedures called from the trigger so you'd have to show us the code for them.
srirushi wrote on Thu, 09 December 2010 12:17
However when i do a "Enter Query" and try to insert,but end up doing Shift+F1 then delete then all the records are getting retrieved.
You're going to have to explain that in more details.
srirushi wrote on Thu, 09 December 2010 12:17
Also when i am inserting a record and making a commit and doing an Execute Query my records are getting retrieved.
Your records or all records? I thought the problem was pre-existing records weren't getting retrieved? In which case that proves nothing.
Double check if you have any of the following triggers:
PRE-QUERY
POST-QUERY
KEY-ENTQRY
KEY-EXEQRY
I also suggest you make use of get_block_property(<block_name>, last_query) to find out exactly what query the form issued to the DB
|
|
|
Re: Oracle forms [message #485815 is a reply to message #485674] |
Fri, 10 December 2010 03:38 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](//www.gravatar.com/avatar/d462b25150c3f240cbe16f0225764573?s=64&d=mm&r=g) |
srirushi
Messages: 6 Registered: December 2010
|
Junior Member |
|
|
Hi,
Thanks for all your suggestions.The issue is solved.There were two fields,that was made as "Required=NO".And it worked..
|
|
|