Home » Developer & Programmer » Forms » web_util problem
web_util problem [message #203862] Thu, 16 November 2006 12:11 Go to next message
RAY_HT
Messages: 155
Registered: May 2005
Location: Giza
Senior Member
hi all

i have form created by forms10g and web_util lib attached to it succesfully .
now i want to use client_text_io to create file.dat on client pc
but when do that it still working without any error and didn't finish .

note: txt_io was working successfully.
Re: web_util problem [message #203890 is a reply to message #203862] Thu, 16 November 2006 19:32 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Please post code.

David
Re: web_util problem [message #204054 is a reply to message #203862] Fri, 17 November 2006 09:00 Go to previous messageGo to next message
RAY_HT
Messages: 155
Registered: May 2005
Location: Giza
Senior Member
befor write in txt file , checking if the temp file open , and close it .
by execute client_txt_io.fopen(temp_filename);
when execute these statment the system hanging.
Re: web_util problem [message #204157 is a reply to message #203862] Sat, 18 November 2006 04:59 Go to previous messageGo to next message
RAY_HT
Messages: 155
Registered: May 2005
Location: Giza
Senior Member
no one have solution for this problem ??
Re: web_util problem [message #204263 is a reply to message #204157] Sun, 19 November 2006 22:22 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
With which part of "Please post code." are you having a problem?

David
Re: web_util problem [message #207988 is a reply to message #203862] Thu, 07 December 2006 12:37 Go to previous messageGo to next message
RAY_HT
Messages: 155
Registered: May 2005
Location: Giza
Senior Member
dear all
when button pressed trigger code attached .
when i press button system hange and don't response

please , i need to solve this problem
i have to create /print file created by this trigger from client machein

thanks
Re: web_util problem [message #208020 is a reply to message #207988] Thu, 07 December 2006 19:13 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
On which line is it stopping? Put 'message / pause' pairs into your code and refine it so that you know on exactly which line it is stopping/not returning.

You are using Forms 10g, I strongly suggest NOT using varchar fields, change them to varchar2. You are also using 'number' without a size specification, give them one eg. number(10). You are only using the item name in your code eg. ':SECTION_CODE', it is recommended that you use ':blk.itm' just in case you have the same named item in more than one block.

Make these changes, identify the line that was last processed, and then get back to us.

David
Re: web_util problem [message #208038 is a reply to message #204263] Thu, 07 December 2006 22:51 Go to previous messageGo to next message
kbhujendra@rediffmail.com
Messages: 26
Registered: June 2006
Location: Hyderabad,India
Junior Member

Hi,

As per your code please change your code like below.I think problem is here in bold.Because I am unable to test your code

filename := 'c:\outfile\bill.dat';
  l_tempfile := [B]client_[/B]text_io.fopen(filename, 'W');
  if client_text_io.is_open(l_tempfile) then
    client_text_io.fclose(l_tempfile);
  end if;


Still if you found any problems please get back to this forum.


Bhujendra.
Re: web_util problem [message #208354 is a reply to message #208038] Sat, 09 December 2006 16:13 Go to previous messageGo to next message
RAY_HT
Messages: 155
Registered: May 2005
Location: Giza
Senior Member
the code stop when starting to execute
"filename:='c:\bill_dat';

i want you know that the code as i wrote , when i'm using text_io it running successfully and the file created on application server . just i want it ti be created on client side .

also i don't understand [b] and [\b] in last replay.
Re: web_util problem [message #208440 is a reply to message #208038] Sun, 10 December 2006 22:26 Go to previous messageGo to next message
kbhujendra@rediffmail.com
Messages: 26
Registered: June 2006
Location: Hyderabad,India
Junior Member

Hi,

I mean that change your code to:

filename := 'c:\outfile\bill.dat';
l_tempfile := client_text_io.fopen(filename, 'W');

Forms 10g supports text_io there is no need to write client_text_io.
I think the problem arises because of not putting 'Client_'.




Bhujendra
Re: web_util problem [message #208475 is a reply to message #208354] Mon, 11 December 2006 00:33 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
You said "also i don't understand [b] and [\b] in last replay." - Bhujendra is in to personalised posts, he was trying to make it bold. Unfortunately, it does not work inside 'code' tags. That's why it is always wise to use 'Preview Message' before doing a 'Submit Reply'.

David
Previous Topic: string error
Next Topic: how can i use date-picker.
Goto Forum:
  


Current Time: Thu Sep 26 18:18:49 CDT 2024