Oracle Forms 5.0 Timer

I need to refresh an Oracle Form periodically with the latest
data. I am using Oracle Developer 2000/Forms 5.0
I am using a timer using the Create_Timer function
I need to know -
1. Why do I keep getting an "ACKNOWLEGE USER INPUT" Dialog box
every time the timer expires? This dialog requires me to press
OK every time the timer expires. I DO NOT want this box to
appear.
2. What do I program in the WHEN-TIMER-EXPIRED event to cause
the form to requery with the latest data?
null

1. Dont know
2. W_T_Expired:
if system.current_block='???' then
go_block('???');
execute_query;
else
null; --???
end if;
You know your block name

Similar Messages

  • Oracle Forms 10g run time problem

    Hello.
    I installed Oracle Dev 10g and I'm trying to use Oracle Forms.
    I configured all files like this:
    [steps in other post]
    1. Install the Jinitiator
    location: <devsuitehome>/jinit/jinit.exe
    2. edit the following files:
    a. <devsuitehome>/forms90/server/default.env
    where you set forms90_path=add your path to your library files (*.pll)
    b. <devsuitehome>/forms90/server/formsweb.cfg
    where you set workingDirectory=path to your *.fmx files
    3. at Forms Builder go to Edit/Preferences/Runtime
    then at the Application Server URL click "Reset to Default"
    4. before attempting to run your forms, run "Start OC4J Instance" first
    start/programs/oracle developer suite/forms developer/start oc4j instance
    After this, when I try to run the form, I don't get any error, but the browser opens and does nothing! Some times appears a small form to acces the data base, other don't, but it always stops!!
    Any ideas?!?
    Many thanks,
    Nuno

    Might also be worth turningon the Jinit console (you can do this from your windows Control Panel). And set the trace level to 5 (just press 5 when the jinit console appears).
    Then check error messages.
    Regards
    Grant

  • .jar file reusablility issue in oracle forms

    hello all
    i am using oracle forms
    {code}
    Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle Toolkit Version 10.1.2.0.2 (Production)
    PL/SQL Version 10.1.0.4.2 (Production)
    Oracle Procedure Builder V10.1.2.0.2 - Production
    {code}
    and using Database 10g
    {code}
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    {code}
    i am developing an application in oracle forms that sends message through GSM mobile when any transaction is commited.
    i wrote a class in java , made .jar file , edited default.env file CLASSPATH = "my .jar file"
    everything is working fine when i am trying the code in NETBEANS IDE, it sends messages again and over again with no delay..
    PROBLEM:
    the problem is that when i try to send message from oracle forms using that JAR file , it sends message for only single time , after that it neither shows me any error nor sends the message,
    (1) can it be problem of closing COM port for reusablity.
    (2) any other way to reuse the jar file.
    (3) should i program to closo the used port. (but java program is working very well in NETBEANS IDE).
    please suggest me what should i do to reuse .jar file again and over again.
    thanks

    thanks for your reply.
    sorry if forgot to mention that how i am using this java code.
    yes! i am using that java code using Java Importer in oracle forms 10g.
    importing that jar file i used PL/SQL code to use the static public veriables in oracle forms
    Procedure Send_Message(
        Cel_N In Varchar2
    Is
      Ora_Obj Ora_Java.Jobject;
      Com_P    Varchar2(10);
      Cent_No  Varchar2(100);
      Send_Sms Number;
      Mesg     Varchar2(200);
    Begin
      Ora_Obj := Smsclient.New(1);
      Smsclient.Setcomportname(Com_P);
      Smsclient.Setmsgcenternum(Cent_No);
      Send_Sms:= Smsclient.Sendmessage(Ora_Obj,Cel_N,Mesg);
    Exception
    When Ora_Java.Java_Error Then
      Message(Ora_Java.Last_Error);
    When Others Then
      Message(Sqlerrm);
    End;
    this Smsclient.Sendmessage Class is working very well in both plateforms in NETBEANS IDE and oracle forms but the difference is in this class that
    in NETBEANS IDE (when i run this class using F6 ) it works every time with no delay
    but when i use this same class in pl/sql code through oracle forms it works only for one time.
    COM ports and GSM modem is working property but why .jar file works for once.. and when i restart OC4J & oracle form at run time then it works for only once , meanse after starting OC4J i am able to send message through mobile for one time, means .jar file works only once, why not every time i call the class through oracle form..
    what should i check .. please..
    thanks

  • Creating timer problem in oracle forms

    Hello,
            I am using oracle weblogic 10.3.5 with oracle forms 11g at windows 7.I am trying to make a trigger but getting frm 40738 argument 1 to builtin GET_APPLICATION_PROPERTY cant be null error. I am using code at when-new-form-Instance trigger:
    declare
        timer_id TIMER;
        one_second number:=1000;
        st varchar2(100);
    begin
        timer_id :=find_timer('CLOCK_TIMER');
        If not id_null(timer_id) then
            delete_timer('timer_id');
        else
            timer_id := CREATE_TIMER('CLOCK_TIMER',one_second,REPEAT);
            --timer_id:=create_timer('CLOCK_TIMER',one_second,repeat);
            st:=Get_application_property(TIMER_NAME);
            message(st);
            end if;
            select to_char(sysdate,'HH24:MI:SS') into :EVENTS.CURRENT_TIME from dual;
            exception when others then
            message(TO_CHAR(SQLCODE)||''||SQLERRM);       
        end;
    and at  When-Timer-Expired trigger:
    declare
        timer_name varchar2(30);
    BEGIN
       timer_name := GET_APPLICATION_PROPERTY(TIMER_NAME);
    IF  timer_name = 'CLOCK_TIMER' THEN
          SELECT  TO_CHAR(SYSDATE,'HH24:MI:SS')
          INTO   :EVENTS.CURRENT_TIME
          FROM   DUAL;
    END IF;
       EXCEPTION WHEN OTHERS THEN
          MESSAGE(TO_CHAR(SQLCODE)||''||SQLERRM);
    END;
            Thank You
    regards
    aaditya.

    The problem is that you have a local variable with the same name as the CONSTANT "TIMER_NAME".  Therefore, your call to GET_APPLICATION_NAME is passing the value of your Local Variable to the built-in instead of the value of the CONSTANT 'TIMER_NAME."
    declare
        timer_name varchar2(30);
    BEGIN
       timer_name := GET_APPLICATION_PROPERTY(TIMER_NAME);
    IF  timer_name = 'CLOCK_TIMER' THEN
    Change your code so your variable TIMER_NAME is unique (different) from the constant TIMER_NAME variable. A common programming standard prefix your variable names with the data time.  Following this concept, rename your variable to V_TIMER_NAME.
    Craig...

  • Stopping a Query taking more time to execute in runtime in Oracle Forms.

    Hi,
    In the present application one of the oracle form screen is taking long time to execute a query, user wanted an option to stop the query in between and browse the result (whatever has been fetched before stopping the query).
    We have tried three approach.
    1. set max fetch record in form and block level.
    2. set max fetch time in form and block level.
    in above two method does not provide the appropiate solution for us.
    3. the third approach we applied is setting the interaction mode to "NON BLOCKING" at the form level.
    It seems to be worked, while the query took long time to execute, oracle app server prompts an message to press Esc to cancel the query and it a displaying the results fetched upto that point.
    But the drawback is one pressing esc, its killing the session itself. which is causing the entire application to collapse.
    Please suggest if there is any alternative approach for this or how to overcome this perticular scenario.
    This kind of facility is alreday present in TOAD and PL/SQL developer where we can stop an executing query and browse the results fetched upto that point, is the similar facility is avialable in oracle forms ,please suggest.
    Thanks and Regards,
    Suraj
    Edited by: user10673131 on Jun 25, 2009 4:55 AM

    Hello Friend,
    You query will definitely take more time or even fail in PROD,becuase the way it is written. Here are my few observations, may be it can help :-
    1. XLA_AR_INV_AEL_SL_V XLA_AEL_SL_V : Never use a view inside such a long query , becuase View is just a window to the records.
    and when used to join other table records, then all those tables which are used to create a view also becomes part of joining conition.
    First of all please check if you really need this view. I guess you are using to check if the records have been created as Journal entries or not ?
    Please check the possbility of finding it through other AR tables.
    2. Remove _ALL tables instead use the corresponding org specific views (if you are in 11i ) or the sysnonymns ( in R12 )
    For example : For ra_cust_trx_types_all use ra_cust_trx_types.
    This will ensure that the query will execute only for those ORG_IDs which are assigned to that responsibility.
    3. Check with the DBA whether the GATHER SCHEMA STATS have been run atleast for ONT and RA tables.
    You can also check the same using
    SELECT LAST_ANALYZED FROM ALL_TABLES WHERE TABLE_NAME = 'ra_customer_trx_all'.
    If the tables are not analyzed , the CBO will not be able to tune your query.
    4. Try to remove the DISTINCT keyword. This is the MAJOR reason for this problem.
    5. If its a report , try to separate the logic in separate queries ( using a procedure ) and then populate the whole data in custom table, and use this custom table for generating the
    report.
    Thanks,
    Neeraj Shrivastava
    [email protected]
    Edited by: user9352949 on Oct 1, 2010 8:02 PM
    Edited by: user9352949 on Oct 1, 2010 8:03 PM

  • Selecting only time in oracle forms

    Hi all,
    like date picker in oracle forms can i select the time in oracle forms into a text item.
    i want to display the time in this format 10:10:30 a.m. and also i want to insert into the table
    i have taken the data type of this column as varchar2(15) if i take date can i insert the time or varchar2 is ok.
    my oracle forms version is 10g.
    please reply...

    Hi, extreme
    extreme wrote:
    Hi all,
    like date picker in oracle forms can i select the time in oracle forms into a text item.
    i want to display the time in this format 10:10:30 a.m. and also i want to insert into the table
    i have taken the data type of this column as varchar2(15) if i take date can i insert the time or varchar2 is ok.Better take column having data type date. You can insert date and time in the date field.
    Just you need to change in forms.
    Change the Data type Date to Datetime
    to show only time, use format mask.
    Hope this helps

  • Use of Times ten database with Oracle Forms 11g

    Hi,
    We need to use some caching / pre-fetching solution with Oracle Forms 11g.  Is there a possibility that Oracle Forms 11g can be used with Times ten database.
    Regards,

    We have never tested TimesTen with Forms 11g but we suspect there are issues that may prevent if from being used.
    Sorry.
    Chris

  • Oracle Forms first time use

    Hi friends,
    I have installed Oracle 10g Development Suite from the Oracle web site. I need to use Oracle Forms from that package.
    Please let me know the user name and password to connect for the first time
    Thanks.

    You have 2 Oracle Homes. Each one has a network/admin directory. In each, there is a tnsnames.ora file.
    When you attempt to connect to a database, you are often asked to provide username, password and 'database string'. The database string is actually a lookup into the tnsnames.ora that is currently being used.
    If you are using forms to connect, the chances are good that the one in the forms Oracle Home is the one being used.
    One of the self-help tasks here is to open both of the tnsnames.ora files and match them up.

  • How to get updated value at run time in oracle forms

    How to get updated value form oracle database on a field in oracle forms 6.0 at run time if the same form is opened by multiple users and both have get the same maximum value if one commit the record then how other would get that maximum value with out exiting that form...

    This issue is fairly common and Forms handles the situation by displaying the error, "Record has been updated by another user. Requery to see changes." if a user tries to update a record that was updated by another user.
    If your data is in a base table block, you can check before you save by checking the value in the form against the database using the Get_Item_Property('<BLOCK.ITEM>',DATABASE_VALUE). You can compare the value returned by the built-in against the value in the field to see if they have changed. This could be a lot of work and a lot of network traffic if you are checking numerous items in your data block. Forms has a standard locking mechanism that will lock the queried record as soon as a user makes any changes. If another user queries and attempts to change the record locked by another user - they will receive a "Record Locked" message.
    Francois brings up a valid point. Perhaps you should review the link Francios provided as well as this one: How to ask questions the smart way
    It is always a good idea to review your thread before you post it and ask yourself, "Could I answer this question given the information I've provided and the way I've asked the question?"
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Oracle Forms 6.0 Run Time available?

    Hi,
    What runtime software is required to support an application that uses Oracle Forms 6?
    Is there is some type of runtime package available for download?
    If so, can I incorporate that package into a Wise Install created installation procedure as a called exe along with my other stuff?
    Art
    null

    John,
    Thanks for the reply. Once I down load and install the forms runtime, can I then incorporate that piece within my Wise Install?
    Art
    null

  • Query execution taking longer time in Oracle form 10g !!

    Hi,
    I'm generating a report through Oracle form ( forms 10g) and its taking 3-4 hours to finish. But when I run the same report query in (Oracle 11g) database, it gets executed in less than 40 mins.
    The form takes only from and to date as input.
    I tried hardcoring the date in the Oracle Form and then the report takes only 40 mins to generate.
    I tried various approaches like changing the datatypes of form variable and correspondingly changing the query, but met with no success.
    When the report in run through the form , we can see the query getting run in backend for nearly 3 hrs !!! tats really confusing !!
    Please let me know, if anybody got any idea on this problem??

    Hi,
    Even I am facing the same problem above. I am trying to fetch results from a cursor which has subquery running over the db link and placing the results set in a csv file using client_io package. When I run the cursor directly from database (11G), it takes not more than 3-4 min to get the results back. But when I run the same cursor via oracle forms 10G, the query in local database keep on waiting for hours to get results from remote database with "SQL*Net message from dblink". Session on local database remains in active status with state as "Waiting" while the session on remote database goes inactive with state as waiting for event "SQL*Net message from client"
    This is confusing me since the same query when ran directly from backend fetches results soon.
    Please let me know if anyone can help here
    Thanks
    Garima

  • I want to connect oracle 10g developer run time forms to oractle data base

    Hey,
    Would any body want to tell me, how come i can connect oracle dev 10g from its forms with oracle 10g data bases
    I am waiting
    bye

    Try asking this on the Oracle Forms forum:
    http://forums.oracle.com/forums/category.jspa?categoryID=19
    In any case you need to set-up a sqlnet connection from your client to your server. Use the Network Configuration Utility that comes with the Oracle Forms installation.

  • Oracle Forms Designer has encountered a problem and needs to close

    Dear All,
    I got the following error when I compile the form,
    Oracle Forms Designer has encountered a problem and needs to close
    I am using Oracle 10g Developer suite(Forms 32 Bit Version 10.1.2.0.2)
    and Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    and Window Xp Professional 32 Bit Operating system
    Now I can't do any changes in the form.
    I searched lot of oracle forums .but i can't solve it.
    Please give me one solution
    I am strugling this issue.
    Please help me........
    a lot of thanks in advance.
    Thanks and Regards,
    Fazil

    Hi,
    I am doing the bug fixing in the existing form.Its size is 4.07 MB.when i will get the mentioned error.then i will take previos fmb.then again doing the changes after some time agin will come the mention error.I added some if else condtion code.Its a small code.I think its not a reason for the mentioned error.I think something is happended.I don't know what happened?
    Please help me..
    Thanks and Regards,
    Fazil

  • Oracle reports 6i to Oracle forms 10g migration

    Hi,
    I have .rdf files which were created on Oracle Reports 6i. I would like to migrate the .rdf files into Oracle Reports module which is present as a part of Oracle Forms 10g to generate PDF output.
    Please let me know the detailed steps to be followed as I am a total newbie. Also I need to generate these reports on demand from a java 5 application (JSF 2.0).
    Currently for ORacle reports 6i, I have the following code in my java application
    rwrun60.exe g:\tomcat33\webapps\reports\web-inf\src\null userid=***/*** destype=FILE desformat="pdf" paramform=NO printjob=NO batch=YES desname=temp.pdf
    1. What would be the equivalent for reports in ORacle Forms 10g ? I know there is an Oracle Apps server where ther report services reside. How to I invoke my report from my java application (residing on a weblogic server 10.3.6)?
    2. What ould I do with the 6i .rdf files to upgrade them to 10g ?

    I am trying to call an Oracle report i.e .rdf (which is located on the Oracle  App Server) from my java EE 5 (JSF) application. The Oracle  App server is Oracle Application Server 10g Release 2. I assume Oracle report generation capability is available in this release.  I need to invoke the report from my Java JSF application on demand (whenever the user clicks a button on the web browser page, the report should appear on the browser as PDF) . My java application resides on Linux weblogic server.
    Please let me know how it can be done ? I see rwclient.sh and another method to directly invoke using a URL. How do I do it on java, would a request.redirect() to the URL work ?
    Also for hiding the params in the URL. keys need to be configured on the Oracle server right ?
    Also if we use rwclient.sh or the URL based invocation, would there be any issue in concurrency when multiple users request the same report at the same time ?

  • Oracle Forms 6 to Latest version

    Hi all, now am I in deep water. I'm totally newbie on Oracle Forms.
    We still have Oracle forms 6, and we use it for a old Tuxedo service repository.
    I guess that we are not the first to upgrade to something newer, so I hope there is someone out here who can
    help me with links or some other info where to start looking.
    Anyone?
    Thanks in advance

    Yes, the number of people still using forms 6 have become smaller now. There was a major release of 10g after that, and last summer, FMW 11g came out which offers the latest version for forms too.
    Please see this link for [forms upgrade guide from 6i to 11g|http://download.oracle.com/docs/cd/E12839_01/doc.1111/e10394/toc.htm]. Do not expect that you will be able to do anything by reading just one or two documents. So first spend some good amount of time in reading documentations before jumping into implementation.

Maybe you are looking for

  • How to define the margins of a leaf in numbers 3.2

    how to define the margins of a leaf in numbers 3.2 leaves appear without margin and not when moving from one sheet to another

  • Problem with AVI files

    hello with JMF i try to load video files in my software, but some AVI sound can't be loaded, or others AVI i can't see any video. ex: Unable to handle format: LINEAR, 22050.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 88200.0 frame rate, FrameSize=32

  • Vendor in condition type/purch info record

    hi, in condition type, i notice in account determination, there is a vendor field. but this vendor field not exist in all condition type. only freight/customs related with this vendor field. 1) may i know how does the system know whether the conditio

  • Screen Recording Video - Which Preset do I use?

    Hi. I am using a free screen recording software...I've tried both CamStudio and Debut...and I was wondering which Preset I should use when I create a new project? I'm thinking Hard Disk, Flash Memory Camcorder but I don't know for sure... I am having

  • World clock doesn't remembers saved locations

    This is a problem with the world clock that has been unaddressed with all the firmware updates I've installed since buying this phone in December. After saving international locations around the world for quick reviews through out the day in the worl