Removing portion of the text

Hi All,
I have the following table, Full_Name column is the original data and Modified column is from Crystal Report Formula Field. I want to take out 'in Boston', 'in New York', and 'in Los Angeles' from the Full_Name and write it under Modified (as shown in the table). It would be a simple code, I tried it many ways but it's not working. Can someone help me writing the code please. Thanks - Brian
Full_Name
Modified
John in Boston
John
Bell in New York
Bell
Tiger in Los Angeles
Tiger
Rodney in Boston
Rodney
Graham in Boston
Graham
Bill in New York
Bill
Marry in New York
Marry
Juaida in Los Angeles
Juaida
Felton in New York
Felton
Shawn in Los Angeles
Shawn

That would involve creating a variable that contains the city names and then extracting the names based on the values in the variable.
1) Create a variable that contains city names and place this on the Report Header.
WhilePrintingRecords;
stringvar array city := ["Boston", "New York", "Los Angeles"];
2) Create another formula that extracts the city names from the field on the details section. This goes in the Details section of course:
WhilePrintingRecords;
stringvar array city;
local stringvar temp;
local numbervar i;
for i := 1 to ubound(city) do
     If Instr({Full_Name}, city[i]) > 0 then
          temp := city[i]
     else temp := "No City Found";
temp;
-Abhilash

