Displaying CLOB column content with markup

I have a table with a CLOB type column, and I a using a n APEX form to input into this column using a Rich Text Editor.
When I save the text and then re-open it again with the Rich Text Editor in the form, the markup (bold, spacing, etc) has successfully been saved and retrieved.
I want to also create another page to show one record at a time (to users who I don't want to be able to edit the form), but I can't get the text to be displayed nicely with the markup.
I have tried using a dynamic PL/SQL region as well as an item within a HTML region, but it always displays without the markup.
How do I do this correctly?

Hi, I know that I´m a kind of late in this discussion, but I faced a similar problem exactly in now days and in a way to show my grateful to this specific forum conversation that gave me the light I was needing, I want to share my solution here.
My Problem:
I have a customizable "Help" text that could be seen in some pages of the application. It is edit from a special Help Management page throw a Rich Text Editor and it is related to the corresponding page. When the final user opens the specific page, the text has to be shown as it was edited in the Rich Text Editor.
My solution came in this way:
*1. Create the Shortcut: "Help_Text"*
DECLARE
CURSOR C_Help IS
select Concat(Concat('<div class="textRegion">',Help_Text),'</div>')
from Help_by_Page_Table
where app_id = :app_id
and page_id = :app_page_id;
vHelp_Text CLOB;
BEGIN
OPEN C_Help;
FETCH C_Help INTO vAyuda_Rapida;
CLOSE C_Help;
RETURN vHelp_Text;
END;
*2. In the desire page: Create a HTML Region(with shorcuts)*
Region_Source:"Help_Text"
*3. Job is done!*
I just have to add that I´m using the Standard Theme: Productivity Applications, the class "textRegion" is part of the classes defined in this theme.
Edited by: Gustavo Bustos on Feb 27, 2013 12:21 PM
Edited by: Gustavo Bustos on Feb 27, 2013 12:25 PM

Similar Messages

  • Capture content with markup element

    Hi All,
    I struck with capturing the content with markuptag within that content.
    For Eg;
    <p> xxxx<i>ssdf</i>sdfasdfas<b>sdfasdfas</b>asfdgsadfasd</p>
    Here i want to capture the contents of Element "p" with the markuptags "i, /i, b, /b"
    I am using the statement like
    var myString = myXMLElement.texts.item(0).contents;
    Pls. help me out to find a solution for this.
    regards,
    Suresh

    Hi, I know that I´m a kind of late in this discussion, but I faced a similar problem exactly in now days and in a way to show my grateful to this specific forum conversation that gave me the light I was needing, I want to share my solution here.
    My Problem:
    I have a customizable "Help" text that could be seen in some pages of the application. It is edit from a special Help Management page throw a Rich Text Editor and it is related to the corresponding page. When the final user opens the specific page, the text has to be shown as it was edited in the Rich Text Editor.
    My solution came in this way:
    *1. Create the Shortcut: "Help_Text"*
    DECLARE
    CURSOR C_Help IS
    select Concat(Concat('&lt;div class="textRegion">',Help_Text),'&lt;/div>')
    from Help_by_Page_Table
    where app_id = :app_id
    and page_id = :app_page_id;
    vHelp_Text CLOB;
    BEGIN
    OPEN C_Help;
    FETCH C_Help INTO vAyuda_Rapida;
    CLOSE C_Help;
    RETURN vHelp_Text;
    END;
    *2. In the desire page: Create a HTML Region(with shorcuts)*
    Region_Source:"Help_Text"
    *3. Job is done!*
    I just have to add that I´m using the Standard Theme: Productivity Applications, the class "textRegion" is part of the classes defined in this theme.
    Edited by: Gustavo Bustos on Feb 27, 2013 12:21 PM
    Edited by: Gustavo Bustos on Feb 27, 2013 12:25 PM

  • I want to display one column values with multiple symbols

    i am created one report.
    my column name is offshore  & on shore i want display 3  values with % symbol, then i want show 4 th  value as $ 2000,
    but it was allowing only one format $ or % but i need to display  symbols with my values.

    Try the following :
    give a name to the following formula like @getvalue
    Numbervar x;
    if
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("ANI"), CurrentSummaryIndex) = 0 and
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Offshore Other"), CurrentSummaryIndex) = 0 and
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Syntel"), CurrentSummaryIndex)= 0 and
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Employee"), CurrentSummaryIndex) = 0 and
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Contractor"), CurrentSummaryIndex) = 0 and
    //(GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Mgt consult"), CurrentSummaryIndex) = 0 and
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Clerical"), CurrentSummaryIndex) = 0 and
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Other"), CurrentSummaryIndex) = 0
    then
    x:=0
    else
    x:=(GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("ANI"), CurrentSummaryIndex) +
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Offshore Other"), CurrentSummaryIndex) +
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Syntel"), CurrentSummaryIndex))
    (GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("ANI"), CurrentSummaryIndex) +
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Offshore Other"), CurrentSummaryIndex) +
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Syntel"), CurrentSummaryIndex)+
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Employee"), CurrentSummaryIndex) +
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Contractor"), CurrentSummaryIndex) +
    //GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Mgt consult"), CurrentSummaryIndex) +
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Clerical"), CurrentSummaryIndex) +
    GridValueAt(CurrentRowIndex, GetColumnPathIndexOf("Other"), CurrentSummaryIndex)
    ) * 100
    Now create a new formula and check the value of the above formula :
    if {@getvalue} > 50 Then
    "$"&{@getvalue}
    else
    {@getvalue}&"%"
    Hope this will resove the issue.
    Thanks,
    Sastry

  • Use JSP to display different web contents with same HTML style?

    I am very new to jsp. what i wanna do is to use jsp to link with the database containing different contents to display in a same xsl style. any advice will be much appreciated.

    You can do anything in jsp that you can with html, javaScript, xhtml, xsl, there is no difference, just write your xsl the same as you would for a static page.

  • Transferring .pdf content with markups to Excel

    I am trying to transfer the contents of a .pdf file using Adobe Reader 9 to an Excel 2007 document.  I have been able to copy the base content of the .pdf file using the Copy File to Clipboard function, but the markups to the .pdf don't transfer with it and I can't figure how to include these markups in the transfer.  Please help.

    Not possible with Adobe Reader.

  • How to display a column value with in string?

    Hai all,
    Select name from TAB1;
    output:  JAGAN
                RAMU
                SIVA
                Sanjay
    So my requirement is to display these data in string(With in single Quotes) like below.
               ' JAGAN'
                'RAMU'
               ' SIVA'
                'Sanjay'
    Let me know if it is possible.......
    Thanks in Advance.....
    Jagadekara Reddy

    Like this ,
    SELECT ''''||ENAME||'''' FROM TAB1;
    Cheers!

  • Sharepoint 2013 web service to update column content

    I have a folder in a sharepoint list. Folder have columns ie Title, modified by, modified date, details. I am trying to update details column content with csharp code for that folder. I am trying to find sharepoint service method to update a column content
    for a list item.
    Added my sp site service ex: http://mysite/_vti_bin/Lists.asmx as reference
    I included service reference in my project and create object.
    I am referrring the below service to check if I can use any method from it but unable to find it. Do we have any method to 
    https://msdn.microsoft.com/en-us/library/ms774680(v=office.12).aspx
    Sri

    Hi Sri,
    Per my understanding, you might want to update item using Lists Web Service.
    In Lists.asmx, the methods available are as below:
    https://msdn.microsoft.com/en-us/library/lists.lists_members(v=office.12).aspx
    I suggest you follow the documentation below about updating list item using Lists Web Service for a try in your environment:
    https://msdn.microsoft.com/en-us/library/office/ms440289(v=office.14).aspx
    Thanks         
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to read/write .CSV file into CLOB column in a table of Oracle 10g

    I have a requirement which is nothing but a table has two column
    create table emp_data (empid number, report clob)
    Here REPORT column is CLOB data type which used to load the data from the .csv file.
    The requirement here is
    1) How to load data from .CSV file into CLOB column along with empid using DBMS_lob utility
    2) How to read report columns which should return all the columns present in the .CSV file (dynamically because every csv file may have different number of columns) along with the primariy key empid).
    eg: empid report_field1 report_field2
    1 x y
    Any help would be appreciated.

    If I understand you right, you want each row in your table to contain an emp_id and the complete text of a multi-record .csv file.
    It's not clear how you relate emp_id to the appropriate file to be read. Is the emp_id stored in the csv file?
    To read the file, you can use functions from [UTL_FILE|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm#BABGGEDF] (as long as the file is in a directory accessible to the Oracle server):
    declare
        lt_report_clob CLOB;
        l_max_line_length integer := 1024;   -- set as high as the longest line in your file
        l_infile UTL_FILE.file_type;
        l_buffer varchar2(1024);
        l_emp_id report_table.emp_id%type := 123; -- not clear where emp_id comes from
        l_filename varchar2(200) := 'my_file_name.csv';   -- get this from somewhere
    begin
       -- open the file; we assume an Oracle directory has already been created
        l_infile := utl_file.fopen('CSV_DIRECTORY', l_filename, 'r', l_max_line_length);
        -- initialise the empty clob
        dbms_lob.createtemporary(lt_report_clob, TRUE, DBMS_LOB.session);
        loop
          begin
             utl_file.get_line(l_infile, l_buffer);
             dbms_lob.append(lt_report_clob, l_buffer);
          exception
             when no_data_found then
                 exit;
          end;
        end loop;
        insert into report_table (emp_id, report)
        values (l_emp_id, lt_report_clob);
        -- free the temporary lob
        dbms_lob.freetemporary(lt_report_clob);
       -- close the file
       UTL_FILE.fclose(l_infile);
    end;This simple line-by-line approach is easy to understand, and gives you an opportunity (if you want) to take each line in the file and transform it (for example, you could transform it into a nested table, or into XML). However it can be rather slow if there are many records in the csv file - the lob_append operation is not particularly efficient. I was able to improve the efficiency by caching the lines in a VARCHAR2 up to a maximum cache size, and only then appending to the LOB - see [three posts on my blog|http://preferisco.blogspot.com/search/label/lob].
    There is at least one other possibility:
    - you could use [DBMS_LOB.loadclobfromfile|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lob.htm#i998978]. I've not tried this before myself, but I think the procedure is described [here in the 9i docs|http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96591/adl12bfl.htm#879711]. This is likely to be faster than UTL_FILE (because it is all happening in the underlying DBMS_LOB package, possibly in a native way).
    That's all for now. I haven't yet answered your question on how to report data back out of the CLOB. I would like to know how you associate employees with files; what happens if there is > 1 file per employee, etc.
    HTH
    Regards Nigel
    Edited by: nthomas on Mar 2, 2009 11:22 AM - don't forget to fclose the file...

  • BI content with folder structure in portal Content Area

    HI Dear Friends,
    I have  a requirement in my current project where i am integrating the BI reports with SAP EP.Iviews are associated with BI Reports.In the portal on clicking workset it should display folders in the portal content area with Icons instead of in Detail navigation .On click of the displayed folders it should display its sub content with Icons.
    I tried in all ways but later i came to know there there is a SAP BI business package which would come up with predifined iviews associated with BI. By importing this business package we can dispaly the  BI content in the portal in a folder format .
    I am using BI and EP 7.0 versions.
    Ratnakar

    Ratnakar,
       Let me understand your requirements, correct me if I understood it wrong. You need to display BI reports in Folder structure that is similar when you log on through BEx analyzer or WAD. If this is correct, then you need to upload the BI Role which contain all the required Folder structures and it BI Queries or BI Queries url assigned to that role.Once you upload this role on to portal , you will see folder structure on PCA.
    Example
    BI Reports  - Folder 1
      I--> FI reports  -- Subfolder 1
      I            I--> AP reports 1
      I--> CO reports  -- Subfolder 2
                   I--> Cost Report 1         
    Hope it helps,
    Cheers,
    Balaji

  • Problem Displaying generated Markup File (CLOB column)

    Dear Colleague,
    I am attempting to display the results of a generated Markup File in a Forms Text Item. The code (Below) is in a WHEN-BUTTON-PRESSED trigger.
    Step 1: generates the markup file and stores it in the MARKUP_DOCUMENTS table.
    Step 2: Copies the clob column DOCUMENT to the clob variable MYCLOB
    --> At Step 2, my form crashes !!!
    Is Oracle Forms not able to process CLOBs? The form was compiled as if there was no problem.
    How can I access the results of the generated Markup File in the MARKUP_DOCUMENTS table and present it to the Oracle Forms user?
    Best regards,
    Randy
    declare
    myclob clob := empty_clob();
    read_amount number(4):= 500;
    read_offset number(4):= 1;
    buffer varchar2(500) ;
    begin
    -- Step 1:
    ctx_doc.markup(index_name => 'documents_index',
    textkey => to_char(:hitlist_block.id),
    text_query => :search_block.search_clause,
    restab => 'markup_documents',
    query_id => '1',
    plaintext => TRUE);
    -- Step 2:
    SELECT document
    INTO myclob
    FROM markup_documents
    WHERE query_id = 1;
    -- Step 3:
    dbms_lob.read(myclob, read_amount, read_offset, buffer);
    -- Step 4:
    :markup_block.markup_text := buffer;
    go_block ('markup_block');
    exception
    when others then
    message ('Document could not be displayed: '||dbms_error_text);
    end;

    Hello,
    This is what i use to display an HTML Forms Text Item:
    Declare
       lc$Texte  Varchar2(2000) ;
       lf$fic client_text_io.file_type ;
    Begin
       lf$fic := client_text_io.fopen('c:\test.htm', 'w');
       client_text_io.put_line( lf$fic, '<html>' ) ;
       client_text_io.put_line( lf$fic, '<script language="JavaScript">' ) ;
       client_text_io.put_line( lf$fic, 'parent.window.resizeTo(600,400);' ) ;
       client_text_io.put_line( lf$fic, '</script>' ) ;
       client_text_io.put_line( lf$fic, '<body>' ) ;
       client_text_io.put_line( lf$fic, '<FONT face="sans-serif" color=#1B62AB size=2>' ) ;
       client_text_io.put_line( lf$fic, replace( :MAILS.TEXTE, CHR(10), '<br>') ) ;
       client_text_io.put_line( lf$fic, '</body></html>' ) ;
       client_text_io.fclose( lf$fic ) ;
       client_host('cmd /C START "x" iexplore.exe c:\test.htm' ) ;
       client_host('del c:\test.htm' ) ;
    End;Francois

  • Creation of view with clob column in select and group by clause.

    Hi,
    We are trying to migrate a view from sql server2005 to oracle 10g. It has clob column which is used in group by clause. How can the same be achived in oracle 10g.
    Below is the sql statament used in creating view aling with its datatypes.
    CREATE OR REPLACE FORCE VIEW "TEST" ("CONTENT_ID", "TITLE", "KEYWORDS", "CONTENT", "ISPOPUP", "CREATED", "SEARCHSTARTDATE", "SEARCHENDDATE", "HITS", "TYPE", "CREATEDBY", "UPDATED", "ISDISPLAYED", "UPDATEDBY", "AVERAGERATING", "VOTES") AS
      SELECT content_ec.content_id,
              content_ec.title,
              content_ec.keywords,
              content_ec.content content ,
              content_ec.ispopup,
              content_ec.created,
              content_ec.searchstartdate,
              content_ec.searchenddate,
            COUNT(contenttracker_ec.contenttracker_id) hits,
              contenttypes_ec.type,
              users_ec_1.username createdby,
              Backup_Latest.created updated,
              Backup_Latest.isdisplayed,
              users_ec_1.username updatedby,
              guideratings.averagerating,
              guideratings.votes
         FROM users_ec users_ec_1
                JOIN Backup_Latest
                 ON users_ec_1.USER_ID = Backup_Latest.USER_ID
                RIGHT JOIN content_ec
                JOIN contenttypes_ec
                 ON content_ec.contenttype_id = contenttypes_ec.contenttype_id
                 ON Backup_Latest.content_id = content_ec.content_id
                LEFT JOIN guideratings
                 ON content_ec.content_id = guideratings.content_id
                LEFT JOIN contenttracker_ec
                 ON content_ec.content_id = contenttracker_ec.content_id
                LEFT JOIN users_ec users_ec_2
                 ON content_ec.user_id = users_ec_2.USER_ID
         GROUP BY content_ec.content_id,
         content_ec.title,
         content_ec.keywords,
         to_char(content_ec.content) ,
         content_ec.ispopup,
         content_ec.created,
         content_ec.searchstartdate,
         content_ec.searchenddate,
         contenttypes_ec.type,
         users_ec_1.username,
         Backup_Latest.created,
         Backup_Latest.isdisplayed,
         users_ec_1.username,
         guideratings.averagerating,
         guideratings.votes;
    Column Name      Data TYpe
    CONTENT_ID     NUMBER(10,0)
    TITLE          VARCHAR2(50)
    KEYWORDS     VARCHAR2(100)
    CONTENT          CLOB
    ISPOPUP          NUMBER(1,0)
    CREATED          TIMESTAMP(6)
    SEARCHSTARTDATE     TIMESTAMP(6)
    SEARCHENDDATE     TIMESTAMP(6)
    HITS          NUMBER
    TYPE          VARCHAR2(50)
    CREATEDBY     VARCHAR2(20)
    UPDATED          TIMESTAMP(6)
    ISDISPLAYED     NUMBER(1,0)
    UPDATEDBY     VARCHAR2(20)
    AVERAGERATING     NUMBER
    VOTES          NUMBERAny help realyy appreciated.
    Thanks in advance
    Edited by: user512743 on Dec 10, 2008 10:46 PM

    Hello,
    Specifically, this should be asked in the
    ASP.Net MVC forum on forums.asp.net.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Content Query display multiple columns

    Hello,
    I am using a content query web part (in sharepoint 2013) to display a list from another site. The problem is that I don't see enough info from that list because I can display maximum 2 columns.
    Is it possible to display more columns from this list with the Content query web part? I would like to display all the columns from this list. Do i need to make a display template or something? 
    Thanks. 

    You have to customize the CQWP.
    Please check the below link
    http://pholpar.wordpress.com/2010/01/21/displaying-results-in-multiple-columns-using-the-content-query-web-part/
    Other option is you ca use Dataview webpart to show the list details from one site to other site
    http://www.learningsharepoint.com/2012/08/12/sharepoint-2013-add-dataview-webpart-with-sharepoint-designer-2013/
    http://sharepointgeorge.com/2009/display-sharepoint-list-site-data-view-web-part/
    MCTS,MCPD Sharepoint 2010. My Blog-
    http://www.sharepoint-journey.com
    If a post answers your question, please click "Mark As Answer" on that post and "Vote as Helpful

  • How to change "Display column content" on a uploaded file link?

    Hi,
    I based my portal form on a table with a field of type BLOB. I used this to upload any type of file. I have no problem in uploading my file, when I query the information, a link comes up with the words "Display column content". I can click on that link to see the content of my file. But is there a way to change the wording "Display column content"?
    null

    Yoy can change the link by editing the generated package

  • Forms 6.0 how to query clob column with oracle 9.2 DB

    hi every body,
    i made install for oracle 9.2 oracle DB every thing goes ok but when i made query in my form version 6.0 which have CLOB column the form closed automatically without any message?
    and just for know when i run the same form with oracle 8.1.7 DB the form made query normally without any problem.
    i want your help please.
    Message was edited by:
    mshaqalaih

    I know there was a problem in 6i where you would get a crash if your query returned more than {Max Length} characters of the field representing the CLOB column.

  • How to display rich content with URL in adobe flash builder and flex for mobile apps?

    Hi,
      In Apple IOS SDK, I used the WebView control to display the rich text with Bullets, different font style, images within the text and the URLs also within the text as HTML content.
    Clicking on the URLs automatically opens the respective webpage in Safari.
    In Adobe Flash Builder, I don't see any control straight away equivalent to Apple WebView control.
    How to implement the same using adobe and flex?

    Thanks for your reply, its nice to know its not just me.
    the error i got when submitting to the App store where due to native support for IPHONE 5 which is now mandatory (from May 1st), looking around the internet the common soloution seemed to be upgrading to Air 3.7.
    The strange erorrs on 3.7 revolve around compiling a standard / production build (fast build works fine)
    the error is always the same (snippet shown below):
    Error occurred while packaging the application:
    Undefined symbols for architecture armv7:
      "__ZN7avmplus8Debugger9debugLineEi", referenced from:
          __ZN7avmplus9MethodEnv9debugExitEPNS_13CallStackNodeE in AOTBuildOutput-4.o
          __ZN7avmplus11BaseExecMgr22debugEnterExitWrapperNEPNS_9MethodEnvEiPj in AOTBuildOutput-4.o
    I have completly failed to work out why, but my gut feeling is its something to do with how the mac is compiling the code in standard build and unable to find a library it needs.
    cheers
    Toby

Maybe you are looking for