How to implement the spell check in oracle forms 10g or 6i...

How to implement the spell check in oracle forms.
Is there any different method is there.
Please help me....
Praveen.K

Here is one different from Jspell..
In 6i client/server you can call MS Word spell checker using OLE. Below sample code for 6i.
For 10g you will need webutil to use same code. install webutil and just replace "OLE2." with "CLIENT_OLE2."
PROCEDURE spell_check (item_name IN VARCHAR2)
IS
   my_application   ole2.obj_type;
   my_documents     ole2.obj_type;
   my_document      ole2.obj_type;
   my_selection     ole2.obj_type;
   get_spell        ole2.obj_type;
   my_spell         ole2.obj_type;
   args             ole2.list_type;
   spell_checked    VARCHAR2 (4000);
   orig_text        VARCHAR2 (4000);
BEGIN
   orig_text := NAME_IN (item_name);
   my_application := ole2.create_obj ('WORD.APPLICATION');
   ole2.set_property (my_application, 'VISIBLE', FALSE);
   my_documents := ole2.get_obj_property (my_application, 'DOCUMENTS');
   my_document := ole2.invoke_obj (my_documents, 'ADD');
   my_selection := ole2.get_obj_property (my_application, 'SELECTION');
   ole2.set_property (my_selection, 'TEXT', orig_text);
   get_spell :=ole2.get_obj_property (my_application, 'ACTIVEDOCUMENT');
   ole2.invoke (get_spell, 'CHECKSPELLING');
   ole2.invoke (my_selection, 'WholeStory');
   ole2.invoke (my_selection, 'Copy');
   spell_checked := ole2.get_char_property (my_selection, 'TEXT');
   spell_checked :=SUBSTR (REPLACE (spell_checked, CHR (13), CHR (10)),1,LENGTH (spell_checked));
   COPY (spell_checked, item_name);
   args := ole2.create_arglist;
   ole2.add_arg (args, 0);
   ole2.invoke (my_document, 'CLOSE', args);
   ole2.destroy_arglist (args);
   ole2.RELEASE_OBJ (my_selection);
   ole2.RELEASE_OBJ (get_spell);
   ole2.RELEASE_OBJ (my_document);
   ole2.RELEASE_OBJ (my_documents);
   ole2.invoke (my_application, 'QUIT');
   ole2.RELEASE_OBJ (my_application);
END;Call it like this: SPELL_CHECK ('BLOCK.MY_TEXT_ITEM' );

