Home » Developer & Programmer » Forms » CLIENT_TEXT_IO.fopen wont work if Application is started using a (Forms [64 Bit] Version 12.2.1.4.0 - OS Windows Server 2016 Standard)
CLIENT_TEXT_IO.fopen wont work if Application is started using a [message #686545] Thu, 06 October 2022 16:38 Go to next message
brayampettai
Messages: 1
Registered: October 2022
Junior Member
Hi
I am trying to create a file in a directory in the local machine like c:\myfolder and write data to the file
using the below.


client_text_io.fopen
client_text_io.put_line
client_text_io.fclose

when we access the application from a browser, this was working.
We are trying to move away from IE since its being retired.
We are now trying to test the application by invoking the application from a desktop ICON using javaapplet, webstart.
all the functionality works perfectly fine other than using the above client_text_io calls.

I am getting the following error.
oracle.forms.webtil.file.FileFunctions bean not found CLIENT_TEXT_IO.fopen will not work.

Below is the error from the logs.

Click here
Please help.

regards,
Balaji


[EDITED by LF: applied spoiler tags to hide long log info and make topic easier to read]

[Updated on: Mon, 10 October 2022 12:55] by Moderator

Report message to a moderator

Re: CLIENT_TEXT_IO.fopen wont work if Application is started using a [message #686547 is a reply to message #686545] Mon, 10 October 2022 06:59 Go to previous message
jury68000
Messages: 33
Registered: October 2019
Member
1. Does the webutil.plx exists and is accessable by the forms runtime process (through FORMS_PATH variable)?

2. Are you by any chance using those calls in very early triggers? As this is what webutil help says:

Adding WebUtil Code Once the WebUtil library has been attached to your form you can start to add calls to the various PL/SQL APIs defined by the utility. However, there is an important restriction in the use of WebUtil functions: WebUtil can only start to communicate with the client once the Form has instantiated the WebUtil PJCs. [b]This means that you cannot call WebUtil functions before the Forms user interface is rendered. This would include triggers such as PRE-FORM, WHEN-NEW-FORM-INSTANCE and WHEN-NEW-BLOCK-INSTANCE for the first block in the Form[/b]. Likewise you cannot call functions after the user interface has been destroyed for instance in POST-FORM. If you do need to use WebUtil at Forms startup, it is recommended that you create a timer with a short duration (about 1ms) in your WHEN-NEW-FORM-INSTANCE trigger, then make the WebUtil call in a WHEN-TIMER-EXPIRED trigge
Previous Topic: display field visual attribute
Next Topic: search filter on LOV
Goto Forum:
  


Current Time: Thu Mar 28 15:53:24 CDT 2024