A clock under Forms 6i

Hi to all world...this is my question.
How can i make a clock, in Forms 6i, that refresh every second?
Thanks in advance..

Dear Oscar,
For creating a Digital Clock, It won't be a matter. The matter is if you want to create an Analog Clock which will be a tricky one.
For my digital clock, I use :
- Create_timer function,
- When-Timer-Expired trigger, and
- a display item object in control block( I set the font as big as I want, so it looks like huge digital clock :) ).
Display item is used to show the time. For complete reference, you can look for help about Create_timer. Hope this help.
Regards,
Franko

Similar Messages

  • Display clock in Form

    i want to display clock in form. how i can do this.

    Here is one workaround.
    Create a display item in your forms comtrol block. In property palette, under Data node,set 'Data Type' property to Datetime. Secondly,set Format Mask property as
    HH:MI:SS AM.
    1) Create When-New-Form-Instance trigger as
    DECLARE
    V_TIMER TIMER;
    BEGIN
    V_TIMER:=CREATE_TIMER('CLOCK',100,REPEAT);
    SELECT SYSDATE INTO :EMP.APPTIME FROM DUAL;
    END;
    2) Create form level When-Timer-Expired trigger
    BEGIN
    SELECT SYSDATE INTO :EMP.APPTIME FROM DUAL;
    END;
    This will show continuous time on your form. OK
    NOTE: Visual clock in Forms 6i might be possible using jawa. but no idea to me.

  • (realistic) system requirements for development environment under Forms 11g

    Hello !
    How are the realistic system requirements for a complete development environment
    under Forms 11g (Forms11g/Reports11g/Weblogic-Server) ?
    From our experience there is a problem with the RAM-limitation of Windows 32 bit !
    Is there anybody to exchange his experiences ...
    Thanks in advance !
    Thomas

    The Oracle Solaris Studio 12.4 will officially support Oracle Linux 5,6 when it releases later this year.
    Since Oracle  Linux is based on RHEL, Oracle Solaris Studio should work on RHEL.
    Support customers may report issues against RHEL and the Oracle Solaris Studio team will do its  best to address these issues but fixes are not guaranteed.
    Oracle Solaris Studio components such as compilers and command line tools do not require Java.  If you install the product using the Oracle Solaris Studio Installer in non-interactive mode you can install the Solaris Studio product without having Java on your system though the installer will issue a warning message if Java is not found on the system.  Alternately you can install the product using the tar file distribution if Java is not installed. If you install via the tar file, it is not possible to install patches later.

  • Call report under form 10g

    how I call report under form 10g from Push Button trigger without haveing Oracle Application Server ? is there any way to do so ?
    Thanks

    You use the run_report_object. See the help file for information on how to use it.
    By the way, you must use the Application Server to use Forms. It's an integral part of Forms.

  • SUN jre 1.6.0_04 under Forms 10.1.2.3 and IE7

    Hello,
    I get nuts about the SUN jre configuration in relation with IE7 (client side) and running under the Application Server 10.1.2.3 (server side).
    My problem is that I want to use JRE 1.6.0_04 on IE7 for Oracle Forms at the client side. On the test client is also installed: JRE 1.6.0_05 and JRE 1.6.0_07.
    Here is my formsweb.cfg configuration to it:
    [testapp]
    width=1024
    height=768
    separateFrame=True
    lookandfeel=Generic
    form=test.fmx
    otherparams=term=X:\as1012\forms\fmrpcwebd.res
    WebUtilArchive=/forms/webutil/frmwebutil.jar,/forms/webutil/webutil.jar,/forms/webutil/jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=X:\as1012\forms\webutil\server\webutiljpi.htm
    baseHTMLjpi=X:\as1012\forms\webutil\server\webutiljpi.htm
    baseHTML=X:\as1012\forms\webutil\server\webutilbase.htm
    archive_jini=frmall_jinit.jar
    archive=frmall.jar,jacob.jar,webutil.jar
    lookAndFeel=oracle
    jpi_download_page=http://java.sun.com
    jpi_classid=clsid:CAFEEFAC-0016-0000-0004-ABCDEFFEDCBA
    jpi_codebase=http://server:7777/forms/webutil/jre-6u4-windows-i586-p.exe
    jpi_mimetype=application/x-java-applet;jpi-version=1.6.0_04
    jpi_download_page=http://server:7777/forms/webutil/jre-6u4-windows-i586-p.exe
    IE=native
    I tried it under Firefox 3.0 where the version JRE 1.6.0_07 is installed. With the upper showed configuration it didn't worked. Only if I change this entry jpi_mimetype=application/x-java-applet;jpi-version=1.6.0_07.
    Result: Firefox works correct.
    But the IE always starts the application with the SUN client: JRE 1.6.0_07
    I don't know what to do? I also changed the registry entry:
    [HKEY_CURRENT_USER\Software\JavaSoft\Java Update\Policy]
    and put this value in:
    "EnableSecureStaticVersioning"=dword:00000000
    Maybe somebody else knows what to do?
    Thanks ahead
    tarnhold

    What I noticed earlier this year was
    you can force Forms to use JRE 1.5 even though you have JRE 1.6 installed, but it will always pick the newest patch installed.
    So, if you want to use JRE 1.5 and have JRE 1.5.06 and 1.5.12 installed, the only way to use 1.5.06 is to uninstall 1.5.12
    But, if you read note 14 on the vertification matrix, newer patches of a certified major version, are also supported :)
    http://www.oracle.com/technology/products/forms/htdocs/10gR2/clientsod_forms10gR2.html
    Max

  • Clock in forms runtime

    Is it possible to show clock at runtime .

    Hi,
    No doubt you can create clock by using Timers. But it is not recommended because of overhead that will be generated every second when trigger fires. So, java bean is good because it is executed on client side not on server. So, it's suites for most web based applications.

  • Alarm clock under Utilities not sounding

    After the update to 4.2, is anyone else's alarm not ringing? It goes off, but there is no sound. Apple would like $29 to help me with this problem. After updates, they should be a little more helpful.

    to be honest these are the solutions that may or may not work..
    first thing I would try is rebooting the phone by holding the sleep/wake button and home button for 15 seconds until you see the white apple logo
    if that doesn't work I would restore from backup and if that doesn't work I would restore as new if all else fails take it to your closest apple store they may replace the phone for a working one..

  • FRM-92101 when trying to run forms from Forms Builder 10g

    I have been struggling with this for a few days now and have tried multiple solutions around on these forums without any resolution yet!
    Trying to run Forms Builder on a Windows XP machine with Oracle Development Suite 10.1.2.0.2 installed in its own ORACLE_HOME. The installation completes succesfully and I can start the OC4J instance.
    1) When I open up Forms Builder and pull up the test.fmb form and try to run it, I get the following error:
    FRM-92101: There was a failure in the Forms Server during startup. This could happen due to invalid configuration. Please look into the web-server log file for details.
    On clicking 'Details' the following errors are displayed:
    Java Exception:
    oracle.forms.netConnectionException: Forms session <1> aborted: unable to communicate with runtime process.
    2) The ORACLE_HOME\j2ee\DevSuite\application-deployments\forms\application.log includes the following errors:
    11/11/25 10:02:23 formsweb: RunformProcess.connect(): failed !
    11/11/25 10:02:23 formsweb: Forms session <1> aborted: unable to communicate with runtime process.
    11/11/25 10:02:23 formsweb: Forms session <1> exception stack trace:
    java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
         at java.net.Socket.connect(Socket.java:452)
         at java.net.Socket.connect(Socket.java:402)
         at java.net.Socket.<init>(Socket.java:309)
         at java.net.Socket.<init>(Socket.java:153)
         at oracle.forms.servlet.RunformProcess.connect(Unknown Source)
         at oracle.forms.servlet.RunformProcess.dataToRunform(Unknown Source)
         at oracle.forms.servlet.RunformSession.dataToRunform(Unknown Source)
         at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    3) The Java console has the following error:
    oracle.forms.net.ConnectionException: Forms session <1> aborted: unable to communicate with runtime process.
         at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
         at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
         at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
         at oracle.forms.net.HTTPNStream.flush(Unknown Source)
         at java.io.DataOutputStream.flush(Unknown Source)
         at oracle.forms.net.HTTPConnection.connect(Unknown Source)
         at oracle.forms.engine.FormsDispatcher.initConnection(Unknown Source)
         at oracle.forms.engine.FormsDispatcher.init(Unknown Source)
         at oracle.forms.engine.Runform.initConnection(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Opening http://127.0.0.1:8889/forms/java/oracle/forms/engine/RunformBundle_en_GB.class
    Connecting http://127.0.0.1:8889/forms/java/oracle/forms/engine/RunformBundle_en_GB.class with no proxy
    Opening http://127.0.0.1:8889/forms/java/oracle/forms/engine/RunformBundle_en_GB.properties
    Connecting http://127.0.0.1:8889/forms/java/oracle/forms/engine/RunformBundle_en_GB.properties with no proxy
    Opening http://127.0.0.1:8889/forms/java/oracle/ewt/alert/resource/AlertBundle_en_GB.class
    Connecting http://127.0.0.1:8889/forms/java/oracle/ewt/alert/resource/AlertBundle_en_GB.class with no proxy
    Opening http://127.0.0.1:8889/forms/java/oracle/ewt/alert/resource/AlertBundle_en_GB.properties
    Connecting http://127.0.0.1:8889/forms/java/oracle/ewt/alert/resource/AlertBundle_en_GB.properties with no proxy
    Any inputs will be greatly appreciated.

    Same issue here... Been trying to get this working since a week now. I tried all the solutions like memory heap and all but no luck.
    One thing that I would like to know is that, in some threads the resolution was to recompile the INS_FORMS.MK file under /forms/lib32 but with my installation I don't have that "lib32" folder under /forms/ and I can not even find that file anywhere in my entire installation.
    I am using 12.1.1 on Windows Server 2008.
    Any help or guidelines is greatly appreciated.
    Santhosh.

  • How to use COM component in Forms 6.0 ??

    Dear All,
    We are developing Retail-Chain s/w and have a 3rd party s/w for credit card and
    they give a .dll (not a ordinary dll ), .tlb file and sample VB code to integrate the 3rd party s/w.
    Now i want to do the same task in my application using Forms 6.0.
    Here is the sample code for VB :
    ' Sample VB code for invoking Plutus from VB-based ECR application
    Private Sub Command1_Click()
    ' This is called when "Pay by card" is pressed in ECR application
    Dim strIO As String
    Dim lTrackingID As Long
    ' Add PlutusExchange v1.0 Type Library (TLB) as reference to the project
    Dim plutObj As New PlutusExchangeLib.ExchangeObj
    lTrackingID = 6 ' For testing, enter the scenario number as given in interchange spec doc
    strIO = "T123,156" ' This is input to Plutus -- base amount in paise for Rs. 1.56 and ECR bill number: T123
    ' Bill number is only used for printing on Plutus chargeslip
    plutObj.PL_DoTransactionEx lTrackingID, strIO
    MsgBox strIO, vbOKOnly, "Plutus Response String"
    ' Parse this string to extract Plutus response. Only indication of successful transaction authorization is a valid auth code returned in response
    End Sub
    Plz. reply.
    Note: I already register the .dll file and it showing in import OLE option under Forms 6.0.
    Thanks
    Debabrata
    Message was edited by:
    Debabrata Guchhait

    You need a Java to COM bridge like Jacob. Try searching this forum for more information, I've answered this question several times before.
    Dom.

  • Error while importing Forms in Planning using Formdefutil

    Hi,
    I am getting the following error when i try to import the forms into planning using Formdefutil utility provided. It used to work fine but today i am getting this error.
    Warning: unable to read transaction.interoperability config property*
    Setting HBR Mode to: 2*
    Cache Manager initialized...*
    HBR Logging Config File : HBRServer.properties*
    HBR Logging Config File : HBRClient.properties*
    +2011-04-28 10:27:13,336 WARN main com.hyperion.hbr.core.AccessControlManagerServ+
    er - HBR repository is not configured. HBR will not be available.*
    Embedded HBR initialized.*
    +2011-04-28 10:27:13,477 WARN main com.hyperion.hbr.db.DBConnectionManager - Unab+
    le to create a new connection for jdbc:hyperion:oracle://142.101.188.210:1521;SI*
    D=HYPQA1*
    +2011-04-28 10:27:13,477 FATAL Embedded EDS Server com.hyperion.hbr.core.PluginDa+
    taManager - Error deleting old Plugin Data.*
    +2011-04-28 10:27:13,555 WARN main com.hyperion.hbr.db.DBPluginDataTable - Error+
    while executing query: delete from HBRPluginData where UPPER(PlanningServer) = '*
    WHMM2459' and UPPER(PlanningAppName) = 'FEDERAL' and UPPER(PlanningRmiPort) = '1*
    +1333'+
    +2011-04-28 10:27:13,555 WARN main com.hyperion.hbr.db.DBPluginDataTable - Error+
    while executing query: insert into HBRPluginData (PlanningServer, PlanningRmiPor*
    t, PlanningAppName, OlapServerName, OlapUserName, OlapPassword) values(?, ?, ?,*
    +?, ?, ?)+
    +2011-04-28 10:27:13,555 FATAL main com.hyperion.hbr.core.PluginDataManager - Err+
    or adding Plugin Data.*
    Error adding Plugin Data.*
    Add/Update form under form folder - 4.3. AR & WIP*
    Import Form Failed - Balance Sheet Opening.xml*
    Kindly help
    Amogh

    First of all those errors look more related to HBR, though if it worked before I would restart services then log into the planning app and then try again.
    Have you tried a different form as well one without an ampersand &.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Getting error while calling reports through form

    Hi I want to call a report from a form i put the following code on when-button-pressed but i am getting the following error.I can generate and run the reports.The object REPORTS is created under forms report object
    FRM-41211: Integration error: SSL Failure running another report
    DECLARE
    repid REPORT_OBJECT;
    report_prop VARCHAR2(20);
    v_rep VARCHAR2(100);
    BEGIN
    repid := find_report_object('REPORTS');
    set_report_object_property(repid,report_other,'p1=15 p2=19 paramform=yes');
    v_rep := RUN_REPORT_OBJECT(repid);
    END;
    rgds
    shyam

    Hi
    I can able to run the reports from the browser there was a syntax error, but not able to call from a form
    I am getting error but i can run another forms without any problem
    FRM-92101: There Was a failure in the FormsServer during startup
    oracle.forms.net.connectionexception:forms session aborted:unable to communicate with the runtime process
    rgds
    rosh

  • Problem Playing Audio in Forms 6i On Web

    Hi there,
    I'm trying to get sound out of a form running over the web under Forms 6i using JDK 1.1.8 and after two solid days of reading documentation, scanning Oracle's support sites and searching the web I've been unable to figure out what I need to do to get sound to work in this environment. The maddening part is that I've been able to do it under Forms 9i and JDeveloper (using Java2) 9i so I know how easy this should be. Unfortunately, 9i is not our corporate standard yet so I am forced to go the 6i route instead for now.
    Based on my research I find it impossible to believe that I'm dealing with that complex a problem and that if any of you have managed to figure it out it won't require that much time to pass it on.
    Okay, if you are still reading then I thank you and hope that you'll be able to help. The specifics of my situation are as follows:
    -Using Oracle 8.1.7 as the database but that's pretty much irrelevant here as I do no database access in this simplified form I'm testing in.
    -Forms Server and Form Builder 6i (version 6.0.8.13.0) running on Solaris and being used to develop a simple form with just one button on it which implements my PJC. My real need is a bit more complex but this is fine for a start.
    -JDeveloper 3.2.3 used to develop the PJC, compiled with the 1.1.8 JDK and deployed to a standard JAR file.
    -Have tried signing my JAR file and resigning the f60all.jar using the same user. Have tried not signing either one. Have tried just signing one of the two. I believe I've tried every combination here with the one that gets me the furthest being the scenario where I don't sign mine and just use the standard one that came with the Forms install. This allows me to get my form up on the screen and at least try to play the sound.
    -The code for the PJC is as follows. This code was mostly auto-generated by JDev with the setproperty function and its debug code having been created by me using my successfull 9i experiment code as the base. Anyway, here is the PJC code.
    // Copyright (c) 1999 Oracle Corporation
    package soundpkg;
    import oracle.forms.ui.*;
    import oracle.forms.properties.ID;
    import java.net.URL;
    import java.applet.*;
    public class sound extends VButton {
    public final static ID PLAY = ID.registerProperty("PLAY");
    public String sou_loc = "http://rhqt-oracle.on.prv:6900/las/paul.wav";
    public sound() {
    super();
    try {
    jbInit();
    catch (Exception e) {
    e.printStackTrace();
    private void jbInit() throws Exception {
    public boolean setProperty(ID property, Object value) {
    if (property == PLAY)
    try
    System.out.println("before soundplay");
    sou_loc = value.toString();
    System.out.println(sou_loc);
    URL sou = new URL(sou_loc);
    System.out.println("1");
    Applet testapp = new Applet();
    System.out.println("2");
    AudioClip clip = testapp.getAudioClip(sou);
    System.out.println("3");
    clip.play();
    System.out.println("after soundplay");
    return true;
    } catch(Exception ex)
    ex.printStackTrace();
    return super.setProperty(property, value);
    Pretty much the only change from my 9i code was to the function call for opening the audio file.
    Under Jdev 9i, using Java2 it was:
    AudioClip clip = Applet.newAudioClip(sou);
    Under Jdev 3.2.3 and using JDK 1.1.8 (have to in order to work with Forms 6i) I changed it to:
    AudioClip clip = testapp.getAudioClip(sou);
    From all of my reading, I thought this SHOULD have worked. But, of course, it doesn't. One possible problem is the fact that I was forced to create a new instance of Applet in order to be able to reference the getAudioClip function. My other two attempts to reference it without creating a new instance were:
    1)Just access it on its own:
    AudioClip clip = getAudioClip(sou);
    - This resulted in the expected, "method getAudioClip(java.net url) not found in class soundpkg.sound" error
    2)Access it by first referencing Applet
    AudioClip clip = Applet.getAudioClip(sou);
    - This resulted in a, "non-static method getAudioClip(java.net.URL) cannot be referenced from a static context", message
    Hence, how I wound up creating the new instance and using it to access the getAudioClip function. Maybe this was the wrong way to troubleshoot it but, being new to Java and about five years removed from my C++ experience, it was the best I could come up with and it at least allowed me to compile. However, once I click on my button to play the sound I get the following error output from the Java Console. I've left the beginning info on just in case version numbers are required or something. Seemingly, the more relevant stuff comes later, beginning with the line generated by my debug code saying "before soundplay". Though, I must admit I'm curious as to why I'm getting all of those other, "opening blah blah blah no proxy", messages as well but they don't seem to be stopping me from running the form so I've ignored them for now. Anyway, here are the errors thrown up by the Java Console:
    OUTPUT FROM JAVA CONSOLE FOLLOWS
    Oracle JInitiator version 1.1.8.10
    Using JRE version 1.1.8.10
    User home directory = C:\Documents and Settings\duane.colucci
    Proxy Configuration: Manual Configuration
    Proxy: blvgate.on.prv:80
    Proxy Overrides: *.prv,10.*,*.hrdc-drhc.net
    JAR caching enabled.
    Cache directory: C:\Program Files\Oracle\JInitiator 1.1.8.10\jcache
    Maximum cache size: 50000000 bytes
    Opening http://svr02113075.on.prv:8200/web_code/f60all.jar no proxy
    Loading http://svr02113075.on.prv:8200/web_code/f60all.jar from JAR cache.
    Opening http://svr02113075.on.prv:8200/web_code/sound118.jar no proxy
    Loading http://svr02113075.on.prv:8200/web_code/sound118.jar from JAR cache.
    Opening http://svr02113075.on.prv:8200/web_code/oracle/forms/engine/MainBeanInfo.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/sun/beans/infos/MainBeanInfo.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/oracle/ewt/swing/JBufferedAppletBeanInfo.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/sun/beans/infos/JBufferedAppletBeanInfo.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/oracle/ewt/lwAWT/BufferedAppletBeanInfo.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/sun/beans/infos/BufferedAppletBeanInfo.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/oracle/ewt/popup/PopupAppletBeanInfo.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/sun/beans/infos/PopupAppletBeanInfo.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/oracle/forms/engine/RunformBundle_en_CA.class no proxy
    Opening http://svr02113075.on.prv:8200/web_code/oracle/forms/engine/RunformBundle_en_CA.properties no proxy
    Opening http://svr02113075.on.prv:8200/web_code/oracle/forms/registry/Registry.dat no proxy
    connectMode=Socket
    serverHost=svr02113075.on.prv
    serverPort=9001
    Forms Applet version is : 60813
    before soundplay
    http://rhqt-oracle.on.prv:6900/paul.wav
    1
    2
    java.lang.NullPointerException:
         at java.applet.Applet.getAppletContext(Applet.java:138)
         at java.applet.Applet.getAudioClip(Applet.java:240)
         at soundpkg.sound.setProperty(sound.java:57)
         at oracle.forms.handler.ComponentItem.setCustomProperty(Compiled Code)
         at oracle.forms.handler.ComponentItem.onUpdate(Compiled Code)
         at oracle.forms.handler.ButtonItem.onUpdate(Unknown Source)
         at oracle.forms.handler.UICommon.onUpdate(Compiled Code)
         at oracle.forms.engine.Runform.onUpdateHandler(Compiled Code)
         at oracle.forms.engine.Runform.processMessage(Compiled Code)
         at oracle.forms.engine.Runform.processSet(Compiled Code)
         at oracle.forms.engine.Runform.onMessageReal(Compiled Code)
         at oracle.forms.engine.Runform.onMessage(Compiled Code)
         at oracle.forms.engine.Runform.processEventEnd(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Compiled Code)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Compiled Code)
         at java.awt.Component.dispatchEventImpl(Compiled Code)
         at java.awt.Container.dispatchEventImpl(Compiled Code)
         at java.awt.Component.dispatchEvent(Compiled Code)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Compiled Code)
         at java.awt.LightweightDispatcher.processMouseEvent(Compiled Code)
         at java.awt.LightweightDispatcher.dispatchEvent(Compiled Code)
         at java.awt.Container.dispatchEventImpl(Compiled Code)
         at java.awt.Window.dispatchEventImpl(Compiled Code)
         at java.awt.Component.dispatchEvent(Compiled Code)
         at java.awt.EventDispatchThread.run(Compiled Code)
    As you can see from the output and a quick glance at my code above, the program crashes out on the line where I attempt to call the getAudioClip function. And that's about it. This is where I'm stumped. So, again, any help anybody can provide is greatly appreciated.
    Thanks in advance,
    Duane Colucci

    Duane,
    don't knowwhy you chose to extend VButton, but the following code works for me. Note that I extend the VBean class. Also I am using Jinitiator 1.3.1.9 (this is what I had available for testing). My first test chowed that there was a problem with the way you specify teh URL string, which is why I harcoded the URL string when building the URL.
    Another issue when running it is that you need to sign the file because it needs socket permission (at least this was the error shown on a remote client).
    Here's the code
    package mypackage3;
    import oracle.forms.ui.*;
    import oracle.forms.properties.ID;
    import java.net.URL;
    import java.applet.*;
    import javax.swing.JTextField;
    import oracle.forms.handler.IHandler;
    public class Class1 extends VBean {
    public final static ID PLAY = ID.registerProperty("PLAY");
    private IHandler mHandler = null;
    public Class1()
    super();
    public void init(IHandler handler)
    mHandler = handler;
    super.init(handler);
    public boolean setProperty(ID property, Object value) {
    if (property == PLAY)
    try
    System.out.println("before soundplay");
    URL sou = new URL("http://fnimphiu-lap.de.oracle.com/forms60java/Drums.wav");
    System.out.println("1");
    //Applet testapp = new Applet();
    Applet testapp = mHandler.getApplet();
    System.out.println("2");
    AudioClip clip = testapp.getAudioClip(sou);
    System.out.println("3");
    clip.play();
    System.out.println("after soundplay");
    return true;
    catch(Exception ex)
    ex.printStackTrace();
    return super.setProperty(property, value);
    Fran

  • Printing a form

    Hi folks,
    I had an question, related to printing the form using sapscript. I am printing a sapscript form using two printers. The first one is HPLJ4000 : HP Laserjet 4000   and the model is Dell Printer and using this printer the form is printing fine.
    However when I print using another printer HPLJ4000 : HP Laserjet 4000 but a different model HPLJ 2100TN some of the data is not printing in the right font size. The font I am using is HELVE and I believe it is not recognising it.
    I do not know how to work on the issue, asked the Basis guy too he has no clue about it.
    Any thoughts or ideas will be helpful?
    Thanks,
    Sk

    Hi
    See this OSS notes
    OSSNote:960341
    Symptom
    In some device types (e.g HPLJ4, HPLJ5) you experience non-uniform character spacing in the PDF document after the PDF conversion of SAPscript or Smart Forms documents, using HELVE or TIMES fonts. You want to know the reason.
    Other terms
    CONVERT_OTF, SAPscript, Smart Forms
    Reason and Prerequisites
    The problem is not due to an error in the PDF converter but due to the fact, that the printer font, underlying the device type (e.g. Univers or CG Times in PCL-5 device types), is not available for the PDF converter and is either not available in Adobe Reader. The PDF converter has to try to simulate the layout of the printer font by means of a font which is predefined in Adobe Reader. This is done by assigning the letter widths of the printer font to the font used in Adobe Reader.
    The PDF file contains a table with letter widths, used by Adobe Reader in the output of text, for each used printer font (except PostScript fonts).
    Example:
    %Charwidth values from HP4300 HELVE 060 normal
    /Widths
    [ 278 333 500 633 633 1000 758 333 333 333 633...
    Adobe reader converts this width table, by modifying the space between each character, so that the specified letter width (= space between the current and the next letter) is kept.
    This 'Simulation' of printer fonts results in the sometimes visible irregular spaces in PDF.
    The PDF converter always uses the Helvetica Adobe PostScript font for the display of HELVE and the Times Roman Adobe PostScript font for the display of TIMES. However, for these Adobe PostScript fonts, Adobe Reader often uses a Windows TrueType font, which differs slightly from the original PostScript font.
    Solution
    Workaround: Use the POST2 PostScript device type or the PDF1 PDF device type for the PDF conversion of documents in the Latin-1 character set. They both use the Adobe PostScript fonts Helvetica or Times Roman for the HELVE/TIMES printer fonts.
    Header Data
    Release Status: Released for Customer
    Released on: 30.06.2006  12:44:06
    Priority: Recommendations/additional info
    Category: Consulting
    Primary Component: BC-CCM-PRN Print and Output Management
    Secondary Components: BC-SRV-SCR SAPscript
    OSS Note: 776507
    Symptom
    Documents printed via SAPscript or SmartForms do not print with correct special characters, e.g. ### prints instead of Japanese or Russian characters. What to do?
    Other terms
    SAPscript, SmartForms, printing, device types, OTF
    Reason and Prerequisites
    Help required to choose proper fonts in a SAPscript or SmartForm
    Solution
    When using SAPscript or SmartForms to print (or email or fax) a form from a business application, many factors influence the outcome of the actual text within the form. All these factors must be checked in order to ensure a correct printout:
    1) The language version of the form used to produce the printout.
    Example: If you want to print a French invoice, you need to have a FR version of your SAPscript or SmartForms invoice form RVINVOICE01. And the application program must specify the corresponding language key (FR) when calling the SAPscript or SmartForms API.
    2) The font selections specified in the form (possibly also in a SAPscript style or SmartStyle used in a form).
    Example: In a SAPscript form or a SmartStyle you need to specify HELVE if you want to print German text in Helvetica (or similar) font. If you want to print Japanese text, HELVE is not a valid choice but you need to specify a Japanese font like JPMINCHO in your Japanese form.
    3) The output character set of the device type
    Every printer in transaction SPAD has a "device type" assigned. Device types used by the spooler for printing support only one single specific output character set. All text from the form has to be converted (using SAP's built-in character conversion mechanism) to this output character set.
    A character set can typically support either a single language (e.g. Shift-JIS which supports only Japanese) or a set of languages (e.g. ISO 8859-1, which supports Western-European languages). It is possible that a given language (such as German) can be supported by several output character sets, e.g. you may use either ISO 8895-1 (Latin-1) or ISO 8859-2 (Latin-2) to represent German text. This is so because both character sets contain the special characters used in German.
    Example: HPLJ4000 is a HP LaserJet device type supporting the ISO 8859-1 (Latin-1) character set. ISO 8859-1 can be used to represent e.g. Dutch, English, French, German, Spanish, Swedish but NOT Russian or Japanese.
    As a consequence, it is ok to use HPLJ4000 to print English, German French etc. but not for Japanese or Russian.
    4) The set of available printer fonts for a given device type
    When formatting a document, SAPscript and SmartForms perform an automatic mapping of the font definitions in the form (e.g. "HELVE 14 point bold") and the available printer fonts of the device type. A replacement printer font is chosen, should the specified font selection not be available in the device type. Now this replacement can be problematic if a language-specific font, such as Chinese CNSONG, is specified in a form and it gets replaced by a font which does not support this language, e.g. COURIER.
    To solve this problem, font families in SE73 have language attribute assigned, e.g. some fonts are characterized as being suitable only for certain languages. And when a replacement has to be chosen because the original font from the form is not available in the device type, a replacement font is chosen which has the same language attributes.
    If no fonts for the language in question exist in the device type, the resulting font will not be able to print the special characters and you will see "wrong" output characters in the printout.
    Note on SAPscript/SmartForms Print Preview:
    The OTF Print Preview available in Windows GUI (e.g. from transaction SP01) will sometimes not show the "wrong" characters which appear on the final printout. Here is the reason: since the Print Preview runs in Windows environment, it will use Windows fonts to represent the actual printer fonts. A Windows font typically has more available characters (i.e. covers more character sets) than are actually available in a printer's resident font.
    A typical example where the Print Preview will differ from the printout is here: if you have a Chinese PCL5 printer such as CNHPLJ4 and use the Western Latin font COURIER in your document, the print preview will show you Chinese characters if you (by accident) tried to format Chinese characters in COURIER font. This is because Windows will automatically choose a font that can output Chinese characters (which is actually not Courier). But when you print the job on an actual PCL5 printer with resident Western and Chinese fonts, the Courier font will not print any Chinese characters but Western special characters instead, because the printer's resident Courier font does not include Chinese characters.
    Rule of thumb: all Asian device types (e.g. CNHPLJ4, JPHPLJ4, JPPOST, KPHPLJ4) support not only Asian fonts but also COURIER, HELVE and TIMES fonts. But these Latin fonts can only be used to print English text, not Chinese/Japanese/Korean characters.
    Which fonts are suitable for a given language?
    Language(s):            Font family to use in a form:
    Latin-1 (Western Europe/Americas) *******
    DE,EN,FR,ES,NL,SV       COURIER, HELVE, TIMES
                            (LETGOTH, LNPRINT)
    Latin-2 (Central Europe) ****************
    PL, CZ                  COURIER, HELVE, TIMES
    ISO 8859-4 (Baltic) *********************
    ET, LT, LV              COURIER, HELVE, TIMES
    ISO 8859-5 (Cyrillic) *******************
    BG, RU, SR, UK          COURCYR, HELVCYR, TIMECYR
    ISO 8859-7 (Greek) **********************
    EL                      COUR_I7, HELV_I7, TIME_I7
    ISO 8859-8 (Hebrew) *********************
    HE                      COURIER, HELVE, TIMES
    ISO 8859-9 (Turkish) ********************
    TR                      COURIER, HELVE, TIMES
    Simplified Chinese **********************
    ZH                      CNHEI, CNKAI, CNSONG
    Japanese ********************************
    JA                      JPMINCHO, DBMINCHO, DBGOTHIC
    Korean **********************************
    KP                      KPBATANG, KPDODUM, KPGULIM
                            KPGUNGSE, KPSAMMUL
    Traditional Chinese *********************
    ZF                      TWDPHEI, TWMING, TWSONG
    Thai ************************************
    TH                      THANGSAN, THDRAFT, THVIJIT
    Arabic (Unicode systems only) ***********
    AR                      ANDALE_J
    Verify your output by examining the OTF data
    When analysing printing problems of this type, be sure to check the OTF data which gets produced by SAPscript or SmartForms. OTF or "Output Text Format" is the intermediate page-description format generated from SAPscript or SmartForms. OTF will contain the final printer font names and character set/language identifiers which help to solve the problem. OTF will even name the form and the language of the form used to create the output.
    The easiest way to do this is to create a spool request from your application, run transaction SP01, use menu
    Goto->Display Requests->Settings
    and choose
    Display Mode: Raw
    Now display your spool request. If this is a SAPscript or SmartForms spool request, you will see OTF data. Each line represents one OTF command, every command starts with a 2-character cmd identifier and possibly some cmd parameters follow.
    Here is an excerpt from a sample OTF file where we highlight the most interesting commands:
    //XHPLJ8000    0700 00000000001
    IN04EALEXTEST_ZEBRA
    IN05%PAGE1
    OPDINA4  P 144  240 1683811906000010000100001
    IN06%WINDOW2
    MT0024401289
    CP11000000E
    FCHELVE  120  00109XSF100SF101110000067E X
    UL +0000000000000
    SW00067
    CT00000000
    ST0453037Dieses SF hat Stil ALEXTEST_ZEBRA mit
    The 1st line with the // (Control) command reveals the device type usedto print: HPLJ8000
    //XHPLJ8000    0700 00000000001
    The 2nd line (IN = Info command) shows the name and (internal 1-char)language key of the form:
    IN04EALEXTEST_ZEBRA
    In this case it is the English (E = EN) SmartForm ALEXTEST_ZEBRA
    The OP-line (OP = Open Page) gives the page format used in the form, it is DINA4 Portrait orientation:
    OPDINA4  P 144  240 1683811906000010000100001
    The CP (CodePage) cmd shows the SAP system codepage used to code the text and the active language. In our case it is codepage 1100 and language E = EN = English.
    CP11000000E
    Finally, the FC-cmd (Font Call) lists a printer font selected within SmartForms. Please note that every SmartForm has a designated default SmartStyle under "Form Attributes->Output Options". In addition, every text node can have a SmartStyle attached (which will override the definitions from the default style for the text). In our case the resulting printer font that was selected is HELVE 12.0 pt bold-off, italic-off.
    FCHELVE   120  00109XSF100SF101110000067E X
    Header Data
    Release Status: Released for Customer
    Released on: 22.08.2005  09:57:20
    Priority: Recommendations/additional info
    Category: Customizing
    Primary Component: BC-CCM-PRN Print and Output Management
    Secondary Components: BC-SRV-SCR SAPscript
    BC-SRV-SSF Smart Forms
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Forms Server Install on Redhat Linux 7.0

    I am attempting to install Forms6i/Reports6i/Graphics6i on my Linux Box.
    I already have a 8.1.6 Database configured and running.
    After downloading the tar file and extracting it I am having trouble with the installation of the software. The Guide refers to running the orainstal shell script in the orinstall directory. Well when I execute the script I get a Character Installer and I was expecting the Java based Gui Installer such as the one with Oracle 8i DB. I cannot get the oraviewer program to work either for I wanted to see if there were some other setting I am not executing correctly.
    When I continue with the Char Installer it has trouble finding a lib called X11m.a or something (Motif related).
    Does Forms 6i require Motif? If so where and how do I get it for my Linux box? Are there any work arounds for this.
    Any help is greatly apprecicated.
    Thanks

    Hello Shawn,
    Yes, you need motif libraries. You can obtain it for free from: http://www.metrolink.com/products/Motif/download.html
    I installed both runtime and development packages.
    Aditionally you may ned to have X-devel packages installed.
    After struggling with Forms installation on my linux machine I managed to do this, but let me tell you that it's not so simple. First of all please excuse my bad English, I'm not a native speaker. Anyway that's how I did it.
    I assume that you downloaded the file d2k6irelease2.tar from technet. This file includes Forms 6i rel. 2 Server and Developer.
    I managed to install this on my RedHat 7.1 machine having already installed Oracle 8.1.7 database Server.
    First of I created a separate user which owns Forms Server software. I set this user as belonging to the same group ("dba" in my case) as the oracle database software owner. (On my machine I have "oracle" user which owns databse server belonging to the "dba" group and "forms" user belonging also to the "dba" group). You must set your environment like this (in ".bash-profile" in my case):
    -- Begin .bash_profile file
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    unset LANG
    PATH=$PATH:$HOME/bin
    BASH_ENV=$HOME/.bashrc
    ORACLE_BASE=/oracle
    ORACLE_HOME=$ORACLE_BASE/product/forms
    ORACLE_SID=forms
    ORACLE_AUTOREG=$ORACLE_HOME/guicommon/tk60/admin
    TNS_ADMIN=$ORACLE_HOME/network/admin/tnsnames.ora
    ORACLE_TERM=vt220
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
    TWO_TASK=oratest
    MMTK_AVIPLAYER="xanim %s &"
    PATH=$PATH:$ORACLE_HOME/bin
    DISPLAY=TEST_MACHINE:0.0
    export ORACLE_BASE ORACLE_HOME LD_LIBRARY_PATH TWO_TASK MMTK_AVIPLAYER
    export TNS_ADMIN DISPLAY ORACLE_AUTOREG ORACLE_TERM ORACLE_SID
    export BASH_ENV PATH
    unset USERNAME
    -- End .bash_profile file
    As you can see I set up ORACLE_BASE to the same ORACLE_BASE as database software ORACLE_BASE, a new ORACLE_HOME, a dummy ORACLE_SID, TWO_TASK to the sid of your 8.1.6 server instance, TNS_ADMIN pointing to a directory which I created manually before starting the installer (see below my "tnsnames.ora" file under this manually created directory), ORACLE_AUTOREG, ORACLE_TERM, DISPLAY set to your_hostname:0.0, LD_LIBRARY_PATH as seen, MMTK_AVIPLAYER is for playing ".avi' files (I didn't tried this). You may need to "chmod 775" on your $ORACLE_HOME directory from the database user account.
    -- Begin "tnsnames.ora" file
    ORATEST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = TEST_MACHINE)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = oratest)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    -- End "tnsnames.ora" file
    I untared d2k6irelease2.tar under a subdirectory created under "forms" home directory. In "unixdoc/Server" directory you will find linux_svr.pdf instructions for installation of Forms server and under "unixdoc/Developer" you will find linux_dev.pdf instructions for Developer Server. "oraview" didn't worked for me either. GUI installer didn't worked for me either. Chnaging to orainst you may issue ./orainst command and start the installation in character mode (I did not even started an X session). I choosed default install, do not create database objects (I think you will be able to install later this objects by running some sql scripts, I didn't). And I choosed all components presented and all options and default port parameters. You will also be prompted to confirm locations of the motif libraries. I choosed http mode for forms server. Do not install Reports security feature (I've heard that it's not working, this option will be presented to you somewhere at the end of installation). After finishing you may need to edit "forms60_server" file and some other files. For example I had to change my "host_name.domain_name" (in my case was "TEST_MACHINE.(none)") to my IP address as I don't have a DNS server here.
    That's what I did to test forms server:
    I wanted to test my Forms server by running Apache web server (the one that is installed by default by linux). (in the documetation you will find references to the WebDB listener which as far as I know is no longer installed in release 2, so the documentation is obsolete regarding this module). For this you will have to edit /etc/httpd/conf/httpd.conf file. Look for the section "Alias" and "AliasScript". under your forms $ORACLE_HOME/orainst you will find two files "forms6iconfig.txt" and "reports6iconfig.txt". You will find there actions to be performed by you manually. in "forms6iconfig.txt" file you will find virtual mappings for physical directories. You have to put this entries in "httpd.conf" file. You must edit this file as "root". For example 'Alias /dev60temp/ "/oracle/product/forms/tools/web60/temp/"'. The exception I made was for "/dev60cgi" virtaul mapping which I've put under ScriptAlias section 'ScriptAlias /dev60cgi/ "/oracle/product/forms/tools/web60/cgi/"'.
    After succesfully editing the file you will ned to restart http server:
    #/etc/rc.d/init.d/httpd restart
    Login again as "forms" user.
    In $ORACLE_HOME directory isuue:
    $./forms60_server start
    This will start your forms server listener.
    After that you can test your forms server running from an external machine by entering: http://ip_addres_of_linux_machine/dev60html/runform.htm
    and after completing parameters you will see "text.fmx" form applet saying that Forms server is installed corectlly or directly: http://ip_addres_of_linux_machine/dev60cgi/f60cgi
    You have to install Jinitiator to view the applet. It will be prompted for you to download it when accessing the above address.
    To be honest I was disapointed to see that forms server is very slow. And I mean very slow.
    In the end please let me excuse if I wasn't clear in some points. If you have any questions please post them on the list. I'm not an expert and I may have made mistakes, but in the same time I hope this will help you setting up forms server on your linux box.
    I forgot to mention that you will probably see a message saying that "formsweb.cfg was not found" when accesing "http://..../f60cgi". If you see this you have to options: either make a symlink "forms60" in the root directory to $ORACLE_HOME/forms60 directory or add a line in your "httpd.conf" file (I put this lines the last ones):
    #Include 6iserver configuration file for setting formsweb.cfg path
    include "/developer_home/conf/6iserver.conf"
    And in $ORACLE_HOME create a directory named "conf". In this directory create a file named "6iserver.conf" and put the following line in it:
    SetEnv FORMS60_WEB_CONFIG_FILE /developer_home/forms60/server/formsweb.cfg
    This will set your environment correctly and you will be able to see the test form. Don't forget to restart apache web server and forms listener.
    Kindly,
    Codrut Octavian Popescu

  • Acrobat 9 Pro Forms... new method, I don't think I'm comfortable with!

    I installed 9 last week, and yesterday went into a previous form to edit some fields. And I could not for the life of me find the forms tool bar! I was able to edit the form, by using the arrow and clicking on the spot. So I got through that.
    Now this am I am creating a whole new form. Do you think I can find that **** form toolbar. I believe it just does not exsist! What I have found is that when I went to the menu under forms i went to "Add or Edit Fields", which changes the window. Then I had to go pick the tool and use it, then pick the tool again to use it... How annoying! then I saw the check box to "keep the tool selected", tried that but then it does not let go and allow you to size the box, i suppose if you were doing the exact size it thought you needed it would be great, but very often I have to resize all the lines.
    I can see there is some things I might like, but right now I am finding not having a forms tool bar in my main window extremely frustrating.
    I must mention that I ALSO tried the form wizard, and it does work way way better than it did in 8. So maybe I just have to change my ways

    JS is case-sensitive and there's no such thing as "If". You need to use "if"
    instead.

Maybe you are looking for