Is there a Form 10G synchronize built-in replacement?

Hi everyone,
I've converted some old Oracle 4.5 Form to 10G Form and I'm currently testing them one by one. I noticed that for those forms that were using the 'synchronize' commands to refresh text_item are no longer working. Not only their items were not refreshed but the forms have also thrown out the 'ORA-92102:Network Error'. Here is a snapshot of the code in 10G Form:
--- BEGIN ---
CURSOR FIND_CLIENTS IS
SELECT C.CLT_NUMBER, C.CLT_NAME CLT_NAME
FROM ALL_CLIENTS C
ORDER BY C.CLT_NAME;
BEGIN
FOR CLT IN FIND_CLIENTS LOOP
:block.item := 'Processing client: ' || CLT.CLT_NAME;
synchronize;          
END LOOP;
END;
--- END ---
I've discovered that every execution of the 'synchronize' command will perform a network trip between the web server and the web form client and Oracle strongely discourages the use of it but it does not suggest any alternatives. Is there a solution to it? Thank you for your time and assistance.
Regards,
John

Synchronize() is used to "refresh" the client screen (ensure it displays the most recent information). As we run in Web mode, the information about how to draw onto the client screen is get from the Application Server, so that the roundtrip needed.
It is still available in Web version, but needs this additional roundtrip each time it is invocated. So you have to choose between having a screen very close to the truth at any time, but time consumming, or choosing the faster way but displaying the final state only at the end of the process.
Francois

