Splitting a text field in columns

Hello !
I want to divide a text field in two columns (like articles in newspaper). Is it possible ? How ?
Regards,
Lucian

Lucian,
my idea is to get the text out of the CLOB field (in my ex. column c in table t0)line by line(where you have chr(10)-new_line character) and load it into a VARCHAR2 field(v) in another table t1.
Then, in your report you can manipulate v the way you want. There you can concatenate the records again with chr(10) if you want.
To get the columns as in newspaper I would suggest to decide how many lines you want in a "column" and based on that create a repeating frame with print direction "Across" that contains one text field having the source your column.
I know it sounds a little complicated but take it step by step.
Here is the code I've tried:
create table t0 (c clob); -- you already have this
insert into t0 values ('abcd'||chr(10)||'efgh');
insert into t0 values ('ijklmn');
select * from t0;
create table t1 (v varchar2(2000));
declare
offset integer;
buffer varchar2(2000);
buflen integer ;
loblen number;
pos     number;
str     varchar2(2000);
buff varchar2(2000);
begin
for i in (select c from t0) loop
loblen := dbms_lob.getlength(i.c);
offset :=1;
dbms_lob.read(i.c, loblen, offset, buffer);
str := buffer;
loop
pos := instr(str,chr(10));
if pos = 0 or length(str)< 2 then     
     insert into t1 values (str);
exit;
else
     buff :=     substr(str,1,pos-1);
     insert into t1 values (buff);
     str := substr(str,pos+1);
end if;      
end loop;
end loop;
end;
I hope this will help you.
In caz ca te mai pot ajuta imi poti scrie la [email protected]
Mi-ar place sa tinem legatura.
Toate bune,
Monica

