In a Table trying to WordWrap a long string

Using a single column and row table to post notes from a data run. The notes may be long and when using a constant font size the string goes off the page, hense the need for WordWrapping
Attachments:
Jims_Try.TDR ‏59 KB
tdmtest.tdm ‏15 KB

Hello Todd,
I already spoke to you about this issue and sent you a modified TDR, but I thought that I'd answer it for anyone else who might be interested.
You should instead use a "Text Object". It is located in the "Decorations" category in the "Report" view. Double-click on the oject to bring up the "Text Object Editor". Use "DIAdem expression >> new" to be able to access DIAdem channels, variables, and functions. I used the expression "cht(1,13)", for instance, to tell the report to load the text from channel 13 into the Text Oject. The Text Oject automatically wraps around.
Thanks again for contacting National Instruments. Take care!
Aaron B.
National Instruments
Attachments:
Todds_Try_Modified.TDR ‏63 KB

Similar Messages

  • Passing long string to shell script from java

    I am trying to passa a long string to a shell process through java,
    call is like
    Runtime rtime = Runtime.getRuntime();
    String callAndArgs[] = {"/apps/jetty4/jstest/jstest.sh",jarCo,queue,text};
    Process child = rtime.exec(callAndArgs);
    here the string text is :
    |HEADER|JAR933|[email protected]|290001|OL0006528|WIN4015444|SHAFT_FORGING|1.0|Baan EDM|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    |290001|WIN4015444|00||||2|SHAFT FORGING|9|AXELSMIDE|3|ACHSE SCHMIEDEST�CK|4|ARBRE FORG�|f|AKSELITAOS|||||||||||||||||||||||No||Approved|41.0|Mechanic|Yes|pc||WIN4015444|EL20|Purchased|Metric||0|20051120|||||Released||||||||||||||||No||||||||||||||||||||||||||||||||
    Now i use this string in shell script to pass as an argument to other class. But the string gets truncated.
    How do i solve this?

    It appears that your os is truncating the data - Java's not involved.
    Maybe write the data to a file and then read it into the external program some way.

  • ORA-06502 trying to load a long raw into a variable.

    Hi. In my table "banco_imagem" the bim_src column is a long raw type.
    I´m using oracle forms 6 (not 6i), so I can´t use blob type to save my images.
    Now I´m trying to load the long raw column into a variable in a package that runs on 10g.
    I´m trying to execute de folowing code at sql plus:
    declare
    wbim   long raw;
    begin
    select bim_src into wbim from banco_imagem where rownum=1;
    end;
    The column is not null. It has a value.
    I got the folowing error:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at line 4
    My goal is to load this column to convert it to blob so I can manipulate with my others (already running) functions.
    Can anyone help me?
    Thanks!

    Hi Mcardia,
    not sure where you're going wrong, but perhaps if you compare what you've done up to now to the following code snippet, you may figure it out eventually!
    SQL> drop table test_raw
      2  /
    Table dropped.
    SQL>
    SQL> create table test_raw (col_a long raw, col_b blob)
      2  /
    Table created.
    SQL> set serveroutput on
    SQL> declare
      2 
      3    l1 long raw;
      4    l2 long raw;
      5   
      6    b1 blob;
      7   
      8  begin
      9 
    10    l1:= utl_raw.cast_to_raw('This is a test');
    11   
    12    insert into test_raw (col_a) values (l1);
    13 
    14       
    15    select col_a
    16    into   l2
    17    from    test_raw
    18    where   rownum < 2;
    19   
    20    dbms_lob.createtemporary (b1, false);
    21   
    22    dbms_output.put_line(utl_raw.cast_to_varchar2(l2));
    23    b1 := l2;
    24 
    25    update  test_raw set col_b = b1;
    26   
    27    commit;
    28   
    29    dbms_output.put_line('Done ');
    30   
    31    exception
    32      when others then
    33        dbms_output.put_line('Error ' || sqlerrm);
    34  end;
    35  /
    This is a test
    Done
    PL/SQL procedure successfully completed.Bear in mind that I'm running on the following:
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production

  • Error while adding the Objects in Existing DSO -Table /BIC/B* is too long ( 004030)

    Hi Team,
    We added some objects in the existing Write Optimized DSO.  while activitating the DSO We got the below error .
    Table /BIC/BXXXXXXXXX is too long (>004030)
    Please go through the issue and provide the solution.
    Thanks,
    Purushotham.

    Hi Purushotham,
    Is the table in error log is active table of DSO? it doesnt look like...it will be /BIC/A<DSO>name
    in your case it is /BIC/B----!!
    Now  instead of adding 15 fields, could you try concatenating 2 fields in 1 and in that way you will have to add 7-8 fields.
    later at Standard DSO layer or Cube layer you can read relevant field value by "field+(<No.>)"
    And you mentioned that you willtry for concatenate 4 IO of length 60 into 1 InfoObject (IO).
    This cant be done...max lenght is 60! then how will you create a IO with lenght 240! please think of other logic.
    Regards,
    Gaurav

  • Inserting long string into Oracle

    When my code inserts about 5K character into a table, I got an error message saying that the Oracle could only handle 4K character. I am currently looking at LOB but havn't had a clear idea yet. Could someone give me some help on this? According to the sample code, I will have to use Oracle JDBC driver for LOB. But we are using BEA's Kona driver for all JDBC connections. Is there an easy way to insert long string?

    hii
    nams u solve ur problem using setCharacterStream method
    but it does't work if the string more than 4000 char
    raises "java.sql.SQLException: Protocol violation"
    here's the code
    PreparedStatement ps = con.prepareStatement( "UPDATE candidate SET cv_new = ?");
    StringReader cvReader=new StringReader(cv_new);
    int abc=cv_new.length();
    ps.setCharacterStream( 1, cvReader, abc);
    ps.executeUpdate();
    is that any problem in that code or it's a jdbc driver broblem ??
    i'm using classes 12.zip
    thanks

  • GP - How to display a long string value

    I'm trying to display a really long string value and then allow the user a couple of result state choices (to either go back and do another search or finish).
    None of the forms (WD, display, etc.) will display a really long string.
    I tried using a loop type decision dialog, but there doesn't appear to be a way of having it pick up a parameter value as the message (or part of the message) to display.
    I can get it to display in the complex type decision dialog, but I don't need the group/options and I can't seem to get rid of the second set of buttons that show up (the long string parameter value was put into the 'Info Texts' area and does display ok).
    Is there any easy way of displaying the complete contents of a long string value and have buttons for results states?  I'd even be happy if I could just display the whole string and use a separate callable object for the choices.
    Thanks,
    Cindy

    I think you should try calling a JAVA or ABAP Webdynpro as the callable object. As you know, we can display long texts in the webdynpro fields. Other alternative is an Adobe form as well.
    Cheers,
    Mandrake

  • How to insert a very long string into a column of datatype 'LONG'

    Can anyone please tell me how can I insert a very long string into a column of datatype 'LONG'?
    I get the error, ORA-01704: string literal too long when I try to insert the value into the table.
    Since it is an old database, I cannot change the datatype of the column. And I see that the this column already contains strings which are very long.
    I know this can be done using bind variables but dont know how to use it in a simple query.
    Also is there any other way to do it?

    Hello,
    To preserve formatting in this forum, please enclose your code output between \ tags. And when executing you code as a pl/sql or sql script
    include following lineset define off;
         Your code or output goes here
      \Regards
    OrionNet                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • LONG string formatting problem- do you have answers?

    Hi,
    When I start my movie, I am trying to set a variable using a LONG string- concatenating "text" and getAt(x,y). I saw a solution some time ago utilizing backslashes. i keep getting the error message "variable used befroe assigned a value".
    My variable is "bodder" and the string is "I can't get there until " & getAt(x,y) & ". You may have to ask a co-worker for a ride, or catch the next commuter train."
    "bodder" is included as a global.
    My code is: bodder = string( "I can't get there until " & getAt(x,y) & ". You may have to ask a co-worker for a ride, " \
    "or catch the next commuter train.")
    Thanks in advance.
    BigDaddy

    Joshua,
    I just used 'x' and 'y' in my post to fill-in the blanks.
    I have a list with a different name, which I access/reference throughtout the movie successfully.
    BigDaddy

  • I need to delete a text that keeps locking up my iPod. The text contains a long string of emojis (a bunch of ant symbols).  It keeps locking up the iMessage screen.  Was doing it on my iPhone to

    I need to delete a text that keeps locking up my iPod. The text contains a long string of emojis (a bunch of ant symbols).  It keeps locking up the iMessage screen.  Was doing it on my iPhone too. How do I delete an old text that keeps trying to come through my apple Id?
    Thanks?

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?

  • StAX  XMLStreamReader  getTextCharacters() problem withj long strings

    Hi,
    I am reading long hexidecimal strings that are within elements in xml using StAX and with long hexidecimal strings I seem to be losing the end of these strings. I am creating XMLStreamReader and I tried using getText() and this was not returning anything but using getTextCharacters() seems to work until I get these long strings. Here is the code I am using for processing a CHARACTERS event:
    import javax.xml.stream.XMLInputFactory;
    import javax.xml.stream.XMLStreamConstants;
    import javax.xml.stream.XMLStreamException;
    import javax.xml.stream.XMLStreamReader;
    if(event == XMLStreamConstants.CHARACTERS){
    int start = reader.getTextStart();
    int length = reader.getTextLength();
    char[] textCharacters = reader.getTextCharacters();
    String text = (new String(textCharacters,start,length)).trim();
    int containsHexInt = text.indexOf("0x");
    if(currentElement.equals("attrid")){
    attributeIdString = text;
    }else if(currentElement.equals("symbol")){
    symbolString = text;
    }else if(currentElement.equals("value") && containsHexInt != -1){
    if(transactionsTimeStamp==null){ transactionsTimeStamp=DateUtil.getNowInAcFormat();
    if(staxCompoundsDocument == null){
    staxCompoundsDocument = new StAXCompoundsDocument(
    outputFileName, transactionsTimeStamp, exlusionFilePath );
    staxCompoundsDocument.outputDocumentHead();
    staxCompoundsDocument.addCompound(transTimeStamp,fileTrans,
    symbolString,attributeIdString, parseHex(text),state,userid);
    I am using jsr173_api.jar though I don't have the version number for this.
    If anyone could help me explain this it would be real help. I am guessing it may be down to using buffers under the covers for StAX but don't know exactly how this works.
    Thanks in advance
    Rob

    Thanks DrClap,
    that was the problem, having not worked with StAX before I didn't know it could behave like this :(
    So I had a look at the documentation and tried setting the IS_COALESCING property but it seems the implementation of StAX that we have doesn't support this :( and doesn't have the methods isCoalescing :( and I don't have enough influence to change that.
    So I have had to set up my looping through events like the following pseudo code :
    if event != CHARACTERS && stringBuffer.length > 0
    process characters
    make stringBuffer empty
    do some event processing
    if event == CHARACTERS
    add the characters to the string buffer
    If there is a better way of doing this I'd like to know but at least I have something that works at the moment.
    Thanks
    Rob

  • PLSQL - Output a long string to screen

    I am trying to create an XML file, but I don't have FTP access on the server, only read rights.
    So I need to output a long string on the screen.
    By using the
    DBMS_OUTPUT.PUT_LINE ('<Environment> ' || long_string_01 || long_string_02 || '</Environment>');
    I get the 255 buffer error.
    Whats the easiest way around it?
    Thanks in advance everyone!
    Edited by: 866635 on Aug 5, 2011 5:16 AM

    Hi,
    I agree with Mr Robertson.
    SQL> SET SERVEROUTPUT ON SIZE 1000000
    SQL> SET LONG 1000000000 LONGC 1000000000
    SQL> set pagesize 200
    SQL> select TO_CLOB('When I use a LONG setting smaller than the length of the TEXT column,
      2  I got it truncated. When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the
    length of the TEXT column, I got it wrapped. When both are huge, it seems I am getting the expectin
    g result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.sql ?
      3  When I use a LONG setting smaller than the length of the TEXT column, I got it truncated.
      4  When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the length of the
      5   TEXT column, I got it wrapped. When both are huge, it seems I am getting the expecting
      6   result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.sql ?
      7  When I use a LONG setting smaller than the length of the TEXT column, I got it truncated.
      8  When I use a LONG setting smaller than the length of the TEXT column,
      9  I got it truncated. When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the
    length of the TEXT column, I got it wrapped. When both are huge, it seems I am getting the expectin
    g result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.sql ?
    10  When I use a LONG setting smaller than the length of the TEXT column, I got it truncated.
    11  When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the length of the
    12   TEXT column, I got it wrapped. When both are huge, it seems I am getting the expecting
    13   result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.sql ?
    14  When I use a LONG setting smaller than the length of the TEXT column, I got it truncated.
    15  When I use a LONG setting smaller than the length of the TEXT column,
    16  I got it truncated. When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the
    length of the TEXT column, I got it wrapped. When both are huge, it seems I am getting the expectin
    g result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.sql ?
    17  When I use a LONG setting smaller than the length of the TEXT column, I got it truncated.
    18  When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the length of the
    19   TEXT column, I got it wrapped. When both are huge, it seems I am getting the expecting
    20   result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.sql ?
    21  When I use a LONG setting smaller than the length of the TEXT column, I got it truncated.
    22  When I use a LONG setting smaller than the length of the TEXT column,
    23  I got it truncated. When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the
    length of the TEXT column, I got it wrapped. When both are huge, it seems I am getting the expectin
    g result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.sql ?
    24  When I use a LONG setting smaller than the length of the TEXT column, I got it truncated.
    25  When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the length of the
    26   TEXT column, I got it wrapped. When both are huge, it seems I am getting the expecting
    27   result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.sql ?
    28  When I use a LONG setting smaller than the length of the TEXT column, I got it truncated.
    29  When I use a LONG setting smaller than the length of the TEXT column,
    30  I got it truncated. When I use a huge LONG setting but a  setting smallerthe length of the TEXT
    column, I got it wrapped. When both are huge, it seems I am getting ') from dual
    31  /
    TO_CLOB('WHENIUSEALONGSETTINGSMALLERTHANTHELENGTHOFTHETEXTCOLUMN,IGOTITTRUNCATED
    When I use a LONG setting smaller than the length of the TEXT column,
    I got it truncated. When I use a huge LONG setting but a LONGCHUNKSIZE setting s
    maller than the length of the TEXT column, I got it wrapped. When both are huge,
    it seems I am getting the expecting result. So why not setting SET LONG 2000000
    000 LONGC 2000000000 in your login.sql ?
    When I use a LONG setting smaller than the length of the TEXT column, I got it t
    runcated.
    When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the leng
    th of the
    TEXT column, I got it wrapped. When both are huge, it seems I am getting the ex
    pecting
    result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.s
    ql ?
    When I use a LONG setting smaller than the length of the TEXT column, I got it t
    runcated.
    When I use a LONG setting smaller than the length of the TEXT column,
    I got it truncated. When I use a huge LONG setting but a LONGCHUNKSIZE setting s
    maller than the length of the TEXT column, I got it wrapped. When both are huge,
    it seems I am getting the expecting result. So why not setting SET LONG 2000000
    000 LONGC 2000000000 in your login.sql ?
    When I use a LONG setting smaller than the length of the TEXT column, I got it t
    runcated.
    When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the leng
    th of the
    TEXT column, I got it wrapped. When both are huge, it seems I am getting the ex
    pecting
    result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.s
    ql ?
    When I use a LONG setting smaller than the length of the TEXT column, I got it t
    runcated.
    When I use a LONG setting smaller than the length of the TEXT column,
    I got it truncated. When I use a huge LONG setting but a LONGCHUNKSIZE setting s
    maller than the length of the TEXT column, I got it wrapped. When both are huge,
    it seems I am getting the expecting result. So why not setting SET LONG 2000000
    000 LONGC 2000000000 in your login.sql ?
    When I use a LONG setting smaller than the length of the TEXT column, I got it t
    runcated.
    When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the leng
    th of the
    TEXT column, I got it wrapped. When both are huge, it seems I am getting the ex
    pecting
    result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.s
    ql ?
    When I use a LONG setting smaller than the length of the TEXT column, I got it t
    runcated.
    When I use a LONG setting smaller than the length of the TEXT column,
    I got it truncated. When I use a huge LONG setting but a LONGCHUNKSIZE setting s
    maller than the length of the TEXT column, I got it wrapped. When both are huge,
    it seems I am getting the expecting result. So why not setting SET LONG 2000000
    000 LONGC 2000000000 in your login.sql ?
    When I use a LONG setting smaller than the length of the TEXT column, I got it t
    runcated.
    When I use a huge LONG setting but a LONGCHUNKSIZE setting smaller than the leng
    th of the
    TEXT column, I got it wrapped. When both are huge, it seems I am getting the ex
    pecting
    result. So why not setting SET LONG 2000000000 LONGC 2000000000 in your login.s
    ql ?
    When I use a LONG setting smaller than the length of the TEXT column, I got it t
    runcated.
    When I use a LONG setting smaller than the length of the TEXT column,
    I got it truncated. When I use a huge LONG setting but a  setting smallerthe len
    gth of the TEXT column, I got it wrapped. When both are huge, it seems I am gett
    ing
    SQL>

  • Put_line long string

    Hi guys
    I am trying to ult_file.put_line a long string ~maximum 5000 characters to a file. I think i have exccess the default limit and receive an error. So i extend the maximum character per line by override the utl_file.fopen method. After that it stopped the error, but the output characters are all non readable characters - 扡扡扡扡扡扡扡扡扡扡扡扡扡扡扡扡扡扡
    Could someone suggest me a solution to insert my long string?
    Thank you
    Bryan

    Procedure Write_to_file(filename in string, orderid in number, orderversion in number) is
    f SYS.Utl_File.file_type;
    tmporderid number(10);
    tmporderversion number(10);
    str string(1032);
    begin
    tmporderid := orderid;
    tmporderversion := orderversion;
    f := utl_file.fopen('EXPORTDIR2',filename,'W');
    FOR s in
    (Select SAP_STRING1
    FROM BSACC_V_SAP_TABLE_2
    where OrderId = tmporderid
    AND OrderVersion = tmporderversion )
    Loop
    utl_file.put_line(f,s.sap_string1||chr(10));
    end loop;
    utl_file.fclose(f);
    end;
    Window XP professional English
    Oracle 10g

  • Is there an easy way to convert a long string into an array?

    I can convert a long string into a 1-d array by parsing and using build array, but I would like to know if there is a function to make this easier.
    For example:
    from/   aaaaaaaabbbbbbbbccccccccdddddddd         (string of ascii)
    to/       an array that is 1-d with each element having eight characters
              aaaaaaaa
              bbbbbbbb
              cccccccc
              dddddddd
    Thank you.
    Solved!
    Go to Solution.

    Try something like this:
    (If you can guarantee that the string length is an integer multiple of 8, you an drop the two triangular modes in the upper left. )
    Message Edited by altenbach on 03-14-2010 06:40 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ChopString.png ‏9 KB

  • How to find out if a long String has a "subString" twice or more.

    I need to find out if a long String has the same number twice or more.
    I need to look matches for numbers running from 000, 001....999 and if a number is found twice or more, return that number and lines there were found.
    example String:
    -;000 ; 1 ; 2006-12-11 ; -; job;
    x;001 ; 2 ; 2006-12-11 ; 2006-12-12; do this
    -;002 ; 3 ; 2006-12-11 ; -; work
    -;003 ; 0 ; 2006-12-11 ; -; some
    -;004 ; 2 ; 2006-12-11 ; -; thing
    x;005 ; 1 ; 2006-12-11 ; 2006-12-11; reads
    -;003 ; 0 ; 2006-12-11 ; -; here
    Should return from example String:
    003 at lines 4 and 7
    Any ideas?

    So there are newlines in the String?
    You could use a StringTokenizer to break the String into lines, then searching on each line if it contains any of the search strings. (You need to clarify if a line can contain more than one search string).
    Probably you should use a Map<String, Integer> to record the searchcounts.
    Or an int[] Array if you are really sure that the Strings you search for really are numbers.
    Another option is to use:
    LineNumberReader lnr = new LineNumberReader(new StringReader(searchString));This will save you from explicitly having to take care for the line number.
    In any case your example looks like the individual lines are semicolon separated fields and the numbers you search for always are in column two.
    So after breaking up the original String in lines, you could use another StringTokenizer to break up the line in fields.

  • In report layout, can format a long string display as Column mode?

    Hi,
    Just want to check in report builder any way can format a long string into a column mode?
    Example: I have a field to hold 8000 character, and would like to print
    30 character in each line, when reach 50 line, then print in column i/o to print next page?
    Any idea ? Thanks a lot if you can share your experience with me.
    best Regards,
    Klnghau

    hi let say your field name is x
    then if your want it word wrap then it's simple just get one field and make it's vertical
    elasticity variable. and asign the field to it..
    but if you want your field to be displayed as
    first colunm and then beside continuation of that column but in 2nd one...
    then create 2 formula columns make your field legth been distributed half in each.
    so cf_1 is:
    decalre
    t varchar2(1510);
    begin
    if length(:x) > 1500
    t := substr(x, 1, 1500); -- as 30 x 50 = 1500
    else
    t := :x;
    end if;
    return t;
    so cf_2 is:
    decalre
    t varchar2(1510);
    begin
    if length(:x) > 1500
    t := substr(x, 1500, length(:x)-1500); -- as 30 x 50 = 1500
    else
    t := '';
    end if;
    return t;
    and then in design view
    field1 field2
    for field1 source is cf_1 and
    for field2 source is cf_2
    that's all
    Enjoy Oracle...

Maybe you are looking for