|
|
Re: FRM 40505 - unable o perform query (FROM QUERY CLAUSE) [message #86646 is a reply to message #86624] |
Fri, 15 October 2004 19:39 |
rupa
Messages: 41 Registered: August 2002
|
Member |
|
|
you can check the error by pressing shift+F1, this will show you the query that is built by the form at runtime. try to run that same query and see in the toad what is the problem. maybe some syntax problem is there. please check and let me know the exact. give the entire query.
|
|
|
|
|
Re: FRM 40505 - unable o perform query (FROM QUERY CLAUSE) [message #349058 is a reply to message #87544] |
Thu, 18 September 2008 14:21 |
former
Messages: 15 Registered: June 2008
|
Junior Member |
|
|
Hi,
I have an added a text item to the form with datatype as 'Date' and initial value as $$datetime$$. Also I have given this code on 'When-New-Form-Instance' trigger
:books.displaydatetime :=sysdate;
The forms runs without errors and displays the current date and time. However when I click the 'Execute Query' instead of displaying records, a message is shown - 'Do you want to save the changes you made' and then the form would go into an 'FRM -40505' error.
To correct this , I went through this thread and changed the 'Database Item' Property to 'No'. Now, I am able to execute the query. But, another problem occurs. When I click on execute, the date and time disappears. The text field looks empty when ever I go to execute query mode.
Need help on this.
Thanks
Deepti
|
|
|
|
|
|
Re: FRM 40505 - unable o perform query (FROM QUERY CLAUSE) [message #349165 is a reply to message #86624] |
Fri, 19 September 2008 03:03 |
rajy_salim
Messages: 204 Registered: January 2008 Location: Beirut - Lebanon
|
Senior Member |
|
|
Your problem is clear:
- The message 'Do you want to save the changes you made' will normally be displayed because the status of the datablock is now changed when you assign SYSDATE to your field. So when you try to execute query, FORMS will ask you if you want to commit your changes.
- If the field is not a database item, it's normal that it does not appear because no source is specified for it.
Solution:
- To avoid dispalying this message, change the status of the datablock to 'QUERY' by using SET_BLOCK_PROPERTY, and then the date assigned will be commited on the first 'save' performed.
- Keep your field 'a database item', and on executing query, it will show the corresponding data.
Hope this will help you.
Rajy
|
|
|