Logical breaking of text
Hi guys,
I need a help on a particualar scenario where i have a varchar2 field which can have upto 120 characters. I have
to divide them into three or more and assign each to a variable. One cannot exceed 35 characters. But the
challenge is... not to break a word if it is within an html tag. In the above example the 35th character is 1
which is in </h1>. In this case it should break before the tag begins. That means the first variable should
end at "description" and next variable value should start with </h1>.
Could you please give some insight on how to handle this?
Thanks
<h1>This is a short description</h1><p>This is a product of great value</p>
This way: But you will have to form three such expressions to populate your variables.
with data as
select '<!DOCTYPE html><html lang="en"><head><title>Logical breaking of text | Oracle Forums</title>' col from dual
select col, case when substr(col, -1, 1) in (' ', '>')
then trim(col)
else
substr(col, 1, greatest(instr(col, ' ', -1), instr(col, '>', -1)))
end col1
from (
select substr(col, 1, 35) col
from data
COL COL1
<!DOCTYPE html><html lang="en"><hea <!DOCTYPE html><html lang="en">
Similar Messages
-
Can you put line break in text in the data box when creating a chart.
i.e. if you have a bar chart with text underneath each bar, can you break it when you’re entering it instead of manually afterwards
Thankshttp://help.adobe.com/en_US/illustrator/cs/using/WS3f28b00cc50711d9fc86fa8133b3ce158e-8000 .html
See "Enter labels" -
Indesign CS3 what script for Break Out Text Frame ??
hi expert,
Indesign CS3 can Break Out Text Frame or Have Script ??
like this...
http://img402.imageshack.us/img402/905/20080517085017hb3.jpg
thank for tellyou mean - convert/split multicolumn TextFrame to separated TextFrames ?
for PC or MAC ?
robin
www.adobescripts.com -
How to break flowing text without deleting parts of it?
Hello,
is it possible to break a text that flows across multiple pages in one point without automatically deleting the content of the text boxes below the break? Currently, if I have text flowing across several pages and text boxes, any break that I do at one point ("un-chaining") will result in the text in the following text boxes to be deleted.
Thanks!Have a look at this thread.
-
Report column breaking - display text centred in cell
Hi,
I am looking for some help achieving the following:
I have a report which has column breaks on the first three columns. Currently, when the report is displayed, the first column value is displayed in the top row with the rows underneath blank and so on for columns 2 and 3. Then the data for the other columns is displayed as normal.
What I want to do is have the column values that are used in the break spanning the rows they break over so the text is displayed centred (vertically)
ie:
Col1 Col2 Col3 Col4 Col5
dat1 dat2
dat2 dat3
val1 val2 val3 dat4 dat5
dat6 dat7
dat8 dat9
val2 xx xxx xx xx
________________________________________________ (Hope this works in ascii!!!) - Col1,2,3 etc are the columns - ignore the vals and dats - they're just data placeholders.
All help much appreciated! :)Hi,
Something like: http://htmldb.oracle.com/pls/otn/f?p=33642:112 ?
If so, see: Re: How to achieve Page/Form/Report layout?
Andy -
File adapter-How to set line break in text file-split record into two lines
Dear Guru's,
I have to solve following problem with XML (with mulitiple records) to TEXT file scenario using file adapter. I have to output for ever ONE data record in XML always two identical lines in text file. Second line should have a little bit different mapping in few fields like date,... So I did duplicate fileds in my output structure in mapping and need to know how to set line break in the middle and see half of structure in first line and next structure half in second line
My output structure in mapping is:
CASHFLOW
- INTERFACE
- GESELLSCHAFT
- ANWENDUNG
- PRODUKT
- VERTRAG
- BETRAG
- WAEHRUNG
- DIRECTION
- BEWEGUNGSTYP
- FAELLIGKEIT
- ZINSFESTSTELLUNG
- ZAHLUNGSTAG
- RENDITE
- INTERFACE2
- GESELLSCHAFT2
- ANWENDUNG2
- PRODUKT2
- VERTRAG2
- BETRAG2
- WAEHRUNG2
- DIRECTION2
- BEWEGUNGSTYP2
- FAELLIGKEIT2
- ZINSFESTSTELLUNG2
- ZAHLUNGSTAG2
- RENDITE2
Question is how can I set on receiving file adapter in Content Conversion Parameters that fields from first structure half INTERFACE...RENDITE should be outputed in one line and fields from second half of structure INTERFACE2...RENDITE2 should start on second line in final text file.
I'm getting at the moment one line only and I need to know how can set line break so that second line starting with INTERFACE2(CA)...RENDITE2 will start in new line.
CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000",CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
This should be final output:
CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000"
CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
My file adapter settings:
RecordsetStructure=CASHFLOW
CASHFLOW.fieldNames=INTERFACE,GESELLSCHAFT,ANWENDUNG,PRODUKT,VERTRAG,BETRAG,WAEHRUNG,DIRECTION,BEWEGUNGSTYP,FAELLIGKEIT,ZINSFESTSTELLUNG,ZAHLUNGSTAG,RENDITE
CASHFLOW.fieldSeparator=,
CASHFLOW.endSeparator='nl'
CASHFLOW.fieldNames=INTERFACE2,GESELLSCHAFT2,ANWENDUNG2,PRODUKT2,VERTRAG2,BETRAG2,WAEHRUNG2,DIRECTION2,BEWEGUNGSTYP2,FAELLIGKEIT2,ZINSFESTSTELLUNG2,ZAHLUNGSTAG2,RENDITE2
CASHFLOW.fieldSeparator=,
It wont help if I add two identical structures in mapping because in output i would see for multiple entries section with first lines only and after that section with second lines only. And CASHFLOW is one part of more complex mapping ...
(This is final output structure RecordsetStructure=HEADER,CASHFLOW,CONDITION,REFERENCE,CONTRACT - more sections with different data and all these should have duplicate lines at the end)
Thanks a lot for any help
Cheers
Marian
Edited by: Marian Luscon on Jul 14, 2009 11:44 AMHi Ivan,
right, I did test just for sure.
Putting constant 'nl' into field CASHFLOW-INTERFACE1 didnt help - still getting one line instead two lines.
CA ,"0100" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,2 ,12 ,2009-01-28 ,2009-01-27 ,2009-01-28 ,"0.0000000" ,'nl' ,"GTP1" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,1 ,10 ,2009-01-27 ,2009-01-27 ,2009-01-27 ,"0.0000000"
So there is still question. Is there any way (mapping,...) how to output always 2 lines in text file for one record in XML. It always does 1 record in mapping structure = 1 line but we need 2 lines ...
Example:
Input: 4 records in XML
Output: 8 lines in final text file ...
Thanks to you all guys
Marian -
Hi,
I am facing the problem that when I read the content of the
texteditor, store it in a javascript variable, and then write it
again into the editor area, all line breaks (not html line breaks,
just the line breaks for the code structure) are gone.
For Example if the content of the Editor is the following:
Test line 1
Test line 5
If I know call my function the value of the texteditor will
be somethign like: "Test line1 Test line 5"
I tried finding the linebreaks and replacing them (either \n,
\r or \n\r) but had no success in doing that.
My code of the function:
var theDom=dw.getDocumentDOM();
var temp = theDom.documentElement.outerHTML;
theDom.documentElement.outerHTML="";
theDom.documentElement.outerHTML=temp;
So I assume Javascript and dw are using different formats,
but I cant find much information about whats being used.
Any help appreicated!
Best,
DavidHi Brent,
Use CHR(10) in text editor for a new line. for example( 'SAP' & CHR(10) & 'Visual' & CHR(10) & 'Composer') will display like,
SAP
Visual
Composer
Hope it helps....
Regards
Basheer -
Logical Database Selection Text?
We have a report (run from the report tree) that above the selection-screen window a field with a range, SAUFNR is displayed. Someone tried to go into the Logical Database POH (SE36), selection texts were there was a '?' and changed it to 'Order Number' and were able to save it. However, SAUFNR still displays and not the text.
The main goal is to disply 'Order Number' for this field and not 'SAUFN'. It is an SAP prog with a name about a footbal field long. It executed 'Orders by finished Schedule date'.
Any suggestions?
Thank-you.Hi Tom,
Have you activated the selection text and also please check in translation part of the text elements .
Hope this may help you.
Regards,
Kiran I -
Unwanted page breaks in text in IndesignCC doc
Please help. I have a simple 1 column grid document where the text breaks where-ever it likes. Not even in obvious places. There are footnotes, but it jumps to the next page leaving a lot of the column empty even where there aren't footnotes. I have Balance Coulmns turned off in Text Frame Options. I'm on deadline and can't solve it!! Can anyone help?
Hi Pieter,
Thank you. Unchecking the Keep lines together seemed to have worked in almost all place. But not all. I have tried the Recompose Stories but that didn't do anything. Reducing the space between text and footnotes has solved the issue on other pages.
Thank you-great tip! -
FXML - Line break for text-attribute (LABEL)
Hi!
How to define a text with a line break for a label in FXML?
For example, I cant get this to work (\n):
<Label text="Break\nLine"/> Thanks,
JörnHi,
If you use SceneBuilder Developer Preview 1.1 you will see that SceneBuilder generates this:
<Label layoutX="266.0" layoutY="172.0" text="Break Line" />To enter a new line in a text label in SceneBuilder is easy (even though a bit hidden).
If you hover the mouse over the label text property in the Inspector (right hand side), you will see a little cog menu fading in. If you click on it - you will be able to 'Switch to multi-lines mode' - you can then enter a text with new lines - then save the file and see how it's been handled...
hope this helps,
-- daniel -
Breaking up text into multiple fields
The data in a field that I am reading contains something like
this :
Los Angeles, California 99999-0000
What is the technique to break it up into three separate
fields, so that a field name city would contain Los Angeles,
a field name state would contain California, and a field
named zip_code would contain 99999-0000 ?
Thanks for any help.Is it possible to have each field separated by a comma? Space
delimiters won't work since not all cities & states are one
word (ie. New York, New York) however a comma delimiter would allow
you to use simple list functions to extract the data.
If this isn't possible but the data is always in the format:
city<comma>state<space>zip, then you could extract the
city using comma as the delimiter and then extract the zip code
using the ListLast() function with space as the delimiter which
would leave you with the state as the remaining text. This would
only work however if your data is consistently in the format
described above.
Failing this you could build two tables with states and
cities and then use them to identify valid states and cities and
extract the data that way.
cheers -
Allow page breaks and text overflow indicator
I have set up a sub form to allow page breaks within content which works but then the content that continues on the next page has the text overflow indicator showing and the text field does not expand which is what I want it to do. What do I need to do to get it to continue flowing?
I do not understand why this should be so difficult. What I am doing is just opening a blank form and I can either insert a text field or a subform. I then go to check allow page breaks within content and it is greyed out on a text field. I also can create the subform and it allows me to set it to flowed and allow page breaks but it then has a indicator that displays (Although the object is allowed to break, deselecting allow page breaks within content object of the parent object restrict this object from breaking between pages). The only thing that makes sense is the parent is the blank page form. I have searched all over the place and I cannot see anyplace to set the form page to allow page breaks. The only thing that is on the form is either a check box or a subform and thats it. It keeps having a problem with a parent object. The only 2 objects I see are the blank page and then the text field I add. Nothing seems obvious to fix this. This software does not appear to be very user friendly.
-
CS4 Breaking linked text links
Hi,
In CS3 and before, simply double clicking on an out port of a text frame would break a link and remove the text from the downstream text frame. Same with the in port of the second text frame.
But in CS4 doing this does remove the text, for a moment, and then it suddenly reappears.
I have used all the usual modifier keys to no avail. Bug? Or is this a new feature designed to totally frustrate me?
Thanks
JohnThanks.
Must be something in my configuration, but no idea what.
Just in case these are the steps I used:
1 On master pages create 2 frames and establish a thread by clicking on out port and then on frame.
2 On regular pages flow in text.
3 Double click on first frames out port.
This gives me a loaded cursor (unexpected) and the text disappears from frame two (expected)
4 within a second the text reappears and the cursor stays loaded.
5 The text in the second frame works as threaded text should flowing correctly when frame sizes are adjusted in the first frame.
6 When Show Text Threads is selected the thread image is no longer there after the double click.
THanks again.
John -
Conflict with Aisquared ZoomText, scolling breaks up text
Recently my technician switched me to Mozilla Firefox & Thunderbird. I am 88 and only have low vision with Macular Degeneration. To use the computer I have to use a text magnifier. The one I use is ZoomText from AiSquared in Manchester Center VT. Currently they do not support Mozilla even thoughI have repeatedly contacted them.
The problem is that when I scroll in any application the text breaks up and becomes unreadable which is annoying to say the least. Would you please contact them and see if you can resolve this problem. [email protected]
I was switched from IE because of problems and would prefer no to go back to it.
In SW Ontario, CanadaDear harrovian,
Andrew and cor-el have suggested a nice add on feature and how to turn off hardware acceleration. Aisquared has instructions how to achieve this as well [http://www.aisquared.com/knowledge_base/more/zoomtext_with_firefox_4_and_up_loss_of_xfont/]
I was looking at some built in zoom animation that is also in Firefox that can be turned off from the about:config page as well.
The feature is called "browser.panorama.animate_zoom" The other feature that is built in controls the incremental values for the zoom feature that Andrew provided help for. Currently the default values are at .3,.5,.67,.8,.9,1,1.1,1.2,1.33,1.5,1.7,2,2.4,3, and you can edit them from the about config page or use this add on to change these values:
[https://addons.mozilla.org/en-US/firefox/addon/default-fullzoom-level/]
There are some other features as well that may be helpful. There is a find as you type option that will search the page as you start to type. More information can be found here at this link: [http://kb.mozillazine.org/Accessibility.typeaheadfind]
I also have a last resort alternative to suggest. There are other open source software that also have zoom features such as [http://magnifier.sourceforge.net/ Virtual Magnifying Glass 3.6] and [http://technet.microsoft.com/en-us/sysinternals/bb897434 Zoomit 4.5]
Forgive my tangents, if you need anymore help, we are happy to.
Rachel -
Breaking huge text into multiple parts.Please help..
Hi all..i'm urgently need any attention here..pliz help to solve this problem..
The description of my problem is like dis >> let say now i have 100 length of a text. Now , i need to break it into multiple parts, accordingly to the max lenght of a part for one time is 30.So, it should be to returned like dis >>
text [1]="blablabla.." -->text.length =30
text [2]="blablabla.." -->text.length =30
text [3]="blablabla.." -->text.length =30
text [4]="blablabla.." -->text.length =10
I have write a pieces of code that may explain what i try to do..but its not really work..i hope anybody out there can help me..thanks a lot..
code:
for (int i=0; i<fullMsg.length(); i++){
singlLen ++;
if (singlLen == LEN-1){
System.out.print("splitMsg: i="+i+"\n");
System.out.print("splitting new msg["+msgCnt+"]="+fullMsg.substring(beginPos, i)+"\n");
msg[msgCnt] = fullMsg.substring(beginPos, i);
singlLen = 0;
msgCnt ++;
beginPos = i+1;
}public static void main(String[] args) {
String LONG = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
int MAX_LEN = 30;
ArrayList<String> strList = new ArrayList<String>();
int i = 0;
while (i < Math.floor(LONG.length() / MAX_LEN)) {
strList.add(LONG.substring(i * MAX_LEN, MAX_LEN * (i + 1)));
i++;
// now get the remainder
i--; // decrement it to get how many MAX_LEN chunks we have
int remainder = LONG.length() % MAX_LEN;
strList.add(LONG.substring(MAX_LEN * (i + 1), MAX_LEN * (i + 1)
+ remainder));
System.err.println(strList.toString());
}I'm not sure if this is what you want... Say you have 75 chars in string.
Prepares an array with 3 strings,
first len 30,
second len 30,
last len 15
makes 75 in total
Maybe you are looking for
-
No events in Calendar "Year" view since IOS 7 update
I just updated my iPad to IOS 7.0.4. Before the update the Calendar app "Year" view indicated days that had events/appointments by colour-shading that day. Since updating no events are visible in Year view. Is there place where I can turn this featur
-
I can't view the photos in photo stream. When i click on the photo stream, automatically it goes back to home. Why is this happening? How do i resolve?
-
Hi, Has anyone got any suggestions on how the following can be achieved? We have several partcodes that relate to kits, these kits contain serveral partcodes that are otherwise available singularly. A kit will have its partcode and serial number and
-
Report to report interface doubt , RSBBS tcode ?
Hi I have gone thorugh sdn and could not get much details on this topic. There is a high level query A with the hierarchy restriciton for a single node, that is it will show the summary of that ( total hierarchy) in a row without hierarchy display an
-
Hi, How can we get to print multiple AR Invoice multiple items on the same form. The standard form in correspondence type SAP19 shows the total receivable amount. kindly provide your inputs., thanks very much.