How to manipulate LOBS from Forms 6i
Having a LOB column, how do I get to extract the data in it using Forms 6i?
If I try to use the dbms_lob package, forms dies horribly when using a LOB locator in select
declare
limg blob;
begin
select pic into limg /* this causes a crash!!!*/
from test_pic where code=:test_pic.code;
end;
Still nothing?
Similar Messages
-
How do I connect from forms 6i and SQL Plus to Oracle XE?
I have successfully installed Oracle database XE on my work labtop. This machine has already oracle forms,reports,sqlplus installed locally. I have tnsnames.ora file in orant/net80/admin directory. I have created an entry in this tnsnames.ora file copied from the tnsnames.ora file created during the installation of XE in the directory where xe is installed.
I can connect to XE from dos promt by typing sqlplus system/password@xe. But if I go to sqlplus 8.0 (Windows) and try to connect , I get a tnsnames error. Same as when connecting from forms.
Someone please advice. Also If i create an application using Oracle Database Xe
and Oracle forms 6i , Is there any way that I can embedd the database in the forms to distribute as a package.?
Thanks
GeorgeGeorge,
please give us a bit more details:
1) You are on Windows XP SP2, right?
2) please post the result of your tnsping80
D:\Oracle>tnsping80 xe
TNS Ping Utility for 32-bit Windows: Version 8.0.6.3.0 - Production on 12-JAN-2006
08:24:27
(c) Copyright 1997 Oracle Corporation. All rights reserved.
Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))
OK (360 msec)3) In which order did you install the oracle software, XE was last, right?
4) Can you still connect using Forms to your other databases? Is everything else still working, just the connect to XE doesn't work?
5) please post your PATH variable:
echo %PATH%
6) please post the XE entry from your tnsnames.ora
7) please post the result of your "normal" tnsping:
tnsping xe
Also If i create an
application using Oracle Database Xe
and Oracle forms 6i , Is there any way that I can
embedd the database in the forms to distribute as a
package.?Sure, XE is meant to be embedded by other solutions. I guess Oracle will have detailed documentation on how to create a package, preinstall the necessary schemas and objects and distribute it together with your forms and reports.
~Dietmar. -
How to run report from form in DS9I
Hi,
Can anybody guide me how to run the webreport from the form by passing some parameter from form to report
by using Oracle developer 9i
thanksTry
http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
You'll find there all what you need -
How to save data from form into database
i nid to save data from form into the new table, @abc.
got any idea ?
smtg like oObj = BaseAddOn.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes) this but it is a new object or user data source.
Thankshi
i have created UDO i have also done registration i want to bind item master completely to matrix and then in one column i will set check box to check unchecked and then i want to save it to database
i have one user defined form and 4 matrix and 4 child tables
for each matrix i have given 1 form and i have to transfer the data from temp form to main form matrix having large data in matrix on temp form to main form matrix
to load data on matrix i have used for loop that i want to avoid so how i can bind large data to matrix without for loop
regards
amey -
How to place values from Forms into email?
Andreas sugested the following statement to navigate from forms to emal:
HOST('cmd /c c:\Windows\System32\rundll32.exe url.dll,FileProtocolHandler "mailto:[email protected]?cc=[email protected]&bcc=[email protected]&subject=mysubject&body=mybody"');
It works just fine placing [email protected] to to:, [email protected] to cc, [email protected] to bcc, mysubject to subject ,and
mybody to the text area.
Question:
How to rearrange the string if I need to place values from the fileds in the form:
:control.to (can consist of [email protected];[email protected];......;[email protected]) value in the filed should go to to: in the email;
:control.cc ((can consist of [email protected];[email protected];......;[email protected]) value in the filed should go to cc in the email;
:control.bcc ((can consist of [email protected];[email protected];......;[email protected]) value in the filed should go to bcc in the email;
:control.subject:='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' value in the filed should go to subject in the email;
:control.text:='vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv' value in the filed should go to the text area in the email;
Any suggestions?
Thanks. Lev.Have you tried:
HOST('cmd /c c:\Windows\System32\rundll32.exe url.dll,FileProtocolHandler "mailto:'||:control.to
||'?cc='||:control.cc||'&bcc='||:control.bcc||'&subject='||:control.subject||'&body='||:control.text||'"');Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Hi how can print report from form directly
Hi,
I would like to print report from D2k directly....
i.e. suppose we pressed a button report has to be generated and printed automatically.... Generating of report is done by Run_product function, but how to give print directly...
please u send ur valuable suggestions to my mail id also
[email protected]
bye!When calling the report from form, include 2 more parameters in the parameter list:
- PARAMFORM=No
- DESTYPE=Printer
hth -
Urgent: how to run report from forms runtime
hi
can anybody tell me how to call reports in forms through menu
i just forgot how to call...
exact menu item code!!
rgds,Dear
if u are using client server then use this code
Run_Product(REPORTS, 'd:\emp.rep', ASYNCHRONOUS, RUNTIME,
FILESYSTEM, 'x', NULL);
if u r wsing web then use this code
Web.Show_Document('/reports/rwservlet?server=myrepserv&report=test.rdf&userid=scott/tiger@mydb&desformat=pdf&destype=c
ache¶mform=yes', '_blank');
M Rizwan -
How Call crystal report from form
Hi all
i make report by crystal report but i can't call it from form , which function in form builder do that?Hi all
i make report by crystal report but i can't call it from form , which function in form builder do that? -
How to run report from form using run_object_report
I AM USNING FORMS9I/REPORTS 9I , HOW TO RUN REPORT FROM FROM USING RUN_REPORT_OBJECT AND HOW
TO PASS PARAMETER AS WE DID IN RUN_REPORTS PLEASE HELP MEhere an example !
I hope this example you can use it
PROCEDURE pr_reporte IS
BEGIN
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status Varchar2(20);
d1 DATE;
d2 DATE;
BEGIN
d1 := :GLOBAL.DIA_INI;
d2 := :GLOBAL.DIA_FIN;
repid := find_report_object('rep_lab02');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'p_fec_uno='||to_char((add_months(last_day(d1),-1) +1),'DD/MM/YYYY')||' '||
'p_fec_dos='||to_char(d2,'DD/MM/YYYY'));
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := report_object_status(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' then
WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
ELSE
ventana('E','error reporte no encontrado','S');
END IF;
END;
END;
The 'rep_lab02' is the name of the report that you give in the node reports
p_fec_uno and p_fec_dos they are the parameters in the report
repserver is the name of server created with rwserver
Greetings -
I've interview tomorrow , still do not know how to run report from forms
hi all ,
i asked before about running report from forms 10g rel2 , but vainly , because i could not configure the reports server ,
and no one told me .
now i've an interview tomorrow , and sure it will be included in the task which i have to do .
i am in a bad need for your step by step help
thanks in advanceExcuse me for being lazy and not searching your previous threads containing questions about configuring your reports server. As I don't know their content I don't know the links posted, the advices given and what you did, and as this is a new thread I'll go ahead and ask what you tried, where you failed and what exactly did not work out for you.
i am in a bad need for your step by step help Fine, here is an easy one:
Step 1: go to http://tahiti.oracle.com
Step 2: click on "Oracle Application Server, 10g Release 2 (10.1.2)"
Step 3: click in the searchbox, type "Configuring Reports Server"
Step 4: click "search"
Step 5: You will be redirected to some links, the very fist of them is this:http://docs.oracle.com/cd/B14099_19/bi.1012/b14048/pbr_conf.htm
This is as step-by-step as it gets, if you want detailed help ask detailed questions.
cheers -
hi all,
i have tried to run report from forms using below codig(got from online help)
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status varchar2(20);
v_host varchar2(100):= 'localhost';
v_port varchar2(10);
v_parameter_string varchar2(4000);
v_username varchar2(50);
v_password varchar2(50);
v_database varchar2(50);
BEGIN
repid := find_report_object('REPORT27');
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
if rep_status = 'FINISHED' then
message('Report Completed');
copy_report_object_output(v_rep,'E:/Rep/local1.pdf');
-- host('MOZILLA E:/Rep/local.pdf');
-- WEB.SHOW_DOCUMENT('http://192.168.0.160:1521/reports/rwservlet/getjobid'||
-- substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
else
message('Error when running report.');
end if;
-- Get the full domain name of the server from the formsweb.cfg
tool_env.getvar('SERVER_URL',v_host);
-- Get the username/password and database from the .env file
tool_env.getvar('APPLICATION_USERNAME',v_username);
tool_env.getvar('APPLICATION_PASSWORD',v_password);
tool_env.getvar('APPLICATION_DATABASE',v_database);
-- If it is localhost then we are running on windows and need to use the windows port, otherwise we
-- are on AIX and need to use the AIX port
IF v_host = 'localhost' THEN
v_port := '8889';
ELSE
v_port := '8889';
END IF;
-- Now build the parameter string for running the report
v_parameter_string := 'server=repserver';
v_parameter_string := v_parameter_string||'&report= E:\AGE_NoELIGIBLEReport.rdf';
v_parameter_string := v_parameter_string||'&userid='||v_username||'/'||v_password||'@'||v_database;
v_parameter_string := v_parameter_string||'&execution_mode=batch';
v_parameter_string := v_parameter_string||'&comm_mode=synchronous';
v_parameter_string := v_parameter_string||'&destype=cache';
v_parameter_string := v_parameter_string||'&desformat=pdf';
-- Now run the report
web.show_document('http://'||v_host||':'||v_port||'/reports/rwservlet?'||v_parameter_string,'_blank');
END;
REP-110: Unable to open file ' AGE_NoELIGIBLEReport.rdf'.
REP-1070: Error while opening or saving a document.
REP-0110: Unable to open file ' AGE_NoELIGIBLEReport.rdf'.
but i hav report in e:\ then why its getting?Hi,
I suggest you not to use the "E:\" directory letter, but the REPORTS_PATH instead.
<p>
from the Online Help
</p>
<p>
On Windows, edit environment variables through the Registry Editor (Start > Run > Regedit).
</p>
<p>
On UNIX, edit environment variables by revising and running the shell script that defines the initial default values (reports.sh). If you do this, be sure to keep a backup of the original, unaltered reports.sh file.
</p>
<p>
Regards
JeanYves
</p> -
How to run report from forms 6i
i want to run report from forms 6i.
can anyone help me in this regard.
asif iqbal
karachi.hi
try something like this.
parameter_list_id := CREATE_PARAMETER_LIST('temp_data');
mywhere:='where 1=1';
if :RESULT_VALUE is not null then
mywhere:=mywhere || ' and diagnosis like ''%'||:RESULT_VALUE||'%''';
end if;
if :HISTORY is not null then
mywhere:=mywhere || ' and histodesc like ''%'||:HISTORY||'%''';
end if;
if :RCOMMENTS is not null then
mywhere:=mywhere || ' and scomments like ''%'||:RCOMMENTS||'%''';
end if;
if :PATHOLOGIST is not null then
mywhere:=mywhere || ' and PATHOLOGISTS like ''%'||:PATHOLOGIST||'%''';
end if;
mywhere:=TRANSLATE(mywhere,' ','~');
ADD_PARAMETER(parameter_list_id,'MYWHERE',TEXT_PARAMETER,mywhere);
RUN_PRODUCT(REPORTS,'C:\SearchResult.RDF',SYNCHRONOUS,RUNTIME,FILESYSTEM,parameter_list_id,NULL);
ADD_PARAMETER(parameter_list_id,'PARAMFORM',TEXT_PARAMETER,'NO');
DESTROY_PARAMETER_LIST(parameter_list_id);and also u can try the following code please modify it with u r requirements.
declare
v_plist_id paramlist;
pl_name varchar2(50) := 'rep_params';
begin
v_plist_id := get_parameter_list(pl_name);
check_param_list (pl_name); --Check availability of paramlist and
destroy is present
--When the parameter list already exists it needs to be distroyed first
if not id_null(v_plist_id) then
destroy_parameter_list(v_plist_id);
end if;
v_plist_id := create_parameter_list(pl_name);
add_parameter(v_plist_id, 'P_1', text_parameter, :block_name.item);
-- input parameter
add_parameter(v_plist_id, 'PARAMFORM', text_parameter, 'NO'); --
suppress the display of the Reports p-form
add_parameter(v_plist_id, 'DESTYPE', text_parameter,
:control.dest_type); -- set file destination type
add_parameter(v_plist_id, 'DESNAME', text_parameter,
:control.dest_name); -- set file destination name
add_parameter(v_plist_id, 'DESFORMAT', text_parameter,
:control.dest_format); -- set file destination format
-- call reports
run_product(reports, 'reports_file', asynchronous, runtime,
filesystem, v_plist_id, null);
end;sarah -
How to pass parameters from Forms to Reports
dear all,
i'm running a report from a form using run_product(), now i want
to pass a parameter from a form to report, say i want to display
all the employees of deptno=10, so what parameter should i give
in run_product() and what modifications should i make in the
report???
thanks and regards
Tariq.Yeah,
You can pass parameters to from form to report using
Parameter list. E.g. You want to display all employees of Dept
10.
1. Create report with one user paramter say p_dept
2. Now Using Parameter list and Run Product you can call report,
see following procedure.
/* This Procedure passes department number as a paramter to
Report and displays Report.
Author - Mr. Adinath R. Kamode
Parameter - Deptname (p_dept)
PROCEDURE CALL_REPORT (V_DEPT IN NUMBER)
V_PLIST PARAMLIST; -
- Parameter List and Name
V_PLISTNAME VARCHAR2
(30) := 'RPTLIST';
BEGIN
-- Check existance of Parameter List
V_PLIST := GET_PARAMETER_LIST(V_PLISTNAME);
IF ID_NULL (V_PLIST) THEN
V_PLIST := CREATE_PARAMETER_LIST
(V_PLISTNAME);
IF ID_NULL (V_PLIST) THEN
MESSAGE('Error in
creating parameter list.');
MESSAGE('.');
RAISE
FORM_TRIGGER_FAILURE;
END IF;
-- Add parameter data , name must be same as in Report
ADD_PARAMETER(V_PLIST,'P_DEPT',TEXT_PARAMETER,TO_CHAR
(V_DEPT));
-- Don't display parameter Form
ADD_PARAMETER(V_PLIST,'PARAMFORM',TEXT_PARAMETER,'NO');
RUN_PRODUCT
(REPORTS,'DEPT.RDF',ASYNCHRONOUS,RUNTIME,FILESYSTEM,V_PLIST,NULL)
ELSE
DESTROY_PARAMETER_LIST(V_PLIST);
END IF;
END;
Adi -
How to send mail from FORMS and PL/SQL
I want to send a mail from forms + PL/sql.
I do not want to create a new C program and to make it as USER_EXIT.
The called function suppose to send it through the default email method as per the NT or UNIX setup.
ThanksThanks for your reply.
It requires JServer. We have many clinets around the world and some of them are still running Oracle 7.3.
Any other sleek solution? -
Help: how to send emails from FORMS?
Are there simple steps to send emails from FORMS?
Thank you in advance.
JimmyI'm sure there are many ways to send emails from Forms. Personally I never had to do this, but I can imagine following ways.
a) use UTL_SMTP-Package to send the email via your database
b) use a Java-Call
Peter
Maybe you are looking for
-
Identifying which library you are in
HI All I run two libraries on my windows 7 pc, all was well with this until Apple upgraded..yuk! In the old, and Oh so much better, version of itunes you could see which library you were working in as its name was at the top of the screen. Not any
-
Getting Filename without Path in a CFC
Hi All, I'm attempting to use a CFC/Event Gateway to get the filename of a file that has landed in a directory. What I'm getting instead is the full path with the filename. <cfcomponent> <cffunction name="onAdd" access="public" returntype="void" outp
-
Background image in dreamweaver help?
Thanks for looking, I have this menu I made: http://www.ivoog.com/link4 How can I make the background image fit? You can see that its kindof messed up. How do I make it fit? Please explain or show. Thanks!
-
Guidelines to improve the reliability of a LabVIEW application in Windows XP.
I am searching for guidelines to improve the reliability of a LabVIEW application in Windows XP (ie: disable keyboard, bypass login screen, disable questions during boot up, disable antivirus, etc.) - customer will use LV RT but currently running in
-
How can I download ios5 I don't have a computer
I don't have a pc how can I download ios5 onto my iPad 2