Replace text with data while viewing

Hello,
I have data in table like below
id name
1 tanveer
2 ali khan
3 tasir
I want to write a query that display result on my abbreviated vales e.g. tanveer =tan,ali khan=al.
so my query result will be
id name
1 tan
2 al
regards,
tanveer

Use "SUBSTR(name, 1,3)" to display the first 3 characters. However, if your "rule" for abbreviations is more complex (for example "ali khan" becomes "al" instead of "ali" ???) then you'd have to use either of these methods :
1. Store the abbreviated values in another column in the table
2. Use a lookup table to "map" names to abbreviations
3. Write a PLSQL function with the "rules" built into it and taking the current name as an input, returning an abbreviated name
4. Use a simple DECODE function (which can be used only when you have a very small number of distinct "name" values to hardcode into the function call).
Hemant K Chitale
http://hemantoracledba.blogspot.com

Similar Messages

  • Lion replaces text with 'block A' characters in safari

    about 1/4 of the sites i vist now (including my own--in safari) have a 'block A' character where there is html text.
    does anyone know how to fix this?
    thanks.

    There are two articles on MacFixit about this.
    Fonts are implicated in both.
    http://reviews.cnet.com/8301-13727_7-20087102-263/webkit-sandboxing-conflict-cau ses-safari-block-a-font-problem/
    http://reviews.cnet.com/8301-13727_7-20085570-263/safari-in-os-x-lion-replacing- text-with-block-a-characters/
    Clearing caches and booting to Safe Mode has helped the majority of people experiencing this problem; however, for a few people the problem returns after a while, indicating that either Safari itself or the system's font configuration may be actively corrupting the font cache.
    .... (example)
    - If this happens, then unfortunately the approach would be to systematically disable system fonts using Font Book until the problem goes away, and then remove the specific fonts that are contributing to the problem.

  • Use Powershell to replace text with image in Word document

    I have a powershell script that uses a Word document as a template to create signatures that I am pushing out to my organization.
    The document is populated with text formatted the way I want the signature to look, that I then do a FindText and ReplaceText on.  This works fine for replacing text with text, but I can't figure out how to properly replace some of the holder text with
    an image and a link.  I found a few posts about adding images to word documents, but none that seem to work properly in this scenario.
    Any insight would be greatly appreciated, thanks!

    Dear BOFH,
    You are correct that method I outlined is not for inserting an image into a signature block (which would be in Outlook, not Word).  The links you post do certainly deal with outlook signatures, well done... Except that the question was about how to
    use a Powershell script to replace text in a Word document with an image.  Sure it was framed in the context of creating signatures, but the poster expressed that they already had a method of generating and replacing text, and just needed to know, as
    I did, how to do the thing they actually asked.
    Please BOFH... Please forgive my audacity in hoping to find a reference (any reference) to how to replace Word text with images via Powershell in a thread titled "Use Powershell to replace text with image in Word document".
    This is certainly a scripting question, and even something as simple as "You will need to call the .NET methods for the Word find/replace functionality.  Please ask in the Word forums for the correct method to use. 
    If you need help on calling .NET methods look HTTP ://here"support you offered combined with the contempt you offer in response to my actual substantive help to the actual question asked.
    BOFH, you are not better than us, just more arrogant.
    Can you please start your own question as this one has been closed.  Please see scripting guidelines.
    We cannot guarantee you satisfaction as this is a user supported forum.  The is no SLA for community support.  Perhaps if you posted a better worded question as a new topic someone might be able to help you resolve your issue.
    The topic you are posting on is closed and answered.
    ¯\_(ツ)_/¯

  • How to copy Log text (with Date, Time stamp ) User IDfrom BP to Transaction

    Hi Experts,
                     Can someone guide us how  to copy Log text (with Date ,Time & User ID) fron Business partner  (Prospect) to transactions by text detrmination procedure.
    Regards,
    Basavaraj Patil

    save text
    Fill out following parameters of SAVE_TEXT function module:
    HEADER
    TDOBJECT C 10 BUT000
    TDNAME C 70 10 digit BP number
    TDID C 4 Z001
    TDSPRAS C 1 Language
    INSERT = ’X’
    LINES
    TDFORMAT TDLINE
    |
    |testtttttttttttttttttttttttt( Your text)
    I would suggest you to use some other BAPI that would attach your text to BP than SAVE_TEXT.
    If you still wanted to use SAVE_TEXT then first make sure how the TDNAME is generated. It depends on the text determination procedure. For examples, it can be guid of BP, GUID followed by date or time or else the BP number itself.
    Just go to BP transaction, double click on the text pad, it will open you the SAP Script editor. Click on menu GOTO and select Header which will give you info about your TDID, TDOBJECT, TDNAME....
    Hope this helps.

  • Applescript   replace text with clipboard

    Sorry if this has been asked before, I have been searching for hours and cannot find anything.
    what I would like to do is copy text from a safari webpage , swap to the textedit program and replace text with the copied contents.
    for eg.
    from safari I have copied the user link, I then want it to swap over to textedit, find the keyword "userlink" and replace it with the copied content from safari
    userlink
    email
    number
    HHopefully I have explained it correctly, and thanks in advance for any help

    Hi,
    Like this:
    set x to the clipboard as «class RTF »
    tell application "TextEdit"
        set first word of front document whose it = "userlink" to x
    end tell
    If you want plain text, remove as
    as «class RTF »

  • Merging Spreadsheets as Text With Data Merge

    Can ID6 data merge a whole spreadsheet? I make signs for our store. Most are simple data merge, i.e. price, description, discount, logo and picture. But some products need a sign (label) that would actually need a table imported to each. I don't know of a way to data merge a spreadsheet to each label. From what I can tell, data merge only works for text in a spreadsheet field and an image referenced by path in another spreadsheet field in the same record. Perhaps multiple records could be merged onto one label? In another words. Some items would only need a label with info from one line (record) of the data source spreadsheet while others might need 2-6 records on each label from the data source spreadsheet ....

    You're asking a fairly simple utility to do things it's not designed to do. You should look toward third-party plug-ins for working with data in InDesign.

  • Texting with data turned off.

    I want to know if it possible to send and receive texts with the data turned off? Right now I am not able to. When my phone sync's up with my home/work wifi, it starts to send and rec like crazy. I'm sure there's some setting I need to change.

    Oh boy, I wonder if this is another one of those bugs in the lollipop update for the S5.  SMS is text, MMS is pic/video.  The phone is supposed to auto switch.  GalaxyClass did I miss this bug in the middle of all the other ones? bearone21

  • Search .docx and replace text with image

    I've got a directory containing a series of images. The images will always be the same name and I need to insert them into placeholders in a Word document which will be a template. I thought of using the image names as placeholders, opening the document
    and searching for the image name, replacing it by inserting the image, and doing so for each image in the directory.
    $file is the name of the image in the directory and it loops through them okay.
    foreach($file in Get-ChildItem $savepath -Filter *.jpg)
            # search word doc and replace selected text with image ($file)    
    Also inserting the image seems simple enough from a TechNet article I found, but I've got no idea how to open the Word document and do a search and replace. I found a few articles related to the subject but I couldn't get them to work when I tried to adapt
    them.
    Any help is appreciated. Thanks in advance.

    This 'might' be possible, but I'm having a hard time finding good references to the com object capabilities for inserting an image into a word document.  Creating new, converting format, that sort of thing is straightforward.
    I'd do a search on "powershell word comobject" and variations of insert image update edit, etc.  Or maybe someone else with more experience/knowledge has a magic bullet for you.  Once you get some info on doing it with powershell, expand
    your search by omitting the powershell keyword, there's gotta be some solid documentation for the comobject somwhere, but it will probably be a bit complex.
    You can also:
    $word = new-object -comobject word.application
    $doc = $word.documents.add("<path to word document>"
    and get-member to your heart's content, but finding references and/or documentation might be easier.  
    Good luck!
    Edit:  This could help, but really doesn't give much insight into placement of the image, only helps getting the image into the doc:  http://gallery.technet.microsoft.com/office/44ffc6c8-131f-42f1-b24b-ff92230b2e0a
    If you do find something useful, post it here, I'm sure others could benefit!
    SubEdit:  Should have thought of this already...
    http://msdn.microsoft.com/en-us/library/ff837519(v=office.14).aspx

  • Replacing video with graphics while maintaining audio

    I have video of some presentations I do. In spots of those videos I want to replace the video with a graphics. How do I edit out the video and replace it with the graphics without editing out the audio?
    Thanks
    PM

    A cutaway is what you're looking for.
    http://help.apple.com/imovie/mac/10.0/#movf525350f0
    Matt

  • Substitute Function in Excel: Replace text with instance number in BO

    Hi,
    I have a column where data is merged from three other columns each text separated by "-". Ex: Services - Phoneline - New Customer.
    What I wanted to do is to just get the last text which is "New Customer" separated. I used "Length(<columnValue>)-Length(Replace(<columnValue),"-",""))" to get the number of instances of "-" in the text as it varies from 1 to 3.
    I use to do it in excel using substitute function where I have the facillity to use the character instance number. I don't know how to do this in Business objects.
    Please help...
    Thanks

    DDann wrote:
    =SUMIF('New Req to Capability Mapping'!$D$2:$D$148,A2,'New Req to Capability Mapping'!$I$2:$I$148)
    Col A is a list of the capabilities and the formulas are in COL B of this sheet.  [....] The problem that I am experiencing is that for some of the capabilities I am see correct count totals for some while others are not for instance, "Account
    Management" shows correct while "Security Awareness Program" is not. I have copied the text for each of the capabilities from the main sheet into Col A to reduce keystroke errors. I have also copied those strings into some of the problematic
    formulas instead of using the cell address to see if the results change.
    Good troubleshooting techniques.  Unless someone gets lucky with a wild guess, I suspect we cannot help without having the workbook to see the situation for ourselves.
    You can upload an example Excel file (devoid of any private data) that demonstrates the problem to a file-sharing website.
    Then post the "shared", "public" or "view-only" link (aka URL; http://...) in a response here.
    The following is a list of some free file-sharing websites; or use your own.
    Box.Net: http://www.box.net/files
    Windows Live Skydrive: http://skydrive.live.com
    MediaFire: http://www.mediafire.com
    FileFactory: http://www.filefactory.com
    FileSavr: http://www.filesavr.com
    RapidShare: http://www.rapidshare.com
    I suspect that the problem has to do with either a mismatch in spacing or the presence of non-breaking spaces (HTML &nbsp) or other non-printing characters, notwithstanding your efforts to eliminate that possibility with your copy-and-paste experiments.

  • Replace text with number

    Hi
    i have 2 columns from flat file
    0amount       number
    10000          
    "Intangibles"         2000
    20000              
    'sales'         4000
    my output is required like
    incase if i am getting text ( this text is not constant its coming like any thing shownw above example)  i need replace number key figure values in 0amount fileds.
    how can i reach with this in field routine
    data v_text type char
    if source_fields_0amount not equall number
    result 0 number ( kf)
    like what is code i need to use

    Hi,
    One thing's to be clarified :
    If you need sometimes number & sometimes text in a particular target field, then it has to be a char field and you cant do any mathematical operation on that later.
    --Akashdeep

  • Replace text with formula in calculate columns

    How can I replace ";" in a text like this with " AND " ?
    example text: "abc;cde;efg;ijk"
    the result should be like this: "abc AND cde AND efg AND ijk"

    Hi,
    According to your description, my understanding is that you want to replace “;” with “AND” in calculated column.
    As you are not using English as the default language, you should use the localized version of function names and ";" instead of commas.
    To replace all the “;” with “AND”, we need to use the formula as below(for English site):
    =REPLACE((REPLACE((REPLACE([mycolumn],SEARCH(";",[mycolumn]),"1"," AND ")),SEARCH(";",(REPLACE([mycolumn],SEARCH(";",[mycolumn]),"1"," AND "))),"1",
    " AND ")),SEARCH(";",(REPLACE((REPLACE([mycolumn],SEARCH(";",[mycolumn]),"1"," AND ")),SEARCH(";",(REPLACE([mycolumn],SEARCH(";",[mycolumn]),"1"," And "))),"1",
    " AND "))),"1"," AND ")
    More references:
    http://sharepoint.stackexchange.com/questions/59195/modifying-a-calculated-column-gives-different-errors
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/5487889f-5fc8-48e1-8ea2-28f8c9c8ad0c/calculated-field-error?forum=sharepointgenerallegacy
    http://office.microsoft.com/en-in/windows-sharepoint-services-help/replace-function-HA001161055.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Replace text with image using Applescript in InDesign CS5

    Hi to everyone, i'm looking for some suggestions to resolve my problem.
    I've to replace some strings with jpeg images stored on my pc
    Here is the code to replace two strings with the new ones.
    tell application "Adobe InDesign CS5"
              set myDocument to active document
              set myPage to page 1 of myDocument
              set stringsToReplace to {"111", "222"}
      repeat with iterator from 1 to (count stringsToReplace)
           set find text preferences to nothing
           set change text preferences to nothing
           set myFoundItems to nothing
           set element to item iterator of stringsToReplace
          if element is "111" then
               set find what of find text preferences to "111"
               set change to of change text preferences to "ONE"
               set myFoundItems to change text
               display dialog ("Found : " & (count myFoundItems) & " occurences of " & element)
          else if element is "222" then
               set find what of find text preferences to "222"
               set change to of change text preferences to "TWO"
               set myFoundItems to change text
               display dialog ("Found : " & (count myFoundItems) & " occurences of " & element)
          end if
              end repeat
      set find text preferences to nothing
      set change text preferences to nothing
    end tell
    Can you hel me?
    Thanks in advance.

    Hello, I have a couple of questions for you… How come you have strings in text frames… Would you not be better off using labels for this…? ( thats how I would do this ). Off the top of my head I think you will need to remove any text content from the frame to be able to change it's content type… only then will you be able to place a graphic… How are you associating your strings with the required image files… Do you have this in some extenal file Excel or FMP.

  • Logo Overlaps with Data when viewed in HTML mode

    Hi,
    My report looks weird when I view the report in HTML mode i.e., my report logo overlaps with the report Row headers but when i view the same report in Java Applet mode report looks good and also when I export the report it looks good.
    I tried deleting the logo & adding a new logo & I even changed the settings of the logo & also I cleared cache of my browser, etc. I tired many options but nothing seems to work. Only couple of reports have this kind of issue & rest other reports looks good.
    Did anyone faced this kind of issue before? Is it a tool bug?
    FYI, I am using BO 4.0 SP5.
    FYI, I have created Logo by creating a blank cell in the Header of the report., then right click on blank cell and select “Format Cell”. In the formal Format Cell window click on Appearance and click on Radio Button “Image from URL” then type boimg://reportimage.jpg
    Thanks & Regards.
    Naveen.

    See if one of these program will kick it out of recovery mode:
    For PC
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    If necessary:
    Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
    and                                           
    RecBoot tip
    For MAC or PC       
    The Firmware Umbrella - TinyUmbrella
    Next, restore the the iPod and see if you can get any data off the restored iPod
    via How to perform iPad recovery for photos, videos
      Wondershare Dr.Fone for iOS: iPhone Data Recovery - Wondershare Official

  • Regular expressions for replacing text with sms language text

    Hi, I'm trying to write a function which converts normal, correctly spelled text into the shorter sms language format but struggling to come up with the regular expressions i need to do so, can anyone help?
    1: remove surplus white space at the beginning of a sentence and at the end of a sentence.
    e.g. " hello." --> "hello." OR "hello ." --> "hello."
    2: remove preceeding and/or proceeding space if there's a word then a number possibly followed by another word
    e.g. "come 2 me" --> "come2me" OR "dnt 4get" --> "dnt4get"
    3: remove "aeiou" if word starts and ends with "!aeiou"
    e.g. "text" --> "txt"

    You can make the whitespace on either side optional:   text = text.replaceAll("\\s*(\\d)\\s*", "$1");1. Use String's trim() method.
    3. This one has to be done in two steps: import java.util.regex.*;
    public class Test
      public static void main(String... args) throws Exception
        String text = "The quick brown fox jumps over the lazy dog.";
        System.out.println(devowelize(text));
      public static String devowelize(String str)
        Pattern p = Pattern.compile(
          "[a-z&&[^aeiou]]++(?:[aeiou]++[a-z&&[^aeiou]]++)+",
          Pattern.CASE_INSENSITIVE);
        Matcher m = p.matcher(str);
        StringBuffer sb = new StringBuffer();
        while (m.find())
          m.appendReplacement(sb, m.group().replaceAll("[aeiou]+", ""));
        m.appendTail(sb);
        return sb.toString();
    }

Maybe you are looking for