HTML Tags in Text View
Is it possible to use HTML tags to format a string displayed
within a text view. If so how?
Jonathan,
No, this is impossible for TextView.
In WD ABAP it is possible using FormattedTextView UI control.
See my post that describes workaround for WD Java: /people/valery.silaev/blog/2005/11/23/display-formatted-text-using-webdynpro-for-java
VS
Similar Messages
-
Hello,
I would like to know if it is possible to use html tags in text items?
nullThank you but I still have problem.
I make an text item like this:
<h1>En rubrik</h1>
<B>text kommer nu<B><P>Nytt stycke
The <H1> tag or <B> does not work in Netscape 4.75. It works in IE 5
Whe have Portal V 3.0.6.6.5 Ias 1.0.2.0.1 for Sun Sparc solaris.
The same thing worked when we tested on NT.
Could you please help me with this? -
Can i use HTML tag in text when sending contens as "Attachement(PDF)".
Hi all!!
i try to add html tag on ibot email text column.
is it possible?
- in ibot delivery content.
send content as Attachment(PDF)
"if sent as attachement, include this text" <--- mark this field
and below multi line input column, can i use html tag, for example,
Yahoo
thanks in advance.
Edited by: vingorius on 2010. 10. 31 오후 7:27hi vingorius ,
No you cant include html but u can use variables
To add a variable in a text message to provide context for the iBot attachment
1. Click the following option:
If sent as attachment, include this text
2. Type the text into the text box with a session variable, a repository variable, or a presentation variable using the syntax shown in the following table:
Variable Type
Syntax
Repository @{Variable_Name}
Session @{NQ_SESSION.Variable_Name}
Presentation @{Variable_Name}
For example, Dear, @{NQ_SESSION.Variable_Name}, here is your personalized Weekly Sales Territory Update.
NOTE: If you want to use the @ character, you need to precede it with the \ (back slash) character to separate it from the variable syntax. For example, Dear @{NQ_SESSION.DISPLAYNAME}, \@ New York, appears as Dear Joe Smith, @ New York.
Source : BI Guide
Thanks,
Saichand.v -
HTML tags in text-only e-mail notification (with HTML attachment)
Greetings,
Our "Purchase Order Review" e-mail notifications (as generated by the WF-Mailer) have HTML tags in the message body (which is "plain-text" text-only), with an HTML attachment. (The attachment looks good, and is what we are expecting.) All our e-mail notifications are text-only (which is how we want them), and this is the only kind of notification that is generating HTML tags in the 'text-only' message body.
We'd like to keep the HTML attachment as it is, but we want to have the e-mail message body be text (without any HTML tags). The other option that would be acceptable is to NOT have any message content at all, and only the HTML attachment.
Can either of these options be done, and how do we go about doing them?? Thanks!! -- Tom
Tom Buck
[email protected]
PS: Here is a partial sample of the "text-only" message content...
<HTML><HEAD></HEAD>
<BODY BGCOLOR="#FFFFFF"><b>Oracle Workflow Notification (FYI)</b>
<br>
<hr>
<P><table width=100% border=0 cellpadding=2 cellspacing=1 cols=3 rows=2>
<!-- header -->
<tr>
<!-- ORACLE, ship-to, PURCHASE-ORDER -->
<td width=45% valign=top>
<!-- ORACLE -->
<font color=black size=+2>
BUTLER MANUFACTURING
</font><br>
<font color=black> BUTLER MANUFACTURING COMPANY
<br> BUTLER MANUFACTURING HEADQUARTERS
<br> 1540 GENESSEE ST.
<br> KANSAS CITY
, MO
64102
<br> US
</font> </br>
</td>
<td width=25% valign=top>
<!-- ship-to -->
etc..., for another couple hundred lines. -- Tomin the notifications properties you will see two tabs, in one you can enter your message in text and in another you can enter in html. not sure if you had tried these.
hth
satish paul
Greetings,
Our "Purchase Order Review" e-mail notifications (as generated by the WF-Mailer) have HTML tags in the message body (which is "plain-text" text-only), with an HTML attachment. (The attachment looks good, and is what we are expecting.) All our e-mail notifications are text-only (which is how we want them), and this is the only kind of notification that is generating HTML tags in the 'text-only' message body.
We'd like to keep the HTML attachment as it is, but we want to have the e-mail message body be text (without any HTML tags). The other option that would be acceptable is to NOT have any message content at all, and only the HTML attachment.
Can either of these options be done, and how do we go about doing them?? Thanks!! -- Tom
Tom Buck
[email protected]
PS: Here is a partial sample of the "text-only" message content...
<HTML><HEAD></HEAD>
<BODY BGCOLOR="#FFFFFF"><b>Oracle Workflow Notification (FYI)</b>
<br>
<hr>
<P><table width=100% border=0 cellpadding=2 cellspacing=1 cols=3 rows=2>
<!-- header -->
<tr>
<!-- ORACLE, ship-to, PURCHASE-ORDER -->
<td width=45% valign=top>
<!-- ORACLE -->
<font color=black size=+2>
BUTLER MANUFACTURING
</font><br>
<font color=black> BUTLER MANUFACTURING COMPANY
<br> BUTLER MANUFACTURING HEADQUARTERS
<br> 1540 GENESSEE ST.
<br> KANSAS CITY
, MO
64102
<br> US
</font> </br>
</td>
<td width=25% valign=top>
<!-- ship-to -->
etc..., for another couple hundred lines. -- Tom -
Hi,
I have to read some text from a text editor, that can be formatted for example with Bold, which means that when I execute the function to read its content, it returns something like this:
Do you know how can I remove these HTML tags from the text?
Thanks in advance.
Regards,
Sónia GonçalvesHi,
Something like this should do the trick.
report ztag.
data: v_data type char30 value '<H>blablabla</H>'.
if v_data(1) = '<' and
v_data cs '>'.
* Remove the HTML opening header
shift v_data left up to '>'.
shift v_data left.
* Remove the HTML closing header
shift v_data right up to '<'.
shift v_data right.
shift v_data left deleting leading space.
endif.
write: / v_data.
Regards,
Darren -
Map html tags to text display in jeditorpane
hi,
i am looking for some way to map the position of a tag in a html i/p to the actual display in the JEditorPane... below are the details of why i need this feature...
i have a JEditorPane whose text is set from a html file i/p... and i have a JTree which is like a table of contents for the content in the JEditorPane... when i click on any of the jTree nodes, i want to scroll the JEditorPane to the position corresponding to that element in the text...
currently i am doing a string search (for ex, "1. My_First_Heading: ") and getting the position from the editorPane.getDocument().getText() method and then using a modelToView() to determine the scrollBar position...
but i would like to have a more correct searching method, since the string could appear at many places... i would like to have some anchor or some tags defined at the place of each table of content element in the JEditorPane's html i/p... then search for those tags and somehow map the position in the html to the position in the display...
is there a way i can do this...
thanks,
prasunaHi Tarabyte,
Actually wanted to know how to map the postion of any tags in the html to the display in the jeditorpane...
Hi StanislavL,
Thank you very much for your answer... it solved my problem... awarded the 5 duke dollars to you for that...
Cheers,
Prasuna -
Html tag(such as hr ) in f:view
Hi all:
i found that html tags such as <hr> in <f:view> will get a result unexpected!
<f:view>
<h:panelGrid>
<h:outputText value="Changing your password" />
<hr />
</h:panelGrid>
</f:view>
the result is the line(produced by <hr> tag) appear before the output label "Changing your password"(generated by <h:outputText> tag)?!
Does anybody know why?all HTML tags between <f:view> and </f:view> must to be between <f:verbatim> and <\f:verbatim>?
Because I'm doing a validation page with the following code, and images don't charge:
(Name of the page: LOGIN.JSP)
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<%@ taglib uri="/WEB-INF/html_basic.tld" prefix="h" %>
<%@ taglib uri="/WEB-INF/jsf_core.tld" prefix="f" %>
<f:loadBundle basename="asersa.datamarketing.bundle.Login" var="bundle"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="theme/Master.css" rel="stylesheet" type="text/css">
<TITLE>Login</TITLE>
</HEAD>
<BODY bgcolor="#006699">
<CENTER>
<f:view>
<TABLE cellpadding="0" cellspacing="0" border="0" bgcolor="#FFFFFF">
<h:form id="IdForm">
<TR align="center">
<TD></TD>
<TD colspan="2">
<f:verbatim><IMG border="0" src="imagenes/LoginTitulo.gif" /></f:verbatim>
</TD>
<TD>
<h:graphicImage url="/imagenes/der1.gif"></h:graphicImage>
<!--<IMG border="0" src="imagenes/der1.gif">-->
</TD>
</TR>
<TR align="center">
<TD></TD>
<TD>
<FONT face="Courier New" color="#999999">
<B><I><h:outputText value="#{bundle.usu}" /></I></B>
</FONT>
</TD>
<TD>
<h:inputText value="#{login.nusuario}" />
</TD>
<TD>
<h:graphicImage value="/imagenes/der2.gif"></h:graphicImage>
<!--<IMG border="0" src="imagenes\der2.gif">-->
</TD>
</TR>
<TR align="center">
<TD></TD>
<TD>
<FONT face="Courier New" color="#999999">
<B><I><h:outputText value="#{bundle.pass}" /></I></B>
</FONT>
</TD>
<TD>
<h:inputSecret value="#{login.pusuario}" redisplay="false" size="10" maxlength="10" />
<!-- el redisplay valepara que el contenido del campo
no pueda visualizarse en una query string
o en el HTML resultante-->
</TD>
<TD>
<IMG border="0" src="imagenes\der3.gif">
</TD>
</TR>
<TR align="center">
<TD></TD>
<TD colspan="2"><FONT color="red"><h:outputText value="#{login.error}" /></FONT></TD>
<TD>
<IMG border="0" src="imagenes\der3.gif">
</TD>
</TR>
<TR align="center">
<TD></TD>
<TD colspan="2"><h:commandButton id="idEnviar" value="#{bundle.comprobar}" action="#{login.enviar}" /></TD>
<TD>
<IMG border="0" src="imagenes\der4.gif">
</TD>
</TR>
<TR align="center" valign="top">
<TD>
<Img src="imagenes\abajoizq.gif">
</TD>
<TD colspan="2">
<Img src="imagenes\abajo.gif">
</TD>
<TD>
<Img src="imagenes\abajoder.gif">
</TD>
</TR>
</h:form>
</TABLE>
</f:view>
</CENTER>
</BODY>
</HTML> -
Integrate html tags in a string and display it in a multiline text area
Hi ABAPers!!
First of all let me tell you that I'm working in ACCENTURE Casablanca(Morocco) and this is my first Job in my career.
I'm working on an ALV OO, the program consists on creating an ALV using OO, In my selection screen there's a parameter of type ddobjname I provide the name of table and it returns the table's fields in another dynpro (screen0100), To do this I used the FM: 'DDIF_FIELDINFO_GET' then I append the internal table returned in another one to add the field CB (CheckBox), and I add a button in the toolbar, the function of this button is to generate a MySQL script To create the table provided by the user in my parameter (Screen 1000), but the fields of this table(MySQL) in the generated script are only the selected ones by cheking the checkbox in the ALV.
I store my script in a string.
My problem is that I want to show my script in a text area, but I don't know how to create a multiline text area!!
And I want to use HTML tags in my string.
I don't want to my string like this :
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] SPFLI ( CONNID CHAR ( 4 ) NOT NULL PRIMARY KEY , FLTIME INT ( 10 ) , DEPTIME DATETIME ( 6 ) , DISTANCE DOUBLE ( 9 ) , FLTYPE VARCHAR ( 1 ));
But I want it to be shown like this:
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] SPFLI (
CONNID CHAR ( 4 ) NOT NULL PRIMARY KEY ,
FLTIME INT ( 10 ) ,
DEPTIME DATETIME ( 6 ) ,
DISTANCE DOUBLE ( 9 ) ,
FLTYPE VARCHAR ( 1 ));
Thanks in advance
Regards
SMAALI Achraf
Edited by: SMAALI90 on May 11, 2011 7:12 PMHi again!!
You know what!! let's forget the HTML and focuse on what I want to show.
As I told you, I've a string which contains my script.
I don't want that it will be shown as a simple line like this :
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] SPFLI ( CONNID CHAR ( 4 ) NOT NULL PRIMARY KEY , FLTIME INT ( 10 ) , DEPTIME DATETIME ( 6 ) , DISTANCE DOUBLE ( 9 ) , FLTYPE VARCHAR ( 1 ));
But I want it to be shown as follows:
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] SPFLI (
CONNID CHAR ( 4 ) NOT NULL PRIMARY KEY ,
FLTIME INT ( 10 ) ,
DEPTIME DATETIME ( 6 ) ,
DISTANCE DOUBLE ( 9 ) ,
FLTYPE VARCHAR ( 1 ));
and finally I want to show it in a multiline text area.
Plz what shud I do?!!! If possible I need a piece of code.
PS : I create a HTML Viewer using this code :
DATA : go_conteneur TYPE REF TO cl_gui_docking_container,
go_controle_html TYPE REF TO cl_gui_html_viewer.
CREATE OBJECT go_conteneur
EXPORTING
repid = sy-repid
dynnr = '0100'
side = go_conteneur->dock_at_bottom
extension = 1000
name = 'CONTENEUR'
EXCEPTIONS
OTHERS = 1.
CREATE OBJECT go_controle_html
EXPORTING
parent = go_conteneur
EXCEPTIONS
OTHERS = 1.
But when it's shown my ALV disappears!!! -
When History field is selected as a column to be displayed in a WI query result, its contents are displayed with the HTML tags as if they where text, e.g. <p> contents </p>...
This occurs when query is run in web access contents in IE and when result is sent via email from within TFS (there's a button for this purpose).
However, in Visual Studio 2012 the same History Column contents are shown without the tags, as one would expect.
Furthermore, when one clicks on Open In Microsoft Office, for this query results in VS, and selects result in Excel, the History column in the Excel appears empty.
The only way we found to bypass this issue for now, it to mark all the query result lines in VS, and right click for "print selected list..." to a virtual PDF printer. This way the result looks reasonably ok when History field is included.
Kindly advise, Thank u very much.Hi Moital,
Thanks for your post.
As far as I know history content will display with the HTML tags if there’s multiple lines in content, and History content not support show in Excel, that’s by design in TFS Server.
As Clementino said, you can submit this scenario in connect site, Microsoft engineers will evaluate them seriously.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How can I eliminate HTML tags from Oracle Text Snippet?
I perform a search on many tables and on many columns of those tables.
Some of those columns are VARCHAR2 and some CLOB.
Also, some of the searchable data are HTML and some are plain text.
My problem is that ctx_doc.snippet fetches the HTML tags.
For example I get this, as a snippet result in one of my searches: Qual Germany n1 <p>Test Qual Germany n1</p>
I want the result to be fetched without the HTML tags.
In my index configuration I have used NULL FILTER and HTML_SECTION_GROUP.With that configuration I managed to eliminate the HTML tags but not in all cases!
For example:
I search table CONTENTS columns TITLE(VARCHAR2) and MAIN_TEXT(CLOB)
I created the following procedure that concatenates the two columns:
CREATE OR REPLACE PROCEDURE CONTENTS_PROC( p_id in rowid, p_lob IN OUT clob)
IS
BEGIN
FOR c1 IN (SELECT main_text||' '||title data FROM contents WHERE ROWID = p_id)
LOOP
dbms_lob.copy( p_lob, c1.data,
dbms_lob.getlength( c1.data ));
END LOOP;
END;
I created a user Datastore:
BEGIN
ctx_ddl.create_preference( 'content_trans_datastore', 'user_datastore' );
ctx_ddl.set_attribute( 'content_trans_datastore', 'procedure', 'CONTENTS_PROC' );
END;
and finally I create the index:
CREATE INDEX content_trans_ot_idx ON contents(ORACLE_TEXT_COLUMN)
INDEXTYPE IS ctxsys.CONTEXT PARAMETERS ('datastore content_trans_datastore SYNC(ON COMMIT) STORAGE INDEX_STORAGE filter ctxsys.null_filter section group ctxsys.html_section_group');
When I perform the search on those data: <p> <strong>Test Doc-Test </strong> </p> the snippet I get is: Test Doc-Test.
That's fine, the html tags are removed!
In another case I search table NCP columns NAME(VARCHAR2) and BODY(VARCHAR2)
I created the following procedure that concatenates the two columns:
CREATE OR REPLACE PROCEDURE NCP_PROC( p_id in rowid, p_lob IN OUT clob)
IS
BEGIN
FOR c1 IN (SELECT name||' '||body data FROM ncp WHERE ROWID = p_id)
LOOP
dbms_lob.copy( p_lob, c1.data,
dbms_lob.getlength( c1.data ));
END LOOP;
END;
I created a user Datastore:
BEGIN
ctx_ddl.create_preference( 'ncp_trans_datastore', 'user_datastore' );
ctx_ddl.set_attribute( 'ncp_trans_datastore', 'procedure', 'NCP_PROC' );
END;
and finally I create the index:
CREATE INDEX ncp_trans_ot_idx ON ncp(ORACLE_TEXT_COLUMN)
INDEXTYPE IS ctxsys.CONTEXT PARAMETERS('datastore ncp_trans_datastore SYNC(ON COMMIT) STORAGE INDEX_STORAGE filter ctxsys.null_filter section group ctxsys.html_section_group');
When I perform the search on those data: test <strong> </strong>http://deleteme.com the snippet I get is: test <strong> </strong>http://deleteme.com!!!!!!!!!!
How is this possible? Why in the first case the HTML tags are eliminated and in the second case they are not?
Thanks,
Margarita
Edited by: user13312701 on 07-Sep-2010 08:51Doing various tests I found out that the problem is when I need to search in multiple columns of a table.
That is when I create a user_datastore that uses a procedure that concatenates the columns.
And especially when the data with the html tags is in a VARCHAR2 column.
e.g
--create the table*
CREATE TABLE CONTENT_TRANS (content_trans_id NUMBER,
main_text CLOB,
title vARCHAR2(2000),
oracle_text_column VARCHAR2(1));
alter table "CONTENT_TRANS" add constraint CONTENT_PK primary key("CONTENT_TRANS_ID") ;
--Insert dummy data*
Insert into CONTENT_TRANS
(CONTENT_TRANS_ID,MAIN_TEXT,TITLE)
values
(1,'lorem','lorem <p>qualification</p> 2.1 ');
Insert into CONTENT_TRANS
(CONTENT_TRANS_ID,MAIN_TEXT,TITLE)
values
(2,'lorem','lorem <br>qualification</br> 2.1 ');
--CREATE THE procedure that concatenates main_text(CLOB) and title(VARCHAR2)*
CREATE OR REPLACE PROCEDURE CONTENT_TRANS_PROC( p_id in rowid, p_lob IN OUT clob)
IS
BEGIN
FOR c1 IN (SELECT main_text||' '||title data FROM content_trans WHERE ROWID = p_id)
LOOP
dbms_lob.copy( p_lob, c1.data,
dbms_lob.getlength( c1.data ));
END LOOP;
END;
--Create the user datastore*
BEGIN
ctx_ddl.create_preference( 'content_trans_datastore', 'user_datastore' );
ctx_ddl.set_attribute( 'content_trans_datastore', 'procedure', 'CONTENT_TRANS_PROC' );
END;
--Create the index*
CREATE INDEX content_trans_ot_idx ON content_trans(ORACLE_TEXT_COLUMN)
INDEXTYPE IS ctxsys.CONTEXT PARAMETERS ('datastore content_trans_datastore SYNC(ON COMMIT) filter ctxsys.null_filter section group ctxsys.html_section_group');
exec ctx_doc.set_key_type('PRIMARY_KEY');
--Perform the query
SELECT SCORE(1),ct.content_trans_id, ctx_doc.snippet('content_trans_ot_idx', ct.content_trans_id, 'lorem') as snippet
from content_trans ct
where contains(ct.ORACLE_TEXT_COLUMN, 'lorem', 1) > 1;
Results WITH NOT WANTED HTML TAGS:
6 1 <b>lorem</b> <b>lorem</b> <p>qualification</p> 2.1
6 2 <b>lorem</b> <b>lorem</b> <br>qualification</br> 2.1
Edited by: user13312701 on 13-Oct-2010 01:18 -
Help needed in formating the text using HTML tags in reports 10g
Hi all,
I have a situation here. We have an application which prints out Reports with a few lines of text in it. This text is entered by the user through our forms application in a field. That particular text is stored in each row of a particular long column. Here I want to modify the text, while printing, on the report like underline, bold, italics etc,.
As of now I am using the HTML tags, in the forms, to do so as most the times the text in the report is same.
I want to know if this can be done by the user itself while he is entering the data in the field through the form.
Thanks in advance . I will explain you more clearly if you need.Hi,
The code did work. But I am not sucessfully able to display the values entered in 2nd page in the 3rd page.Please find the code below:
<html>
<head>
<script language="LiveScript">
function WinOpen() {
if (document.form1.cap.value == "")
alert("Enter value in text box");
return;
msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no, scrollbars=yes");
msg.document.write("<HTML><HEAD><TITLE>Yo!</TITLE></HEAD>");
msg.document.write("<CENTER><h1><B>This is really cool!</B></h1></CENTER>");
msg.document.write('<BODY><form name="form2">');
for(var i =0; i < document.form1.cap.value; i++)
msg.document.write("<INPUT type=text name=tbAlphaNumeric>");
msg.document.write("<br>");
msg.document.write('<input type="button" name="Button2" value="Steal" onClick="javascript:window.opener.WinShow();">');
msg.document.write('</form></BODY></HTML>');
function WinShow() {
msg=open("","DisplayWindow","toolbar=no,directories=no,menubar=no, scrollbars=yes");
msg.document.write("<HTML><HEAD><TITLE>Great!</TITLE></HEAD>");
msg.document.write("<CENTER><h1><B>Display of second page text elements!</B></h1></CENTER>");
msg.document.write('<BODY><form name="form3">');
for(var j =0; j < document.form1.cap.value; j++)
msg.document.write(document.form2.tbAlphaNumeric[j].value);
msg.document.write("<br>");
msg.document.write('</form></BODY></HTML>');
</script>
</head>
<body>
<form name="form1">
<INPUT type= "text" name=cap>
<input type="button" name="Button1" value="Push me" onClick="WinOpen()">
</form>
</body>
</html> -
Tablespace usage report generated with html tags instead of text
Hi ,
We have a unix shell script scheduled to find tablespace usage and sends the report to our mail id.
For the past few weeks(no changes idone in the script) the report is coming with html tags instead of text as below.
</head>
<body>
<p>
<table border='1' width='90%' align='center' summary='Script output'>
<tr>
<th scope="col">
TABLESPACE_NAME
</th>
<th scope="col">
CUR_USE_MB
</th>
<th scope="col">
CUR_SZ_MB
</th>
<th scope="col">
CUR_PRCT_FULL
</th>
<th scope="col">
FREE_SPACE_MB
</th>
<th scope="col">
MAX_SZ_MB
</th>
<th scope="col">
OVERALL_PRCT_FULL
</th>
</tr>
<tr>
<td>
SYSTEM
</td>
<td align="right">
268
</td>
<td align="right">
500
</td>
<td align="right">
54
</td>
Is this any settings issue or anything to be modified in the script.Could you please reply..
Regards,
Bharath.
Edited by: 870384 on Jul 6, 2011 1:17 AMHi Sven W,
Please find the sql below that is generating the tablespace usage report. In the staring of the script markup is set to ON and at the end it is set to OFF.Do you suggest any changes to this..?
SET ECHO OFF
SET PAGES 999
SET MARKUP HTML ON SPOOL ON
col tablespace_name format a15 trunc
col cur_use_mb for 999999999
col cur_sz_mb for 999999999
col free_space_mb for 999999999
col max_sz_mb for 999999999
compute sum of cur_use_mb on report
compute sum of cur_sz_mb on report
compute sum of free_space_mb on report
compute sum of max_sz_mb on report
break on report
spool tablespace.html
select tablespace_name,
round(sum(total_mb)-sum(free_mb),2) cur_use_mb,
round(sum(total_mb),2) cur_sz_mb,
round((sum(total_mb)-sum(free_mb))/sum(total_mb)*100) cur_prct_full,
round(sum(max_mb) - (sum(total_mb)-sum(free_mb)),2) free_space_mb,
round(sum(max_mb),2) max_sz_mb,
round((sum(total_mb)-sum(free_mb))/sum(max_mb)*100) overall_prct_full
from (select tablespace_name,sum(bytes)/1024/1024 free_mb,0 total_mb,0 max_mb from DBA_FREE_SPACE group by tablespace_name
union select tablespace_name,0 current_mb,sum(bytes)/1024/1024 total_mb,sum(decode(maxbytes, 0, bytes, maxbytes))/1024/1024 max_mb
from DBA_DATA_FILES group by tablespace_name) a group by tablespace_name;
select owner,segment_name,segment_type,bytes/(1024*1024) size_m
from dba_segments
where tablespace_name = 'SYSTEM' and segment_name='FGA_LOG$' order by size_m desc;
spool off;
SET MARKUP HTML OFF SPOOL OFF -
Problem removing html tags from the text retrived
Hi there,
I am using jdbc to connect the database and retriving the data. In one of the columns along with the description there are some html tags in few of the recors of that column. is there a way to retrive the text only ignoring the html tags in between. Or can i retrive and then strip off the html code in the text to display only normal text.
example of the data retrived which are pipe seperated and one of the columns has html tags in it:
209|The euphoria |187945-2|http://www.abc/lst.jsp?mktgChannel=I86023&sku=18791-2&siteID=qpF0HYnRugA|http://www.abc.com/assets/images/product/medium/18793-2_198.jpg|Rooftop Singers: Walk Right In | abc Music proudly presents THE FOLK YEARS, an unforgettable era in music history!<BR><BR><B>Featuring:</B><BR>
<LI>The most complete collection of folk and folk-rock songs ever put together -- 132 classics!
<LI>Original hits by the original artists!
Now i need to remove the tags before displaying this on the output. Is there a simple way to do this.
Thanks...Did you read the documentation of the trim() method,
where it describes which whitespace it removes?I believe his problem is that
"Some text here
<blah>
More text"becomes
"Some text here
More text"... and he wants ...
"Some text here
More text"So, your problem is that your regex isn't matching whitespace as well.
See the "Trimming Whitespace" section:
http://www.regular-expressions.info/examples.html -
How to remove html-tags from a text.
Hello!
I have a text-field which I will remove html-tag's from.
Example:
"This is a test<br><p> and another test"
The function must return a similar text, but without the html-
tags <br> and <p> (in this case).
Anybody that can help me with this little problem?
Thanks in advance for any help :-)
Best regards
Kjetil KlxveYou can wait for some kind personal to post a complete code
solution... But if you want to fix this yourself (which is good
for the soul) here are some hints:
- You can use SUBSTR to get at chunks of text
- You can use INSTR to find particular characters.
- You can use INSTR as an argument of SUBSTR
Hence:
bit_of_text := SUBSTR(text, 1, INSTR(text, '<'));
chopped_text := SUBSTR(text, INSTR(text, '<'));
bit_of_text := bit_of_text||SUBSTR(chopped_text, INSTR
(text, '>'), INSTR(text, '<'));
will give you the first bit of text that doesn't contain any
angle brackets.
From this you should be able to work out how to functionalised
this (you'll need to store the offsets and use them in a loop
construct).
Note that this assumes that the text only contains the '<'
character when it's part of a HTML tag. If you can't guarantee
this then you'll have to explicitly search for all the tags e.g.
bit_of_text := SUBSTR(text, 1, INSTR(lower(text), '<p>'));
bit_of_text := SUBSTR(text, 1, INSTR(lower(text), '<br>'));
This will be a bit of pain. And completely rules out XML!
rgds APC -
HTML tags displayed with the text in "Notification" area
We want to display an HTML formatted message in the "notification" area, but the HTML tags are being escaped and thus are displayed along with the text. We are using Application Express 2.2.1.00.04. The application has been handed off to us to support and we have no experience with APEX. So I hope I am explaining this correctly.
The process to display the message is as follows:
After submission, a page validation fires, which is of type "function returns boolean": "return some_function('P100_MESSAGE',2nd_arg);".
In "Error Message" is "&P100_MESSAGE."
The function returns true when the validation is successful. When validation fails, it returns false, setting 'P100_MESSAGE' to some error message - for example: "<li>Phone number is not numeric</li><li>Email address is not valid</li>".
Our template has this in the body definition:
#NOTIFICATION_MESSAGE##SUCCESS_MESSAGE##BOX_BODY#
As I understand it, #NOTIFICATION_MESSAGE# will be replaced with the value of 'P100_MESSAGE'.
I've displayed 'P100_MESSAGE' on my page to confirm its contents and it is rendered correctly with bullets. But the notification area does not show bullets. It displays the text and the HTML tags.
Is there anything obvious we can do to fix this problem? ThanksI 've changed P100_MESSAGE to text field, text field (disabled, saves state), text field (disabled, does not save state), and textarea, display as text, etc. It is originally set to Hidden type (because it is only to be displayed in the notification area). But changing it to various types makes no difference as to how it is displayed in the notification area. Of course, when it's not hidden, then it's also displayed on the page, among to other page elements,which is not acceptable.
Thanks-
-j
Maybe you are looking for
-
I recently upgrade my old G5 to a new iMac. I bought this as a refurb however so it came half set up. I did the usual swap of data files, but now many photo's say they do not have the original master so i can do nothing with them. How can i transfer
-
IBOT javascript to save to network drive
Hey, I use the below .js to save the results of an IBOT to a network location, it works fine and the file is saved but it can at times return an error even after always saving the file as expected, I use the schedule tables to display stats after in
-
Need to print in german language in output.
Hi, I need to print my vendor address and delivery address in german language (fetching data from database table) in my form. How I can achieve this.Please help, Regards, Himanshu
-
No invoice amount value in 2LIS_02_SCL
I have created a PO, with an IR connected to it. The IR contains an invoiced amount - however it is not extracted in 2LIS_02_SCL in BW nor with the RSA3. The value is 0, Anyone that knows why? Any conditions that has to be met in order for the Invoic
-
Can I import and open raw files on the new photo app?
Hi, Can I import and open raw files on the new photos app on my ipad? Does it convert it to jpeg automatically when you want to share them? Thanks.