Problem using CLIENT_HOST to FTP files from forms 10g
Hi,
I'm trying to use forms 10g ODS & webutil on NT to allow a user to select a file on their machine or the network and transfer the file to a DB server. I want to transfer the file to the file system on the server NOT to a BLOB column on a table. I've used webutil (client_get_file_name) to display the dialog box and allow the user to select a file. This works fine. However, when I try to use CLIENT_HOST to FTP the selected
to the remote server it fails. I'm issuing the following
command from within forms:
CLIENT_HOST('CMD /C ftp -n -s:C:\test_ftp.txt');
Something tries to kick off and a grey area the size of a dos window flashes on to the screen for a couple of seconds but the FTP does not happen. The test_ftp.txt script is a simple ftp script that transfers one file and I know it works as I can run it successfully from DOS or NT command prompt.
Questions:
(1) Does anyone know how to pause the DOS window so you
can see what is actually happening ?
(2) Has anyone implemented FTP functionality
successfully using CLIENT_HOST in the same way that's
I'm trying ?
Any help would be appreciated.
Declan.
Okay...
Try this. For testing put your command in a .bat-file. In this .bat-file spool the output to a text-file. I'm not sure about the spooling syntax under Windows, check the Windows documentation for that. Like:
ftp.bat
start spooling to ftp.out
cmd /c .... (your ftp commando line)
stop spooling
Perhaps the problem is that it doesn't find the ftp commando? Try hardcode the path like c:\windows\ftp ... etc!
Similar Messages
-
Retrieve image file from FORMS 10G using BLOB
Dear all,
i inserted one record in a table for the following procedure.
Create Or Replace Procedure Blob_Xl Is
l_blob Blob;
l_bfile Bfile;
Begin
Insert Into LOB_TABLE Values ( 'TEST1', Empty_Blob() )
Returning BLOBDATA Into l_blob;
l_bfile := Bfilename( 'TEST1', 'I.JPG');
dbms_lob.fileopen( l_bfile,dbms_lob.file_readonly );
dbms_lob.loadfromfile( l_blob, l_bfile, dbms_lob.getlength( l_bfile ) );
dbms_lob.fileclose( l_bfile );
Commit;
End Blob_Xl;
after that
record also inserted, i check thro count.
i try to retrieve that image from that table for using following procedure, in that procedure i called from one button in forms 10g and wrote in when button pressed , when i clicked it wont show any images.
where i am wrong?
Create Or Replace Procedure get_img As
vblob Blob;
buffer Raw(32000);
buffer_size Integer := 32000;
offset Integer := 1;
Length Number;
Begin
owa_util.mime_header('image/JPG');
Select BLOBDATA Into vblob From LOB_TABLE Where No = 'TEST1';
Length := dbms_lob.getlength(vblob);
While offset < Length Loop
dbms_lob.Read(vblob, buffer_size, offset, buffer);
htp.prn(utl_raw.cast_to_varchar2(buffer));
offset := offset + buffer_size;
End Loop;
Exception
When Others Then
htp.p(Sqlerrm);
End;
/hi
try something like this for retrieve.May it helps u.
DECLARE
directions CLOB;
directions_1 VARCHAR2(300);
directions_2 VARCHAR2(300);
chars_read_1 BINARY_INTEGER;
chars_read_2 BINARY_INTEGER;
offset INTEGER;
BEGIN
--Retrieve the LOB locator inserted previously
SELECT falls_directions
INTO directions
FROM waterfalls
WHERE falls_name='Munising Falls';
--Begin reading with the first character
offset := 1;
--Attempt to read 229 characters of directions, chars_read_1 will
--be updated with the actual number of characters read
chars_read_1 := 229;
DBMS_LOB.READ(directions, chars_read_1, offset, directions_1);
--If we read 229 characters, update the offset and try to
--read 255 more.
IF chars_read_1 = 229 THEN
offset := offset + chars_read_1;
chars_read_2 := 255;
DBMS_LOB.READ(directions, chars_read_2, offset, directions_2);
ELSE
chars_read_2 := 0;
directions_2 := '';
END IF;
--Display the total number of characters read
DBMS_OUTPUT.PUT_LINE('Characters read = ' ||
TO_CHAR(chars_read_1+chars_read_2));
--Display the directions
DBMS_OUTPUT.PUT_LINE(directions_1);
DBMS_OUTPUT.PUT_LINE(directions_2);
END;
sarah
Edited by: S@R@h on Oct 7, 2009 11:29 PM -
Calling html file from Forms 10g
Hi,
I am working in forms 10.1.2.0.2 in the unix server. I have a push button in which I'm creating a html file as under:
MYFILE := TEXT_IO.FOPEN('/tmp/ab.html','W');
When I click the push button, the above file gets created in the tmp directory. But it does not open. Could someone please let me know how to get it to view from my forms. I am using the following command but its not working:
WEB.SHOW_DOCUMENT('http://formsserver:port/test_virtual_dir/ab.html','_BLANK');
Thankshmm....
I assume you have 10g AS installed in Unix.
Go to $ORACLE_HOME/forms/server
edit the forms.conf with your virtual directory values similar to
AliasMatch ^/forms/java/(..*) "/opt/oracle/product/10gas/forms/java/$1
And to test without any virtual configuration , I would try writing the html file to the folder "/opt/oracle/product/10gas/forms/java" and use
http://www.Alexyscorp.com/forms/java/myfile.htm
Also note that u might need to add the hostname as a trusted site otherwise new version of IE wont allow to open.
Rajesh ALex -
Problems using CFFile to move files
Hi there - I am having some problems using CFFile to move
files from one directory to another. It only seems to only move
some of the files in the group that I choose to move over, and
there is nothing specific about which files are moved - different
files are moved each time. There are no error messages that are
showing up, so I am totally baffled. Has anyone else experienced
this or does anyone else have any ideas on how to fix this problem?
Any help would be much appreciated!! My code is below.First, an incidental matter. I don't think there's any need
for so many try-catch tags. I would expect all the tags <cffile
action="move"> to throw the same class of exception, and so
would use one try-catch for them all. Even if you expect different
exceptions to be thrown, one cftry tag might still be sufficient,
if implemented as follows
<cftry>
<!--- code block 1 --->
<!--- code block 2 --->
<!--- ... etc... --->
<cfcatch type="exceptionType1"></cfcatch>
<cfcatch type="exceptionType2"></cfcatch>
<!--- ... etc... --->
</cftry>
I suspect the cause of the problems lies in the dynamic
values that you give the attributes. Perhaps incorrect values are
passed for the source and/or destination values in certain
circumstances. As A3gis has said, if that were to happen you
probably wouldn't notice, because of the try-catches. Find a way to
ensure that all the generated values for source and destination are
correct. -
Opening .pdf files from forms using OLE
Hi,
I want to open, print , save and save as pdf files from forms using OLE . Please help me with the same.
Thanks
VidyaIf you are in client/server mode, you can put an OLE container component on your form. However, be warned that this method does not work when you convert to the forms server web enabled mode. If you anticipate moving your application to the web anytime soon, my advice would be to web-enable first and then add in the feature to view .pdf (or other) files. In our client/server app, I went to a lot of trouble to add in OLE features such as you describe, and now I have to completely re-write those features for the web.
-
How do I FTP files from a security camera to iCloud so they can be retrieved back to my MacBook Pro whenever I connect when travelling?
RussDo you want to watch the live feed of your secutiry cameras or recorded footage?
In either case, I don't think iCloud is your solution.
For the first one, check with your security camera software, they usually have this option of broadcasting, so you'll know how to access it.
For the later, you should use something like Dropbox (www.dropbox.com), since iCloud file sharing is, up to this date, app restricted.
Hope it helps.
JP -
Problem in running oracle report from form 10g Version 10.1.2.0.2
Hi All,
I am facing problem while running the report from forms 10g getting FRM-41219
For this i am using the following procedure :
PROCEDURE RUN_REPORT IS
L_RUN_TEXT VARCHAR2 (2000);
L_USRID VARCHAR2 (100);
L_PASSWD VARCHAR2 (100);
L_DESNAME VARCHAR2 (100);
FILE_OUT_PUT VARCHAR2(200);
REP_STATUS VARCHAR2(20);
REP_NAME VARCHAR2(50);
PL_ID PARAMLIST;
REP_URL VARCHAR2(2000);
V_REP VARCHAR2(200);
BEGIN
display_me('RUN_REPORT');
-- CALL THE FOLLOWING FUNCTION, IN WHICH USER CAN WRITE HIS OWN CODE.
-- THE PROCEDURE CAN BE MADE LOCAL TO THE SPECIFIC FORM AND WRITE THE CODE.
-- IT SHOULD RETURN 'Y', IF YOU WANT TO PROCEED WITH THIS RUN_REPORT
-- PROCEDURE.
IF NVL (RUN_REPORT1, 'Y') = 'N' THEN
RETURN;
END IF;
COMMIT_FORM;
IF (GET_APPLICATION_PROPERTY (OPERATING_SYSTEM)) = 'UNIX' THEN
L_DESNAME := 'LP';
ELSE
L_DESNAME := NAME_IN ('REPORT_TITLE.F_FILE_NAME');
display_me(L_DESNAME);
END IF ;
/* SETTING THE REPORT OBJECT PROPERTIES */
/* G_PRAM1 IS THE NAME OF REPORT ****/
SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_EXECUTION_MODE,BATCH);
SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_SERVER,'172.18.76.34');
SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_FILENAME,:GLOBAL.G_PARAM1||'.REP');
display_me(':GLOBAL.G_PARAM1 '||:GLOBAL.G_PARAM1);
PL_ID := GET_PARAMETER_LIST ('REP_PARA');
IF NOT ID_NULL (PL_ID) THEN
DESTROY_PARAMETER_LIST ('REP_PARA');
END IF;
PL_ID := CREATE_PARAMETER_LIST('REP_PARA');
ADD_PARAMETER (PL_ID, 'DESTYPE' , TEXT_PARAMETER, NAME_IN ('REPORT_TITLE.RAG_DESTINATION') );
ADD_PARAMETER (PL_ID, 'DESNAME' , TEXT_PARAMETER, L_DESNAME);
ADD_PARAMETER (PL_ID, 'COPIES' , TEXT_PARAMETER, NAME_IN ('REPORT_TITLE.F_NO_COPY') );
ADD_PARAMETER (PL_ID, 'ORIENTATION', TEXT_PARAMETER, 'LANDSCAPE');
ADD_PARAMETER (PL_ID, 'MODE' , TEXT_PARAMETER, 'BITMAP');
ADD_PARAMETER (PL_ID, 'PARAMFORM' , TEXT_PARAMETER, 'NO');
ADD_PARAMETER (PL_ID, 'PARAM' , TEXT_PARAMETER, NAME_IN ('IBP_REPORT_PARAMETER.F_REP_SEQ') );
ADD_PARAMETER (PL_ID, 'P_COMP_CODE' ,TEXT_PARAMETER,:GLOBAL.G_COMP_CODE);
display_me(':GLOBAL.G_COMP_CODE '||:GLOBAL.G_COMP_CODE);
REP_NAME := :GLOBAL.G_PARAM1||'.REP';
display_me('REP_NAME'||REP_NAME);
V_REP := RUN_REPORT_OBJECT('REPOBJ');
display_me('V_REP '||V_REP);
REP_STATUS := REPORT_OBJECT_STATUS(V_REP);
display_me('REP_STATUS'||REP_STATUS);
WHILE REP_STATUS IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
REP_STATUS := REPORT_OBJECT_STATUS(V_REP);
END LOOP;
IF REP_STATUS = 'FINISHED' THEN
REP_URL:='/REPORTS/RWSERVLET/GETJOBID'||SUBSTR(V_REP,INSTR(V_REP,'_',-1)+1)||'?'||'SERVER=172.18.76.34';
display_me('REP_URL '||REP_URL);
WEB.SHOW_DOCUMENT(REP_URL,'_BLANK');
ELSE
MESSAGE('ERROR WHEN RUNNING REPORT');
END IF;
END;
Which is called on a button , can any body share there idea to help out
Warm Regards
AshutoshYes, I have replace the userid with scott/tiger@orcl with i6menu/i6menu@vbs and also replace the OAS server's name as you have suggested.
declare
REP_URL varchar2(2000);
begin
REP_URL:= '/reports/rwservlet?userid=i6menu/i6menu@vbs&report=testrep_10g.rdf&desformat=pdf&destype=cache¶mform=no';
WEB.SHOW_DOCUMENT(REP_URL,'_BLANK');
end;
I had the 2nd code also but both r not working on my machine ......... !!
I have made the following setting on my machine:
1. Registry -> HKEY_LOCAL_MACHINE -> SOFTWARE-> ORACLE-> KEY_DevSuiteHome1->FORMS_PATH ->
Values is : D:\vision_soft\VSS\exe
2. Registry -> HKEY_LOCAL_MACHINE -> SOFTWARE-> ORACLE-> KEY_DevSuiteHome1->REPORTS_PATH ->
Values is : D:\vision_soft\VSS\exe
3. Entry made in the DevSuiteHome_1\forms\server ->default.env
FORMS_PATH=D:\vision_soft\VSS\exe
4. Entry made in the DevSuiteHome_1\reports\confr ->rwservlet.properties
#SERVER= rep10
As my forms is working well & but the report are not able to call.
Could you please let me know is there is any other mandatory setting required for the report 10g.
Regards,
Ashutosh -
How to execute Pro*C file from form
Hi All !
I have one pro*c file(.pc & .exe) . How I can execute this file from form.
Regards,
NeerajI think you could use Ora_Ffi package too. Make sure that you use correct version of Pro/C.
I think you should use Pro/C version 8.0.x with Forms 6.0. I don't use Forms 6i, but I think it is the same for it too. -
Hello, how is it possible to execute a sql file from forms without using sqlplus, because we have only the forms runtime on our pc.
We can't use forms_ddl because we have a very big sql script for creating a package.
Please help,
GJStrange, whenever I have installed forms I got sqlplus too without asking for it. If it is not installed, wouldn't your best bet be to install it ?
-
How can I use JAVA to copya file from a location to another location?
Hello all,
I am planning to design a web page (let say an HTML has a form that post fields to a jsp page) that allow me to select a file and then copy it to another location like what we see in email attachement.
Is the any related java class that i can use for this matter or ready JavaBean?
Thanks in advance
YahyajspSmartUpload
look for package named com.jspsmart.upload.
Very easy to use to pull a file from a person's pc up to where the form is posted to. You will need to setup your form to type to be multi-part form. Use an input type of file to generate the file browse button. -
I changed my password to use migration to transfer files from a G4 to a new macbook pro but now I have to sign in every time. How do I avoid the sign in?
I clicked on keychain access but getting a warning that it quit unexpectedly and it won't reopen.
-
HT203106 Can I use AirDrop to send files from iPhone 5 to my iPad Air 2?
Can I use AirDrop to send files from iPhone 5 to my iPad Air 2?
Yes.
Use AirDrop to wirelessly share content - Apple Support -
Hi All,
We are migrating form from Oracle form 6i to Oracle 10g(10.1.2.0.2). I am calling reports from forms
using Web.Show_Docment(). When we run reports in report builder 10g it works fine.
But when we try to run reports from Forms 10g it throws error which is given below.
We want to run reports from UNIX. After using this url to submit report we get error REP 110 and REP 0110
URL
http://GEM:7777/reports/rwservlet?server=rep_server&report=/u01/forms/QA_Forms10g/GEMREP.rdf+DESTYPE=CACHE+DESFORMAT=HTML+p_user_id=XYZ+p_client=2
ERROR
REP-110: File '/u01/forms/QA_Forms10g/GEMREP.rdf DESTYPE=CACHE DESFORMAT=HTML p_user_id=XYZ p_client=2' not found.
REP-0110: Unable to open file '/u01/forms/QA_Forms10g/GEMREP.rdf DESTYPE=CACHE DESFORMAT=HTML p_user_id=XYZ p_client=2'.
I will really appreciate your help.
Thanks
SandyHello,
You are mixing 2 separators in the URL : & and +
Use only one separator in the URL :
Example :
http://GEM:7777/reports/rwservlet?server=rep_server+report=/u01/forms/QA_Forms10g/GEMREP.rdf+DESTYPE=CACHE+DESFORMAT=HTML+p_user_id=XYZ+p_client=2
Regards -
How to save SQL result to file in forms 10g
Hi All,
I am using Oracle/forms 10g and need to create a file from a predefined sql statement .
Just wondering if there is a build-in provided by oracle to export sql result to a file from Forms?.
Your quick response will be of great help.
Thanks
AalishanAalishan,
I guess it all depends on where you need to create the output file. You can use the database package UTL_FILE to write a file to the database server file system or you can use the Forms TEXT_IO built-in to write to the client file system. Is your intent to export the data in a multi-line block to a file? If so, TEXT_IO is what you want to use. The Forms help system has all the information and a few examples you will need to get started.
Hope this helps.
Craig... -
How to open word doc. from forms 10g
hi all
i am trying to open word doc. from forms 10g using ole2.
but it is not working.
basiccaly this command is not working
app := CLIENT_OLE2.CREATE_OBJ('Word.Application');
can anybody help
thanxI found this searching this forum and it works..however, my issue is to open up Microsoft Word passing in data from a query.
I am working on Forms 10g
DECLARE AppID PLS_INTEGER;
BEGIN
AppID := DDE.App_Begin('C:\Program Files\Microsoft Office\OFFICE11\winword.exe C:\test.doc',
DDE.APP_MODE_NORMAL);
END;
Maybe you are looking for
-
Init without data transfer is not working in the Production box for FICA extractors
Hi Guys, We are unable to do Init without data transfer for FICA Extractors(0FC_INVDOC_XX) from BODS system. And the job is successfully completed from the BODS end but it is not hitting the source system.. Can any one please let me know how to resol
-
Include filename on exported jpegs
Is possibe to overlay a filename on a jpeg export? I am creating jpegs for my website and would like to be able to auomaticaly overlay the filename onto the image. This will allow viewers of the website to identify the image. I have managed to overla
-
How to see how much data is used by computers on a network
Hi, (I already asked this, but posted it in the wrong place... apologies) How can I tell the amount of data that some computer has downloaded from the Internet (via my airport extreme (new model))? I have an ADSL connection with a limit on the amount
-
B12 B1 BusinessPartnerGroups ObjectType (10) Problem
Hi created a BizStep to map BusinessPartnerGroup ObjectType 10 (B1.2007_BPG) but I received the following error message: Sender SysId, Sender ObjectType or Sender payload is missing. Checking the xml in B1iSN Admin Console (monitor) i see that I have
-
How to unlock iphone without losing data
How to unlock iphone 4 without losing data