Using a calculated column to pull a string from another column

Ok let me try to explain my situation. I have a column with multiple paragraphs or text. I want a calculated column to only pull the top paragraph. This break between paragraphs would be an <Enter>. Nothing else. Is there a way to signal pull this
string but break at the <enter>.
I don't think it is. But thought I'd ask.

Yes, you can do this. But you need to use the CEWP and jQuery. Refer to the following post for more information
https://www.nothingbutsharepoint.com/sites/eusp/pages/taming-the-elusive-_e2_80_9ccalculated-column_e2_80_9d-referencing-multiple-lines-of-text-column.aspx
http://stackoverflow.com/questions/10486939/jquery-show-only-first-paragraph-of-each-article
--Cheers

Similar Messages

  • How to use a calculated column in the same query

    Hi All,
    I need some help with using a calculated column in the same query.
    For eq
    I am joining a couple of tables and some of the select columns are calculated based on the columns of the tables and i want a new column in the same query to use this calculated feild in some other calcualtion.
    something like this...
    select (12+3) as Sum1, (12-3) as Sum2, (Sum1 + Sum2 ) as Sum3
    from dual
    or
    select (12+3) as "Sum1", (12-3) as "Sum2", CASE WHEN ( "Sum1" / "Sum2" * 100 > 0 ) THEN 'Yes' ELSE 'No' END
    from dual
    Thanks

    user548171 wrote:
    select (12+3) as Sum1, (12-3) as Sum2, (Sum1 + Sum2 ) as Sum3
    from dual
    or
    select (12+3) as "Sum1", (12-3) as "Sum2", CASE WHEN ( "Sum1" / "Sum2" * 100 > 0 ) THEN 'Yes' ELSE 'No' END
    from dual
    ThanksWhat about just repeating the column values:
    select (12+3) as "Sum1", (12-3) as "Sum2", CASE WHEN ( (12+3) / (12-3)  * 100  > 0 )  THEN 'Yes' ELSE 'No'  END FROM DUAL

  • Call String from another method

    hey,
    Im pretty new to java and Im having problems with calling a String from another method
    I have two public voids, in one of them I have a String which I wanna use in another method.
    Thanks

    here is some of my code:
    public void getOrder() {
            try {
                DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
                DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
                Document doc = docBuilder.parse(new File("c:/orders.xml"));
                // normalize text representation
                doc.getDocumentElement().normalize();
                System.out.println("Root element of the doc is " + doc.getDocumentElement().getNodeName());
                // lees orders
                NodeList orderlijst = doc.getElementsByTagName("order_naam");
                System.out.println("totale aantal orders : " + orderlijst.getLength());
             //    Element orderitem = (Element) orderlijst.item(0);
    System.out.println("name=" + doc.getElementsByTagName("order_naam").item(0).getFirstChild().getNodeValue());
              String st =doc.getElementsByTagName("order_naam").item(0).getFirstChild().getNodeValue();
      public void createGUI () {
            this.removeAll();
            lbltest = new JLabel();
            lbltest.setBounds(20, 40, 150, 20);
            lbltest.setFont(new Font("Verdana", Font.BOLD, 12));
            this.add(lbltest);
        i want to use the String st in the jLabel in createGUI

  • To read string from another file

    Dear friends
    I am working on a project where i need to read log files which are there on my C drive.
    I got a folder and from that i need to read string from another folder and name them as URL,TS etc..so any body have any idea about this...

    I have no idea what you're even trying to do. Can you try explaining your problem more clearly and in more detail?

  • Trouble changing column name used in calculated column

    I have a calculated column in my list.  The calculation is based on a column "Status".  It worked fine.  But I recently had to do some work on the Status column and changed it to Status_OLD and replaced it with a new Status column. 
    The above mentioned calculated field is now using Status_OLD and thus not working because Status_OLD is no longer in use.  I went in the to calculation formula and tried to change it to Status, but Status does not appear in the Insert Column list, nor
    does it allow me to just type in Status into the formula without throwing an error.  Short of deleting the column and re-creating it, is there something I'm doing wrong or overlooking?
    There are no mistakes; every result tells you something of value about what you are trying to accomplish.

    Finally getting back to this issue.  I have two columns in my list "Status" and "Status_OLD".  "status" is a replacement for the previous one.  I have three calculated fields that use that field. I need to change
    their calculation to now use "Status" instead of "Status_OLD".  When I go to the settings for that column, "status" is not listed in the choice of columns that can be inserted.  Just typing it in won't work either.
    When I try to make a new cal as a test, "Status" isn't available there either.
    I really need to get this fixed as soon as possible now because some of these dates need to be acted upon.
    There are no mistakes; every result tells you something of value about what you are trying to accomplish.

  • Pulling text strings from a file in Quartz Composer

    I want to create a screensaver that randomly displays quotes from a specified file. It doesn't matter how the file is formatted -- txt, xls, etc. -- as long as Quartz can randomly display quotes from the file. I know how to display text strings in Quartz, and I know how to randomize graphic functions, but not how to randomize display of text strings.
    Any ideas?

    Here is a shuffling algorithm:
    http://tekpool.wordpress.com/2006/10/06/shuffling-shuffle-a-deck-of-cards-knuth- shuffle/
    Basically, pass through the file once to get the number of strings (n), than shuffle an array of integers 1 to n using an algorithm like the above. As each number comes up, pull that string out of the file.

  • Using the eyedropper tool to take a color from another file or website...

    Hi,
    I'm new to Kuler, but recall being able to use the eyedropper tool in InDesign and click on an area of color from a file from another application or a website and have use it in the InDesign file.
    Am I incorrect?
    If there is a way to do what I am asking if you could please explain how I'd really appreciate it.
    Thanks and look forward to hearing back from you soon.

    Not sure what exactly you are asking here.
    However, wrt Kuler in Indesign, You can add swatches to Indesign Swatches Panel. You can apply color to ID Fill/Stroke color by simply double-clicking a color on Create Tab inside Kuler panel. Or you can take color from Fill/Stroke and set it as base in Create tab to create theme around it

  • Currently have been using my ipad 2 to pull up emails from my verizon. Last week verizon updated to my Verizon 2.0 and I can not open my emails or scroll down on my emails. Called verizon and Apple and no one could help me open or access my mobile emails

    Currently have been using my ipad 2 to open and read my emails from Verizon.
    Last week Verizon upgraded to My Verizon 2.0 and it is not compatable with the ipad 2.
    I can't open my emails or scroll down to read them. I called Verizon and Apple and no one can help me..
    Has anyone experienced this same issue on their ipad?
    Frustrated verizon ipad user.

    You can also go to   https://www22.verizon.com/ForYourHome/VZRepair/vziha/Service.aspx?ihaweb=EmailSe tup
        and it gives you a step by step on adding your account. However don't use the server port number they give you because it does not work. I followed the  same steps without changing the number and it worked.
    The problem I have is that I can not see the folders I created on my Verizon email account, when I open it on my iPad. I have called Verizon &amp; gone to the Apple store and neither had an answer except to say it was the other's problem.
    Can any one help?

  • Checking for an element in a string from another string

    Hi Guru's,
    I have 2 comma seperated strings. Say like this.
    a VARCHAR2(100) := '1,2,3,4,5,6,7,8,9,10';
    b VARCHAR2(100) := '2,6,9';
    My requirement is like I want to check the string a, whether it has any of the element in b. I am trying to use the regular expression. But I was not able to do it.
    Kindly help me.
    Regards,
    VJ

    SQL> var cur refcursor
    SQL> declare
       a              varchar2 (100) := '1,2,3,4,5,6,7,8,9,10';
       b              varchar2 (100) := '2,6,9';
    begin
       open :cur for 'select column_value common
            from table (sys.dbms_debug_vc2coll (' || a || ') multiset intersect sys.dbms_debug_vc2coll (' || b || '))';
    end;
    PL/SQL procedure successfully completed.
    SQL> print
    COMMON                                                                                                                           
    2                                                                                                                                
    6                                                                                                                                
    9                                                                                                                                
    3 rows selected.

  • How to search tables and views used in the code of oracle fmb 6i from another form???

    Hii guys, this is a very interesting question and i hope that it will have ample amount of answers.
    My requirement is to know the number of tables and views and backend functions/procedures which are used in the code written in the oracle forms 6i,
    all i want is to display whole views, tables or functions/procedures which are written  in the code of a particular fmb, i do have the path of that fmb and i want to read the code and search through it's entire code for the tables/views/backend procedures/functions written in the code. So how to search through the entire code of a particular form (6i) and make it display through another form.
    I am using oracle forms 6i.
    Please help me out....
    With Regards:
    Ankit Chandra

    Here is a modified dealForm.jsp that merges the 2 steps - both symbol submission and Yahoo convert is done by it. Play with it and add your DB code to it:
    <html>
    <head><title>IPIB Database Selection</title></head>
    <body bgcolor="#DFDFFF">
    <H1><CENTER>IPIB Database Selection</CENTER></H1>
    <font size=4>
    <%@ page language="java" %>
    <%@ page import="java.net.*,java.io.*,java.util.*" %>
    <%
    String symbol = request.getParameter("symbol");
    if (symbol != null) {
    String urlString = "http://finance.yahoo.com/download/javasoft.beans?SYMBOLS=" + symbol + "&format=ab";
    try {
    URL url = new URL(urlString);
    URLConnection con = url.openConnection();
    InputStream is = con.getInputStream();
    InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
    String line = br.readLine();
    StringTokenizer tokenizer = new StringTokenizer(line,",");
    String name = tokenizer.nextToken();
    name = name.substring(1, name.length()-2);
    String price = tokenizer.nextToken();
    price = price.substring(1, price.length()-2);
    %>
    <p>
    Original line from yahoo <%= line %>
    </p> <p>
    Name: <%= name %>
    </p> <p>
    Price: <%= price %>
    </p> <p>
    Pub DB processing code from dealLoad.jsp here
    </p>
    <%
    } catch (IOException exception) {
    System.err.println("IOException: " + exception);
    } else { %>
    <form action="dealForm.jsp"method="GET">
    <p>Enter Symbol: <input size="20" name="symbol">
    <inputtype="submit" value="Submit">
    </p></form>
    <% } %>
    </font>
    </body>
    </html>

  • Can't use filter when accessing hana table through link from another table in sapui5

    Hi all,
    Have a strange one and I was wondering if someone had come across this before.
    Hana table structure
          entity SalesOrder {
        key element name : String;
        element contact : Association[0..*] to Contact via backlink order;
    entity Contact {
    element location: Location;
        element order : Association to SalesOrder;
    ==
    each sales order has a number of contacts.
    In javascript, if I bind on list of contacts directly then I can use the filter
    oRowRepeater.bindRows("/Contact",oRowTemplate,null,[new sap.ui.model.Filter("location",sap.ui.model.FilterOperator.EQ, "Germany")]);
    and if I enter link i returns the number of entries
    Contact/$count?$filter=location eq 'Germany'
    But if I get contacts through the sales order it doesn't allow me to use the filter,
    oRowRepeater.bindRows("/SalesOrder('mike')/Contact",oRowTemplate,null,[new sap.ui.model.Filter("location",sap.ui.model.FilterOperator.EQ, "Germany")]);
    I can return the contacts same as accessing them directly and i can get the information such as
    new sap.ui.commons.TextView({text: "{location}"}) same as before but only difference is that i can't filter.
    When I try the following I get error
    /SalesOrder('mike')/Contact/$count?$filter=location eq 'Germany'
    Error
    "message": {
                "lang": "en-US",
                "value": {
                    "type": "ODataInputError",
                    "message": "Bad Request URL: U"
    When I open Chrome Developer Tools I see the following error
    SalesOrder/contact/$count?$filter=location%20eq%20%27EMEA%27 400 (Bad Request)
    Basically the $count doesn't work if you access contacts indirectly even though the link is there.
    Is this a bug or am I doing something wrong?
    Hana is sp8, I am up to date with almost everything.
    Many thanks,
    Matthew

    for the reading/writing from oracle to access, you could do something like this:
    for table in oracle/access with fields of id(number), name(varchar/text):
    Connection oconn = //connect to Oracle
    Connection aconn =  //connect to access
    //create the insert statement into access table
    PreparedStatement apstmt = aconn.prepareStatement("INSERT INTO accesstable (id, name) values (?,?)");
    //select all the results neeed from oracle table
    Statement ostmt = oconn.createStatement();
    ResultSet rs = ostmt.executeQuery("select id, name from oracletable where...");
    while ( rs.next() )
         apstmt.setLong(1, rs.getLong(1));
         apstmt.setString(2, rs.getString(2));
         apstmt.addBatch();
         //if your driver doesn't support batching, just use this:
         //apstmt.executeUpdate();
    //use this only if you use batch statements
    apstmt.executeBatch();
    rs.close();
    stmt.close();
    apstmt.close();
    oconn.close();
    aconn.close();

  • How can you use one NetStream to publish video and audio from another NetStream in AS3?

    Let's say one of your client programs in AS3 is able to receive live video and audio from a NetStream and play it on the screen.  How could you make it also take that video/audio stream that it's receiving, copy it over into another NetStream, and publish it elsewhere?  I need to know how to do with this regardless of whether RTMP, RTMFP, or some mixture is involved.  The reason why the stream needs to be relayed this way is a real long story, but it's necessary in this particular case. Thanks!

    RTMP is TCP, which has higher overhead and latency because it guarantees packets are delivered (handshaking, causing latency and overhead). It also doesn't allow you to share connections directly between clients forcing the server to do all the work.
    RTMFP uses UDP, which is a choice protocol for streaming video because it's the opposite. It's lossy which decreases latency and overhead from no retransmissions and most importantly (in some applications) allows you to connect directly from one Flash Player to another Flash Player (p2p) so the server overhead is dramatically reduced. The server is only required to negotiate the initial connection and then it's up to the clients to continue to facilitate that.
    How you code your one to many or many to many relationship broadcast network will be based entirely on which of those you choose.
    URLStream is very common to use in p2p. Here's an older Adobe article on p2p and an alternate quick old video tutorial (FP10) as a quick simple example of p2p over RTMFP you can view the source of.

  • Reference to string from another class

    I've searched google and this forum a bit, but can't seem to find an answer. I'd say the thing I'm looking for is really simple and essential, so I must be a moron. But anyways; I want to get the output of the "process" thing in another class. How do I reference to that string fomr outside it's class?
    Thanks.
    public class ReadInput {
         private static void printCommands() {
             System.out.println("blabla");
             System.out.println("blabla");
             System.out.println("blabla");
    public static void process(String in) {
              Do something with the String "in" here. Say, eventually rename it to "output".
    public static void doReadFromStdin() {
         try {
             BufferedReader inStream = new BufferedReader (
                                             new InputStreamReader(System.in)
             String inLine = "";
             String in = inLine;
             while ( !(in.equalsIgnoreCase("quit"))
                     !(in.equalsIgnoreCase("exit")) ) {
                 System.out.print("prompt> ");
                 in = inStream.readLine();
                 process(in);
         } catch (IOException e) {
             System.out.println("IOException: " + e);
    public static void main(String[] args) {
          printCommands();
         doReadFromStdin();
    }

    Maybe this might help
    Igor_Pavlove wrote:
    public static void process(String in) {     
    Do something with the String "in" here. Say, eventually rename it to "output".
    public static String process(String in){
      //Do something, e.g.
      String temp = "ifeeltired";
      return temp;  //Returns the String temp when this method is called.
    public static void main(String[] args) {
         printCommands();
    doReadFromStdin();
    public static void main(String[] args){
      String temp = "thisisaroughexamples";
      String result = this.process(temp); //Returns a string and stores it in result
      CreatePlural.print(result);  //This is possible because the method print() in CreatePlural is static and an instance of CreatePlural is not required.
    }Edited by: Melanie_Green on Feb 2, 2009 6:46 AM
    Edited by: Melanie_Green on Feb 2, 2009 6:47 AM

  • Using Content search web part to retrieve items from another site collection

    I have a web application that contains two site collections(team site + enterprise wiki), with the following URLs:-
    -http://applicationname/teamsite
    -http://applicationname/enterprisewiki
    Now I need to display the latest 10 wiki pages from the enterprise wiki site collection(according to the modified date) inside the team site. So I read that using Content search web part allow for cross-site content query. Currently I added a new content
    search web part , inside my team site, and I click on “change query” button. But I am not sure how I can reference the enterprise wiki site collection's wiki page library and to specify that I need to get the latest 10 wiki pages , inside the following dialog:-
    Basically this setting partially worked for me, I provide the following settings inside the “Build Your Query” dialog:-
    From the “Select a Query” I defined the following:- “items matching content type(system).”
    Restrict by app : “Do not restrict results by app”
    Restrict by content type “Enterprise Wiki Page”.
    This showed all the sites, lists and even pages are based on the “Enterprise Wiki Page” content type. But I am facing these three problems:-
    1. The above setting showed only the sites,lists and pages matching the “Enterprise Wiki Page” content type, that exists on another web application, and not that exists inside the current web application.
    2. To test the web part , I got the following results, But I was not able to add additional info for the items such as created by, modified by ,etc.
    3.  Also there is no way to sort the wiki pages by the modified date, as in the Sorting tab inside the “Build Your query” dialog I cannot find the “modified” inside the Soft by list
    So can anyone advice how to fix these three problems

    Hi,
    1. In "Build Your Query" dialog, we can select "Specify a URL" in
    Restrict by app and enter another site URL.
    2. If you want to add more information for the items, we need customize the display template, the following link for your reference:
    http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/01/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-1.aspx
    3. In the Sorting tab, we can use "LastModifiedTime" to instead of "Modified".
    Best Regards 
    Dennis Guo
    TechNet Community Support

  • Using hue/saturation adjustment layer to match color from another image?

    How can I use a hue/saturation adjustment layer on image 'A' so that it matches the color of image 'B' please?

    Depends, John.
    If you're able to create a reasonable selection via Color Range, feathered masking, etc, then by matching one specific color, you'll also be correcting for that entire range of hue. It might have been needed anyway...or you use a color filter to correct the whole image, if it's needed.
    As we all know, each image presents its own specific challenges and solutions.

Maybe you are looking for

  • Mail notification sound plays after I have read a new message

    When a new message comes in, the mail sound does not play right away. Often I will see the email and read it. Then, some time after I've finished and the screen is locked again, the sound plays. This problem occured with iOS 4 and still happens in iO

  • Audio Files and Associated Program

    I have created a menu page in HTML (Dreamweaver). I have several audio files that will be located on a CD that contains the menu page. What I would like to do is ensure that Windows Media Player launches. Right now these are .wav files and I would pe

  • ITUNES AND EXTENDED DESKTOP

    O guess I can't post a pic as a reference here or attach the thing. Ok, I run two 17 inchers down deep and it's 2560x1024 display. Safari takes the extended desktop to timbuktu. iTunes doesn't like to span the entire display. Do people who have HD 30

  • Itunes hasnt moved my music over to my new pc

    I got a new laptop last year for university, when I installed iTunes onto my laptop it automatically moved all my music over without me having to plug in my ipod. I've just had to get a new harddrive for the same laptop and obviously had to re instal

  • Cannot see iPodService.exe from limited user account.

    I have a 4th-generation iPod which I am attempting to connect to a computer running Windows XP Pro. I do most of my work under a limited-permission account, running as administrator only to install new software, such as the iTunesSetup.exe installer.