Spell Checker Java BAdI Implementation
In IS-M/AMC, I am working on implementation of a Java BAdI, namely ICustSpellCheck, which enables Customer Specific Spell check instead of the standard MS-Word spell check. Could someone provide pointers on the java code that goes into different methods of this class?
I've been using JTidy for HTML syntax checking. It's a java port of Html Tidy, and it works pretty good. The documentation is pretty sparse, but I think they're intent was to have people refer to the HTML Tidy documentation anyway (JTidy mimics HTML tidy even down to the bugs). Also, it doesn't look like there's been much upkeep activity but....it's free. anyway, here's the link:
http://sourceforge.net/projects/jtidy
good luck.
Similar Messages
-
Java BAdI implementation for Customer specific Spell check
In IS-M/AMC, I am working on implementation of a Java BAdI, namely ICustSpellCheck, which enables Customer Specific Spell check instead of the standard MS-Word spell check. Could someone provide pointers on the java code that goes into different methods of this class?
Hi Dharmendra,
Check if this is your case..
Note
This Business Add-In is not suitable for checking individual field content in an installed base, or installed base component: To do this, see Business Add-In: Additional Checks When Modifying Installed Base Headers and Business Add-In: Additional Checks When Modifying Components.
Regards.
Manuel -
BAPI Check in BADI Implementation
Dear All,
We have made an enhancement through BADI in ME21N / ME22N transaction like validating certain entries, in that I am checking the t-codes ME21, ME21N, ME22 and ME22N. If it fails then PO wonu2019t create and populate some messages.
Now there is one custom program which creating POu2019s through calling BAPI in the program and itu2019s not validating the above as its calling through custom program.
(i.e SY-TCODE eq SE38)
Now how I should put a condition on BAPI in my BADI implementation?? If it is normal user exit, we can use runtime structure T158 and check the TCODE in that. But as I am using the BADI ME_PROCESS_PO_CUST with the method CHECK doesnu2019t have any transaction code info.
And currently I have an idea of using the GET / SET Parameters and need to set in the custom program and get that info in BADI? But I donu2019t know whether this idea good or not?? If anyone has any idea please let me know?
Thanks,
Raghu.Hi Raghu,
If sy-tcode ne 'ME21'
and sy-tcode ne 'ME21N'...
IMPORT lv_data ....
do processing...
endif.
Best regards,
Prashant -
One of my program's tasks is to spell check a large number of unique strings per session, each string approx. a sentence long.
I chose to use the Jazzy API to accomplish this. Unfortunately I found that this method takes significantly longer. A process taking 5 seconds takes about 30 minutes using the spell check.
//Spell Check class that implements Jazzy, an open source API
import com.swabunga.spell.event.*;
import com.swabunga.spell.engine.*;
import java.io.*;
import java.util.*;
public class SpellCheck implements SpellCheckListener
private final String DICTIONARY_FILE = "Dictionary/english.0";
private SpellChecker spellChecker;
private ArrayList listOfMisspelledWords;
public SpellCheck(String description)
createDictionary();
spellChecker.addSpellCheckListener(this);
// Check Spelling
StringWordTokenizer texTok =
new StringWordTokenizer(description, new TeXWordFinder());
populateListOfMisspelledWords(texTok);
printWordsInMisspelledList();
private void createDictionary()
File dict = new File(DICTIONARY_FILE);
try
spellChecker = new SpellChecker(new SpellDictionaryHashMap(dict));
catch (FileNotFoundException e)
System.err.println("Dictionary File '" + dict + "' not found! Quitting. " + e);
System.exit(1);
catch (IOException ex)
System.err.println("IOException occurred while trying to read the dictionary file: " + ex);
System.exit(2);
private void populateListOfMisspelledWords(StringWordTokenizer texTok)
listOfMisspelledWords = new ArrayList();
spellChecker.checkSpelling(texTok);
private void printWordsInMisspelledList()
Iterator it = listOfMisspelledWords.iterator();
while (it.hasNext())
System.out.println("Misspelled: " + it.next());
public void spellingError(SpellCheckEvent event)
event.ignoreWord(true);
listOfMisspelledWords.add(event.getInvalidWord());
public void check(String description){
description = description;
new SpellCheck(description);
}Is there a better way to perform this kind of spell check?
ThanksCheck Mail Preferences/Composing to see what is select with regard to Spell Check?
Ernie -
Dear Experts,
My forms & database version is
Forms [32 Bit] Version 10.1.2.3.0 (Production)
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
I need a PJC for Spell Checking.
I tried to download it from
http://forms.pjc.bean.over-blog.com/article-a-spell-checker-java-bean-38414462.html
but the link is not working.
Help me out, please...
Thanks in advance..Hello,
The Bean's material was uploaded on MegaUpload, that is closed, now. Unfortunately, I cannot managed to contact the Bean creator, so that it seems that this code is lost :(
<p>
As an alternative, here is the way I use (see at the very end of the article), using the MSWord internal spell check option.</p>
Francois -
Spell Checking API / Open Source ?
Hello!
Who has experience with an open source spell checking java api?
I hope, you can recommend an api.
I need dictionaries for english and german language.
regards
Harald.JTextCheck
http://linux.org.mt/projects/jtextcheck/
GSpell
http://specialist.nlm.nih.gov/nls/GSpell_web/ -
Hi Experts,
I want to modify List of Incomplete Appraisal Documents in appraisal template, for which I have found a BADI HRHAP00_GET_LIST_FLT (Displayed in further Badis section of RHHAP_BADI_OVERVIEW program).
I have created implementation of this BADI but I am unable to see BADI in OOHAP_BASIC transaction (I have checked all the enhancement areas).
Please let me know how can I configure the implementation of BADI HRHAP00_GET_LIST_FLT in OOHAP_BASIC T-code.
(I have also checked that BADI implementation was not getting triggered by simply activating the implementation)
Thanks in advance
Ninad shevadeHi Tarun,
I am facing the same problem can you please help me on the same.
I want to filter the appraisal templates how i can do?
Rajneesh -
Spell Check for Devnagari by creating new dictionary
In Simple text editor I want to do spell check for Devnagari. For this I need to create Dictionary for Devnagari words.
Can anyone guide me for this??
Thanks in advanceprometheuzz wrote:
sanjivoak wrote:
Any source Code link or help??
[http://www.google.com/search?q=create+spell+checker+java+code]
Didn't sink in the first time! -
Hi
Any one suggest spell check component to implement in ADF Faces page. I have collected details from web and sort listed JSpell and Jazzy components. For a large user hit site, which component will be apt to implement. My considerations are performance and maintainability.
Thanks in advance
VickeyHi Vicky,
Were you able to implement this?
Any help wll be appreciated
Abhishek -
Spell checker Functionality to be Implemented in a Oracle Ebiz Custom form
Hi,
I have tried implementing the Spell checker functionality in one of our Custom form,I used the OLE2 Built in Package in forms 6i to invoke the Spell checker functionality in Microsoft word but i am getting an error,Could anyone please help me in implementing the functionality?
I used the following procedure to Implement the spell checker functionality in Forms 6i and registered the same in Oracle Applications 11i,
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;
I am getting the following error,
*305501:non-ORACLE exception*
I get this error exactly after the following line of the procedure,
my_application := ole2.create_obj ('WORD.APPLICATION');
This Spell check functionality works fine when implemented in a standalone form(When a form is ran from the Form Builder),Facing issue only when it is registered in the Oracle applications 11i.
I searched various Forums,But i unable to find any solution,Expecting your help on the same asap.
Thanks,
Venkat
Edited by: 946005 on Jul 12, 2012 3:47 AMHi Raja,
Thanks for the Reply..
Thanks a lot for your quick and efficient responses.
But Iam unable to figure out how to implement this auto save functionality in this BSP Applicaition. If anyone has worked on this BSP Application <b>HAP_DOCUMENT</b>, can you please tell me how to do this auto save functionality. Is it possible that when I give this popup to save using java script and when the User clicks on OK, can I get the return code for this and use it to trigger the auto save functionality? And where exactly do I have to code this. Because the code here is bit confusing and the pages are called dynamically, even Iam unable to figure out the Button Id. Can anyone please help me out on this. This is a very urgent requirement.
As specified by you, I have used this code to give the popup.
<script type="text/javascript">
function alertUser()
alert('Please Save the changes by clicking Save button');
window.setInterval("alertUser()",300000);
</script>
Can I use the same code for save also, like this:
<script type="text/javascript">
function autosave()
htmlbSL(this,2,'SAVE:SAVE');
window.setInterval("autosave()",300000);
</script>
I was trying with this but it is not working.
Regards,
Raju
Message was edited by:
Narayana Raju Sampathirao -
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.KHere 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' ); -
Spell check in Web Dynpro for Java?
Hi Experts,
I have a requirement from our client to have Spelling Checking integrated with our custom Web Dynpro Java application as we have quite a few free text fields that needs to be completed.
We are quite perplexed with this as we are not aware of any such thing available.
Do you perhaps know of how to impliment such an option - presuming that it is available?
Kind Regards,
ChristiaanHi
Promise this time u will not say "Thanks for nothing".(It might we don't have any reply for that or most of time question doesn't contain full explanations )
Check FormattedTextEdit UI element (Just check it might helpful , available in CE versions onlyl)
Webdynpro doesn't have such kind of inbuilt feature.
See this [thread |Spell Check -] ,[this |http://jazzy.sourceforge.net/] and [this|http://foundeo.com/spell-checker/?gclid=CJHhuf31sJkCFRMupAodqUFs6A] for further input
Best Regards
Satish Kumar -
How can a spell checker be so bad?
I did not have high expectations for the spell checker built into RoboHELP, but in ac
tual use, this "tool" is next to useless. Examples of words it flags as misspelled: Microsoft
(it wants Micro soft), toolbar (it wants tool bar), hyperlink (it wants hyper link), and the list goes on an one, with each new example seeming more absurd than the last. Why bother including a spell checker if what you're going to offer the user is garbage, pure and simple?How would you deal with “There are some one of which is....”. Admittedly this is a bad example and there should be a comma between "some" and "one" but if this is left out, your spell checker would change it to "someone" which is incorrect. Anyway the point I am trying to make is that producing a generic spell checker that meets everyone's needs is a task I'll never want to undertake. I'm really not trying to defend RoboHelp's spell checker, just try to make you see that it is not as easy as it first looks
Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.
Follow the RoboColum(n) on Twitter -
Does somebody have an idea of how to write a spell checker in Java in that do one have to obtain a dictionary file or what.
Where in the application do I embed the dictionary and where can one get the English words file or somethingim not sure exactly wat ur asking .. but as far as i understood ur Qs .... there is a default unix dictionary file which has approximately 45000 words and unix utility uses it .... try that.... and if u dont use a dictionary .. what wud u compare ur misspelled words against ?
-
Can we implement any spell check against Forms/OAF Page screen fields
Hi,
I know its a weird requirement, but any chance that we can achieve this functionality?
We nee to do the spell check on few fields in forms/OAF Pages. Any guidance is very much appreciated.
thanks,
Rajkiran.Hi Rajkiran,
There is a spell checker for ie :
http://www.iespell.com/
Hope this helps.
Kristofer Cru
Maybe you are looking for
-
Ios7 on iphone 4 - apps wont download and cant open iTunes
Help! Downloaded ios7 trouble free but now can't download any apps or acces itunes. Really regret jumping so quickly, can find no advantages and it looks so childlike.
-
One of my apps wont update and says installing on my phone. I get a message on my phone to check itunes store for the problem but I cant find anything in itunes store to help me
-
Vo Substitution - not working on one client machine
recently deployed a standard VO substitution for a simple table region. I also added (via personalization) an additional column with a MessageStyledText region. I deployed the new code, used the JDev jpximport.bat to deploy the substitution, and boun
-
Hi I hava some servers that use log4j to log in shared folder. i want that every server will create his own log file with his host name. I'm using log4j.xml to configure the appender and I want to use variable to create dynamic file name. Could it pa
-
i purchase music and videos from itunes now, unable to play them or view them keep askng for my password and when i put my password tells me you forgot you password! can someone help