Similar Messages

  • Using OLE in forms 10g

    Gurus,
    I have a problem. I want to import MS-Excel sheet into forms 10g, any builts to be used ?? what's the procedure ?
    Can anyone help me
    Regards

    Well, the application should come from the client machine rather than serverThe application runs from the server (as it is web-forms), but the UI runs and the client.
    WEBUTIL is designed to do things on the client. So CLIENT_OLE is executed on the client-pc.

  • Replacing SYNCHRONIZE in Forms 10G

    Hi everyone,
    We had removed SYNCHRONIZE from our Forms when we migrated to 10G but now Oracle asks us to have SYNCHRONIZE in our Forms at appropriate places in the code.
    Can anyone suggest the best way to replace SYNCHRONIZE in Forms 10G. I mean can I convert the FMBs to FMTs and then do these changes. Some of our Forms are very complex so doing this manually takes a lot of time.
    Please advise.
    Thanks in advance !!!

    Whenever you use SYNCHRONIZE built-in in WebForms, each execution of this built-in is a full network trip between the Application Server and the Forms Java client.
    excessive use of this built-in will overload network traffic, and most of the time this built-in is used in LOOPs and this is excessive.
    Oracle strongly recommends not to use this built-in and if you MUST use it use it carefully.
    Tony

  • Replacement for Exit_Menu Built-in in Oracle Forms 10g

    Hi All,
    Is there any replacement available for Exit_Menu in oracle forms 10g?.
    Regards,
    Prasad.

    No. Menus built-in associated with full-screen display and character mode have been removed in 10g.

  • Forms 10g will there ever been an 11g?

    Someone told me that forms 10g will be the last version of Oracle Forms. There will never be an version 11. Oracle Jdeveloper will be the way to go from version 10 of forms. Any comments on this? How will we migrate from Forms 10g to JDeveloper/ADF/Jheadstart... and when...

    Would you be willing to share who this "someone " was....I can tell you they are talking complete rubbish.. We have ben VERY clear about this in the statement of direction document.
    http://www.oracle.com/technology/products/forms/pdf/10g/ToolsSOD.pdf
    "Oracle recognizes this considerable investment and remains
    committed to the long-term support of these products."
    "Oracle’s development teams are already working on features for Forms/Reports 11g and beyond. This aligned with the commitment outlined above means that Oracle is already committing development resources that will take Forms and Reports through to, at least, 2013."
    Please pass this on to who ever was telling you that there would not be a Forms 11.
    Thanks
    Grant Ronald
    Forms Product Management

  • Deploying a form built using forms 10g builder.

    Hi Everybody,
    I Have experience with forms 6i Devlopment, Recently started with forms 10g.
    while developing the form under forms 10g environment.
    We have to start OC4j Instance and if we choose the RUN option form will run automatically.
    But now, I have a confusion in deployment phase. so once the forms developement is completed, What are the configuration steps required, so that client can access the URL and access the forms built by us.
    Please can anyone provide information overthis.
    Thanks in advance....Pc Rao

    Hi,
    Once you complete the copilation phase.Then your fmx will be created in DevSuiteHome_1/form folder in your local PC.
    Then give access to your PC fmx to your client like one shown below,
    http://localhost:8889/forms/frmservlet?form=myform.fmx&separateframe=true
    if you want you can store all the fmx in the server then remove the local host from above url then give the server ipaddress....But make sure in both case OC4J must be started.This is just a basic configuration.
    Thanks,
    Pavan.

  • Forms 10g: error FRM-92101: There was a failure in the Forms Server during

    AS10g (9.0.4.1) on windows 2000 with 2 GB of ram
    We have an application with 10 - 15 users. Sometimes,when users exit from forms with the command exit_form, in a randomic way the form hangs with the error FRM-92101: There was a failure in the Forms Server during startup.....
    After the users have to close the browser and open another sessione of explorer.
    In the same time other users work fine.
    The problem happens more then 10 times a day.
    Is there a solution ?

    I have also run into similar problem.
    In my case, this problem has been carried over from Forms 6i to Forms 10g. In forms 6i it wrote an error file in the same folder where *.fmx file was stored.
    For 10gAS, look into <ORACLE_HOME midtier>\forms90\trace folder for a file *.trc. Open it up in notepad. It will tell you which trigger was being executed when the form failed.
    Put any comment in the PL/SQL of that trigger, recompile the form and the problem will go away.
    I usually put something like:
    dummy statement for FRM-92101.
    I do not know why it works but in my case it has.
    Good luck !!!
    Would like to know if it works for you.
    Suresh

  • Synchronize built-in - Functionality

    Hi All,
    I have following code written in one of the forms. These forms have been written long time ago and now we have converted the Forms from 6i to 10g so dealing with some of the lost network issue. I just need to know what this Synchronize built does in the following code. Thanks.
    Form Level - Key-Next-Item Trigger.
    next_item;
    synchronize;
    SHOW_PAGE2;
    Form Level - When-New-item-instance Trigger
    synchronize;
    SHOW_PAGE2;

    What Andreas said(and the online help):
    >
    Synchronizes the display's screen with the internal state of the form. That is, SYNCHRONIZE updates the screen display to reflect the information that Oracle Forms has in its internal representation of the screen.
    >
    When code(with navigation like next_record or so) is executed in forms, the position of the cursor will not be shown until the end of the code.
    Example where I used synchronize:
    A loop over all records in a block, for every record there was some procedure executed. This procedure could show a message. Without using the synchronize built-in the cursor was still on the first record of the block(where the cursor was when the loop started). With the synchronize built-in the cursor was on the record that showed the message.
    I hope this helps...
    Edited by: poelger on Feb 24, 2009 4:45 PM

  • Exception when calling web service from Oracle forms 10g

    Hi All,
    I am trying to integrate Oracle Forms 10g(V 10.1.2.0.2.) with Web Services.
    There is a java class named 'authenticate' which is generated using Oracle JDeveloper.
    This class is included in the forms application by using "Import Java Class" feature.
    Forms built the following funtion based on that class:
    -- Method: authenticate (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    FUNCTION authenticate(
    obj ORA_JAVA.JOBJECT,
    a0 VARCHAR2,
    a1 VARCHAR2) RETURN VARCHAR2 IS
    BEGIN
    args := JNI.CREATE_ARG_LIST(2);
    JNI.ADD_STRING_ARG(args, a0);
    JNI.ADD_STRING_ARG(args, a1);
    message('here1');
    RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'mypackage/AuthenticatorWebServiceServiceStub',
    'authenticate', '(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', args);
    message('here2');
    END;
    However when the above code is invoked it shows the message 'here1' on the form and then throws the following exception: java.lang.Exception: java.lang.ClassCastException
    Please suggest me what's wrong with the code. I appreciate your time and help.
    Thanks,
    Scott.

    My primary skill is PL/SQL but the only information I found on Oracle's site to call a web service from a 10g Form was creating a jar file and importing the java class. Since I don't want to ask our corporate IT to make changes on the UNIX box for the jar files I went a different route.
    I use UTL_HTTP.BEGIN_REQUEST to call a URL then load I load the data to a table as a CLOB since we have more than 4000 characters. Now I need to parse the XML and load it into a form. I have never done this so if there is a helpful site please let me know. I have looked at several sites but none do what I want.
    Thanks

  • Forms 10g runtime not working

    I have 9i DB. And I was using developer(forms)6i with it. I uninstalled dev-6i and installed Developer Suite 10g. I connected dev-10g with my 9i DB. I migrated my 6i forms using forms migration assistant built in Dev-10g. Now i can login dev-10g but as I run a form it goes to my Firefox browser and says
    "additional plugins are required to display all the media on this page".
    I've googled the problem and searched otn as well. found a lot of solutions but none of them worked for me. can anybody tell me a real solution which surely work. I am a beginner in oracle so please try to be clear so my little mind can understand. God bless you.
    Sorry I duplicated my post mistakenly.
    Edited by: Gul on Dec 16, 2012 10:47 AM

    As I click Install Plugins it says no plugins found and then I click install plugins manually and it takes me to this link
    http://www.oracle.com/technetwork/java/archive-139210.html
    there are so many links and then sub links in that page and i dont know which one i exactly have to install. i've tried some of them but nothing worked out.

  • How to save SQL result to file in forms 10g

    Hi All,
         I am using Oracle/forms 10g and need to create a file from a predefined sql statement .
    Just wondering if there is a build-in provided by oracle to export sql result to a file from Forms?.
    Your quick response will be of great help.
    Thanks
    Aalishan

    Aalishan,
    I guess it all depends on where you need to create the output file. You can use the database package UTL_FILE to write a file to the database server file system or you can use the Forms TEXT_IO built-in to write to the client file system. Is your intent to export the data in a multi-line block to a file? If so, TEXT_IO is what you want to use. The Forms help system has all the information and a few examples you will need to get started.
    Hope this helps.
    Craig...

  • How to run report on web in forms 10g

    dear all,
    i have a form which call a report in form 6i i used the run_object();
    how to run the report on web in forms 10g?
    is there any html settings?
    thanks
    Muhammad Nadeem

    Hello,
    <p>You can inspire from this article<br>It is a sample dialog that allows to launch any report with 0 up to 10 parameters.<br>Open the sample dialog, then you can see how the Run_Report_Object() built-in is used in the Start_Report program unit..<p>
    Francois

  • FRM : 41067 Cannot find menu item id ( forms 10g Menus/Forms Conversion )

    Hi All ,
    We have menus converted into forms 10g using the forms migration assistant FMA ( frmplsqlconv ) . Now , we had the menus (.mmb) which had used Shared Menus.
    After conversion observed that there were some duplicate copies of the shared menus created automatically and each reference where this shared menu was used was replaced by the newly created ones.
    Now , when I open the form that uses the menu I get the following error :
    FRM : 41067 Cannot find menu item id
    On debuggin observed the the above error was generated at :
    set_menu_item_property(SHARED_MENU.ITEM,.... )
    Not sure how this worked in forms earlier version and not working in 10g now.
    Could anyone please let me know how to go about to fix this issue and why is this happening at the first point.
    Is re-creating the menu from scratch the only option to resolve the issue ?
    Please advise ..
    Thanks ,

    Hi
    Error Message: FRM-41067: Cannot find Menu Item: invalid ID.
    Error Cause:An invalid ID was passed to a built-in subprogram.
    Action:Verify that a proper call to FIND_MENU_ITEM will be performed. Level: 20 Type: Errori think c1 returns null pls check ur Query in the cursor ; run & test if it returns data or not & check the name of the menu that should actually match with the name stored in the db.
    If the error still existing then u can get reide of it with a simple line check using FIND_MENU_ITEM as follow...
    PROCEDURE disable_menu_items IS
    mi_id MenuItem;
    val varchar2(10);
    BEGIN
    IF :Global.user_code '01' THEN
    IF :GLOBAL.VC_ROLE_CODE '01' THEN
    declare
    cursor c1 is
    select vc_menu_code,vc_menu_name from
    makess.mk_module_menu a where
    vc_module_code='06' and
    not exists(select vc_menu_code
    from makess.mk_roles_menu_inv b
    where vc_comp_code=:global.vc_comp_code
    and a.vc_menu_code=b.vc_menu_code
    and ch_role_code=:global.vc_role_code);
    BEGIN
    for crec in c1
    mi:=FIND_MENU_ITEM('MENU.MENUITEM');
      IF NOT ID_NULL(mi) THEN
    loop
    set_menu_item_property(crec.vc_menu_name,ENABLED,Property_false);
    end loop;
    END IF;
    END;
    :global.check:='N';
    END IF;
    END IF;
    END;Hope this helps...
    Regards,
    Abdetu...

  • Oracle forms 10g Parameter passing from forms to reports

    Hello Room,
    Please let me know what is wrong with this code. It is not passing parameter at all to the reports 10g parameter form from forms 10g, no matter what. I tried to delete the parameter from reports parameter form, I also tried to enable/disable restricted values from reports, I tried to hide the parameter from reports, but it is just not doing it.
    DECLARE
    pl_id PARAMLIST;
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status varchar2(20);
    report_job_id VARCHAR2(100);
    fill varchar2(100);
    reportname varchar2(200);
    ab varchar2(200);
    cursor c200 is select CONAME,LOCATIONMASTER.LOCNAME FROM USERCODETL,MULCOMP,LOCATIONMASTER
    WHERE MULCOMP.CO=USERCODETL.CO
    AND USERCODETL.USERID = SUBSTR(AB,1,50) AND USERCODETL.LOCCD = LOCATIONMASTER.LOCCD;
    begin
         AB := GET_APPLICATION_PROPERTY(USERNAME);
    OPEN C200;
    FETCH C200 INTO :block4.coname,:block4.locname;
    CLOSE C200;
    synchronize;
    pl_id:=GET_PARAMETER_LIST('paramlist');
    IF NOT ID_NULL(pl_id) THEN
    DESTROY_PARAMETER_LIST(pl_id);
    END IF;
    pl_id:=CREATE_PARAMETER_LIST('paramlist');
    Add_Parameter(pl_id, 'vcompany', TEXT_PARAMETER, :block4.coname);
         Add_Parameter(pl_id, 'vlocname', TEXT_PARAMETER, :block4.locname);
    repid := find_report_object('testreport');
    fill := GET_REPORT_OBJECT_PROPERTY(repid, report_server);
    reportname := GET_REPORT_OBJECT_PROPERTY(repid, report_filename);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'repsrv');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no'||'vcompany='||:block4.coname||'vlocname='||:block4.locname);
    v_rep := RUN_REPORT_OBJECT(repid,pl_id);
    WEB.SHOW_DOCUMENT('/reports/rwservlet?report='||reportname||'&desformat=pdf&destype=cache&userid=scott/tiger@servernew&paramform=yes');
    END;
    Please help. Thank you in advance.

    Hello Inol,
    Greetings !
    There seems to be a syntax error when I run your code:-
    REP-52251: Cannot get output of job ID 272 you requested on Fri Apr 08 02:37:25 GMT 2011.<P>REP-51026: No output for job 272
    when I run then command:-
    http://local-pc:8889/reports/rwservlet/showjobs
    Terminated with error: <br>REP-159: Syntax error on command line.
    Is there a error on your statement ?
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1) ||'?server=repsrv );
    it should be
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1) ||'?server=repsrv ' );
    then only it is getting compiled properly. A single quote in the end !
    And finally I changed this line
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no p_1='||:SP_USERCODE 'p_my_second_parameter='||:block.my_second_parameter);
    to this line
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no p_1='||:SP_USERCODE|| *'p*mysecond_parameter='||:block.my_second_parameter);
    as it is giving error where highlighted in bold Is it necessary to change and add a concatenation there ?_
    But... But... even though I compile it properly the code is getting executed and it is giving the above error. Please note the same.
    Also please tell me what should be the status of the following things in report builder 10g.
    1. Shall I remove the parameters vcompany and vlocname from the parameter form and keep it just in parameters of report , There is a third parameter which I want the user to input while running the report other than these 2 parameters ?
    2. Shall I restrict the parameter to predetermined values ?
    3. Shall I hide the first column of the parameter in report builder.
    I have also tried to simulate the execution parameters from batch to runtime and comm mode to synchronous and asynchronous and vice versa. I have also given command rwserver server = repsrv on my pc and also server pc. please let me know about this also whether I need to give this command every time ? I mean for every booting ?
    As this problem is faced by many people. I think it should work across the fly as given by you or rather corrected by you. I would also like to know is there any patch available for the same released by oracle, as I have read somewhere in the forum here which I cannot locate the thread now. I do not mind paying for support if I find the need ?
    Please help me further. Thank you.

  • Migration from Forms 9i to forms 10g (10.1.2)

    I am planning for migration activites from Forms 9i and Reports 9i to Oracle 10g Forms and Reports ( Rel 2 i.e. 10.1.2).
    What are new or removed from 10g forms and repots which was there in Forms 9i ?
    Is there any difference between these two versions ? If No then why there are two diff versions in 10g Forms itself (9.0.4 and 10.1.2)
    Which version of JInitiator I have to use for forms 10g ?

    The versioning scheme is confusing I agree. 9.0.4 and 10.1.2 are the real versions. 10g versions are marketing driven versions.
    10.1.2 is a major revision which means that you have to recompile your forms (if made in earlier versions of Forms) to make them run. 10.1.2 is built on a new version of the required support files (PLSQL for example).
    You can use any supported version of Jinitiator that you like.

Maybe you are looking for