How to call a calander in oracle forms6i
Oracle Forms 6i
Hai All
How to call a calander for a botton.I my form I have a button called process date When i press a button the calander need to display and select a date and i need to the process date. How can i do this Pls tell Me
Any help is higly Appricateable
Thanks & Regards
Srikkanth.M
Hello,
In the forms 6i the installation contains the demo form. In that demo form you can see the calender example and many more. It is very easy to implement through demo form. Otherwise see the below link its java based.
Calendar utility in Forms?
Also this link...
http://www.oracle.com/technology/sample_code/products/forms/extracted/calendar/readme.html
-Ammad
Edited by: Ammad Ahmed on Apr 19, 2010 9:04 AM
Link added
Similar Messages
-
How to call a package in Oracle
I'm trying to call a package in oracle
(this is the oracle way of calling it :
begin pck$xl.get_year_low_high_to_date(:compid, 20010801 , 20020108 ",:year_low,:year_high,:year_average,:low_date,:high_date); end;)
but i can't get it right.
I'm new to package calling in Oracle from Java, till now i only worked with SQL statements without parameters of that kind, can someone help me with this?
ps the ":compid" is a parameter i have to fill in and provide...
thank you very muchok here is a test i do...
but still doesn't work something about the bindvariables (check errorlog). I know a bit jdbc and i understant what you mean, but the problem is i don't know how this should go :(
please advise
import java.sql.*;
import java.util.*;
import java.text.*;
import java.io.*;
* @author U97488
public class test {
public static void main(String[] args) {
try{
ConnectionSherpa cs = ConnectionSherpa.getInstance("ConnectionSherpa");
Connection conn = cs.getConnObj();
String sSQL = "begin?; pck$xl.get_year_low_high_to_date(?, 20010801, 20020801 ,:year_low,:year_high,:year_average,:low_date,:high_date); end;";
CallableStatement stmt = conn.prepareCall(sSQL);
stmt.setString(1, "BRU10");
System.out.println(stmt.toString());
if(stmt.execute(sSQL)){
System.out.println(stmt.getString(2));
}catch (Exception e){
e.printStackTrace();
}StackTrace:
java.sql.SQLException: ORA-06550: Regel 1, kolom 6:
PLS-00110: Bindvariabele '1' is niet toegestaan in deze context..
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1451)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:862)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:1839)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1764)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2354)
at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:909)
at com.kbcsecurities.taminoupdate.servlets.test.main(test.java:28) -
How to call database procedure in oracle forms
Hi,
Can anyone describe me that how I'll call database procedure in oracle forms (6i,10g)?
Thanks in Advance.
BalochHi Francois,
As I created a procedure in database as below
create or replace procedure For_table (tbl_of in number,st_pnt in number,en_pnt in number) is
begin
for i in st_pnt..en_pnt loop
dbms_output.put_line(tbl_of||'*'||i||'='||tbl_of*i);
end loop;
end For_table;
The above procedure is working fine when I'm using PL/SQL. I call the above procedure as
begin
For_table(3,5,20);
end;
but nothing happen
Thanks in Advance.
Baloch -
How to call java function in Oracle forms?
Hi I am having Oracle 9i with 10g Developer Suite.
I am new to Oracle forms..
I had one function in java getDatas()..
How can I call this function in Oracle Forms..
Pls help
ThanksThanks Francois,
I want to display values from my java code in the Forms..
For that purpose only i am installing 10g Developer Suite..
The below is java code..
public class DBTest {
public static String callDB(int id,String name){
String ss="Hai";
Connection con=null;
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
con = DriverManager.getConnection("url","id","pwd");
Statement st=con.createStatement();
System.out.println("Connected...");
int r=st.executeUpdate("Insert into FORM_TEST VALUES('"+id+"','"+name+"')");
if(r==1){
ss="Inserted Sucessfully";
else{
ss="Insertion Failed";
}catch(final Exception e){
System.out.println(e);
return ss;
public static void main(String[] args) {
int empid=102;
String empname="Gilbert";
String resultStr=callDB(empid,empname);
System.out.println(resultStr);
I want to dispaly Inserted or Insertion Failed in Oracle Forms..
As per Gerd Volberg suggestion, i had placed DBTest.jar in
E:\DevSuite\forms\java\DBTest.jar
and in formsweb.cfg the below jar is added..
archive_jini=frmall_jinit.jar,DBTest.jar
But in Fomrs Builder-->Program-->Import Java Classes-->Oracle
org,ice,com and subnodes are available.
But my jar is not available..
Is my way is coorect?
Pls provide soln..
Thanks -
How to call Report 6i/9i Oracle Standard Report into Discoverer 10g
How to call Report 6i Standared report into Duscoverer 10g as there is a requirement to create or transfer Oracle Standard report into Discoverer.
1) Account Analysis Subledger Details(180 Char) - Standard Report 6i as i want the same report in Discoverer 10g.
2) Aging Report -- 7 bucket --Standard report in 6i,how to transfer in Discoverer 10g.
Is is possible to Transfer from Report 6i to Discoverer or How to Create this report in Discoverer 10g.
Please advice,
SushantWell, if I had to do it, here's how I'd start.
1. Get the SQL from the Oracle Report and then create a database view that's more generic based on the SQL but still gets the answers.
For example, you'd not code many conditions, etc. but the database view would be pointing to the correct Oracle Apps tables / views.
Once you've got the view, bring it in to Disco Admin, etc. and create a report from it that now adds the extra conditions needed. That way you can use the underlying concept without hard coding things like dates, etc. which you would ask the user at run time.
However ... as you may well know ... Oracle Reports can do some 'strange and/or powerful things' on the fly and, for example, it may be something like a temporary table generated for the report, etc. so may become a much bigger issue.
2. If you have NoetixViews views then they'll most likely already have the views for these queries already created as they're reasonable for what's needed in an Oracle environment.
3. I'd see if there is already a pre-defined BIS view that covers this as well. Again, you're in an area that's pretty popular so if a BIS view already covers much of the same info then you've got a create view 'head start' already. Check views owned by Apps starting with the application plus FV or FG (the one you'd really want) such as: GLFG_Budgets_To_Actuals to see what I mean.
Russ -
How do call c++program in oracle
how do I call c++ program in oracle?
how do I store results which c++ program produce to oracle database?(eg:results could be some pictures,variable)If you are using Oracle9i release, there is the new OCCI (Oracle C++ Call Interface). You can use the 'Oracle Call Interface' forum to post your additional questions.
Regards,
Geoff
how do I call c++ program in oracle?
how do I store results which c++ program produce to oracle database?(eg:results could be some pictures,variable) -
How to create a sequence in oracle forms6i
Oracle forms 6i
Hai All
I am working in leave application entry so i need to create a sequence for giving a unique number for each entry
Pls tell me the steps how to created and how to call the sequence from database
Thanks in Advance
Srikkanth.mHi,
Create sequence <sequence_name>
Start with <number>
increment by <number>
in database
eg:- create sequence test_seq
start with 1
increment by 1;
in forms
you can assign value in pre-insert trigger
Declare
cursor cur_seq is
select test_seq.nextval from dual;
begin
open cur_seq;
fetch cur_seq into :item_key ; /* :item_key give name of ur primary key field*/
close cur_seq;
end; -
How to call web services from oracle database 10g
Hi all ,
How can i call web services from oracle database 10g ?
thanks ...abdou123 wrote:
but how can i get complex result
for example
i pass input parameter like National Id Number
and get the person details ( name , age , date of birth , ............ ) .Basic approach to web services using UTL_HTTP explained in {message:id=10448611}.
An example of using a pipeline table function as a data transformation process (turning web data into rows and columns) in {message:id=10158148}. -
How to call a form in Oracle Portal?
I'm trying to call a form from my corporate Oracle Portal. Can anyone advice me how to do it?
Thanks and Regards.Alex,
you are not providing enough information, making it not easy to provide a short answer without going down the whole tree of possibilities.
Case1: You want it appear as a link in Oracle Portal.
a) You can use the "myfavorite" portlet, which is a kind of bookmark list that can be managed by each user individually.
b) you ca create a content area and make it to appear as a type URL. Then you define it as a portlet.
c) You create a HTML page with all the forms links in it and use the URLServices portlet or teh HTML portlet
Case2: You want it to appear within the portal as a portlet.
In this case you choose the URL Services. URL services are a part of the Portal Development Kit and in there a part of the Java Portal Development kit.
It is not recommended to integrate Forms as a Portlet in Portal (CASE2) but to start it from a link (CASE 1) for this reasons:
- http accept-header misses Browser type information information
- Forms startup time slows down portal page startup
- SSO doesn't work straight away
- Forms9i, because based on java 1.3, will reload Forms when reloading the portal page, loosing the application context (this is not yet an issue with Forms6i).
Of course, you can have it working as a portlet and I did it in the past, but it will require some work to do that is not yet documented (and probably never will).
Cheers
Frank -
How to call pdf files from oracle forms
I have a pdf file in the server , I need to call this and open when a button is pressed in the oracle forms.
Please let me know how to do this.
Thanks,
PrevinFrank,
I have oracle applications and I want to open a pdf file located in the server from a button in oracle applications.
Previn,
you don't mention the Forms release you are running.
If you are running Forms on the web, you can use
web.show_document() to load files from the Web if
they are accessible via HTTP.
Frank -
How to call .BAT file in Oracle Forms
Hi All,
I am using Oracle Forms 6i. We have a .Bat script which moves file from our local directory to the server.
I want to invoke this .Bat script to be called when I click on a button in the form.
Appreciate your help here.
Thanks,
Madhu K.Hi
I use this in oracle forms 6i: first i assign this path to a variable:
DECLARE
v_path VARCHAR2(1000);
BEGIN
v_path:= 'C:\file_name.bat' then I use the host command:
HOST( 'cmd /c start' || v_path , no_screen);
END;Hope this helps...
Regards,
Abdetu... -
How to call crystal reports in oracle Jdeveloper
Hi all,
I am new in crystal reports . I had created crystal reports Eclipse IDE 3.3.2 in that i created .rpt & .jsp . how to pass parmeter in that file to Jdeveloper or which fille use to pass parameter from daabase
can any one help
Regards
AjitHi A,
I am having issues trying to get a small application that I developed in eclipse (CR4E)that uses Crystal Reports to work with Oracle's JDeveloper OC4J embedded server. I can run the application fine and when I try to view a report I get a partial report rendering and then get the following Exception:
Also while inserting on the page Showing error on the page
java.lang.IllegalStateException: Writer already retrieved at com.evermind.server.http.EvermindHttpServletResponse.getOutputStream(EvermindHttpServletResponse.java:880) at com.evermind.server.http.EvermindHttpServletResponse.getJspOutputStream(EvermindHttpServletResponse.java:875) at com.evermind.server.http.EvermindJSPWriter.initServletOut(EvermindJSPWriter.java:525) at com.evermind.server.http.EvermindJSPWriter.writeOut(EvermindJSPWriter.java:537) at com.evermind.server.http.EvermindJSPWriter.jspflush(EvermindJSPWriter.java:436) at com.evermind.server.http.EvermindJSPWriter.close(EvermindJSPWriter.java:406) at oracle.jsp.runtime.OracleJspRuntime.extraHandlePCFinally(OracleJspRuntime.java:1689) at NEWPROJECTR.jspService(_NEWPROJECTR.java:89) [/NEWPROJECTR.jsp] at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:598) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:522) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447) at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595)
Actually i am firstly Compiling CR4E in that i am using Apace Tomcat Server 5.5 .in CR4E it is Running fine But while inserting these .Jsp file in Jdeveloper and in that I am Using OC4J server for compiling that time gives these above error
Can OC4J server not supporting to .rpt files?
Thank You !
Sincerely,
Ajit -
How to call a procude in oracle and return an array
I need to call a procedure and return an array, can give some example code?
First create ArrayDescriptor
like:
public ArrayDescriptor createDescriptor(Connection con, String typename) throws SQLException
if(typename==null)
return null;
//WARNING! typename should be in upper case only! Otherwise Exception "invalid name pattern"
//will be thrown!
return ArrayDescriptor.createDescriptor(typename.toUpperCase(),con);
}Then use SetArray function to a prepared query (just like SetInt() or
SetString()):
public void setArray(PreparedStatement st, int index, Object [] value, ArrayDescriptor ad) throws SQLException
ARRAY array = new ARRAY(ad, st.getConnection(), value);
if(st instanceof OraclePreparedStatement)
OraclePreparedStatement opst=(OraclePreparedStatement )st;
opst.setArray(index, array);
else
throw new SQLException("Oracle JDBC driver required to support setArray() operation!");
}In the same way you could implement RegisterOutParameter() which
accepts Array - it's provided by class OraclePreparedStatement...
look Oracle JDBC manuals - everything is there.
Enjoy!
Paul -
How to call webservices deployed in Oracle edentity server from BPEL .
my application requires to call a web service which is deployed on the OES server. This web service will accept user name and password as paremeter and rerurn true if the user is a valid user .
You can try to right click on the EJB in JDeveloper and choose "create test client", then choose the connection you used for deployment and it should create a client for you that can access the EJB.
-
How to call a Forms6i file from Forms10g
Dear all,
Can any one help me on how to call a x.fmb in FORMS6i version from a y.fmb in FORMS10G version.I used CLIENT_HOST( ) buitin for calling a 6i version x.fmb from 10G version y.fmb,but its not working.I gave this CLIENT_HOST( ) built in in when-button-pressed trigger.when i gave the string that is given as parameter to CLIENT_HOST( ) in command prompt the 6i fmb opens...and similarly i need to open a fmb in FORMS10G verison from FORMS6i version fmbHi,
Forms 6i modules only run on Forms 6i runtime and Forms 9i modules run on Forms 9i runtime. If you want to bring together two of these module into one application you have to upgrade from Forms 6i to Forms 9i or call it on a separate runtime using a hiost command. If you run it on the web, which Forms 9i runs only, then you use web.show_document() to call the Forms 6i release installed on Oracle Application Server 9.0.1
Frank
Maybe you are looking for
-
Why is my page not centered in browser view?
I am working on my home page. I set the container dimension to 700px and max width 960. I have tried other sizes. every time in Windows browser view my site shifts to the left with a large margin on the right. I can't get it to center. I have a
-
Create a activity on creation of an oppurtunity
I was trying to create an activity automatically when i save an opportunity in sap crm. I have made used of order_save badi for the purpose.But when i save the newly created activity using crm_order_save function the GUI hangs(as the save function ca
-
Have a macbook 4.1 software version osx 10.5.8 is this os leopard?
trying to find out if the osx v 10.5.8 can be upgraded to a newer os and how?
-
Printing pdf auto portrait/landscape setting
acrobat X print of PDFs no longer has auto portrait/landscape as default but only for 1 user on the laptop. does anyone know how to amend the default setting please
-
[REPOST]How to force ADF Dialog / POPUP to use POST method ?
Hi all, Is there any way to make ADF Dialog / POPUP to use POST method ? I need that approach to implement this post : [SOLVED] Faces - Preventing user from entering URL manually But it breaks in my application because ADF Dialog / POPUP is using GET