Apex 4.0 - field in DB containing CLOB with HTML code

Hi thare

I'm on Apex Oracle 11.2 4.0.0

I want to display the content of a CLOB in Apex... This is HTML and I want to have the display of the page HTML (as in Explorer) - could be a blank page or within the apex
the CLOB contains more data then 32K

The file is not mine - so no possibility to change the layout :-)

Any ideas how to make this happen?

concerning
Mette

Edited by: Mettemusens2 2011-10-29 09:18

Have a region of pl/sql and have a loop to process each line, the html code with a call to htp.p () with the contents of package?

Select the contents of the clob in a local variable
to loop through the CLOB line-by-line
wrap the content in a call to htp.p)

Thank you

Tony Miller
Raleigh, NC

Tags: Database

Similar Questions

  • Oracle apex without password field application login page

    Hi all

    Someone please help with this request. I want to have a login to application page where users just enter their login user id and just click the button connection; Once they connect. I have an authorisation procedure which checks against the database for their user id table and redirects to different pages based on their role as defined in the database. If its a user id invalid; the process redirects to the page that is not permitted.

    Is it possible in the apex oracle to connect to the app with just their user name. We use Oracle APEX 4.0.2 version and oracle 10g r2 database.

    Previously, we had the LDAP authentication, which was no - ssl and we do not want to use it, as this will not be the policy of the company. We have tried to establish a SSL connection and create oracle certificate using s/n, but it always takes some time.

    DECLARE

    v_role VARCHAR2 (30);

    v_page NUMBER;

    BEGIN

    BEGIN

    SELECT user_role

    IN v_role

    FROM table_a

    WHEN USER_ID = UPPER (TRIM (: P101_USERNAME));

    EXCEPTION WHEN NO_DATA_FOUND THEN

    v_role: = NULL;

    END;

    IF v_role = "MANAGER" OR v_role = "ADMINISTRATOR."

    THEN

    v_page: = 1;

    ELSIF v_role = "ANALYST."

    THEN

    v_page: = 32;

    ON THE OTHER

    v_page: = 200;

    END IF;

    APEX_UTIL.set_session_state (p_name = > 'FSP_AFTER_LOGIN_URL', p_value = > NULL);

    wwv_flow_custom_auth_std. Login (P_UNAME = >: P101_USERNAME,)

    P_PASSWORD = >: P101_PASSWORD,.

    P_SESSION_ID = > v ("APP_SESSION").

    P_FLOW_PAGE = >: APP_ID | ':' || v_page);

    END;

    How to change, the process described above to allow the value null for the password field.

    Please help with possible suggestions. Thanks in advance.

    Thank you

    Orton

    Write a custom authentication scheme

    http://allthingsoracle.com/custom-authentication-in-apex/

    and simply return true without checking the password field. The author, Patrick Barel, gives an example:

    FUNCTION authenticate (username_in in VARCHAR2

    password_in IN VARCHAR2)

    RETURN A BOOLEAN VALUE

    IS

    BEGIN

    RETURN TRUE;

    END to authenticate;

    A custom authentication function can do what you want in terms of functionality, as long as it returns true if the authentication is successful or false otherwise.

  • Shoot username in the Apex form text field once the user is connected.

    Is it possible for a username to autopopulate a text field in a form once the user is logged?

    Example:

    John Doe connects as jdoe. Once authenticated, he is taken to a form where a field has already slapped in user name.

    Is this possible? If so, examples?

    Thanks for any help,

    Joseph

    The field must have already affected with v ('APP_USER') or: APP_USER. Check the default value of the field

  • user_source and all_source does not contain some of the code

    Hi all

    I have not seen a similar question here, I have a strange situation: when I interview the user_source and all_source data dictionary views, the source text of some of my packages is missing.

    example:
    SELECT *.
    From all_source ac
    WHERE the ac. OWNER = "MYSCHEMA".
    AND ac. TYPE = 'PACKAGE BODY '.
    AND ac.name = 'WILL '.

    I get the first 9 lines of my package. I was not able to find information on this. Is it possible that the data dictionary views are corrupt? What can I do to fix this?

    Oracle is:
    Oracle Database 10 g Enterprise Edition Release 10.2.0.5.0 - 64 bit Production
    With the options of partitioning, OLAP, Data Mining Engine scoring and Real Application Testing

    G wrote:

    I have not seen a similar question here, I have a strange situation: when I interview the user_source and all_source data dictionary views, the source text of some of my packages is missing.

    Not possible that there is a SINGLE data table meta containing the actual source code. USER_SOURCE and ALL_SOURCE are simply the table of data dictionary views.

    If the results are not as expected, you take either the differences between points of view into account (different permissions are applied in these views to determine exactly what source code objects are visible), or your client correctly renders the responses.

    Assuming, of course, that you query the same object code source via these views and do it right.

  • apex tree 4 (jsTree) with html data

    Hello

    How can I view the html data in the tree apex 4? I tried to join something like ' < span class = "" >... </span > ' to the node text in but did not. Also, because jQuery UI may include other widgets including the tree in the future, jsTree arrive in the future versions of Apex?

    Thank you.
    Andy

    Andy,

    The version of jsTree to APEX 4 does not support the HTML titles. From what I've heard from the developers, they wait for jsTree to have an official version 1.0 before rolling in the new version (currently, jsTree lists only his last as "pre - 1.0"), so it is unlikely to be included in the 4.1 official release. But it is something many people want.

    You can install and use the last jsTree yourself - I've got a report & demo here. Alternatively, you can hack the current tree to do what you want with a dynamic onload action that changes the & lt; and & gt; encodings that are generated in the real rafters, which will prompt the browser to display the HTML code (see tree of formatting), but there is no way to ensure that it will always work the way you expect it.

    -David

    Published by: David Gale on August 8, 2011 23:56

  • Dynamic action in Apex - automatic text field display based on the definition of value

    Hello

    I have two text elements. Need to create dynamic action for what follows,

    1 Order_number

    2 Order_type

    When a user enters an order number starting at 1, the order type should type should automatically posted as CONSUMER.


    When a user enters an order number starting with 2, the order type should type should be automatically displayed as COMPANY to another display null.

    Can anyone help please have solved this issue.

    Thanks in advance!

    Hi 2932464,

    2932464 wrote:

    Please change your login username of "2932464" to something meaningful. Reference: Video tutorial how to change username available

    I have two text elements. Need to create dynamic action for what follows,

    1 Order_number

    2 Order_type

    When a user enters an order number starting at 1, the order type should type should automatically posted as CONSUMER.

    When a user enters an order number starting with 2, the order type should type should be automatically displayed as COMPANY to another display null.

    Can anyone help please have solved this issue.

    Hereby you mean something like this: https://apex.oracle.com/pls/apex/f?p=52380:11:129938442406997:

    If Yes, then create dynamic action as follows:

    • Create a dynamic action on the Order_number change event say. P11_ORDER_NUMBER.
    • Event-> change, Type of selection-> item (s), article (s)--> P11_ORDER_NUMBER Condition-> is not null
    • Real Action-> to run the JavaScript Code
    • JavaScript code:
      var ordernum = $('#P11_ORDER_NUMBER').val();
      var startdigit = ordernum.substr(0,1);
      if (parseInt(startdigit) === 1) {
        $('#P11_ORDER_TYPE').val('CONSUMER');
      } else if (parseInt(startdigit) === 2) {
        $('#P11_ORDER_TYPE').val('BUSINESS');
      }
    

    I hope this helps!

    Kind regards

    Kiran

  • Copy the value of the item to another page of the apex in a field

    I have a main table and adds a new button.

    In my master table, there is a client code.

    If I press this button again, I will be referred to another form on another page where I can create log files.

    For the moment, I have to insert the client code in this form.

    How is it possible to copy the customer ID, if I press the new button in the main table, if this customer code (value) will be copied

    in another article on my other page?

    Hello

    What version of APEX are you using?

    Solution for this should be simple.

    Just edit the button element. Assign it "Action when the button is clicked" "redirect to the page of this application.

    "Then set: Set on these elements ' with the name of the target element and the 'with these values" with the name of the source element.

    The same works also for reports. But instead of the nom_element, you must add the column name as: #COLUMN_NAME # for 'with these values.

    Concerning

    J

  • CLOB with special characters

    We have recently updated our database from a character set to UTF8. Since then, a function of database using DBMS_LOB. SUBSTR to return 4,000 characters both stopped working when the text contains special characters (accents, tilda, etc.). I know that our DBA converted all the fields of VARCHAR2. For example, he changed a field with the data type of VARCHAR2 (10) to VARCHAR2 (10 char). Is there a similar conversion to CLOB fields?

    user2486268 wrote:
    The problem may be the function itself. This is the code:

    My first thought was that I had to change v_return_answer VARCHAR2 (4000) to v_return_answer VARCHAR2 (4000 tank). I tried, but it made no difference. Here's an example of what look like parameters in the function call:
    SELECT f_get_long_answer (1307003,2,15,'L1',1)
    OF THE DOUBLE

    When there is a special character in the area of the sarquan_long_answer, he gets this Oracle error:
    ORA-6502: PL/SQL: digital or value error: character string buffer too small.

    I think that you already have the position in the right direction - your problem is that the DBMS_LOB. SUBSTR function is now trying to copy the 4,000 characters in your field of VARCHAR2.

    Many characters with your UTF8 characters will now allocate more than a single byte.

    So if you need to change the local variable to semantics (4000 tank) TANK if not changed a default of your DBA (parameter NLS_LENGTH_SEMANTICS) - but there is a limitation in Oracle that SQL can manage up to 4 000 bytes VARCHAR2 (PL/SQL can handle up to 32767 bytes in the latest versions of Oracle) - and if you try to copy the 4,000 characters in your local variable it will succeed to within the service, if the variable is defined as char 4 000, but it will fail to return the value of SQL.

    So I assume you are using this function in SQL and then fails with this error message if you try to use SQL from whenever the local variable is greater than 4 000 bytes. If your local variable is defined with the semantics of character then he must really succeed if you use from within PL/SQL, provided the variable that will receive the return of the value function is also defined to be big enough.

    Since a single character in UTF8 can allocate up to 4 bytes you can only assume back up to 1,000 characters now that SQL function, is over 4,000. Everything from 1 001 to 4 000 characters can potentially fail now in the SQL engine.

    Kind regards
    Randolf

    Oracle related blog stuff:
    http://Oracle-Randolf.blogspot.com/

    Co-author of the book "OakTable Expert Oracle practices":
    http://www.Apress.com/Book/view/1430226684
    http://www.Amazon.com/Expert-Oracle-practices-database-administration/DP/1430226684

  • Admin apex EDITION problem a user to the workspace with administrator privileges

    Hello

    I use Apex 4.2 and 11.2 XE on a Windows Server.  Many applications work well.

    Today I went to http:// (server) / apex/apex_admin to add a few users in a workspace (Workspace management / manage developers and users)

    When I created a user when the user is Administrator = No and when the user is developer = no, everything worked fine.  When I subsequently edit the user, everything is fine.

    When I created a user when the user is Administrator = Yes and when the user is developer = Yes, the user was created without problem, but later I couldn't edit this user.  When I clicked on the pencil to the user icon I got the error message: ORA-01841: (full) year must be understood between-4713 and 9999 and not be 0


    At no point in the standard user or administrator / developer user I enter anything in the DEFAULT DATE FORMAT field.

    As part of my diagnosis, I looked at the WWV_FLOW_FND_USER. Field DEFAULT_DATE_FORMAT.  I have confirmed that it is null for all users.

    Could the UI for Apex_Admin also be written to another table somehow?  Just trying to think this through.

    I don't know how I could have created this problem by using the user interface.  How can I modify this to the administrator / Developer users, I need to create?  I need to edit the table directly?  I hesitate to do so.

    Thanks for looking at this.


    In Instance Apex Manager, under security settings, the maximum lifetime of password you defined is so high that when you add the last password change the number of days, it's beyond 31/12/9999 (the maximum date allowed in the Oracle database).  Reduce this to a reasonable value (even 10,000 days would be nice).

    Anton

  • Convert a CLOB with WE8ISO8859P15 Charset UTF - 8 charset

    Hi all

    I have a CLOB containing an XML and XML code all tags where created using the DB character set: WE8ISO8859P15.

    For example:

    {code}

    <? XML version = "1.0" encoding = "ISO-8859-1? >

    " < certidao xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance ">

    < funcionario >

    < Name >José Moreira < / name >

    < language > head of the Administration Office < / language >

    Faculty of engineering < instituição > < / instituição >

    MANAGER ADMINISTRATIVE < assinatura > < / assinatura >

    < title > < / title >

    < / funcionario >

    < / certidao >

    {code}

    I need to keep this charset value.

    But now I need to convert all my CLOB data in charset UTF-8 for external requirements and stored this new CLOB in a table column.

    I can't change the character set of the session. I tried to use a function

    {code}

    FUNCTION convert_xml (pcl_xml IN CLOB)
    RETURN THE CLOB
    IS
    lcb_return CLOB.
    BEGIN
    SELECT CONVERT (pcl_xml, "WE8ISO8859P1", "AL32UTF8")
    IN lcb_return
    FROM DUAL;

    RETURN lcb_return;

    END convert_xml;

    {code}

    This function apparently works, but when I try to validate the XML content (once I replaced the encoding = "ISO-8859-1" for encoding = 'UTF-8') the validation software tells me that I have some characters that should not be present in a file using the UTF-8 encoding.

    Any help?

    Thanks in advance.

    Filipe Almeida

    I had an error in my service.

    Should be

    SELECT CONVERT (pcl_xml, "AL32UTF8", "WE8ISO8859P1")
          IN lcb_return
          FROM DUAL;

    Thanks anyway.

    Filipe

  • How can I change the contents of a text field in a PDF form with a defined variable?

    Hi all!

    First time poster and getting quite frustrated trying to understand this issue. Here's the scenario: I use Acrobat Pro 10 to create what is essentially a form of giant order. I have designed the document in InDesign, defined the various buttons and other whatnot and then it exported to Acrobat to continue the construction of the form.

    I have a radio button group called 'conference_opportunities' that contains different options at different prices, so they are all the same, but have different values (so that they belong to the same group and only one can be selected at a time).

    What I've done is created a 'MouseDown' event on the button that sets a variable called 'ConferenceOpportunity', which is equivalent to the title of the option they pick. Then, I want to take this variable and display in a text box called "Conference_Option". I use a variable because my radio buttons values are actual prices of the option they pick, so I can't set the value as the title of the option.

    If its an array of boxes and option at the bottom of the page, there is the Option that they selected, the quantity (which can change) and value (in dollars)

    I also then want to display this variable at the end of the document as a kind of summary of what they have chosen to buy as well, but I guess it's the same code.

    I'm not an expert at all Javascript, so code snippets would help greatly. I looked on the Document from Adobe on the SDK and API and have not been able to find a solution. I also turned to the Almighty google and still no luck.

    Any help would be greatly appreciated!

    Thank you all

    Right now, you have to do is use this variable to the value property of your text field... Then add this at the end of your code:

    this.getField("Conference_Option").value = ConferenceOpportunity;

    Also, I would use not MouseDown, MouseUp.

  • Is there a way to auto text fields in a double set with the news of first instance?

    I have a form of confidentiality, that I need to create. This form must contain multiple instances of the names of parties (between my company and the company X) and I was wondering if there was a way that if when the form is being filled, I can type company X in the first field and it can be filled in other areas, if necessary automatically?

    This is possible by the global setting.

    Give even to the fields and select one of them and object > Binding > Default lie select Global.

    -Sofiane

  • Entry fields fill pages of document with tabs

    I need a method to submit a form field entry page which

    then fill various business documents in any of the other tabs interface or

    with the help of a diagram of button to submit the documents completed for printing.

    I have two questions in this regard:

    1. is it possible to create a tabs interface in LiveCycle Designer ES2?

    2. how to create a button to fill all or each individual business of data entered into the first page?

    Thank you

    Hello

    Let's say you had a page on cover and four other tabs, you can create a form of five pages. In the master page, along the top, you can create five buttons that contain the script to pass the five pages.

    I recommend a landscape layout, as it is for computer screens better, especially to adjust α page.

    In this case, the user could scroll through five pages or click on the button right along the top of the page.

    If you only want one page visible/available at any time, then you can assign four pages hidden - this excludes the layout. The buttons would then have an additional script to show/hide the pages.

    There is an old sample of Model-View-Controller somewhere on the Adobe Web site, which may be of interest.

    Regarding the second question, yes it is possible as well. The easiest way is to put the names of identical objects for fields that must reflect the same data. Then, in the object > link tab, set a global binding. This means that information you typed in on the first page will be automatically published on fields with the same name in the following pages.

    Hope that helps,

    Niall

  • HTML Code is displayed in the item field

    I have a point in a shape of type display text - does not state record. I'm trying to change the background color. So I in html table cell attributes:
    <span style='background-color:yellow'></span>
    I have in the HTML header
    <script language="JavaScript" type="text/javascript"></script>
    But when I run the form, I see the following html commands as well as the actual value in the text box:
    colspan="1" rowspan="1" align="left">500181
    (500181 is the true value for the field, the background color is set correctly to yellow)


    It's probably something very simple, but I couldn't find the forum search.

    The form does not rely on a select statement, so I can not put the code in there, as part of the select statement.

    Thanks for your help. Susan

    The 'Attributes of Table cells' field allows you to add attributes to thegenerates the Apex label. It is not intended to full tags to insert. See if just put:

    style="background-color:yellow"
    

    in the 'attributes of table cells' field work better.

    If you do not need to add a complete tag, you can try to put in the field "Text the pre element's" opening tag and the closing tag in the field "Item text"

  • How to create a file of "PS" containing my hand written code on a mac?

    I want to draw mathematical writing postscript code. I did it on my windows machine. On my mac text editors do not allow me to save a file as a ".ps". I tried the advice given by the apple support, choose "save to .ps" in the print menu, but it does not have a file suffix ".ps" containing my code. It produces a ".ps" suffix file that contains the code to produce a page containing my code, so when I see him I just see my code "Move to 200 200", etc., instead of the image, the code is supposed to attract. Any help?

    Use a text editor that can create/save as text, i.e. as a .txt file.

    This can be done in TextEdit, by setting: Preferences > new Document > Format of plain text.

    When the economy (or after registration) simply renaming the file ends with. PS.

    I suppose also that stick to ASCII or Unicode (UTF-8) as the encoding of the text is the safest bet to avoid character encoding problems.

    The .ps file saved now appear as shown in the preview postscript (as preview knows how to draw postscript instructions) and appear as 'source' postscript code in TextEdit (when the .ps file is dragged on or opened from TextEdit TextEdit).

    The above solution worked fine for me using the example "Hello world" of the English Wikipedia page.

Maybe you are looking for

  • HP Pavilion 27-n190st: software (disc) HP PhotoSmart 215 issue...

    A couple of years ago I bought a Hewlett Packard PhotoSmart 215 digital camera.  It came with a software disc with a program of type PhotoShop pretty cool and easy to use (on a separate disk). Over the years that I've updated the computers I always r

  • Updated the more options El Capitan

    I use 10.6.8 and upgrade to install new applications.  El Capitan has terrible reviews.  Y at - it another option?

  • PSC 2510: PSC 2510 Windows 8.1 - new router - can't change network settings

    OK so I got a new router so the IP address has goen of 169.254. * to 192.168. *. The page configuration network bed 169.254.124.x as the IP address and wireless can be found as the SSIS is hpsetup. I connected the USB cable, downloaded the HP printer

  • Executable file

    I'm looking for advice run a stand-alone executable on a computer that does not have LabVIEW. I understand that when I generate the executable file and move the computer free of LabVIEW, I need to install the runtime. My question relates to create mu

  • AutoPlay does not start for my Canon camera

    AutoPlay does not start for my Canon camera now that I have installed a new hard drive. Dell has spent an hour setting up AutoPlay to open Windows Live, which is what I did before. Is there a solution to this? I can access Live, but I just want to do