Problem opening a file with Webutil [message #364404] |
Mon, 08 December 2008 05:23 |
svsig
Messages: 7 Registered: November 2008 Location: Norway
|
Junior Member |
|
|
Hi.
I am in the process of converting from Forms 6i to Forms 10g, and now I am stuck with a form that is trying to read an ordinary text file. I get an error message when my form tries to open the file. The environment seems to be OK. I have tried the demo form wu_test_106, and this seems to work, so the error must be somewhere in the form that I am working on.
I have done the following in my form:
Subclassed the Webutil object from webutil.olb.
Attached library webutil.pll and removed path.
Changed references to TEXT_IO in my form to CLIENT_TEXT_IO.
When I run the form I get the error message "oracle.forms.webutil.file.FileFunctions bean not found. CLIENT_TEXT_IO.fopen will not work".
The mentioned bean is there in my form, in the subclassed block WEBUTIL, so I feel a bit lost now. Is there something more I need to do with my form to make it work?
Regards,
Sveinung
|
|
|
|
Re: Problem opening a file with Webutil [message #364799 is a reply to message #364404] |
Wed, 10 December 2008 01:40 |
svsig
Messages: 7 Registered: November 2008 Location: Norway
|
Junior Member |
|
|
I have found the error. I was trying to read a file in a WHEN-NEW-FORM-INSTANCE trigger, the form was called by another form and the file name was placed in a global parameter. It seems that I can't use Webutil functionality in WHEN-NEW-FORM-INSTANCE and PRE-FORM triggers.
I could use a timer here, but I have been strongly recommended not to use timers in Forms 10g. So I ended up placing a new button in the canvas to read the file. The functionality is not as good as it should be, but at least it works.
Does anybody know anything about this? Is it a bug or is it intended behavior?
Regards,
Sveinung
|
|
|
|