Trimming more than one Words

I have a Name field in my DB which can have more than one
name seperated by spaces. I want to trim this name-field to just
one word while outputting.
Example:
"Michael Theodor John"
Is outputted as simply
"Michael"
I'm working with trimming and find but not quite getting it
right. Anyone suggestions?
Thank you very much,
Henrik

Just to spread the knowledge of CF functions you could have
also used
the listFirst function which returns the first element of a
list.
<cfoutput>#listFirst([youqueryname].name,"
")#</cfoutput>

Similar Messages

  • How do I enable Firefox 4 to do a search on more than one word (e.g. "yahoo mail") without receiving the error message "the URL is not valid and cannot be loaded"?

    After loading Firefox 4.0, I changed the address bar search engine to Google Search by Name, so I'd be taken straight to the most relevant webpage when I type in a word.
    It works fine when I type in one word, but if I use a search with more than one word (e.g. "yahoo mail" or "google maps") I get an alert saying "The URL is not valid and cannot be loaded". Is there any way I can fix the address bar to accept multiple word searches?
    I've tried disabling all my add-ons, but it didn't make any difference.

    Hi, this should sort out your problem:
    1. Type in "about:config" into the address bar, this will open the settings menu. Click on "I'll be careful, I promise!"
    2. Search for "keyword.URL" in the filter bar.
    3. Enter "http://www.google.com/search?btnI=I%27m+Feeling+Lucky&q=" into the value field.
    I'm no expert, but I had the same problem which got on my nerves after being so used to being able to type anything in, and following these steps fixed it.

  • Search Query Help – more than one word

    I have been struggling with this for weeks.  I used Dreamweaver to set up a lot of this and I think it is hindering me as I make changes to the code.
    I have a search interface that takes the input from a user (in the form of text) – searches though the db to match words – then return the results based on how many times the input is located in the db.
    I have this working very good for a single word input.  If you search for one word only – it works great.  But, if you try to input two words together – it returns no results.
    I have tried several different things to get this to work – like exploding the input then searching the db for each word in order.  The problems I get, I think, is that this conflicts with the code Dreamweaver wrote – I think where the code requests the value string.  But, each time I think I find a fix for one error – it creates several others – not just in the php code above the header – but in the php code in the body when I try to retrieve the results.
    It seems that I am just going around in circles.  But, there has to be simple way to search for more than one word in the db – count the matches – add the matches from each search together – then return the results ordered by the largest number of matches.
    I have even tried using a foreach statement – but received errors that I have never seen before.  Then after researching and trying to fix those errors – just received more and more errors.
    Please help.  If it cannot be done given the code I have – then please point me in the right direction to rewrite the code.
    Code is attached.

    Based on what you explained as your requirements, it is very easy. I'll just speak in psuedo-code.  You will need to parse the input into seperate words. If there can be an unknown number of words you can store those in a string array.
    Then just use the array to build your where clause using the IN predicate or using the = and OR operators.
    Select count(*), keyword
    where keyword in (term[0], term[1], etc)
    group by keyword
    order by count(*) desc
    If this is not what you meant, then you will need to explain your requirements in more detail. As you have discovered, once your requirements exceep the capabilities of DW's behaviors, you will need to become very familar with sql and your server side scripting language. If you don't understand what the DW code is doing (as evidenced by your comments in the attachment), then you really are not ready to start modifying it.

  • GetParameter() with more than one word

    hi all
    i have these statement in my Servlet
    String cust = rs.getString(1);
    out.println("<INPUT TYPE=radio NAME=cdnames VALUE="+ cust + ">"+ cust + "<br>");
    out.println("<input type=submit>");
    out.println("</form>");
    String lastName = request.getParameter("cdnames");
    out.println("<P>"+lastName+"</P>");
    so as u can tell there are some radio buttons on the page and i want to see which one user selected. It works fine. But when i have a radio button with more than one word..it just returns the first word. For example if my radio button is "Sudesh Sharma" then the value in my String lastName will just be Sudesh and not Sudesh Sharma. How can i fix this?

    It is always a good idea to surround all html attribute values in quotes. And why you are at it, always use lower case for html tags:
      String cust = rs.getString(1);
      out.println("<input type=\"radio\" name=\"cdnames\" value=\""+ cust + "\"/>"+ cust + "<br/>");
      out.println("<input type=\"submit\">");
      out.println("</form>");
      String lastName = request.getParameter("cdnames");
      out.println("<p>"+lastName+"</p>");

  • Highliting more than one word using JTextArea

    I want to highlight more than one word using JTextArea. For example.
    My car color is red.
    My friend's car color is black.
    I want to highlight "red" in first sentence and friend in second sentence using JTextArea (both the sentences are in JTextArea). Can any one help me how to write program for this please.
    Thanks in advance
    regards
    V.Umashanker

    Highlighter h = textArea.getHighlighter();
    Highlighter.HighlightPainter p =
        new DefaultHighlighter.DefaultHighlightPainter(color);
    Object h1 = h.addHighlight(start1, end1, p);
    Object h2 = h.addHighlight(start2, end2, p);...and to remove them:h.removeHighlight(h1);
    h.removeHighlight(h2);This is assuming that you want both words highlighted in the same color (but a different color than the selection). If you want different colors, you'll have to create a separate painter for each color.

  • How to attach more than one word document to an email?

    Hi there. 
    I've recently acquired an Ipad which I want to use while I'm out and about.  I generally respond to emails with attachments.  How do i go about doing this on the Ipad?  I've got a gmail address and making use of the gmail app to send and receive emails. 
    I would also like to be able to attach more than one attachment from the app pages.   Is there an app available which will allow me to do this?

    You can't do that from Pages or from the built in mail app. Look at this. I think it allows multiple attachments.
    http://www.redbits.com/iphone/groupemail/en/index.html

  • Keywords with more than one word

    When searching by keyword, do I need to use the full keyword if it's 2 or more words?  For instance, if my keyword is niagra falls, will those photos come up if I just search "falls"?  Or do I need to use keywords Niagra Falls and falls?
    Thank you!

    Yes, if you search for "falls", you get all photos where the text "falls" is present in the keyword, including "Niagara Falls" and "Zambezi Falls" and "Fallstaff".
    You could, however, change the dropdown so instead selecting "Contains", you select "Contains Words" or "Contains All" or "Starts With" or "Ends With", which of course changes the behavior of the search. https://helpx.adobe.com/lightroom/help/finding-photos-catalog.html
    You can also find your Niagara Falls photos by going to the Keyword List panel, and then clicking on the arrow to the far right of Niagara Falls (just to the right of the number showing how many photos have that keyword)

  • Can't search photos using more than one word.  Ruined ability to data base

    I've spent hundreds of hours cataloging my photos by keywords and image titles and created a data base that is critical to my business. After installing iPhoto 11 I can no longer search using multiple words. This has made my data base useless. The "Faces" and "Places" fields will not help because those are not part of the search criteria. Is there a way to make this work? If not how do I go back to the old version of iPhoto?
    thanks for your help!

    How were you searching previously? Adding both keywords and title text to the search box? Why can't a smart album do the trick?
    You might consider using a DAM (digital asset management) application like Expression Media. It's a professional grade image management app that can be searched for any combination of keywords, description text, title text, etc.
    Click to view full size
    You can learn about EM and the other pro DAM apps at the The DAM Forum. I strongly suggest you consider a more robust DAM app for your professional work.

  • How do I search more than one word?

    I can't pipe to grep since not every line has new package.

    Pacman searches using regular expressions.
    pacman -Ss 'control system' will find version or revision 'control system' matches.
    Pacman -Ss 'gnome.*interfaces' will find packages with 'gnome' followed by 'interfaces' in the description.

  • More than one Spaces are getting trimmed on BizTalk BAM portal

    Hi All,
    We are implementing BAM at our customer place , we observed ,if any field  contains more than one space in input file then these spaces are getting trimmed in single space,however it is correctly sitting in the BAMPrimaryImport  database 
    For example if input file ,which is processing through BizTalk, and if any field which value is "AB  CDE" (field contain three space here ) then in portal it is appearing as
    "AB CDE" (Only one space here) by default 
    I am not sure how theses values are displayed in portal and how to relove this default behiaver of BAM Portal, if somebody have faced this situation then i will appreciate your help please
    Thanks
    Yash

    Well then I guess it's a Portal issue (yes you already knew that!) :-)
    I know not everybody agrees with me, but the way I look upon it, the Portal should not be used as a product, but merely as a testing tool and inspiration as to what one can build on top of ones BAM activities. In other words, if you need to present your
    BAM data to users, you should build your own; Pivot Tables, Reporting Services, ASP.NET Web sites etc. etc. on top of it.
    Don't know if this is true, but I've heard that the BAM portal was a beta-product that shipped for the first time with BizTalk Server 2006 without being completed, and no code changes has taken place since.
    Morten la Cour

  • Is it possible to add more than one page at a time in pages - word processing?

    Is it possible to add more than one page at a time in pages - word processing?

    I haven't been able to find a way to add more than one page at a time.  I think you'll have to add them one at a time. 

  • Upgraded to iOS 6 and now I can't open anything in the kindle app? I have to say that I have had my ipad3 for 6 months and intensely dislike the problems with using it. Also is there any way of opening more than one screen as it is hopeless otherwise?

    I Have had my iPad for 6 months as I cannot access my work emails using windows. I have to say that it is the most unhelpful device I have ever used and although it looks like there isn't an answer for some of the questions I have asked below, I thought I would try!
    1) I have upgraded to ios6 and the kindle app will open but crashes and disappears when I try to access a book?
    2) is there any way I can open more than one page at a time, as opening one at a time is hopeless?
    3) Is there any way you can replicate the right click function on word? As pasting and copying on the iPad is irritating to say the least!
    4) why can't my Samsung 11 phone connect to my iPad via Bluetooth? A they can't seem to 'see' each other? I may have turned a setting off when I was recently abroad and didn't want huge roaming charges.
    5) Why do the submit buttons on some websites not work and how can I get them to? I never have a problem with windows, but it is often a problem with the iPad.
    6) I have several websites which I have built and usually upgrade on the windows desktop, usually through Internet explorer, but I can't access the sites properly on the iPad (I can see them but can't alter them) and when sending emails through the websites they won't show the page and I can't navigate the page (the size of the email page is bigger than the iPad screen, but I can't either shrink the page to size or move the page around as you normally would on the pad, any ideas?
    7) finally, when roaming abroad recently, I had no problems using the wifi, but when trying to use the cellular data (using the roaming function) I could not get it to work? The ipad seemed to be connected to the network with no problems, but wouldn't actually update the emails? I tried turning it on and off, but that didn't make a difference. My kindle and mobile phone (both also on 3G ) worked great, it was just (as usual) the ipad playing up.
    8) when wanting to alter part of a sentence, I can't always get the cursor in the right place? Sometimes it is simple the wrong line, but often it will only go at the end or start of a word and not where I want it. Is there any way of making it more exact? Again I never have a problem with moving the cursor on windows, either by mouse or on the touch screen function on windows 7. Any ideas? As after pressing the screen multiple times I just want to throw it out of the window!
    IT might just be that I don't have the correct settings (I am a technophobe) but I absolutely hate the iPad and only have it for work emails, it is so annoying that I can get my mobile phone and kindle3g to work fine, but always have problems with the iPad. I am sure it could be good (and for reading emails on the go in the uk it is great, as I like the key board) but it just seems to make everything else difficult.
    i Hope you can help and sorry for asking questions others have, but I am just hoping that something new might have been developed!
    thanks,
    K
    Message was edited by: K Paton

    1) I have upgraded to ios6 and the kindle app will open but crashes and disappears when I try to access a book?
    Try rebooting your iPad, that should fix he issue. I that doesn't work, delete the app and re-download it.  The Kindle books should all be in he Kindle cloud services and you can get them again. I have an iPad2 w/ Kindle app and it works just fine - no issues.
    2) is there any way I can open more than one page at a time, as opening one at a time is hopeless?
    Page as in a kindle book way? turn iPad to landscape position from portrait position. If, however, you mean open more than one application at a time, then no. And not hopeless, as it takes a bit of time to get used to, going from a desktop/laptop format to tablet format.
    3) Is there any way you can replicate the right click function on word? As pasting and copying on the iPad is irritating to say the least!
    It's actually fairly easy. Press down on the word, then you can expand by drawing your finger to cover word/sentence/paragraph/page, hit select or select all then it gives you the option to cut, copy, paste, define. If you want to use a word processing app on the iPad, Pages is a good application.
    4) why can't my Samsung 11 phone connect to my iPad via Bluetooth? A they can't seem to 'see' each other? I may have turned a setting off when I was recently abroad and didn't want huge roaming charges.
    It's the connection on your phone. Samsung Galaxy SII? Android software?  What you have to do is go to the phone's settings and connect via wireless, not Bluetooth. Go to System Settings (on phone) and under Wireless and Networks click 'more' and go to the Tethering and Portable Hotspot option. Set up your mobile wifi hotspot,  name it though it will probably come up with 'AndroidAP', choose a WPA2 security level and put in a password. Go back to previous screen and turn on 'Portable Wi-Fi Hotspot' box. Then on your iPad in the Settings - Wi-Fi section, it should then recognize your phone for tethering. If it's a Windows Phone 7,  I don't know the layout of that software, but presumeably similar.
    5) Why do the submit buttons on some websites not work and how can I get them to? I never have a problem with windows, but it is often a problem with the iPad.
    Sometimes the issue is with the website design, not all websites are optimized for mobile devices - not just iPad but also Android devices. It happens. They're getting there, but occasionally the page might need a refresh.
    6) I have several websites which I have built and usually upgrade on the windows desktop, usually through Internet explorer, but I can't access the sites properly on the iPad (I can see them but can't alter them) and when sending emails through the websites they won't show the page and I can't navigate the page (the size of the email page is bigger than the iPad screen, but I can't either shrink the page to size or move the page around as you normally would on the pad, any ideas?
    It depends on what you use to build the websites on the computer. Recommend a free program on the computer called CoffeeCup Free HTML Editor. I don't recommend using IE period; Firefox or Chrome are my choices on Windows machines. I have two websites that I manage, both using this program. I'm assuming that when you mean you can't access the sites on the iPad you mean to update them? Ostensible there are apps to let you do this. What format are the sites? Without seeing what exactly you mean and what you want to do, it's hard to explain.
    As for seeing full page while emailing within a site, turn iPad to portrait mode, and try to finger-pinch touch the screen to see if that will bring the fuller page  into view. Other option is opening a second tab with same website and just go between tabs to reference material.
    7) finally, when roaming abroad recently, I had no problems using the wifi, but when trying to use the cellular data (using the roaming function) I could not get it to work? The ipad seemed to be connected to the network with no problems, but wouldn't actually update the emails? I tried turning it on and off, but that didn't make a difference. My kindle and mobile phone (both also on 3G ) worked great, it was just (as usual) the ipad playing up.
    If you were outside the US or Canada, my guess is the problem lies within the SIM card in your iPad. If you were outside North America, there are different band levels - I'm guessing you have a SIM thats locked to a particular provider. Band level frequencies differ per country/continent, so a SIM card that will work in Canada/US will not likely work in UK/Europe/Asia/Australia, etc. you will be able to get your emails again when back on a wifi network. Mobile phone may have a different type SIM card (GSM/HSPA) from your iPad SIM. Also, check your email settings.
    8) when wanting to alter part of a sentence, I can't always get the cursor in the right place? Sometimes it is simple the wrong line, but often it will only go at the end or start of a word and not where I want it. Is there any way of making it more exact? Again I never have a problem with moving the cursor on windows, either by mouse or on the touch screen function on windows 7. Any ideas? As after pressing the screen multiple times I just want to throw it out of the window!
    Moving the cursor on a sentence is a matter of putting your finger on the screen where you want it. It's exceptionally easy to do. I'm using the Notes app to write this whole segment and I just need to put my finger where I want to change things and presto it's ready for me to change where I want it.
    Here's a solution: sell your iPad (after you wipe your data off it) to someone who will appreciate it, and put your money towards the Windows Surface Tablet out later this year/early next year, where you can (reportedly) connect a mouse to it. It will have some of the Windows 7/8 functionality that you're more familiar with, or get a netbook.
    - Ceridwyn2

  • Why can't I paste more than one page at a time?

    I have a problem with Pages when I try to paste more than one page worth of content at one time.
    In my business I have a form online for clients to fill out. When the clients have finished the form, I copy the form (saved either as a safari document or as a pdf) and then try to paste what I have into Pages. It should flow to fill out four pages, but for some odd reason it only fill the first page of a Pages document, then it gives me a second blank (empty) page. So the document is two pages long, but only the first page has content.
    I know the pasted information is hidden in the document, because if I were to cut (erase) a few lines of content, the pasted information would appear from the bottom of the page to fill the space I just made.
    Why is Pages not making a four page document containing all my pasted information? Why isn't it flowing to fill out as many pages as it takes to show all the information?

    Michele Stapleton wrote:
    I think using Numbers is too complicated because what I want essentially is a text document I can alter.  I take the information they put into my form and repurpose it in a way I find more useful while performing the job. So, I want to be able to take their typed information and move it around. And add some more of my own.
    You may perfectly "their typed information and move it around" in Numbers which behave as the AppleWorks Draw environment.
    Here is the second page in the document which I posted before.
    As you may see, the standard Word Processor features are at work:
    Spell Checker
    Selection…
    I exported my AppleWorks documents in Numbers ones.
    And of course, with the Numbers document open, you may copy pieces of it and paste them in Pages's pages.
    Yvan KOENIG (VALLAURIS, France) jeudi 16 juin 2011 16:44:30
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How to create combobox to display more than one columns

    I need kind help with the following question. As the combobox includes two pieces--textbox and the combobox list. Then how to create a combo box bean, which is based on table EMP(empno number(6), ename varchar2(40)) records for example, to achieve these features:
    1) allow more than one columns to be displayed in its records list--e.g., I need to show these records:
    empno (value) ename (label)
    103 David M Baker
    104 David M Baker
    105 Kelly J Volpe
    106 Krista F Carpenter
    107 Michelle P Silverman
    The two 'David M Baker's are different employees, but unfortunately, with the same name.
    2) allow combo box list to return the column value 'empno' even though it shows both columns as above. i.e., if user picks the second record above, then the combobox list returns 104 to the textbox in the background, but the 'David M Baker' is displayed on the textbox. Of course the combobox list may return 'David M Baker' if needed when there is only one column in the list as the current standard feature.
    3)allow partial match search by typing in some letters. i.e., if user types in the textbox of the combobox letter 'K' or 'k' then the partially matched records
    105 Kelly J Volpe
    106 Krista F Carpenter
    should be automatically displayed in the combobox list, not the whole list as above; then user may double click to choose one of the two or if user continues to type in 'R' or 'r', then the uniquely matched record 'Krista F Carpenter' is displayed in the textbox and the 106 is returned to the textbox.
    4) as a bonus if it's doable, allow combobox to return values to different textboxes when its records list has more than one columns.
    The reason I need these features is that I am working on the project migrated from Microsoft Access applications to centralized Java version web application. We at beginning promised to users community that Java swing will provide all the GUI user friendly features Microsoft Access has, but now we got stucked--we ate our words and got tons of complains from our users community. This is just the most needed component I posted here. I really hope that Java would add all the default GUI user-friendly features to compete with MS since its Win95 GUI has been accepted as industry standard. And most users are used to it. They claimed that they don't know and don't care what tool you use the newly created application should be more user friendly, not the opposite.
    I would be very much appreciated if any one would help me with this item.

    Thanks for your comments. I think nobody expects Sun to write everything including special features for its components. But I do think Sun should provide at least those standard user-friendly features for the GUI components because most users have been used to the GUI user-friendly features provided by Win95 and Access/Excel applications. Then this will help us to productively create applications to beat MS applications.
    Other wise like me, to get the existing GUI features, existed in old MS Access application, for our migrated Java application, I must re-create the GUI components library first which is a big burden to me at least, for others it might be fun for coding on their own from scratch, but I have to focus on the timing of project.
    If you really can pass the request to Sun and push them move a bit, please pass these words: before Sun starts to revise them, please play around window GUI, e.g., Access/Excel applications, then plan what to do, the bottom line is to equally match or better than them in FUNCTIONALITY(Look and feel is not my focus here). Don't ignore the influence of Windows regardless of you hate it or love it, the reality is most users are so familiar with windows GUI features which are accepted as industry standard. Thus the choice is to match or better to beat them. Don't make your car by closing your door, don't assume users will like what you come out in a closed room.

  • How can I select more than one song from the search results?

    I want to create playlists based on certain words in the song title. For example, I may want to create a playlist of all my songs with LOVE in the title.
    Doing the search is easy, but I can't select more than one song at a time. Is there any way in iTunes 12 for Windows to do this? I found an answer in iTunes for Mac, and it basically says to "un-check "Search Entire Library." " but I don't see that option in iTunes for Windows.
    Here is the link to that question: how can i select more than one song from drop down search bar
    I hope some Windows user can help me out.

    Found the "Search Entire Library" option - click on the small (VERY small for my eyesight) down arrow next to the magnifying glass. Also need to select "Filter by: Songs", and then the songs in the main window show the results.
    I'm going to leave this up on the board because 1) in case someone else has this question, and 2) I don't know how to delete it anyway.

