I think that the forms have a brain PET (dump)...

I use Forms 11g with WLS 10.3.4 on a Windows Server 2003 SP2 Server and I have little code I worked on a few months, I have a piece of this work and moved on the other piece on a totally different canvas and button and everything and did not touch the work piece since then, except to add an if statement and now suddenly the button does NOTHING if I get the negative side of the if statement. What I'm trying is upload and download features using webutil and I got the download work and be almost finished with the download and to use the download to put some more entries in the table so I could have more than 2 entries in the table until I tested my stuff to download and if I deliberately something that I know will throw an error, then it crosses the code exactly how it is supposed to, but if I do things the way they are supposed to do for work he thinks for a few seconds then does waits for nothing... no error... no success message no message... no entry in the database... nothing.

Declare
Result_Upload BOOLEAN;
number of alert_button;
Begin

insert into JLIM. DOCS (FileName, file_size) values(:FILE_UPLOAD_BLOCK.file_upload_text,45);

Result_Upload: = Webutil_File_Transfer.Client_To_DB
(
: FILE_UPLOAD_BLOCK.file_upload_text,.
"JLIM. DOCS,
"DOC_IMAGE,"
' Filename =: FILE_UPLOAD_BLOCK.file_upload_text'
);

commit;

-If Result_Upload THEN
alert_button: = show_alert ('progress');
-OTHER
-alert_button: = show_alert ('upload_fail');
-END IF;
End;

Here is my code, I tried to comment the code to the if statement to see if somehow through a need in continuum space-time in some fucked up another dimension in another universe that long statement caused my code only works if it does not work and it works again as if I sabotage the upload by leaving blank the text box , in which case it updates a row in the table with no file name (obviously, since there is nothing in the text box to place in the table), an annual that is done by a sequence and trigger who are hard coded both in the table and the hard coded '45' that one day will be the size of the document in question.

Since it stopped working, I made a few changes that he's trying to see if I can make it work, I changed the where clause in the null webutil_file_transfer for ' filename =: file_upload_block.file_upload_text' I tried to comment on the if statement and I added "jlim." to "docs" in the webutil_file_transfer

A glance in the WEBUTIL_DB package showed that the when clause is passed as what; which means this:

'filename = :FILE_UPLOAD_BLOCK.file_upload_text'

did not do what you want, and should most likely be

'filename = '''||:FILE_UPLOAD_BLOCK.file_upload_text||''''

Take a look at your table. I bet that it contains a single record (with file name ': FILE_UPLOAD_BLOCK.file_upload_text') where the blob is actually containing the data you want to download.

see you soon

Tags: Oracle Development

Similar Questions

Maybe you are looking for