How to display image in oracle forms 10g
hello good morning
I need to display an image in forms 10g
I can use READ_IMAGE_FILE ('imagen_name', 'URL', 'block.image_item');
ok if I have my forms stored in a directory -----> */ FORMS / MYSAPP* here are all my fmx
HERE ARE MY PICTURES ---> */ FORMS / MYSAPP / IMAGES*
As I can put the URL to access an image that is in that directory
slds
Hi,
You should have the webutil
see this post
http://sheikyerbouti.developpez.com/tutoforms10g/tutoforms10g.htm
Similar Messages
-
How to call Reports in oracle forms 10g
Dear All,
How to call Reports in oracle forms 10g.
I am using Oracle Forms 10g Reports 10g and Database 10 and and Operating system Windows XP.
Please give me the Solution.
Thanks and Regards,
FaziludeenHi Omkar,
Please check the following code.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
plid ParamList;
BEGIN
plid := Get_parameter_List('tmp');
IF NOT Id_Null(plid) THEN
Destroy_parameter_List( plid );
END IF;
plid := Create_parameter_List('tmp');
add_parameter(plid,'p_parameter',text_parameter,to_char(:POLICY.POLICY_NO));
Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
repid := FIND_REPORT_OBJECT('POL_REP');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
v_rep := RUN_REPORT_OBJECT(repid,plid);
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;
WEB.SHOW_DOCUMENT('http://'||'LENOVO-428E9E41'||'8889'||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
'||'server=prod_report_server&P_parameter='||:POLICY.POLICY_NO||
'¶mform=no');
END;
I am used to Start the Report sever 'Rwserver Server=prod_Report_Server Start'
OracleAS Report Services
Version :- 10.1.2.0.2
Name :- prod_report_server
Status :- Server is Shutting down
Jobs in Queue 0
Active Engines 0
I got the Following Error when I trying to run the Report
FRM-41211: Integration error:SSL failure running another product
Thanks and Regards,
Faziludeen -
How to enable tracing in Oracle Forms 10g
Hi Friends,
I am interested to trace my running oracle forms application. When I googled it, I got below useful information. But theory and practical has mismatch somewhere, I am not able to create the trace file(s).
**************************** Some Notes ****************************************************
How to Enable Tracing in Oracle Forms 10g
Enable Tracing from the url by adding the following to your forms url:
&record=forms&tracegroup=0-98,100-199 (note: item 99 causes some issues, so we are skipping it here. See the Oracle documenation for a description of what is being traced for each item.)
for example
[http://machine:port/forms/frmservlet?config=myConfig&record=forms&tracegroup=0-98,100-199]
You will get a trace file in the following location:
%ORACLE_HOME%\forms\trace\forms_xxx.trc where xxx is the forms session ID.
Open dos window and do the following:
set ORACLE_HOME=
set PATH=%ORACLE_HOME%\jdk\bin;%PATH%
set CLASSPATH=%ORACLE_HOME%\jdbc\lib\classes12.zip;%ORACLE_HOME%\forms\java\frmxlate.jar
java oracle.forms.diagnostics.Xlate datafile=%ORACLE_HOME%\forms\trace\forms_xxx.trc outputfile=%ORACLE_HOME%\forms\trace\html_xxx.html outputclass=WriteOutHTML
you will get a file html_xxx.html in your %ORACLE_HOME%\forms\trace directory.
I need information beyond this to make this practically successful.
Thanks in advance,
Amol NaikHello,
<p>Did you read this paper ?</p>
Francois -
How to do this in oracle forms 10g
hi all,
any idea about how to format a drive using oracle forms 10g and shutting down the remote pc and a personal pc using oracle forms 10g.
i am using windows XP2 as os.
please replay..Hi Inol and Weiden,
thanks for your help,
i have cretaed a form xyz.fmx with a button , i wrote in when-button-pressed and also attached the default webutil.pll(which is in forms path) library in attached-library section
Client_host('cmd c/ shutdown -i');
but my problem is that when i run the form i am getting error that
FRM-40039: Cannot attach library webutil.pl while opening form xyz.fmx.
Cause: The given library is attached to the form but
cannot be located in the search path for PL/SQL libraries.
Action: Make sure that the given library can be found
and that it has read permissions set.
Level: 99
Type: Error
i think i have to configure the webutill.pll but i don't how to configure
can you tell me how to configure the webutil.pll file..
please reply.. -
How to use LDAP with Oracle forms 10g on Oracle application server
Hi,
I need some help on this. I have developed oracle forms 10g on application server 9iAS. The client want to use the existing LDAP authentication to the software we wrote. I do not know how I could configure to use the existing LDAP authentication . If anyone know how would I use the existing LDAP on different server to use when they logon to our menu in 10g to validate the user. Do I need to add any varibales in formweb.cfg or any other method. Please help.
Thanks
LukshI am not quite sure if this works out of the box. According to an Oracle FAQ:
4.2 Can I use LDAP to authenticate Forms Services?
Not directly. However, Oracle Login Server is able to authenticate against a LDAP directory and thus a Forms application can take advantage of this in a SSO environment. But you cannot use access control information stored in a LDAP directory with Forms. -
How to Display Grid in ORacle Forms
Hi Friends and Experts
I have a requirement to display the records in Grid in ORacle Forms. This grid is a kind of Java grid. Help on this or any reference material for implementing this would be grately appreciated.
Thanks in Advance.
Ahmedwhat forms-version?
what exactly do you mean with grid? Do you have a special ready-made component you want to use ? Do you have any functional requirements for your grid?
For a "normal" data grid, you could just layout your data in tabular way, perhaps with a stacked canvas, to have a scrollable area to the right
If you use forms in web you could use a javabean for this, if so have a look at Francois's blog-page http://forms.pjc.bean.over-blog.com/40-categorie-461064.html
hope this helps -
How to save Image from Oracle form!!?
Hello Every Oracle forms developer
i have a from contains block with Blob column ...i store image in it
i have used read_image_file to view image in form and insert it into DB 11gR2
now ..* I want to create procedure in form_button to download image from db ..and save it in local drive ...*
thanks in advancesee this example in pl/sql
DECLARE
-- Data Variables
v_blob BLOB;
v_data_length NUMBER;
-- Loop Control Variables
v_offset NUMBER := 1;
v_chunk CONSTANT NUMBER := 32767; -- maximum chunk size
-- UTL_FILE variables
fh UTL_FILE.file_type;
BEGIN
v_blob := ... populate the blob variable here
v_data_length := DBMS_LOB.getlength (v_blob);
-- Open the file
fh := UTL_FILE.fopen ('RETR_DIR', 'myfile.dat', 'wb', v_chunk);
LOOP
-- Exit when our file offset is bigger than our file
EXIT WHEN v_offset > v_data_length;
-- Write the output chunk by chunk
UTL_FILE.put_raw (fh, DBMS_LOB.SUBSTR (v_blob, v_chunk, v_offset), TRUE);
-- Increment the offset by the amount written
v_offset := v_offset + v_chunk;
END LOOP;
-- Close the file
UTL_FILE.fclose (fh);
END;
Regards -
Displaying images in oracle forms
I am trying to dynamically display bmp files in an image item. The problem is that the image does not show up if the size of the image item is smaller than the actual image size and also no error is generated. I have tried setting sizing=Adjust and that does not work. Infact if i set sizing =adjust forms never displays the image file.
help..................You are right i just meant to say i am using the read_image_file builtin when i said dynamic. The problem seems to be with displaying the image if sizing is set =adjust. Infact the same application was working with forms 4.5 but is not working anymore after i generated it in forms 60
-
How to use BLOB in Oracle Forms 10g?
Hi
I defined a column in a table with the type BLOB,
then I used it at the form with a data block.
Now how can I let the user to insert his photo in this column?
If you don't know the answer please put any web links that may helps meHi Omkar,
Please check the following code.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
plid ParamList;
BEGIN
plid := Get_parameter_List('tmp');
IF NOT Id_Null(plid) THEN
Destroy_parameter_List( plid );
END IF;
plid := Create_parameter_List('tmp');
add_parameter(plid,'p_parameter',text_parameter,to_char(:POLICY.POLICY_NO));
Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
repid := FIND_REPORT_OBJECT('POL_REP');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
v_rep := RUN_REPORT_OBJECT(repid,plid);
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;
WEB.SHOW_DOCUMENT('http://'||'LENOVO-428E9E41'||'8889'||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
'||'server=prod_report_server&P_parameter='||:POLICY.POLICY_NO||
'¶mform=no');
END;
I am used to Start the Report sever 'Rwserver Server=prod_Report_Server Start'
OracleAS Report Services
Version :- 10.1.2.0.2
Name :- prod_report_server
Status :- Server is Shutting down
Jobs in Queue 0
Active Engines 0
I got the Following Error when I trying to run the Report
FRM-41211: Integration error:SSL failure running another product
Thanks and Regards,
Faziludeen -
Loading image from jars only once in oracle forms 10g
Hi,
I have an oracle forms 10g application which loads image from a jar. Every time i click on a button "A" that loads the image "image" on another button "B" in the same screen, a message is displayed in the java console "Loaded image: jar:https://+IP+/forms/java/+myjar+.jar!/image.gif". So after 10 clicks, i get the same message displayed 10 times. In the form, i've called:
SET_CUSTOM_PROPERTY(p_object_name, 1, 'IMAGE_NAME_ON', '/'||p_image_name);My question is the following:
- is there a way to load this image once and use it later without having to load it every time i clik on "A"? if yes, how?
P.S.: if this thread shouldn't be posted in this forum, please redirect me to the right one.
Thanks in advanceAh okay.
I'm using the rolloverbutton.jar (RollOver Button PJC) [RolloverButton.java -> authors: Steve Button, Duncan Mills].
Here is the part concerning the IMAGE_NAME_ON function:
// make sure we are in rollover mode
enableRollover();
log("setProperty - IMAGE_NAME_ON value=" + value.toString());
// load the requested image
m_imageNameOn = (String) value;
loadImage(ON,m_imageNameOn);
// reset the currrently drawn image if needed
setImage(ON,m_state);
return true;where loadImage function is:
URL imageURL = null;
boolean loadSuccess = false;
//JAR
log("Searching JAR for " + imageName);
imageURL = getClass().getResource(imageName);
if (imageURL != null)
log("URL: " + imageURL.toString());
try
m_images[which] = Toolkit.getDefaultToolkit().getImage(imageURL);
loadSuccess = true;
log("Image found: " + imageURL.toString());
catch (Exception ilex)
log("Error loading image from JAR: " + ilex.toString());
else
log("Unable to find " + imageName + " in JAR");
//DOCBASE
if (loadSuccess == false)
log("Searching docbase for " + imageName);
try
if (imageName.toLowerCase().startsWith("http://")||imageName.toLowerCase().startsWith("https://"))
imageURL = new URL(imageName);
else
imageURL = new URL(m_codeBase.getProtocol() + "://" + m_codeBase.getHost() + ":" + m_codeBase.getPort() + imageName);
log("Constructed URL: " + imageURL.toString());
try
m_images[which] = createImage((java.awt.image.ImageProducer) imageURL.getContent());
loadSuccess = true;
log("Image found: " + imageURL.toString());
catch (Exception ilex)
log("Error reading image - " + ilex.toString());
catch (java.net.MalformedURLException urlex)
log("Error creating URL - " + urlex.toString());
//CODEBASE
if (loadSuccess == false)
log("Searching codebase for " + imageName);
try
imageURL = new URL(m_codeBase, imageName);
log("Constructed URL: " + imageURL.toString());
try
m_images[which] = createImage((java.awt.image.ImageProducer) imageURL.getContent());
loadSuccess = true;
log("Image found: " + imageURL.toString());
catch (Exception ilex)
log("Error reading image - " + ilex.toString());
catch (java.net.MalformedURLException urlex)
log("Error creating URL - " + urlex.toString());
if (loadSuccess == false)
log("Error image " + imageName + " could not be located");In this case, what shall i modify?
Thanks in advance -
Display in "Oracle Forms 10g" a BLOB item
Hey, anybody know if there was any java component or a way to display in "Oracle Forms 10g" a BLOB item, which contains no images, but files of type PDF, DOC, TXT ....
Thank you<p>The Enhanced HTML browser bean allows showing amost everything in its window. See this screen shot</p>
So you could download your stored document onto the AS or the client with the Webutil FILE_TRANSFERT package, or you could envisage top develop
a nice PL/SQL procedure that would send the content via the UTL_HTTP package.
Francois -
Displaying the Oracle Forms 10g
Hi Everyone,
I need help on this one.
I am currently running Oracle Forms 10g and I want to display the Calendar object on an item in my module.
I have attached the relevant libraries i.e Calendar and added the program units as required so in my module there are two additional data blocks that is
DATE_CONTROL_BLOCK and DATE_BUTTON_BLOCK and I have my canvas and the DATE_LOV_CANVAS.
What code do I had to the KeyListVal trigger to enable me to display the Calendar at runtime?Hi,
Actually what I want to find out is how to include a
Calendar in my Form Module at runtime.That wasn't your initial post's question, and what do you mean by at runtime??
You need to have the objects you stated in your first post in the form to be able to show the calendar at runtime.
If you have the Forms Demo read the help files they have explained everything in it. If not you can download it from [url http://www.oracle.com/technology/sample_code/products/forms/index.html]here
Tony -
How to Install Oracle Forms 10g (9.0.4) Demos
Hi.
My forms version is :
Forms [32 bits] Versión 10.1.2.0.2 (Producción)
Oracle Toolkit Versión 10.1.2.0.2 (Producción)
PL/SQL Versión 10.1.0.4.2 (Producción)
I'm trying to install Oracle Forms 10g (9.0.4) Demos. Everything works fine until step 5. I can even access the forms demos home page(changing forms90 to forms). However when i try to access any link, i get the following error:
404 Not Found Resource /forms90/f90servlet not found on this server
What's wrong?. I believe forms is pointing to the wrong direction:
http://mluis:8888/forms90/f90servlet?config=reusable_picklist
For example to show the tick image on step five on install guide, I have to replace
http://mluis:8888//forms90/formsdemo/images/tick.gif
for http://mluis:8888//forms/formsdemo/images/tick.gif
This is because I don't have a forms90 directory in my Oracle_Home. I changed forms90 for forms in formsdemo.env. But still doesn't work. So my question is
- Are these forms demos built for my forms version?.
- If not, what do i have to change in order to make things work. I'm really interested in some special features like PJC, Webutil etc.
- The configuration is still pointing at a forms90 directory. I need to change it to just forms but don't know which files.
Thanks in advance ...!Hi,
Have you resolved this issue? I have gotten a bit further.
You also need to change any f90xxxxxx to frmxxxxxx
But the servlet cannot seem to find any of the demo forms.
I assume a path issue, but cannot seem to find it.
Any clues?
Thanks. -
How to use unicode fonts in Oracle forms 10g?
Hi I am working in forms 10g for quite a long time, the software that I have developed so far are all in English language. Now I have requirements to use Bengali Fonts in Forms 10g. I am facing difficulties doing that. Please reply with help. Thanks
Hasan Al MamunCheck this forum post (though that is for 6i, it would be of helpful for you)
How to use unicode fonts in Oracle forms 10g?
-Arun -
How to connect oracle forms 10g with oracle 10g express database?
Hi all,
I have downloaded and installed oracle forms 10g and oracle database 10g express, when I open net configuration assistant to test local net service, I tested the default service (EXTPROC_CONNECTION_DATA) BUT THE RESULT IS "ora-28547 connection to server failed probable oracle net admin error"
How can I solve this issue?
My tnsname.ora is located in c:\DevSuiteHome\network\admin\tnsnames.ora, and its contents is:
# tnsnames.ora Network Configuration File: c:\DevSuiteHome\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = nour-pc)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = PLSExtProc)
Edited by: user10228498 on Jan 21, 2011 11:37 PMI copied the contents of C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN\tnsnames.ora and appended it to C:\DevSuiteHome\NETWORK\ADMIN\tnsnames.ora
and tried net configuration management to test local net service, the test was ok, thus the first problem resolved.
but the login problem in forms developer still exist and it claims that: ora-12154 tns could not resolve the connect identifier specified.
any ideas?
Maybe you are looking for
-
Is there a quality difference? The "Save As" seems to run Distiller, but if I select "Print Document" and select "Adobe PDF" as the printer, it also seems to work OK, although I sometimes get a "Times" font not available, will be replaced by "Times
-
How do I split a voice memo into two memos?
I recorded two back to back meetngs on one voice memo. Now I need to share that memo with two different groups. Is there a way I can split the voice memo so that I have a voice recording of each meeting?
-
Hello, I am running XP pro-32 bit, with a Dell GX270 3Ghz processor. I keep getting repeated clusters of Avast pop-ups (whether or not Firefox or any browser is open), that tell me that Avast has blocked me from going to a malicious website. Here is
-
Hi , I need to monitor IPC which has been installed in a separate UNIX server.As pe SAP documentation .Only installing CCMS agent is available option. But currently there is no monitoring facility available for IPC installed in UNIX host.SAP documen
-
I have no idea where to post this, so I apologize if this is the worng place. It really has nothing to do with Flash, but is just about the forums in general. I need to edit some older posts. There's some links I posted over the years in my thread