Form query [message #193719] |
Tue, 19 September 2006 02:28 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
orafan2003
Messages: 122 Registered: February 2006
|
Senior Member |
|
|
Hi,
My form has a block which returns multi-records.
1) I click on each record and click a button which submits these values into some other table and also clears the values that are submitted. After submitting all the values, and when there are no values to be displayed, I want a message to be shown as "No records" . How can I achieve this task?
2) When I open my form and if there are no records I am getting a message FRM-40350. So in On-message I wrote a trigger to display a message that there are no records and the user can exit from the form. For this I used an alert. If the user wants to quit, he clicks on OK button. Before quitting the form, I am getting a message FRM-40401No changes to save . I don;'t want this message to appear. What can I do?
|
|
|
Re: Form query [message #193724 is a reply to message #193719] |
Tue, 19 September 2006 02:36 ![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) |
sandeepk7
Messages: 137 Registered: September 2006
|
Senior Member |
![sandeep_kushwaha](/forum/theme/orafaq/images/yahoo.png)
|
|
Quote: | 1) I click on each record and click a button which submits these values into some other table and also clears the values that are submitted. After submitting all the values, and when there are no values to be displayed, I want a message to be shown as "No records" . How can I achieve this task?
|
Is there any message is appearing when records are finished?
Quote: | 2) When I open my form and if there are no records I am getting a message FRM-40350. So in On-message I wrote a trigger to display a message that there are no records and the user can exit from the form. For this I used an alert. If the user wants to quit, he clicks on OK button. Before quitting the form, I am getting a message FRM-40401No changes to save . I don;'t want this message to appear. What can I do?
|
there might be any "commit" use forms_ddl('Commit') in place of direct Commit. please check that.
you can use exit_form(no_validate);
Sandy
[Updated on: Tue, 19 September 2006 02:37] Report message to a moderator
|
|
|
Re: Form query [message #193727 is a reply to message #193724] |
Tue, 19 September 2006 02:49 ![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) |
orafan2003
Messages: 122 Registered: February 2006
|
Senior Member |
|
|
For the first case, I am not getting any message. I want to display a message if all the records are submitted.
For the second case I am not using commit anywhere. I tried using exit_form(no_validate) but I am getting the message
FRM-40401No changes to save
How can I supress this message?
|
|
|
|
Re: Form query [message #193748 is a reply to message #193745] |
Tue, 19 September 2006 04:45 ![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) |
orafan2003
Messages: 122 Registered: February 2006
|
Senior Member |
|
|
Hi Sandy,
I tried out as you said..No luck! The FRM 40401 is still coming up.
Can I do something like this? When I open the form, if there are no records, I get a message FRM 40350..I used an alert here which says that there are no tasks...When the user clicks on the option OK, the block in the form should be inactive. That is..the user cannot enter any values.
Any ideas?
|
|
|
|
Re: Form query [message #193755 is a reply to message #193751] |
Tue, 19 September 2006 05:30 ![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) |
orafan2003
Messages: 122 Registered: February 2006
|
Senior Member |
|
|
Hi Sandy,
I tried out your suggestion by using set_block_property. It works ...but the problem is that the cursor is still in the item of the block. It is not allowing me to enter any value but can we prevent the cursor from entering the block?
Thank you for guiding me.
|
|
|
|
|
|
Re: Form query [message #193779 is a reply to message #193773] |
Tue, 19 September 2006 06:50 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
orafan2003
Messages: 122 Registered: February 2006
|
Senior Member |
|
|
Hi Sandy,
I am trying out the second part of the code that you said. I would put in this new part for the first one...Thanks a lot!!
|
|
|