Maybe you are looking for

  • 11.5.9 How to select all invoices in Payment batches ??

    Hi Guys, We are working on 11.5.9 Payment batches... Could anyone help me out on how to select all the Invoices whether due or not in the Payment Batches ?? I see that unchecking only due' doesn't work...is Pay through date is the only option ?? Rgds

  • Installer has insufficinent privileges to access this directory c:\program files\ipod\bin log on as administrator

    I'm getting this error when I try to install the newest version of Itunes.  I have tried so many things.  Please help. installer has insufficinent privileges to access this directory c:\program files\ipod\bin log on as administrator

  • Fragents and Change Orders

    I'm new to P3. I need to manage a large 2 year public works building construction schedule in downtown Los Angeles, with numerous and frequent changes to the schedule due to change orders, RFI's etc. Of course, these changes result in increases/decre

  • Does Oracle Framework ToolBox Tutorial supported by 11.5.9?

    Hi guys, We have 11.5.9 instance and now we want to make an internal training with the tutorial sample. I have downlload the patch: FWK.H (11.5.9 or 11.5.10 base release)      You need JDeveloper from Patch 4045639 (9IJDEVELOPER WITH OA EXTENSION ARU

  • Help! Should i upgrade from SL 10.6.8 to Lion OS-X

    Hello I am a MacBook user and need  valuable advice regarding whether i should go for Lion OS X from Snow Leopard 10.6.8 Currently I am using White-MacBook 2.26 GHz Intel Core 2 Duo, 2 GB Ram, NVIDA GeForce 9400 M running Snow Leopard. I am very much