How to use Javascript in oracle forms
Hello Experts, I am new in Oracle forms using weblogic 10.3.5 with oracle forms 11g at windows 7.I have need to run a javascript code block inside my oracle form.Please suggest me that how can i do this.Actually I have need to validate my item field alike for email address for this I have to use Java script code. thank You regrads aaditya.
Hi
As Francois pointed out Oracle forms has nothing to do with html based technology. The way you can get the equivalent effect of creating consistancy in the way your objects are displayed is by creating a set of items you want and alter their apperance and behaviour and place them into object libraries (one library should do the trick). From there you subclass all of you forms items off these libraries.
Regards
Quintin
Similar Messages
-
How to use css in oracle forms
Hello, I am using oracle forms 11g with weblogic server 10.3.5 at windows 7.I have to use CSS in oracle forms.i have tried to search it but no profit.please some one else tell me that how can use css in oracle forms. Thnak You regards aaditya
Hi
As Francois pointed out Oracle forms has nothing to do with html based technology. The way you can get the equivalent effect of creating consistancy in the way your objects are displayed is by creating a set of items you want and alter their apperance and behaviour and place them into object libraries (one library should do the trick). From there you subclass all of you forms items off these libraries.
Regards
Quintin -
Where to find and how to use JDAPI with oracle forms
Hi All
I want to use JDAPI for oracle forms, plz can any one suggest that where i can find the required jar for JDAPI, provide me if any links r there for downloading JDAPI.
Thanks in AdvanceHi Torsten Kleiber
I am interested in changing forms buttons in our existing forms .I was trying to find if it was possible.Going thru your post I realised it is possible to change properties in existing forms .
i have specific questions with JDAPI will i be able to change my buttons in a form to Iconic buttons.
Could you kindly send me the code of your class in the abovementioned post (I have created a simple class to modify some forms properties.)
I would like to have alook at it i am a Novice in java but looking at your source code may be able to give myself a head start .(I am well versed pl/sql forms and reports NO JAVA idea)
Two while trying out the oracle demo to create a form by jdapi I was able to create a class and was unable to execute it .What do i need to install to execute it. I have forms 10 installtion with Jinitiator 1.3 installed
DO i need to install Jdeveloper or JDK i think either of this is required. I shall be highly be obliged if u can clear my queries or any one else in the forum may wish to add to 2cents to my infinetly minimal knowledge of java -
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 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 -
How to use javascript in oracle portal
I want to add a dynamic menu portlet using javascript and the javascript is in .js file ho do I call it...
Can you please explain to me off line my email address is [email protected], How did you do it.
I get javascript error when I use DHTML menu into JSP page, which I developed as a portlet and trying to add this portlet onto users page.
In a way I can understand why, the reason could be the similar to why we can not use frames in HTML portlet or any other portlet objects that we use, and customize HTML ( stylesheet, look and feel etc.). Since portal gathers all the pages (ultimately HTML's) dynamically and bring them as a single page to the user.
So, even if for you it may have shifted to bottom, still it seems it is working for you.
Appreciate your help. -
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 -
Help me!! How to use JavaScript with JSP ??
I am using JDeveloper and I created a screen in JSP which uses a bean for database connectivity and retriving info onto the page.
The page has a ListBox where list items are populated from the database.My requirement is
whenever the list is changed the page shuold be refreshed with the selected item info.
I tried to use 'JavaScript' for triggering the event with 'onChange' event of the ListBox.But the event is not getting invoked. I think JavaScript is not working with JSP.
Please help me with how to Use javaScript with JSP or any other alternative where I can meet my requirement.
I have one more question...I have gone through the JSP samples in OTN and I am trying do download the sample 'Travel servlet' which show list of countries...etc
I have also gone through the 'readme' but I don't know how to extract .jar file.
I would be great if you could help me in this.
Thanks!!
Geeta
nullWe have a similar need. We have used Cold Fusion to display data from Our Oracle Database. We have a simple SElect Box in HTML populated with the oracle data. When someone selects say the State of Pennsylvania. then we have an On change event that runs a Javascript to go get all the cities in Pennsylvania.
Proble we are having is that inorder for the Javascript to work , we currently have to send all the valid data.
Do you know of any way to dynamically query the the Oracle database in Javascript -
How to use JavaScript in Web bean generated JSP
I want to do some simple JavaScript validations (for example, checking if a particular field is empty) in the JSP page rendered by the data web bean. Because the HTML is rendered by the bean, I'm not able to refer to the HTML controls in the JSP page. I'm not even able to refer to the form with the following standard piece of JavaScript code - "document.forms[0].control_name".
Is anybody aware of how to use JavaScript with these rendered JSP pages?You just have to add it like and applet , including this line in your JSP or JSF
<script src="http://dl.javafx.com/dtfx.js"></script>Then add the applet
<script>
javafx(
archive: "./resources/jar/Draw.jar",
width: 400,
height: 200,
code: "Draw",
name: "Draw"
</script>./resources/jar/Draw.jar - is the path and the name of the jar -
Using jfreechart with oracle forms 11g
Hi everybody,
I'm using jfreechart with oracle forms 11g to continue having graphs in my application since i'm migrating from forms 6i. I've already got it working and it's great. Just have one problem left. I don't know how to change the axis labels. In Bar charts, it comes with "Values" in y axis and "Category" in x axis by default. I wanted to change that or make it dissapear. Anyone knows how to?I've never used the jFreeChart, but according to their website you can use the "setLabel" method to set the label for an axis. Check out Axis (JFreeChart Class Library) for more information.
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
How to use Javascript in OBIEE?
Hi all,
can any one tell how to use javascript in OBIEE. i.e steps to follow to insert the javascript in OBIEE 11g or 10gIf you are trying to display total number of pages in a report, Add the below formula in the column of the report and hide that column in the report.
FX = sum(count(1))/25
You can then reference the column in the narrative view like this: "Total pages in the report are @5" and out put may be "Total Pages in the report are 30".
Or
You can also use something like the below:
To calculate them use fi:
CEILING(CAST(RCOUNT("FactColumn In the Report (Sum All)") as DOUBLE)/ 25) for the page number
CEILING(CAST(COUNT("FactColumn In the Report (Sum All)") as DOUBLE)/ 25) for the total pages
Put the above formula in the column and reference it in the narrative view like I mentioned in the previous example.
If you are report view is pivot, then please refer to this link: http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-pagination-in-pivot-tables/
Hope this helps.
Thanks,
-Amith. -
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 -
Hello
I'm working with Oracle Forms 6i and I need to check if a certain folder exists before I make an action, I think there's no way to do it with Oracle Forms only, so I tough doing it with vba.
Is there some controller that allow me to use vba in Oracle Forms? Or maybe I can do this another way.
ThanksYou can use this piece of code to check if a directory exists:
declare
l_hostcommand varchar2(1000);
l_dir varchar2(200) := 'f:\oracle';
begin
l_hostcommand := 'cmd /c if not exist '||l_dir||' exit 100';
host(l_hostcommand, no_screen);
if form_success then
message('Directory found');
else
message('Directory not found');
end if;
end; If you have no drive mapping, just use UNC (\\server\oracle). -
How to build wizard in Oracle Forms?
How to build wizard in Oracle Forms? Is it possible only in JDeveloper?
Regards
Rajesh KumarWhat do you mean here - you want to extend the Forms Builder with your own wizard, or you want to build a Forms Application with a Wizard Style interface?
If it's the First then you can't, if it's the second then check out the 9i demos there is a re-usable wizard component that shows you how to do it. -
How to use Javascript to load random pages?
I wonder if anyone knows how to use Javascript to load a list
of links stored in the text file.
Every address will take a line, and the Javascript will
randomly select one of the addresses to load.
The user will click the button "random" and access the page
randomly selected by the script.Addition note:
I forgot to say this because my computer froze......(how
lame)
I got the code for random accessing the links.
But now the problem is, is there anyway to parse a text file
into the array in Javascript?
Maybe you are looking for
-
Problem for PCs recieving attached SWF files from Mac Mail 2.1.3
Hi All, When I send this file from my mac mail 2.1.3 (753.1) with a SWF (flash animation) attachment the file wont open on the PC client mail. Instead when I force the unknown attachment to open it says the below with a string of letters. --Apple-Mai
-
I'm trying to sync my ipod classic with my itunes library, but I get a message saying it can't be synced because the required disk can't be found. How do I find what this disk is? I have over 2,000 songs in my itunes library but only 497 sync. Help!
-
Not sure about the protocol, because I found the problem, the question above, and have already solved it, and wanted to get the info out. If a "<a ...>" link has the pathname split across lines, the link no longer displays correctly. Oddly, if you ri
-
How to check which user type my Leopard is?
i recently bought a leopard os x off my friend. im just interested in knowing if it is a single user or family pack. Just wondering how i can find that out.
-
Facing problems with readdir() function in Solaris 2.6
Hi, I am working on Solaris 2.6 platform. Configuration details are: System = SunOS Release = 5.6 KernelID = Generic_105181-31 Machine = sun4u NumCPU = 16 sparc SUNW,Ultra-Enterprise-10000 I have written a piece of "C" code that is used to search fil