How to remove special characters while typing data in edit cell in datagrid in flex4

Hi Friends,
I am facing this problem "how to remove special characters while typing data in edit cell in datagrid in flex4".If know anyone please help in this
Thanks,
Anderson.

Removes any characters from
@myString that do not meet the
provided criteria.
CREATE FUNCTION dbo.GetCharacters(@myString varchar(500), @validChars varchar(100))
RETURNS varchar(500) AS
BEGIN
While @myString like '%[^' + @validChars + ']%'
Select @myString = replace(@myString,substring(@myString,patindex('%[^' + @validChars + ']%',@myString),1),'')
Return @myString
END
Go
Declare @testStr varchar(1000),
@i int
Set @i = 1
while @i < 255
Select
@TestStr = isnull(@TestStr,'') + isnull(char(@i),''),
@i = @i + 1
Select @TestStr
Select dbo.GetCharacters(@TestStr,'a-z')
Select dbo.GetCharacters(@TestStr,'0-9')
Select dbo.GetCharacters(@TestStr,'0-9a-z')
Select dbo.GetCharacters(@TestStr,'02468bferlki')
perfect soluction

Similar Messages

  • How to remove special characters in a particular column

    Hello,
    i have a csv feed and i load it into a sql table (the sql table has all varchar data type fields)
    feed data looks like (just sampled 2 rows but my file has thousands of like this)
    "K" "AIF" "AMERICAN IND FORCE" "FRI" "EXAMP" "133" "DISPLAY" "505250" "MEDIA INC." 03/01/10" "INV31202" ".00" ".00" "0.00" "ALLO" ;
    "K" "AIF" "AMERICAN IND FORCE" "THU" "TRTH" "123" "MUN MARCH 2010" "505099" "SOCIALTYZE" "03/01/10" "1308" "40,282.32" "40,282.32" "45564.64" "DIS" ;
    some times i got some special characters in my table column (example: in my invoice no column some time i do have # or ! kind of invalid characters ) so how can i remove some kind of special characters in my column
    once it is eliminated then i can write it to new table (with correct data format such as integer)
    could some one please tell me how can i remove special character in a column of particular table
    thanks in advance
    asita

    Removes any characters from
    @myString that do not meet the
    provided criteria.
    CREATE FUNCTION dbo.GetCharacters(@myString varchar(500), @validChars varchar(100))
    RETURNS varchar(500) AS
    BEGIN
    While @myString like '%[^' + @validChars + ']%'
    Select @myString = replace(@myString,substring(@myString,patindex('%[^' + @validChars + ']%',@myString),1),'')
    Return @myString
    END
    Go
    Declare @testStr varchar(1000),
    @i int
    Set @i = 1
    while @i < 255
    Select
    @TestStr = isnull(@TestStr,'') + isnull(char(@i),''),
    @i = @i + 1
    Select @TestStr
    Select dbo.GetCharacters(@TestStr,'a-z')
    Select dbo.GetCharacters(@TestStr,'0-9')
    Select dbo.GetCharacters(@TestStr,'0-9a-z')
    Select dbo.GetCharacters(@TestStr,'02468bferlki')
    perfect soluction

  • Remove special characters from incoming data

    Hi Varun, You could use either of below.. REG_REPLACE(YOUR_INPUT_STR,^[A-Za-z0-9 ],NULL)  -- Replaces all non-alphanumeric with null
       REG_EXTRACT(YOUR_INPUT_STR,[A-Za-z0-9 ]) -- Extracts only alphanumeric data -Rajani

    i have special character coming in the source data and i want to remove it before loading into target, currently i am getting one special character , it may come as some other type of special character  other than alpha numeric. so how to remove those special characters from data and load the alphanumeric data into target.

  • How to remove special characters in xml

    Dear friends,
    How to remove the special character  from the xml. I am placing the xml file and  fetching through file adapter.
    The problem is when there is any special character in xml. i am not able to pass to target system smoothly.
    Customer asking schedule the file adapter in order to do that the source xml should not have any special charatcters
    How to acheive this friends,
    Thanx in advance.
    Take care

    Hi Karthik,
    Go throgh the following links how to handle special character
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42
    Restricting special characters in XML within XI..
    Regards
    Goli Sridhar

  • How to remove Special characters in XSLT

    Hi
    I have one issue in XSLT transformation,in my input xml I have the < and > symbols but while in response it is coming as &lt due to this we lose some data . so is there any functions to get the symbols.
    Regards
    Mani

    Hi Eric,
    Thanks for reply,I am able to get the <,>,&etc.. in response by using "disable-output-escaping='yes'" but apos and cap symbols, unable to get in the response,how to get these.
    Regards
    Mani

  • Re: remove special characters from incoming data

    Dear Varun Kumar, Please use this logic. REG_REPLACE(INPUT FIELD,'[^A-Za-z0-9]' ,'')Only Characters and Numbers it will come. I Tried Same Logic it working. Please let me Know. Thanks & RegardsKasireddy+966545281845

    Hi Varun, You could use either of below.. REG_REPLACE(YOUR_INPUT_STR,^[A-Za-z0-9 ],NULL)  -- Replaces all non-alphanumeric with null
       REG_EXTRACT(YOUR_INPUT_STR,[A-Za-z0-9 ]) -- Extracts only alphanumeric data -Rajani

  • Handling Special characters in the data set

    Hi All,
    I am facing an issue in hadling special characters while writing data to a flat file.
    The data fetched in toad query is *44CAÑADO* (with some specail character over N), but when this same data is written in textpad using UTL_FILE.put_line, the data written is converted to *44CAÑADO*.
    Can anyone please help me how to handle these special charatcers so that the same data is written in text file as well.
    Regards,
    Shruti

    To find the database characterset, please see (Character Sets & Conversion - Frequently Asked Questions [ID 227330.1] -- 2. What is the database character set used for and how is it set?)
    For your issue, please see these MOS docs.
    UTL_FILE Adds ^U (Control U) NAK Character At the End of the Line. [ID 604150.1]
    Character set conversion when using UTL_FILE [ID 227531.1]
    NLS_LANG Explained (How does Client-Server Character Conversion Work?) [ID 158577.1] -- 5.8 UTL_FILE is writing / reading incorrect characters.
    Thanks,
    Hussein

  • Need to remove special characters

    Hello All
        Some input is comming from source field, if any special characters comming from source field, I need remove special characters and send data source to target field. please suggest me how will i do .
    Thanks&Regards,
    Venkat

    Hi Venkat,
    check this thread.
    Handling Special Characters
    check the document :
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42
    Depends upon encoding methods handling will differ,
    you can use ISO-8859-1 or ISO-8859-2 instead of UTF-8 for some special characters.
    check this blog:
    /people/ulrich.brink/blog/2005/08/18/unicode-file-handling-in-abap
    cheers
    Sunil

  • Sql: remove special characters

    Hello!
    maybe someone has a hint for me how to remove special characters such as tab/new line characters from columns?
    Thanks in advance!
    Tiberius

    Hmm... actually it's straight forward:
    drop table mytexts
    create table mytexts (comment varchar(50))
    insert into mytexts values ('This is a standard text!')
    insert into mytexts values ('There comes a TAB     <--')
    insert into mytexts values ('This is called a newline
    <--<')
    select * from mytexts
    | COMMENT                                            |
    | -------------------------------------------------- |
    | This is a standard text!                           |
    | There comes a TAB     <--                              |
    | This is called a newline
    <--<                     |
    3 rows selected (1375 usec)
    sqlcli db770=> select replace (replace(comment, '       '), '
    > ') as cleaned_comment from mytexts
    > ;
    | CLEANED_COMMENT                                    |
    | -------------------------------------------------- |
    | Thisisastandardtext!                               |
    | TherecomesaTAB<--                                  |
    | Thisiscalledanewline<--<                           |
    3 rows selected (1662 usec)
    Seems to work...
    regards,
    Lars

  • FTP ADAPTER: How to handle Special characters

    Hi All,
    We are running into issues with special characters while fpt'ing the file using FTP adapter.
    ex: japanese characters '東邦チタニウム株式会社' would look as '???????????' in the transferred file.
    The following steps are involved in the process.
    1. Reads the data from a database.
    2. Constructs an XML object.
    3. Transforms the data into ftp msg.- In this step the spl. characters are fine
    4. FTP's the msg.
    5. The file on FTP server has issues.
    Tried to change the file type to binary, UTF-8 etc.. but nothing worked.
    Any help/pointers will be highly appreciated.
    Thanks in advance.

    Hi Bhavishya,
    Apparently your SAP database isn't configured to support Unicode. That would be the first solution to your problem, but I can imagine it's a bit drastic to convert your DB.
    A second solution would be to encode the input description to ASCII before storing it in the database. When reading from the database, decode again to Unicode. This way, no information is lost. A suitable encoding would be Base64. e.g.
    String description = "šunday žebra";
    String descriptionBase64 = new sun.misc.BASE64Encoder().encode(
      description.getBytes("UTF-8")); // ""
    // store descriptionBase64 in the DB
    // later, when reading descriptionBase64 from the DB
    String description2 = new String(
      new sun.misc.BASE64Decoder().decodeBuffer(descriptionBase64), "UTF-8");
    Instead of using Sun's implementation, a better alternative is to use the open source implementation
    org.apache.commons.codec.binary.Base64 from Commons Codec . 
    The 3rd approach is indeed to normalize the description by replacing all special characters with their ASCII equivalent. A rather easy solution is as follows:
    String description = "šunday žebra";
    String descriptionNormalized = sun.text.Normalizer.normalize(
      description, sun.text.Normalizer.DECOMP, 0).replaceAll(
      "[^p{ASCII}]", "");
    sun.text.Normalizer decomposes the string, e.g. "éàî" becomes "e´a`i^", after which non-ASCII characters are being removed using a regular expression.Again, note that it's usually a bad idea to use sun.* packages, see note about sun.* packages. The above code only works with J2SE 1.4 and J2SE 5.0, but it breaks in J2SE 6.0 (where
    java.text.Normalizer became part of the public API ;-). A good open source implementation can be found here: ICU4J (com.ibm.icu.text.Normalizer). 
    Kind regards,
    /Sigiswald

  • Removing special characters

    Hi,
    I have to remove special characters from string and replace it with space.
    Kindly help its urgent.
    Thanks

    Hi,
    You Can use Overlay command for this.
    Syntax
    OVERLAY text1 WITH text2 [ONLY pattern].
    Effect
    Characters in the text1 variable are replaced by characters in the text2 data object which are there in the same location. If the ONLY addition is not specified, all blank characters in text1 are replaced. If the ONLY addition is specified, all characters are replaced that occur in the pattern data object, and upper and lowercase is taken into consideration. If the lengths of text1 and text2 are different, text1 is processed using the shorter length only.
    CONSTANTS initial_time TYPE t VALUE IS INITIAL.
    DATA: time TYPE t,
          text(4) TYPE c.
    text = '12'.
    time = text.
    write : time.
    Thanks,
    Reward If Helpful.

  • How to print Special Characters in Sap-Scripts

    How to print Special Characters in Sap-Scripts
    Thanks,
    Ravi

    Hi
    if u want print special characters we can use hot codes i.e '  '  (single inverted commas). in between these hot codes insert u r special characters.
    write    '    !@#$%^&*( )  '.
    for the above write statement output is
    output is   !@#$%^&*( )

  • How to write special characters in PDF using iText

    How to write special characters encoded with UTF-8 in PDF using iText.
    Regards,
    Pandharinath.

    I don't know what your problem is but that's almost certainly the wrong question to ask about it. Java (including iText) uses only Unicode characters. (You may consider some of them to be "special" if you like but Unicode doesn't.) And when it does that, they aren't encoded in UTF-8 or any other encoding.
    So can you describe your problem? That question doesn't make sense.

  • How to display special characters in Script...

    hi all,
    Can any one tell me how to display special characters in script...
    how to write in text element
    thanks in advance,
    prashant

    Hi Prashant ,
      What special characters would you like to include .
    There are a set of characters / icons /symbols that can be included in Script , for that open a window in edit mode and in the menu there will be an option called Insert  , here you can find a lot of characters/symbols that can be included .
    Regards,
    Arun

  • How to remove Existing dll while deploying biztalk schemas

    Hi Friends,
    How to remove Existing dll while deploying biztalk schemas.
    am getting error property schema dll is being used by other person.just like that..
    Thanks & Regards
    Rajiv

    Goto BizTalk admin console -- > If you know the BizTalk application where this dll is already deployed, select that application. Otherwise select "All Artifacts" --> Select "Resources" folder --> And remove the dll of the above property schema project
    by right clicking on the Artifacts and select remove
    Other option is go to "Schemas" folder of the above BizTalk application (again in admin console),  --> select the schema ---> right click the schema you wan to remove  (Property schema) and click remove.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Maybe you are looking for

  • URGENT*** Test Client testpoint not generated in WebLogic 10.3.0.0

    Hi, I have created very basic "Java EE 1.5 with support for jax-ws Annotations" web service and deploying in to web logic server 10.3.0.0. I am using Jdeveloper 11g for convert my java file to web service and deploying the same in to WLS directly fro

  • DOES IT WORK OR DOES IT NOT WORK? X-FI with VIS

    For crying out loud! Nothing but question after question. Could you people at least CHIME in with a NO or a YES as to whether or not you have the X-FI working with Vista OK Also, what level of functionality do you have and with what driver Come on. I

  • Use a second instance of Python

    Hi.. I hope that what i'll write won't be silly.. I need to run  a program that require a python interpreter with support for unicode UCS4. The python interpreter that is release with archlinux has support for UCS2 instead. I noticed a bug ticket whe

  • App.Alert for "Save As" Actions

    Hi, I am trying to set up an app.Alert for the "Save As" menu action. I do not want the alert to appear when the User "Saves", only on "Save As". The app alert will be a warning, with an "OK" button, allowing the User to proceed with the "Save As" pr

  • PRINTING A LOGO IN A LAYOUT

    Hi all, Well and Wish, I would like to know whether is there any transaction code to upload a logo except RSTXLDMC. Thank you very much in advance.. Anjali