Similar Messages

  • MDM Syndication - Is it possible to split a text field?

    I am trying to find a way to manage multilingual R/3 Purchase Order Text in MDM. The problem I am having is that we want to maintain this as one field in MDM, which the only feasible option appears to be a Text Large field. Text fields are too short now that they are only 333 characters, Lookups are not involved so this cannot be a multivalued Text field, Text Blocks don't seem to work for this, and Qualified Lookups don't appear to handle the multi-lingual aspect.
    The problem is, somehow this one large text field needs to be broken down when sent back to R/3, as R/3 can only handle 133 characters per line. As far as I can tell, there is no way to do this.
    Can anyone help?
    Thanks!

    Hi Ryan,
    I am trying to find a way to manage multilingual R/3 Purchase Order Text in MDM. The problem I am having is that we want to maintain this as one field in MDM, which the only feasible option appears to be a Text Large field. Text fields are too short now that they are only 333 characters, Lookups are not involved so this cannot be a multivalued Text field, Text Blocks don't seem to work for this, and Qualified Lookups don't appear to handle the multi-lingual aspect.
    The problem is, somehow this one large text field needs to be broken down when sent back to R/3, as R/3 can only handle 133 characters per line. As far as I can tell, there is no way to do this.
    If I have understood your probelm correctly, then I think you want to import the Multilingual data in MDM. You can easily do that by Pivoting the source and then Importing the MUltilingual data into MDM.
    Then in the Syndicator, you can split the Multilingual Fields BY Language BY Value, (which is a feature present in the Syndicator)into Various fields, which you can indivually map it to the different destination fields. For this, you must have multiple fields in your Destination side so that you can map them individually with the Splitted fields.
    Please refer below to get info on the above mentioned feature:
    http://help.sap.com/saphelp_mdm550/helpdata/en/ff/37e4c6857449388ddb6c77f160ac4f/frameset.htm -> GO to-> Multilingual Support-> Multilingual Opeartions->Splitting Multilingual Source Items.
    I think this what is what your requirement is. For refrence , kindly go through the link below, which will guide you to import the Multilingual Data and then Syndicate the file in .CSV format.
    End to End Solution to Multilingual Master Data :
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90e42521-0645-2b10-d1b2-e9f6fab39856
    Multiple Languages in MDM Part 1: Console Settings for Multilingual Master Data -
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30fddcb9-2a40-2b10-a9a9-db552d687617
    Multiple Languages in MDM Part 4: Syndicating Data in Multiple Languages -
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50b2702d-2b40-2b10-549e-92c0e88c8135
    Hope it helps.
    Thanks and Regards
    Nitin Jain

  • Splitting of text fields when using multiple fonts within a text field and exporting it to XFL.

    Hi All,
    I have been trying out  InDesign and exported files to XFL for use in Flash. If I use a single font for a text box then everything looks fine in flash, but if  I use multiple fonts for the same text box its split into multiple text boxes. For making this more clear I have attached an image.
    Any help to resolve this!!!

    Paragraph styles are tied to the paragraph, not the page.
    You don't say which version you are using, but here's something you could try in CS3 or CS4. Set up a baseline grid in the preferences to match the main pages. The spacing should match the leading of the body text. Make a special paragraph style (you can base it on the body text style) that you will apply to text onthe chapter start page, and as part of that style set it to align to baseline grid. Now for the trick. Select the  text frame onthe start page and define a custom baseline grid with the spacing you want. Save it as an object style, too, while you're at it. The strating text should align to the custom grid on the start page and the documetn grid on the next page.
    Peter

  • Mail Merge from Numbers with long text fields

    I'm having trouble doing a Mail Merge that's reading fields from a Numbers spreadsheet. Everything is working as expected except for my one field that contains several sentences of text for each record. Nothing from that field gets transferred into the merged document and there is no error message (the courtesy of an error message would be much appreciated if I'm hitting some limit of the feature!).
    If I make fairly short text fields, it will merge successfully, but it would be tedious to go through my large text field and break each one into multiple shorter ones, and I haven't been able to figure out the limit on text length if there is one, so there would be a lot of trial and error. It doesn't seem to be by number of words, so perhaps it is by number of characters?
    I have tried cutting and pasting into a new table in Numbers, pasting as values in case there was any weird formatting at issue.
    I can't find anything to help me either fix this or at least know what the limitations are on Mail Merge. The only discussion I found here suggested either splitting the text fields or creating a new document, and those haven't worked for me.
    Thanks for any leads people can give me on this!

    mezzaluna wrote:
    Luckily I'm only merging a few dozen records, so I can go through by hand and pick out the odd spaces. But I'm open to any ideas for saving me that work, too!
    Numbers can do a character count, but unfortunately can't do that 'live' as you are entering characters into the entry box; only when the string has actually been entered into a cell.
    You can, however, make an estimate of the number of characters by entering them into a text frame of fixed width using a mono-spaced font. In the examples below, the font is Andale Mono 10pt, and the text boxes are 4.50 inches wide.
    The top example shows the result when exactly 254 characters from the first paragraph of your previous post are entered in the box. For this example, leaving off the two words that wrapped onto line six and including only the first five lines of text would leave a 'headroom' of nine (or ten, depending on whether the space after "but" was included) characters.
    To use: Enter your text into the text box using Andale Mono 10 pt. Select and Cut the first five lines. Click on the table cell to receive this chunk. Go Edit > Paste and Match Style to use the font set in the table, or simply Paste to use Andale Mono in this cell.
    Repeat until all text has been transferred.
    More below.
    You can also get the actual character count using the LEN() function. In the table on the left, each of the cells B3, B4 and B5 contain the formula
    =LEN(A)-254
    A3, A4 and A5 contain part or all of the text shown in the two text boxes. I've set the alignment of these cells to 'Align right' to show the end of each string.
    The Conditional formatting rules below are applied to cells B4 and B5. They set the background colour of the cell to 'amber' when the cell in column A is within 10 characters of the maximum and to red when the maximum is exceeded. The numbers in the cells show how many more characters may be added (negative numbers) or how many excess characters (positive numbers) are in the cell to the left.
    These check cells may be placed in a separate table, and the formula revised to include the table name of the data table.
    Regards,
    Barry

  • Displaying text in two columns in SAP Script

    Moved to correct forum.  Please use a meaningful subject in future - I've edited it for you this time.
    Hello Everybody,
    I have a text to be displayed in Scripts. I want to split the text into 2 columns.
    Like in news paper.
    aaaaaaaaaaaaaaaa   aaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaa   aaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaa   aaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaa   aaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaa   aaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaa   aaaaaaaaaaaaaaaaaaa
    Like this.
    Can someone tell me how to do that?
    Thanks,
    Edited by: Matt on Mar 11, 2009 4:31 PM

    As far as I believe....
    Always text flows out of the main window if it is completely filled.
    So, create an instance of the main window.
    Go to Page windows->Select the main window->Edit->Create
    You will get one more main window and that will be of type with the name Main01
    Go to Screen painter and adjust the window in the way that you required.
    Just start printing the text by writing the code in main00.
    Automatically main01 will have the same code assgined(you can check if you want) and the data gets displayed once the main 00 window is filled.
    Hope it helps....

  • Can you scroll multiple text fields with 1 UIscrollbar component?

    I have been poking around on the internet trying to find out a way to do this on flash using AS2.0 but have had no luck. Is it even possible?!
    or is there another way of achieving a similar affect?
    I have XML data being pulled from an array of attributes that get listed in there own text field or column basically.
    Attribute1(text1)
    Attribute2(text2)
    Attribute3(text3)
    item1
    item2
    item3
    item4
    location1
    location2
    location3
    location4
    date1
    date2
    date3
    date4
    Above is how the data gets displayed in the 3 different text boxes... each item is associated to a location and a date and i need to be able to scroll down through the items but have the locations and dates stay inline with the specific item.
    Any suggestions would be great!
    Thanks in advance.

    i don't have a clue about the XML (I'm still in embryo stage on that one at one-half a tutorial) BUT,
    to connect without commas, you can do something like this. My array name was aHiragana (japanese letters)
    var sHiragana:String = aHiragana.join(""); //kills the comma
    words.text = sHiragana.toString(); //works, note "s" not "a" infront of Hiragana.
    no idea if this is compatible with XML.

  • Expanding text fields side-by-side in a 2 column layout

    Hi,
    I've been trying to create a form that is a 2-column layout. This form contains expanding text fields that are side-by-side with additional form elements underneath. I managed to get the expandable fields to work, however, if the user writes too much in the text field in the left-hand column and it wraps onto a second page, the text field in the right-hand gets pushed to the second page. I am wondering if someone has experience with this and could help me figure out how to make sure the text field in the right-hand column stays in place as the text field in the left-hand column expands onto 2 pages.
    I've tried to wrap each text-field in their own subform that stays fixed, but that seemed to cause the field to expand over the elements below it.
    Take care,
    Carolyn

    Luke23ae wrote:
    for my bachelor-thesis I'm trying to create a 2 column layout in pages. The left column should contain all contents, the right column should only contain notes and additional information supporting the 'main' column. So the right column only contains a little text every now and then. Using the Layout Inspector and setting up 2 columns fills the right column automatically withe the contents overflowing the left column. What I'm hoping to archive is to create a 2 column layout leaving the right column blank, allowing me to insert Text-fields (unless there's a better way) wherever I need to add an annotation.
    Hi Lukas,
    Welcome to Apple Discussions and the Pages '09 forum.
    Since you want the text to flow from page to page in the left column, it would appear best to use a single column for the main text, and to limit the width of that column using the right margin stop.
    That leaves the right half of the page open for a series of text boxes (or shapes, as shown) to contain the notes and additional information.
    I would start with a single text box or shape, resize it to the width you want, then duplicate that one each time you need a new box. That way all your text blocks have a common width to begin with, and if you take care to use only the handle at the center of the bottom edge to resize them, you will not disturb that width setting.
    As noted earlier, the floating objects will not automatically travel with the text they apply to if editing causes that text to move.
    Regards,
    Barry

  • Unable to define Radio Button Text field & unable to change column position

    Hi,
    While designing a screen in Screen Painter, I am unable to define Radio Button Text field as this option is not there in Graphical Element. And also I want to specify the starting position of column of that element different from the default value, but I am unable to define that because the field is non-editable.
    Can any one please help me out.
    Regards,
    Koushik

    Hi,
    Please find below the sample program from ABAP docu :
    PROGRAM demo_dynpro_input_output.
    DATA: input  TYPE i,
          output TYPE i,
          radio1(1) TYPE c, radio2(1) TYPE c, radio3(1) TYPE c,
          box1(1) TYPE c, box2(1) TYPE c, box3(1) TYPE c, exit(1) TYPE c.
    CALL SCREEN 100.
    MODULE init_screen_100 output.
      CLEAR input.
      radio1 = 'X'.
      CLEAR: radio2, radio3.
    ENDMODULE.
    MODULE user_command_0100 input.
      output = input.
      box1 = radio1.
      box2 = radio2.
      box3 = radio3.
      IF exit NE space.
        LEAVE PROGRAM.
      ENDIF.
    ENDMODULE.
    Here radio1(1) TYPE c is defined within the program but in the element list there are RADIO1 element exist. One is actual radio button and the other is Radio Button Text.
    I am not able to create that radio button text using same object name.
    Please suggest.
    Regards,
    Koushik

  • Is there a way to Search (List search) for more then one field text from a column for Bulk uploading?

    I've been trying to find more information on this and I apologies if this has already been answered. I just don't know the correct way to ask this. We have a SharePoint List at the company that we have people input information into different columns. The
    problem is most of those information are very repetitive. Is there a way for me to search more then one field text in the column and just input that same information in?
    ex:
    Column 1
    Column 2
    Date:
    883851
    MidWest
    User input 
    8831518
    MidWest
    User input
    On the search field in the SharePoint List, I would need to search for 883851, 8831518 etc,  would view those requested numbers, then I would click edit and change dates to those rows. Does that make sense? I'm sorry I'm fairly new at sharepoint.

    I think what you're asking is about having repetitive options in a list, show up easily for new items being created.
    This can be done by setting the columns that contain repetitive information to Choice fields.  In the configuration of the Choice field, check the box for "Allow custom values".  Now as users are entering data into the list, the dropdown of options
    for a given field grows and users can quickly see and select previously entered and thus repetitive values for the given fields.
    I trust that answers your question...
    Thanks
    C
    |
    RSS |
    http://crayveon.com/blog |
    SharePoint Scripts | Twitter |
    Google+ | LinkedIn |
    Facebook | Quix Utilities for SharePoint

  • Part content of a text field into two columns

    Hi,
    I have a question regarding text field objects in Crystal Reports 2008 (SP3) for my ASP.NET app.
    I want the text object to have a maximum height and a column width. After the text object has reached the maximum height it should continue rendering the text into a second column.
    I already saw that function for single data records and per detail section (multiple columns setting in the Designer). Using it would require to throw my current report design away so I'm not too much into that.
    Is it possible to do that with existing functions? If yes - how?
    Regards

    Don't see how this could be done at all...
    Typically, if you can figure out how to do it in the designer, you can pattern that for the SDK. But like you said, only way to do it in the designer is to create a new multi-column report...
    Ludek
    Edited by: Ludek Uher on Oct 11, 2010 9:37 AM

  • Spry validation text field across two columns in a table?

    I have a table with two columns.  I can easily insert a spry validated text field into the left cell but when I drag the box over so that box is in the right column and the label is still in the left column then that breaks the widget.
    Is this even possible for me to do or do I have to put the widget in just one column?

    Think I figured it out.
    http://www.adobe.com/devnet/dreamweaver/articles/spry_form_validations.html

  • Multiple Column text field in Static PDF form

    Okay, I'm pulling my hair out here. I am filling a .pdf form with itextsharp using powershell scripts. All this part of the issue is working fine.
    My problem is that I have the following data:
    A3015400R-2,A3015318R-1,A3015318R-2,A3015336R-1,A3015423R-1,A3015423R-2,A3015486R-1,A30153 06R-1,A3015240R-1,A3015102R-1,A3015333R-1,A3015120R-1,A3015158R-1,A3015333R-1,A3015400R-3, A3015400R-6,A3015400R-7,A3015234R-1,A3015234R-2,A3015400R-9,A3015306R-5,A3015311R-1,A30154 00R-2,A3015318R-1,A3015318R-2,A3015336R-1,A3015423R-1,A3015423R-2,A3015486R-1,A3015306R-1, A3015240R-1,A3015102R-1,A3015333R-1,A3015120R-1,A3015158R-1,A3015333R-1,A3015400R-3,A30154 00R-6,A3015400R-7,A3015234R-1,A3015234R-2,A3015400R-9,A3015306R-5,A3015311R-1
    That I would like to be displayed in columns across the page within one text field. So that the text field would look like this (approximately):
    A3015400R-2
    A3015318R-1
    A3015318R-2
    A3015336R-1
    A3015423R-1
    A3015423R-2
    A3015486R-1
    A3015306R-1
    A3015240R-1
    A3015102R-1
    A3015333R-1
    A3015120R-1
    I have the data sorted before I populate, so they go in numerical order, and i would like the be able to read them from top to bottom, left to right.
    I just can't figure out how to either:
    a) add multiple columns like I add multiple lines inside a text field
    or
    b) have multiple text fields linked together to thread the text input from fieldA to fieldB
    Any help would be much appreciated.
    edit: The data is actually in this format:
    A3015400R-2
    A3015318R-1
    A3015318R-2
    A3015336R-1
    A3015423R-1
    A3015423R-2
    A3015486R-1
    A3015306R-1
    A3015240R-1
    A3015102R-1
    A3015333R-1
    A3015120R-1
    A3015158R-1
    A3015333R-1
    A3015400R-3
    A3015400R-6
    A3015400R-7
    A3015234R-1
    A3015234R-2
    A3015400R-9
    A3015306R-5
    A3015311R-1
    A3015400R-2
    A3015318R-1
    A3015318R-2
    A3015336R-1
    A3015423R-1
    A3015423R-2
    A3015486R-1
    A3015306R-1
    A3015240R-1
    A3015102R-1
    A3015333R-1
    A3015120R-1
    A3015158R-1
    A3015333R-1
    A3015400R-3
    A3015400R-6
    A3015400R-7
    A3015234R-1
    A3015234R-2
    A3015400R-9
    A3015306R-5
    A3015311R-1
    Message was edited by: zombiejellyfish81

    Did you ever find any solutions to this problem?

  • How to reference SQL column value for  page item text field

    greetings,
    I created a simple report based on sql query. the query is select employeeid,salary from emp_tbl. under the report column i see employeeid and salary. I created a page item text field with the source type pl/sql function body. inside this source is simple block.
    begin
    if salary < 10000 then
    return (1);
    else
    return (2);
    end if;
    end;
    from the error i take it that it doesn't understand salary. I have tried bind variable (:salary) , hash marks (#salary#), ampersand (&salary.) but nothing works. Is this even possible?
    thank you,
    mon

    Hi Mon,
    I think you will find that anything you do in Forms, you can achieve in Apex, but you may have to think a little differently. Finding direct equivalents in both environments may not be easy or even possible in some circumstances, but with a little knowledge and thought an equivalent overall business flow can be achieved that is just as efficient.
    For example, in Forms where you have a multi row block based on a table, if you need to add any derived fields then you will add these at the block level. I can see that this is what you are trying to achieve in Apex.
    In Apex this will be more easily achieved by specifying the derived fields as part of the query for the region, and if the derivation of the fields is complex you can use user defined functions. If you require page type items to be displayed such as text boxes, LOV's, radiogroups, datepickers etc then these can be embedded in the query with the use of the Apex API, see the APEX_ITEM supplied package.
    I know this is still very high level, but I hope it helps you on your way in your journey with Apex.
    Regards
    Andre

  • Split Documents and the Text Field

    Is anyone aware if it is possible to have the Text Field copied to the line items during the split document process?

    Bump, I'm still hoping to find a solution to this question.
    Thanks,
    Dan

  • Split imported XML data into multiple text fields

    I should first describe my final project because it is very possible that I am going about this entirely wrong!
    I am trying to create an interactive PDF file which is the floor plan of our office, when you mouse over the office spaces it would popup the info for the person in that office, in fact when you click on the office space it would show additional info like computer MAC and jack numbers
    I placed the floor plan as a layer and them created a second layer with no fill/no stroke rectangles over the offices and made them buttons (office01, office02)
    I then made text fields with the info for the people, one for regular info and one for extra info (office01-data, office01-Xdata) I made these text fields buttons as well and had them "hidden until triggered"
    These info fields are all on top of one another, as in the are all the same size and in teh same location
    Then I went to the office buttons and created events "On Roll Over" "Show/Hide Buttons and Forms" and changed the visibility of the corresponding info button.
    This works like a charm!
    I hope I am clear up to this point.... my problem now is I would like to import this data both regular and extra from an excel spreadsheet or an XML file.
    That way when we get new staff or people move offices or whatever I can update the spreadsheet or XML file, rerun my InDesign file and create a new interactive PDF
    I have created the XML file
    <staffMap>
         <staff>
              <name>John Doe</name>
              <computerName<gfth56df</computerName>
              <phoneMAC>00:08:00:AB:CD:EF</phoneMAC>
         </staff>
    <staff>
              <name>John Smith</name>
              <computerName<gfth06cb</computerName>
              <phoneMAC>00:08:00:11:22:33</phoneMAC>
         </staff>
    </staffMap>
    Created a new InDesign document
    Imported the XML and placed it in a text field
    saved as a template and closed it
    Reopen and import the XML data again... and it brings it all into the text field... wonderful and useful but not what I need.
    Is it possible to import the XML data into separate test fields, or into some other separate field that I can make into a button and show/hide?
    I may end up just entering all the data directly into InDesign as I know this will work, it just does not seem like the right way to do it.
    Thanking you all in advance 

    I am still looking to get some help with this.
    I would love to know if it is not possible or any ideas at all

Maybe you are looking for

  • How to Handle the LOV AM in the page level Controller

    Hi All, I have standard page ,In that page there is LOV in which user can select any value. But the client requirement is the value in the lov has to be displayed has to be displayed automatically the first record of the LOVwhen page is rendered. For

  • Current date - 1 year in OBIEE

    Hi Friends, I have a  SR date column in OBIEE. Every day service requests will be submitted.  I want to put a filter on the report  every time when someone opens the report. I should always pull SR dates  between current date and  last year current d

  • Web service basic question

    Well I am new to web services. I have a small doubt. We are trying to develop a tool which uses web service that standards the communication between my tool and different surveillance systems. What my tools should do is, it needs to get data from dif

  • IPhone crashes during internet related app use...

    I am noticing that by using applications that use the internet (Safari and Google Maps mainly) causes that program to crash to home screen during moderate use. An example of this was when I use Google Maps to obtain directions. Zooming in too much ca

  • G5 died. How install FC on new MacBook Pro

    Have original FC studio discs but not the upgrade with FC Studio 2 which was a download. About all I have is the serial number.