separate text into severals columns
Comments
-
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="94981" data-time="1328300934" data-date="03 February 2012 - 01:28 PM"><p>
So, the text you want split is a very long text? Are there lots of rows with long text? Or is this just one long text that needs to split this way?<br /></p></blockquote>
<br />
Hello Michael,<br />
<br />
In fact, the text is very long, just like the news in the newspaper. In this dateRow columnm there will be a lot of rows with the long text like this.<br />
<br />
So in your opinion, it's possible to do that or not? And between the texts, I will insert some tables.0 -
It's possible, yes. Depending on how your data is set up, you'll have to use substrings or you'll have to make a scripted dataSet out of the data from your current dataSet, splitting the long texts up into rows that you can split over the columns.Warning No formatter is installed for the format ipb0
-
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="95004" data-time="1328334204" data-date="03 February 2012 - 10:43 PM"><p>
It's possible, yes. Depending on how your data is set up, you'll have to use substrings or you'll have to make a scripted dataSet out of the data from your current dataSet, splitting the long texts up into rows that you can split over the columns.<br /></p></blockquote>
<br />
<br />
Yeap, I thought about this solution too. But I am not good in javascript. If you don't mind to give me a little example with a long text is better. <br />
<br />
Thanks Michael.0 -
Take a look at this example. The "Data Set" dataSet contains a single row of long text. In the fetch script, I split the long text into an array. I bind a text box to this dataSet at the top of my design, so that the dataSet runs. Then, in my scripted dataSet, "Data Set1", I take the array and step through it making short rows. I also create a field that numbers the rows to use in my filters on my tables. From there, it's a normal newspaper style report. A grid, some tables, and a filter on each table. Hope this helps.Warning No formatter is installed for the format ipb0
-
Yeah. This was just a simple example used to show how to do it. Do your words not have spaces between them? With words of variable length, you'll just have to write a small script, in place of where I add 7 words each time, to check the length of each word before adding it, making sure it fits in your row, if not, return and start with that word on the next row. Let me know if this makes sense or not.Warning No formatter is installed for the format ipb0
-
Michael,
I tried to modify the script with the following :
if (currentRow < totalRows){
row["RowNum"] = rowNum;
temp = myArray[currentRow];
rowLength = myArray[currentRow].length;
i = 1;
do {
if (myArray[currentRow + i] != null){
if (rowLength < 70) {
temp = temp + " " + myArray[currentRow + i];
}
}
i++;
} while (rowLength < 70)
row["Shorter Text Rows"] = temp;
currentRow = currentRow + i;
rowNum++;
return (true);
}
return (false);
But it didn't work. Could you correct it and tell the problem, please?
And how to determine the paragraphs?0 -
It doesn't appear that you can justify a single line of text and since that's all we have because of what was needed to do this example this way. I guess you could modify the example to split the text into rows as long as what would fit in each column, but this could get a little trickier because of line spacing and line breaks depending on the length of words.Warning No formatter is installed for the format ipb0
Categories
- All Categories
- 107 Developer Announcements
- 53 Articles
- 104 General Questions
- 141 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 118 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management