Similar Messages

  • Protect a portion of the text in a PDF from scrapers

    Hi,
    I'm  hoping someone can help me. I have access to Adobe CC - I  have been learning InDesign and Acrobat and Photoshop.
    Does anyone know if there is a way to protect only a portion of a PDF - just a selection of text - from scrapers? I want to post a PDF I created online, but I don't want the phone number and email address in it to be scraped by telemarketers etc...
    In other words, do you know if there's a way to either:
    1) In a PDF, turn text into an image so it can't be copied like text - i.e. so if I post it online the phone number and email address can't be indexed by google or scraped by a telemarketer? or
    2) In a PDF, put some kind of copy protection on just the phone number and email address, so just that portion of the PDF can't be indexed or scraped?
    Thanks

    Several years ago Google began to OCR images it found in PDFs so that any text they may contain could be searched and indexed, so I don't think using images is a guaranteed way to prevent this. You can try setting security so that content extraction is not allowed, but there's no guarantee that this restriction will be honored by non-Adobe software that attempts the extraction.
    You could add buttons/links that when clicked will reveal the information you want to hide, either as pop-ups or previously hidden/blank form fields, or use JavaScript to show the information automatically when a document is opened. This would prevent most attempts at automated methods of data extraction, but adds a bit of complication in preparing the document for use.

  • How can i hide a portion of the text inside a spry dataset "stackedcolumn"?

    Hi all
    I have a spry dataset set up reading a .xml file for the price/name/description/etc. I want to only show some of the text (a certain number of characters) at the start then give the visitor the option of clicking a toggle button to see more of the description and help with size of the pages.  How do i do that exactly?
    I know I have to probably implement jquery toggle but how does it work with a spry?
    here is the code as it stands.
       <div spry:region="catalog" class="SpotlightAndStacked">
          <div spry:repeat="catalog" class="SpotlightAndStackedRow">
            <div class="SpotlightContainer">
              <div class="SpotlightColumn"><a href="_images/catalog/Art/{Picture_File}" title="{Headline}"><img src="_images/catalog/thumbs/Art/{Picture_File}"></a></div>
            </div>
            <div class="StackedContainer">
              <div class="StackedColumn"> {Item_Last_Name}, {Item_First_Name}</div>
              <div class="StackedColumn"> {Item_Code_Number}</div>
              <div class="StackedColumn"> {Headline}</div>
              <div class="StackedColumn"> {Complete_Description}</div>
              <div class="StackedColumn"> {Item_Code_Number}</div>
              <div class="StackedColumn"> <strong>Retail price: {Retail_Price}</strong></div>
            </div>
            <br style="clear:both; line-height: 0px" />
          </div>
        </div>
    Thanks in Advance

    There are many options for editing objects/layers in the time line. You can split tracks, slip videp, trim, delete, cut, copy and paste etc. Without more specifics about what you want to do I would suggest you review the users guide. Select help to open the manual and then go to Timeline>Edit objects in the timeline. I am sure you will find the answer to your question.

  • Dreamweaver CS3 adds  p align="center"   /p 44 times after a table and before the text. When the code is remove it puts the text to the side of the table. In Dreamweaver the setup is correct but in Chrome, Firefox, and IE there is a large space.

    </tr>
      </table>
      <h3 align="center" class="style2"><font face="Arial, Helvetica, sans-serif"><br />
      </font></h3>
      <p> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="center"> </p>
      <p align="left"> </p>
      <p align="center"><strong><font face="Arial, Helvetica, sans-serif"><a href="Compatibility_Pack.html">To Open To Open Word</a></font></strong><strong><font face="Arial, Helvetica, sans-serif"><a href="Compatibility_Pack.html">2007 Document in Word 2003</a></font></strong></p>
    The website is:
    Mitchell Public Library

    Take your hand off the ENTER key .
    You're using deprecated code.  Align="center" and <font> tags have been obsolete since HTML4.
    Use the W3C Validation tools below to check your code for errors.
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    Nancy O.

  • How can I delete all the text in one story?

    Yeah, it's a dumb question. I've done some pretty complex things using ExtendScript, yet I can't seem to figure out how to remove all of the text in one story.
    Any help would be greatly appreciated.
    -Dan.

    myStory.contents = "";
    myStory.texts[0].remove();
    either should do the job.
    Dave

  • Adobe Reader highlight tool no longer filling text, just creating a line around the text

    The Highlight tool in Adobe reader is no longer working as it used to.  Instead of filling the text, as it used to, the tool just creates a line around the text.  This makes the highlights much harder to spot.
    I'm running Win 8 and using Adobe Reader XI version 11.0.09.
    I've attached a screenshot to illustrate.  The way the tool used to work, they way I want it to, is shown by all the highlighted text in the document.  The way it currently works, is shown on the first line of text , where a portion of the text has been highlighted using the tool as it works now.  I just creates a yellow line around the text.
    I've checked the way the highlight settings are on both the old highlighted text and the new text and they appear identical.  Both the colour and opacity percentage settings are the same.
    Very frustrated.  Any help appreciated.

    Gilad D (try67) wrote:
    Very strange. I'm not sure what the reason for this behaivour is, but try right-clicking one of the previous highlights and selecting "Make Current Properties Default". Then try to create a new highlight...
    Did that.  No effect.

  • Remove some portion of the String

    Hi,
    My problem is String contains data is
    artist1
    title1
    -1
    artist2
    title2
    2
    artist3
    title3
    -1
    artist4
    title4
    2
    i want to remove some portion of the string like artist2, title2, 2 so my updated string should be like
    artist1
    title1
    -1
    artist3
    title3
    -1
    artist4
    title4
    2
    Here i am using String.replaceAll("artist2","");
    String.replaceAll("title3","");
    String.replaceAll("2","")("[\code]
    its deleting whole data in a string, can any one please help me how to delete particular part of the string. Here artist and title are unique and no are reapeated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hey I had the same problem like you yesterday.
    I tried using regEx with positiv lookahead but noticed that there was a problem when the String went over multiple lines. There is probably some solution to it that i havent found yet.
    So what I did was get the Index of the first text I wanted deleted(in your case I guess "artist2"). Then got the Index of the end of the deletion point(In your case the "2"?) and then formed a new String with the substring from the orginal one and the indexes of the two deletion points.
    Sounds kinda dirty but it did work out. Anyway I'll dig myself into regular expressions more today because if you get them to work, they're a charm :)

  • This is my first use of this program. How do I remove a page break? How do line up my drop down box along side the text box on the left of it? The drop down is for a multiple choice answer for the question to the left.

    This is my first use of this program. How do I remove a page break? How do line up my drop down box along side the text box on the left of it? The drop down is for a multiple choice answer for the question to the left of each drop down.

    See McAfee support to find out how to disable that McAfee feature - that isn't part of the normal Firefox installation.

  • How can i remove the phone number from the text messages that i receive in the notification center

    how can i remove the phone number from the text messages that i receive in the notification center?

    You choose whether to see text messages in Notification Center or not.  If you elect to see them, they will display the phone number (unless they are from a contact in your contacts list).
    You can choose not to see them at Settings > Notification Center > Messages.

  • How to remove the "text link" of an action link

    Hi everyone,
    after searching the forum and web with no luck, I need help on this topic. I'm working with many reports which link to others dashboards. These dashboards were created in OBIEE 10 and migrated to 11.1.1.3.
    What we wanted to do (and achieved in 10g) was to be able to click on some data (on a value of a graph, a value/column header in a table) and navigate to another dashboard. OBIEE 11g does this from the Criteria tab --> Column properties --> Interaction and selecting Action Links.
    In 11g, when doing this Action Links and clicking on a value, appears a "text link" ( screenshot : [https://picasaweb.google.com/102130000310148493868/Screenshots#5646178057282726354] ), so the user would need to do 2 clicks (one on the value and other in the text link).
    Is there any way to remove this Text Link? It can be a bit annoying if there is always one option, and needless.
    Thank you

    Hi Elena!
    In teh Interaction Tab (in the Column Properties window), once you create the action,you will right there a check box that says: "Do not display in a popup if only one action link is available at runtime". Clik on the check box, and you are ready to go!
    Please assign points if helful.
    J.-

  • How to Remove Blank spaces in the text elements for a smartform

    Hi All,
    Can any one please help me out to remove the blank spaces in the text elements.
    We are printing Labels using the Zebra Printer and we have rotated the windows to 90 degrees.
    We are able to see out text and barcodes. But the issues is when we are printing the label. We are getting spaces in the Text and in the Text elements fields. I have tried to give &g_name(C)&. But it is not working even i worked with style sheet spaces no luck.
    Currently out text and fields are printing like this
    s h r i y a n
    material number
    1111  -001  -000
    They should print like
    shriyan
    1111-001-000
    According to the ZEBRA suggestions we are using the font helve.
    Plase help us it is very urgent.
    Reward point will be given.
    Thanks

    Hi,
    Just use Condense g_name inside the program lines.
    Just to see how it behaves put a hard breakpoint.
    Break Username. and check the condense statement.
    condense <your field> no-gaps.
    Create program lines ahead of printing. give the field you want to condense in the input and output parameters of the program lines.
    Use condense inside the program lines.
    Thanks,
    Vamshi.

  • The text "Remove" is not appearing in the remove button of Bookmarks.

    Hi,
    The text "Remove" is not appearing in the remove button of Bookmarks. My problem is the same as mentioned in this question.
    https://support.mozilla.org/en-US/questions/1017302
    The solutions suggested on the link don't seem to work. How do I resolve this? For me this problem is persisting everyday.
    Thanks

    You already tested in Firefox's Safe Mode and that did not make any difference?
    Can you associate this problem with any software changes, such as upgrading from Firefox 31 to Firefox 32, or updating an add-on, or Windows, etc.?
    Have you noticed problems with any other dialogs or menus?
    Occasionally a corrupted settings file may cause issues with dialogs. This file also stores toolbar customizations. You can rename the file and customize from scratch.
    Open your current Firefox settings (AKA Firefox profile) folder using either
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * (menu bar) Help > Troubleshooting Information
    * type or paste about:support in the address bar and press Enter
    In the first table on the page, click the "Show Folder" button
    Leaving that window open, switch back to Firefox and Exit, either:
    * "3-bar" menu button > "power" button
    * (menu bar) File > Exit
    Pause while Firefox finishes its cleanup, then rename '''localstore.rdf''' to something like localstore.old
    Start Firefox back up again. Any improvement in the Edit Bookmarks dialog?

  • Can an InCopy editor add, remove and edit a text frame placed inside the main story text frame?

    I think I already know the answer to this which is - no. I'll explain why I am asking the question in a second, but the reason I think the simple answer is no is because - text frames are controlled by a designer in the layout file, an editor using incopy can only edit the text and images placed inside text frames, and so cannot resize them, add or delete them.
    Ok, so the reason I have asked this.
    Is there a way around this so that editors in incopy can edit certain types of text frame that are contained within the main text frame? I'm using these text frames to contain specific paragraph styles, giving them a boxed look and also with an anchored icon in the top left of the text frame depending on the type of paragraph it is. See screenshot as an example of a green text frame that I am using to contain paragraphs of type "tip".
    If it is not possible for editors in incopy to add, edit or resize these text frames (green tip frame in the example above), then how else can I style these paragraphs to give the same visual appearance, but without the use of wrapping them in a text frame?
    One (not so good) way around this is for the designer to add the text frames in the layout file after he gets the content back from the editor, then moving the "tip" paragraphs into these newly created text frames. However when the editor updates the content in incopy and gets these new text frames in their copy, they can not then delete them if they wish to, or if they add or reduce content inside of these green text frames then the frames dont grow to fit their edited content. So I dont think its a solution for the designer to control the adding, removing and resizing of these frames.
    UPDATE: I have just discovered that once a text frame has been placed into the document by the designer and the editor updates their copy in incopy-  they can then use the "Position Tool" to select that text frame - allowing them to resize it, or delete it! Fantastic. But would the editor be able to add these frames in themselves to begin with? Maybe have a document containing all of the objects available to them, copy and paste one of them into the main document and edit its content? Does anyone have any advice on how to go about this? Essentially I would like the editor to control the insertion, editing and removal of these inline text frames.

    True. But when all I am trying to achieve is a border around a paragraph, use of a table seems overkill to me. But if thats the only solution I have so far then I will have to go down that route.
    It would be useful to have an object libraries panel in InCopy so that editors can drag across predefined text frames into their doc via InCopy, but I cant see that option in InCopy. is there one? I have also thought about exporting the frames as seperate InDesign Snippets and saving them to an objects folder, then when an editor needs to insert one into their doc they simply use File > Place > "Choose required text frame snippet". However I have found that InCopy can't place InDesign snippets so that theory was a failure. Is there another format I could use to save the objects and bring them into InCopy? List below shows my findings so far for trying to save/export a text frame from InDesign and then import into InCopy:
    InDesign Snippet (.idms) - can't import into InCopy
    InDesign Document (.indd) - imports content as an image - only editable in InDesign
    InDesign Template (.indt) - imports content as an image - only editable in InDesign
    InDesign Library (.indl) - can't import into InCopy - no panel available in InCopy for object libraries (that I can see...)
    InCopy Markup (.icml) - only imports the text, loses the text frame

  • Problem removing html tags from the text retrived

    Hi there,
    I am using jdbc to connect the database and retriving the data. In one of the columns along with the description there are some html tags in few of the recors of that column. is there a way to retrive the text only ignoring the html tags in between. Or can i retrive and then strip off the html code in the text to display only normal text.
    example of the data retrived which are pipe seperated and one of the columns has html tags in it:
    209|The euphoria |187945-2|http://www.abc/lst.jsp?mktgChannel=I86023&sku=18791-2&siteID=qpF0HYnRugA|http://www.abc.com/assets/images/product/medium/18793-2_198.jpg|Rooftop Singers: Walk Right In | abc Music proudly presents THE FOLK YEARS, an unforgettable era in music history!<BR><BR><B>Featuring:</B><BR>
    <LI>The most complete collection of folk and folk-rock songs ever put together -- 132 classics!
    <LI>Original hits by the original artists!
    Now i need to remove the tags before displaying this on the output. Is there a simple way to do this.
    Thanks...

    Did you read the documentation of the trim() method,
    where it describes which whitespace it removes?I believe his problem is that
    "Some text here  
    <blah> 
    More text"becomes
    "Some text here  
    More text"... and he wants ...
    "Some text here
    More text"So, your problem is that your regex isn't matching whitespace as well.
    See the "Trimming Whitespace" section:
    http://www.regular-expressions.info/examples.html

  • I recently updated my OS to OS X. I had to update my word and powerpoint etc... to 2011 version, but now when I want to open a .doc file made in word 2003 it removes all the text in it! I did not back anything up!

    I recently updated my OS to OS X. I had to update my word and powerpoint etc... to 2011 version, but now when I want to open a .doc file made in word 2003 it removes all the text in it! I did not back anything up! All my mums work is on there for her job and now she cant use it! I need help fast!

    If you updated from 2003 that must be on a Windows machine, can you recover them from there?

Maybe you are looking for

  • How can I use Family Sharing for Store purchases if I use a different Apple ID for purchases?

    A key feature of Apple's iCloud Family Sharing is the ability to share store purchases with invited family members. However, like many people, I use a different Apple ID for iCloud and Store purchases (ironically, primarily for the exact purpose of s

  • How to insert the contents of a link in a div container?

    Hi, I try some layouts with CSS templates having sidebar. My problem is that when I click on the link (defined as <a href="my_text.htm">Link one</a> for example a new window appears with the contnets of the file. How do I select as target the contain

  • How do you select an object that is directly under another object?

    How do you select an object that is directly under another object? I was working from a template and I wanted to make a text box the same size as a column box that was put there in order to keep the text in the confines of the paper that is was being

  • Pass paramters between jsp's

    I have one combo box in the jsp page. on selecting an option, i want to call onchange method and process the selected index in a jsp/servlet with database locally and again redirect the resulted values to the current jsp page. How to achieve the abov

  • How to make some elements in LOV unselectable

    All, In Jdev 11.1.1.5 application how do i get this kind of LOV where the items in italic are not for selection India Mumbai Bangalore Chennai Delhi Pakistan Karachi Islamabad Lahore thnks