Similar Messages

  • How to get the report server name in Forms 10g.

    How to get the report server name in Forms 10g.
    I'm using the Application Server 10g 10.1.2.

    Hello,
    I do not think that you can get this value from anywhere. A solution is to put the Reports server name in an environment variable stored in the /forms/server/default.env file, then to query it at Forms runtime with the TOOL_ENV.Getvar() built-in.
    Francois

  • How to default the spell checker to Britain?

    when I set language in pages to spell check in English Britain and close a document and re-open another blank document the spell checker reverts back to the English setting(US). Is there a way to save the changes I make in inspector so that I can set to a default setting of Britain?.

    Welcome to Apple Discussions
    Go to System Preferences > International > Language & drag British English to the top. You may need to log out & back in for it to take effect.

  • How to get the file name from Oracle B2B 10g

    Hi My requirement is I am getting a CSV file from Trading partner, I am using oracle 10g b2b to translate the data.
    In my BPEL 10g I am using AQ adapter to get the message from IP_IN_QUEUE.
    Now I want to get the file name Eg: SampleFile.dat of the CSV file in my BPEL process.
    I tried using the b2b.filename property in the receive activity and it is not getting the file name.
    <sequence name="main">
        <receive name="Receive_Note" partnerLink="GetB2BNote"
                 portType="ns1:Dequeue_ptt" operation="Dequeue"
                 variable="Receive_Note_Dequeue_InputVariable"
                 createInstance="yes">
                 <bpelx:property name="b2b.fileName" variable="WriteFileName"/>
        </receive>
      </sequence>
    Can you help me to get the file name from Oracle b2b 10g ?
    Thanks,
    b2b user

    Hi My requirement is I am getting a CSV file from Trading partner, I am using oracle 10g b2b to translate the data.
    In my BPEL 10g I am using AQ adapter to get the message from IP_IN_QUEUE.
    Now I want to get the file name Eg: SampleFile.dat of the CSV file in my BPEL process.
    I tried using the b2b.filename property in the receive activity and it is not getting the file name.
    <sequence name="main">
        <receive name="Receive_Note" partnerLink="GetB2BNote"
                 portType="ns1:Dequeue_ptt" operation="Dequeue"
                 variable="Receive_Note_Dequeue_InputVariable"
                 createInstance="yes">
                 <bpelx:property name="b2b.fileName" variable="WriteFileName"/>
        </receive>
      </sequence>
    Can you help me to get the file name from Oracle b2b 10g ?
    Thanks,
    b2b user

  • How to replace the forms6i menu parameter in forms 10g after migration

    Hai,
    We have forms6i application and we are going to migrate forms6i into forms 10g .The forms 6i have the menu userdefine parameter.But forms 10g don't have the option. so please send me the suggesstion what we can do .Is there any alternative way.How to bring the same funtionality in forms 10g after the migration.pls reply me
    THANKS

    We had the same problem - you could develop a new form just to accept the necessary user input, but that might be overkill. We used Forms Editors, displaying them with an appropriate startup text e.g. 'Parameter1='. The user then types in the parameter, then we check the new Editor text and pull out the info we need.

  • How to call a .rpt file from oracle form 10g

    I need to call a .rpt file from oracle form 10g. please suggest what to do for this

    Hi,
    onlz rdf and rep files are Reports executables. Convert rpt to rep and you are file (Reports has a conversion utility in the bin directory)
    Frank

  • Spell check in oracle form

    spell check is done in oracle forms by clicking a button using client_ole.
    the code behind the button is
    DECLARE
    application CLIENT_OLE2.OBJ_TYPE;
    args CLIENT_OLE2.LIST_TYPE;
    docs CLIENT_OLE2.OBJ_TYPE;
    doc CLIENT_OLE2.OBJ_TYPE;
    selection CLIENT_OLE2.OBJ_TYPE;
    sel_text varchar2(2000);
    var_text varchar2(2000);
    start_pos number;
    PROCEDURE Close_Word IS
    BEGIN
    args := CLIENT_OLE2.CREATE_ARGLIST;
    CLIENT_OLE2.ADD_ARG(args, 0);
    CLIENT_OLE2.INVOKE(doc, 'Close', args);
    CLIENT_OLE2.DESTROY_ARGLIST(args);
    CLIENT_OLE2.RELEASE_OBJ(selection);
    CLIENT_OLE2.RELEASE_OBJ(doc);
    CLIENT_OLE2.RELEASE_OBJ(docs);
    synchronize;
    END Close_Word;
    BEGIN
    application:=CLIENT_OLE2.CREATE_OBJ('Word.Application');
    if :B_HSN_ITEM_PRODUCT_INFO.PRODUCT_INFO1 IS NOT NULL THEN
    CLIENT_OLE2.SET_PROPERTY(application,'Visible',0);
    docs := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Documents');
    doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
    selection := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Selection');
    -- Info 1
    CLIENT_OLE2.SET_PROPERTY(selection, 'Text',:b_hsn_item_product_info.product_info1||chr(10));
    CLIENT_OLE2.INVOKE(doc, 'CheckSpelling');
    BEGIN
    sel_text:=CLIENT_OLE2.GET_CHAR_PROPERTY(application, 'Selection');
    --upgrade added condition to see if sel_text is null or not
    if length(sel_text) > 1 then
    var_text :=SUBSTR(sel_text, 1, (NVL(LENGTH(sel_text), 0)) - 1 );
    var_text := replace(var_text,chr(146),chr(39));
    var_text := replace(var_text,chr(13),chr(10));
    :B_HSN_ITEM_PRODUCT_INFO.PRODUCT_INFO1 := var_text;
    end if;
    EXCEPTION
    WHEN VALUE_ERROR THEN
    Close_Word;
    emessage('Spell check error. Text length cannot exceed 2000 characters. Any changes made during spell check were not applied.');
    RAISE Form_Trigger_Failure;
    WHEN OTHERS then
    emessage(SQLERRM);
    raise;
    END;
    Close_Word;
    end if;
    ---info2
    if :B_HSN_ITEM_PRODUCT_INFO.PRODUCT_INFO2 IS NOT NULL THEN
    CLIENT_OLE2.SET_PROPERTY(application,'Visible',0);
    docs := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Documents');
    doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
    selection := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Selection');
    -- Info 1
    CLIENT_OLE2.SET_PROPERTY(selection, 'Text',:b_hsn_item_product_info.product_info2||chr(10));
    CLIENT_OLE2.INVOKE(doc, 'CheckSpelling');
    BEGIN
    sel_text:=CLIENT_OLE2.GET_CHAR_PROPERTY(application, 'Selection');
    --upgrade added condition to see if sel_text is null or not
    if length(sel_text) > 1 then
    var_text :=SUBSTR(sel_text, 1, (NVL(LENGTH(sel_text), 0)) - 1 );
    var_text := replace(var_text,chr(146),chr(39));
    var_text := replace(var_text,chr(13),chr(10));
    :B_HSN_ITEM_PRODUCT_INFO.PRODUCT_INFO2 := var_text;
    end if;
    EXCEPTION
    WHEN VALUE_ERROR THEN
    Close_Word;
    emessage('Spell check error. Text length cannot exceed 2000 characters. Any changes made during spell check were not applied.');
    RAISE Form_Trigger_Failure;
    WHEN OTHERS then
    emessage(SQLERRM);
    raise;
    END;
    Close_Word;
    end if;
    --info 3
    if :B_HSN_ITEM_PRODUCT_INFO.PRODUCT_INFO3 IS NOT NULL THEN
    CLIENT_OLE2.SET_PROPERTY(application,'Visible',0);
    docs := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Documents');
    doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
    selection := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Selection');
    -- Info 1
    CLIENT_OLE2.SET_PROPERTY(selection, 'Text',:b_hsn_item_product_info.product_info3||chr(10));
    CLIENT_OLE2.INVOKE(doc, 'CheckSpelling');
    BEGIN
    sel_text:=CLIENT_OLE2.GET_CHAR_PROPERTY(application, 'Selection');
    --upgrade added condition to see if sel_text is null or not
    if length(sel_text) > 1 then
    var_text :=SUBSTR(sel_text, 1, (NVL(LENGTH(sel_text), 0)) - 1 );
    var_text := replace(var_text,chr(146),chr(39));
    var_text := replace(var_text,chr(13),chr(10));
    :B_HSN_ITEM_PRODUCT_INFO.PRODUCT_INFO3 := var_text;
    end if;
    EXCEPTION
    WHEN VALUE_ERROR THEN
    Close_Word;
    emessage('Spell check error. Text length cannot exceed 2000 characters. Any changes made during spell check were not applied.');
    RAISE Form_Trigger_Failure;
    WHEN OTHERS then
    emessage(SQLERRM);
    raise;
    END;
    Close_Word;
    end if;
    -- Info 4
    IF :B_HSN_ITEM_PRODUCT_INFO.PRODUCT_INFO4 IS NOT NULL THEN
    CLIENT_OLE2.SET_PROPERTY(application,'Visible',0);
    docs := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Documents');
    doc := CLIENT_OLE2.INVOKE_OBJ(docs, 'add');
    selection := CLIENT_OLE2.GET_OBJ_PROPERTY(application, 'Selection');
    CLIENT_OLE2.SET_PROPERTY(selection, 'Text',:b_hsn_item_product_info.product_info4||chr(10));
    CLIENT_OLE2.INVOKE(doc, 'CheckSpelling');
    BEGIN
         sel_text:=CLIENT_OLE2.GET_CHAR_PROPERTY(application, 'Selection');
    --upgrade added condition to see if sel_text is null or not
    if length(sel_text) > 1 then
    var_text :=SUBSTR(sel_text, 1, (NVL(LENGTH(sel_text), 0)) - 1 );
    var_text := replace(var_text,chr(146),chr(39));
    var_text := replace(var_text,chr(13),chr(10));
    :B_HSN_ITEM_PRODUCT_INFO.PRODUCT_INFO4 := var_text;
    end if;
    EXCEPTION
    WHEN VALUE_ERROR THEN
    Close_Word;
    eMessage('Spell check error. Text length cannot exceed 2000 characters. Any changes made during spell check were not applied.');
    RAISE Form_Trigger_Failure;
    END;
    Close_Word;
    END IF;
    -- exit MSWord
    CLIENT_OLE2.INVOKE(application,'Quit');
    CLIENT_OLE2.RELEASE_OBJ(application);
    EXCEPTION
         when OTHERS then
         emessage(SQLERRM);
         raise;
    END;
    but i am getting this error. can you please tell me whats the problem.
    Exception in thread "AWT-EventQueue-7" java.lang.NoClassDefFoundError
         at oracle.forms.webutil.ole.OleFunctions.create_obj(Unknown Source)
         at oracle.forms.webutil.ole.OleFunctions.getProperty(Unknown Source)
         at oracle.forms.handler.UICommon.onGet(Unknown Source)
         at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Edited by: user565034 on Jul 14, 2009 11:59 AM

    Your code works for me in Forms 10.1.2.3 and JRE Java Plug-in 1.5.0_15 with IE 7 ...
    I am also using jacob.jar 1.8 ....
    Why do not you try what I did ? Use the webutil demo form to test basic OLE functionality first ... then add your code to the Form ... that should test your webutil configuration ...
    http://www.oracle.com/technology/products/forms/htdocs/webutil/Webutil_demo.zip
    Let me know how that goes ...

  • How to run an XML Report from Oracle Forms 10G

    Hello Friends,
    I am in need of showing a xml report output through a button press trigger in Oracle Forms10G.
    I have designed the report in XML Publisher and the report looks fine.I found few scripts useful in running the Oracle Report from Oracle forms10G like Run_Report_Object.But I am not aware of any script that could run a XML report and show the output directly from a Form.
    All I want is to run a XML report from an Oracle Form with a button press trigger and show the output in an html version.
    Can this be achieved?
    If so, Kindly advise as this is an immediate work.
    Regards,
    Badrul.

    Hi,
    If I am not wrong the XML publisher is same as BI publisher ...
    There is one document which explains how to integrate using web service
    You want to check this
    http://www.oracle.com/technology/products/xml-publisher/docs/Forms_BIP_v22.pdf
    or you can also try web.show_document ..

  • How to fetch data in Excel throuth oracle forms 10g on client machine

    I am using developer suite 10g forms and i want to fetch data in excel through forms 10g on client machine
    presently i m using OLE for fetching the data in excel , it is working fine but it generates the excel file on server machine and i want get the output excel on the client machine. Is there any parameter to set the destination {Server or Client} which decides the location of output file. If such is the case please let me know or please suggest what should i do. Please help me with proper solution.
    thanks
    Manoj

    If you have an "urgent" issue, I highly encourage you to contact Oracle Support. The forum probably isn't going to be your best source for "urgent" issues.
    http://www.oracle.com/us/support/oracle-support-services-359636.html
    https://support.oracle.com
    This will be especially important if you are new to any of the products as you will likely need documentation and/or product updates in order to ensure the most stable environment possible.
    There are a few publicly available documents which may help to get you started. In any case, these are just examples. They may or may not work to your liking. Further, in some cases they may not work at all. Many of the examples online are often outdated and do not function exactly as documented against other versions. Here is one:
    http://www.oracle.com/technetwork/developer-tools/forms/howto-ole-090332.html
    Additional documentation for using WebUtil is included in the Forms Builder online help. An update to the Builder Help files can be downloaded from here. Be sure to carefully review the included ReadMe before attempting to use them.
    http://docs.oracle.com/cd/B25016_08/doc/dl/web/forms_help/frmhelp_update.zip

  • How to Edit the Title (file name) on forms 10g Screen.

    Hi ,
    How can one edit the Title ,and <(file name)> on forms 10g Screen ....
    I tried editing through the forms module preperty palette , but could n't change the Title, or file name on forms menu screen ...
    I guess , the entries are made through some other means...
    Please let me know on how to do this .
    Need a quicker reply ..
    Thanks in Advance
    Sanu

    using the below code too not getting me the new names entered by me ... still the old title names are comingWhat do you mean by new nemes? It will return you the actual file name which is saved in phycical location and form name will return you the module name which displays when you open forms in builder.
    Or you mean something else then its better to provide any example..like what is happening actually with you.
    -Ammad

  • How to disable the Calculation mode in oracle form

    hi All,
    i have 2 text items in one block.say TEXT_A, TEXT_B
    TEXT_B is showing the SUM of TEXT_A where TEX_A is poulated by DB query and showing UOM(unit of measure for an item).
    But
    on some condition, i dont want to do SUM (like if the UOM are differents).
    how can we disable or off the calculation mode for TEXT_B.
    Nitn

    hi Craig
    thanks for your reply but its not working-
    please agn read the scenario , i have added more details -
    suppose in a single block we have 3 TEXT_ITEM
    I have one text item TEXT_A which is populated by EXECUTE_QUERY .TEXT_A having 3 lines and values may be-
    first case
    KG
    KG
    KG
    Second case
    KG
    KG
    METER
    TEXT_B also having 3 lines and USer can enter values in this field.
    TEXT_C is the sum of text_B and TEX_C is having one line as to show sum of B .
    i have set the TEXT_C property palette properties to show sum of TEXT_B and it is working fine.
    now if the values are same in TEXT_A, TEXT_C should show SUM of text_b.
    but if it is second case if the values are different then TEXT_C should not poulate .
    do we have any SET_ITEM_PROPERTY(':blk_name',???????????,prperty_false)
    ?????????= so it can disable the Summary function whihc i set from property pallettle
    hoping for reply.

  • [SOLVED] After post trigger go to the specific item. (Oracle Forms 10g)

    I have this layout
    http://img339.imageshack.us/img339/975/capturetbo.png
    and a post trigger insert and update
                    IF  :item1 IS NULL
              AND :item3 IS NOT NULL THEN
                        alert_id := FIND_ALERT('blank_alert');
                        SET_ALERT_PROPERTY(alert_id,ALERT_MESSAGE_TEXT,'Item3 must have a value.');
                        v_alert := SHOW_ALERT(alert_id);          
                        RAISE Form_trigger_Failure;
              END IF;My problem was as it fires, the cursor will be on the item1.
    I've already use
    SET_ITEM_INSTANCE_PROPERTY
    NEXT_ITEM
    GO_ITEMbut it was all illegal. The cursor must be in the item3.
    Don't question me why I do not set the item3 to required and why post triggers.
    It is just that. It is the requirement.
    Any bright Idea? Thanks!
    And even when-validate-item triggers. It must be post triggers.
    Is it possible? Thanks.
    Edited by: reppihsrow on Feb 19, 2013 6:02 PM

    POST-TRIGGER
    DECLARE
    timer_id                       TIMER;
    one_second                       NUMBER := 1000;
    BEGIN
    <validations . . .>
    timer_id := CREATE_TIMER('timer', one_second,NO_REPEAT);
    END;WHEN-TIMER-EXPIRED
    GO-ITEMBright idea! Million thanks!
    Note: I have an typo error in my code. It should be
    IF  :item3 IS NULL
              AND :item1 IS NOT NULL THENAgain. Thanks!

  • How to use Java Script in Oracle Forms 10g

    Hello,
    Appreciate if anyone could help me using Java Script in Oracle Forms 10g?
    Thanks
    GM

    Thank you for your reply. I was reading on the metalink that we could use the to call the java script from oracle Forms 10g (Doc ID 265863.1)
    Example:
    WEB.SHOW_DOCUMENT ('javascript:void(window.open("http://www.oracle.com","","location=no,toolbar=no,menubar=no,status=no,"));self.close()','_blank');
    I tried it but it did not open the any window as it claims. Am I missing anything? Is there any IE related setting which I need to modify for the above to work?
    Regards
    GM

  • 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

  • Calling BO XI Release 2 from Oracle Forms 10g

    Post Author: alexre
    CA Forum: Integrated Solutions
    Hello everybody,
    We are going to migrate the Oracle Database and the Oracle forms application to 10g to one of our clients but he wants continue using the BO so he is going to migrate BO v 4.1.6 to XI Release 2.
    Because I am not a BO specialist I would like to know
    Is it possible to publish the BO report on the WEB?
    Can I call the report directly from Oracle Forms 10g (WEB) and pass the parameters?
    Can you advice any documents related to this topic?
    Thank you in advance for your help.
    Alex

    Post Author: jsanzone
    CA Forum: Integrated Solutions
    Alex,
    Your first question leads to a "it depends" answer.  If you want to publish static content, then the report can be ran and saved as PDF, then that PDF can be made available as a link in another web server. If you want to publish dynamic content, then "no", but read on because you'll see in answer to #2 and #3 it becomes "yes".
    Your second question about calling the report directly from Oracle Forms and pass the parameters is a resounding yes!  However, you will need to have an enduring knowledge of a concept called "opendocument" within the Business Intelligence tool as well as an authentication strategy to make it all work.
    Here is the answer to your third question, please following this link:  http://support.businessobjects.com/communityCS/TechnicalPapers/be_xi_r2_opendocument.pdf.asp
    Good luck!

Maybe you are looking for