Page item display 32767 characters (via computation)

Hello everyone,
Running APEX 3.2.1.00.11
I am trying to generate values for a page item using a PL/SQL function body. It parses and concatenates many rows of our databases. In one case I need to return some generated javascript code to pre-load a auto-suggest class. In the other case, I need to concatenate a variable number of comment postings for a given article "to create a threaded blog view" (the number of comments could get quite large).
My problem is that APEX is maxing out at 32767 characters. When I defined my function with a VARCHAR2(32767) I got a buffer too small error. When I tried to run it using a CLOB I got a "ORA-06502:     PL/SQL: numeric or value error string". I'm assuming this happens when it tries to exit the PL/SQL function and return control back to APEX (some type of CLOB -> VARCHAR2 conversion - but once again i'm just guessing).
I tried to verify the code works fine by running it in sql developer. When using DBMS.OUTPUT.PUT_LINE I got the same ORA-06502 error. When I replaced the return string with a "function completed" message instead, it ran fine and printed out the success message.
To validate it wasn't the contents of the string, I changed the function to put a DBMS.OUTPUT.PUT_LINE on each iteration through the result sets that builds the large concatenated string. Every line printed without issue and no errors were generated...
So, my question is...how can I generate text > 32k in size and display it to the user through APEX?
Please don't respond and say that I shouldn't be loading that much into a webpage initially and that I should be using AJAX to search through values and load them on the fly. That could work for the select list (if I can get past APEX's very particular URL parsing system) but it is not suitable for the "blog comments" functionality.
Thanksss!!

I honestly don't know enough about how APEX generates it's page items and the overall page to be able to answer your question. All that I can tell you is that its a simple "display only" page item that has a before header "Computation" on it powered by a PL/SQL function body.Sorry, I missed the "page item" and focused on the "PL/SQL". In that case you've hit a hard limit in APEX. Page items, report rows and various other things have a maximum output size of 32K.
I could do multiple page items each limited to 8k as you suggested and strategically concatenate them behind the scenes too - however this is extremely ugly. I need to consider how other people will be able to work with this code in the future.Absolutely&mdash;I really wasn't suggesting separate items as I was talking about buffering output from <tt>htp</tt> methods.
For handling large items, see the Save Large Value demo app. As you can see, this is not "out of the box".
For display-only purposes, APEX reports or dynamic PL/SQL regions are a better fit for the use cases you describe than page items.

Similar Messages

  • Page Items displayed in Oracle AS Portal

    I am building a page in the Oracle Application Server Portal
    that has three regions. Each region contains a Discoverer Worksheet. The layout
    is such that the upper region has a worksheet graph (a) spanning 100% of the
    region. Beneath this region are two regions containing one worksheet table in each
    region. The worksheets have a master (b)/detail (c) relationship. The "master" (b)
    worksheet is the table for the graph (a) in the upper region. It is the same
    Discoverer worksheet being displayed as a graph in one region (a) and as a
    table (b) in another region.
    The issue that I have encountered lies in the Page Items
    being part of the title of the regions. For the tables, the Page Item and values
    appear just below the title of the worksheet. This is not the case for the
    graph. The page items do not appear by default. To get the Page Items to appear
    as part of the graph, I used the &PageItems option in Discover Plus for the
    worksheet, but this causes the values to be repeated for the regions containing
    tables (b) and (c).
    Is there any way to turn off the Page Item as being part of
    the titles in the regions containing tables? Or any way to get all three
    regions to show the Page Items without them being repeated in the regions
    containing tables?
    Edited by: user10753869 on Dec 31, 2008 7:50 AM

    Any ideas on this? I have tried the custom template and changed the border="1", but that does not look very good. I want it to look more like excel, where there are titles (column headings) and within each column, each cell has a border completely around it with page items in them. Is this possible?
    Thanks!
    Jeff

  • Page Item: upon loading vs via select

    well, that subject header is fairly cryptic....
    I know how to link from a value on page 5 to and item in an HTML region of a DML page 6.
    I know how to make page 6 be a parameterized report, so that I can have an item that's a Select List, and the reports in other regions will update accordingly.
    Is it possible, and how would I go about doing it:
    if we go from Page 5 to Page 6, the item in the select box will be the linking value
    if we go from a menu directly to page 6, the select box will be null, waiting for a selection
    Thank you!
    Marion

    Marion:
    There are various ways to navigate from one page to another. The most common methods are using a branch or a re-direct from a List item. Each of these methods provides a way to set page-items with specific values.
    varad

  • Page Items displayed in table borders

    Hello,
    This might be a 'newbie' question, but I need to design a form layout in a 'Grid', so I need to know how to enable borders around each page item (cell). I wish there was a way to create a layout in Dreamweaver and then have Html DB insert each page item into the cell I choose.
    Any help?
    Regards,
    Jeff

    Any ideas on this? I have tried the custom template and changed the border="1", but that does not look very good. I want it to look more like excel, where there are titles (column headings) and within each column, each cell has a border completely around it with page items in them. Is this possible?
    Thanks!
    Jeff

  • Javascript help - Hide/Show a page item

    Environment:
    APEX 3.1.00.09 running on AIX 5.3
    Sample application on apex.oracle.com:
    Workspace: GALWAY
    UserID: gwicke
    Password: gwicke
    To see where my issues are:
    1- Start on page 3
    2- In the Agency drop down select 'J & B Marketing'
    3- In the Contract drop down select the only contract that appears
    4- Click on 'Edit Existing Contract'
    5- Note the page item 'LY Closings' has the value 261
    6- Click on the link (really a tab in my theme) at the top labeled 'Cost Detail'
    7- The 'Estimate Justification' is the page item to be displayed/hidden as noted below.
    8- The 'Homes Per Year' under the 'YEAR1' column is the user input page item
    9- The P2_BUILDER_CLOSINGS (value 261 noted above) is the page item to be used in the comparison
    I need to do a couple of things with a potentially hidden page item:
    1- Every time the page loads I need to check to see if the page item (P8_ESTIMATE_JUSTIFICATION) is not null and if it is indeed not null, make it displayed.
    2- When the user enters a value in another page item (P8_HOMES_PER_YEAR1), call a function to see if that value is more than 120% of another page item (P2_BUILDER_CLOSINGS) and if so make the above page item displayed (P8_ESTIMATE_JUSTIFICATION).
    I have the javascript function created (showHideEstimateJustification) and in the HTML Header of the page. The function is being called currently with an onChange check on the page item entered by the user as noted above (P8_HOMES_PER_YEAR1).
    Issues:
    1- I need to force a SUBMIT after the user enters the value for P8_HOMES_PER_YEAR1 so it is available in session state and hence to the javascript function (other ideas welcome!)
    2- I am currently using the x.style.display = 'inline' versus 'none' to hide/show the page item, where x is derived from var x = document.getElementById(P8_ESTIMATE_JUSTIFICATION) Is there a better way????
    Any help is greatly appreciated.
    -gary (a.k.a. Javascript newbie)

    Hi,
    Only your messages use the session state. The code would use the entered value, but you would need to change:
    var homes = parseInt(document.getElementById('P8_HOMES_PER_YEAR1'));to
    var homes = parseInt(document.getElementById('P8_HOMES_PER_YEAR1').value);so that "homes" becomes the numeric version of the value of the item
    Normally, for the label, you would just enter an ID="xxx" into the HTML Table Cell Attributes for the label which you can then use in your javascript. For some reason this doesn't seem to want to work in this page.
    What you could do is find all the labels and then check which is the right one before showing/hiding it. Something along the lines of:
    var xx = document.getElementsByTagName("LABEL");
    var zz;
    var label;
    for (zz = 0; zz < xx.length; zz++)
    if (xx[zz].htmlFor == 'P8_ESTIMATE_JUSTIFICTION")
      label = xx[zz];
    xx[zz].style.display = 'none';
    {code}
    Andy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Is it possible to place display co-ordinate for page item

    hi,
    In any one of the reagion, if i want to display the label as "Name" in Row Number 15, column no 10 (assuming screen size is 25 rows and 80 characters ) and input column on specified row and column. (here row is vertically numbered and column is horizontally numbered) This will facilitate myself to place any page item in anywhere. Using Ajax, possibility may also be suggested so that i shall try to explore it.
    Help is thanked in advance

    dr.s.raghu,
    You can position elements using absolute positioning but this will not be as easy as it sounds. You may need to create a very specific theme (or at least a few templates) for this.
    Have a look at this:
    http://www.w3schools.com/css/pr_class_position.asp
    Regards,
    Dan
    Blog: http://DanielMcGhan.us/
    Work: http://SkillBuilders.com/apex/

  • Computed page item no longer working after upgrade to 1.6

    Hi team,
    I noticed that the pages where I was using conditional computations based on sql queries for setting the value of items are no longer working as before.
    If I run the page in debug mode however I see that the computation is actually performed and the correct value is retrieved indeed. The value is also present in the session window.
    This values are used inside chart region titles, but for some reason they do not show up.
    Are you aware of any known problems?
    In case you want to check, the application is 21670, page item is P64_CATEGORY_NAME (page 64, of course) and it is recalled inside the chart region's title.
    Thanks,
    Flavio

    Flavio,
    I think it's working now. The source type of the item was 'Always..' and the source was 'Always null'. Changed to 'Only..' and 'Static Assignment'. The computations are working right, as you said. It was just that the item's current value (in the memory arrays) was null and that's what was used in the &ITEM. substitution.
    Scott

  • Items on page not set when called via hyperlink from charts

    hello anyone who can help me on this thorny issue,
    i have a barchart on one page (page 39), where if you click on the bar chart, page 40 opens and variables are passed on to items on page 40. the variables depend on which bar was clicked. looks somethiing like this:
    select 'F?P=102:40:'||:APP_SESSION||'::NO::P40_DATE,P40_JAHR:'||to_char(datum, 'yyyy.mm.dd')||','||to_char(datum, 'yyyy') link,
    to_char(datum, 'dd.mm.yyyy') Datum,
    Avg_mips
    from ... some sql query....
    this generally works - BUT, once in awhile, the correct page opens, but the items are NULL!
    only when i press F5 to refresh the page, do the variables correctly pass to the items and the proper query is performed...
    after some testing, it seems to happen when i click quite fast. quickly get back to the page 39, click a new bar and then i'm back at page 40 again.
    if i do this slowly, maybe wait a couple of seconds, it generally works.
    for ex., the URL would look something like this:
    http://daidalos:7777/pls/apex/F?P=102:40:2118535974571692::NO::P40_DATE,P40_JAHR:2008.12.16,2008
    - i know the variables are correct when i look at the URL
    - yet the new graph on page 40 shows null values, and a click on the "session" button confirms that the items are null!
    - once i press F5, the URL is the exact same, onle the items are now "refreshed" and the proper processing can take place.
    so, can anyone tell me what is going on here and how i can avoid this?
    the items are set as "hidden" (not protected). there are no computations or default settings to the items, and they are not reset to null at any time.
    regards,
    mike

    Mike:
    I suspect that the chart on page 40 is being rendered by an APEX database connection that is not the same one that renders the rest of the stuff on page 40. So, it is possible that the database connection rendering the chart does not see the new values for the page items set in the URL as these may not have been committed to the database yet.
    You could try this.
    Change the chart query to be
    select 'javascript:setStuff("' || to_char(datum, 'yyyy.mm.dd') ||  '","' ||to_char(datum, 'yyyy') || '")' link,
    to_char(datum, 'dd.mm.yyyy') Datum,
    Avg_mips
    from ... some sql query...Add the JS below into the HRML page header<script>
    function setStuff(p_date,p_jahr) {
      $x('P40_DATE').value=p_date
    $x('P40_JAHR').value=p_jahr
    doSubmit('XXXX');
    </script>Define an 'After Submit...' branch to page 40. Make the branch conditional on Request = 'XXXX'
    varad

  • I use classical Hebrew for my work, and Pages will only display English characters even with a Hebrew font selected. If I cut and paste Hebrew characters from another document, as long as the font is supported, it will appear in Pages.  If I type it won't

    I use classical Hebrew for my work, and Pages will only display English characters even with a Hebrew font selected. If I cut and paste Hebrew characters from another document, as long as the font is supported, it will appear in Pages.  If I type it won't continue in Hebrew.  I have tried downloading several fonts, including those from professional societies, but the only way to get Hebrew in my document is to cut and paste.  Does anyone know how to fix this?  I use an older MacBook running OS 10.9.1.  I used to do my Hebrew work in Word, but it is no longer supported by Mac OS.

    Just clarifying:
    Pages '09 has bad support for Hebrew, Arabic etc but will accept pasted text.
    Pages 5 has much better support but with bugs.
    If you have columns they are in the wrong order ie Text starts in the left column and ends in the right column.
    If you type English into Hebrew text it tends to fall in the wrong position eg instead of to the left of Hebrew punctuation it goes to the right.
    As Tom recommends the only real solution on the Mac is Mellel.
    Peter
    btw Tell Apple, they are amazingly slow to fix this running sore which has been broken since RtoL was supposedly introduced in OSX 10.2.3 over a decade ago.
    Peter

  • Problem in displaying selected page items in the title in Graph

    Hi There;
    I have a problem in displaying selected value of named page item in the graphs.
    Eg. I have in my worksheet a page item named "Location"; when I use "&WorksheetName &Location" in the title of worksheet it is displaying both the worksheet title and value of selected page item "Location" in my example.
    But when I use the same (&WorksheetName &Location) in the title of graph or Axis of the graph, it would show up only the name of the worksheet but not the value of page item "Location", instead it would print "&Location"
    Any idea why it is not able to reference the select page item in Discoverer graph? I am using Oracle BI Discoverer 10.1.2.1.
    Thanks in Advance,
    Regards,
    Nidhi Jethoo

    Hi Michael;
    Thanks a lot. It might not have been considered necessary but you do require, e.g in my case I am plotting Average value of a Parameter and it does make sense in including the name/value of Parameter(surface water temp/bottom watter temp) as an Axis instead of just a constant Parameter or say Average Parameter. So that user can plot the variation of different parameters by changing the page items and when user changes the value of parameter and export the graph he/she has the parameter name(actual value) in the graph.
    But I can include all the parameters (&Parameters) or all the page items(using &PageItems) in graph then why not individual page-item and individual parameter.
    I would log a SR and see what they say.
    Thanks again,
    Nidhi

  • Adobe PDF files will not display when called via a link in page (FF 4.01)

    adobe PDF files will not display when called via a link in page.
    This happens when testing new web page from DWeaver CS5 - all other browser tests are OK (IE9, Safari5.05, Chrome etc.)

    [moved to the Adobe Reader (desktop) forum]

  • IView displays junk characters in Page preview screen

    hi
    I am facing an unknown problem in Business Package(Production Analysis) for EP5.0, which i imported to EP6.0.
    The IView which i am using is a trasaction iview. Earlier it was WebGUI, i changed it to WinGUI, and i did changes anything required.
    The IView is prviewing without any problem in its bench, But when the same IView is previewed in a page(in a tray), it displays junk characters with assigned system info in an anonymous way.
    Surprisingly if i refresh the tray, it displays the properly.
    And it happens only for some Iviews and all.
    Please anybody help me out for this problem and reply me.
    thanx in advance
    regards
    Lakshmikantha

    Hi Terri,
    If you think that the issue is with regards to cache, then have a look at this document for more information
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/71d7b8dc-0701-0010-dfba-881dba1b5b95?QuickLink=index&overridelayout=true
    Regards,
    Ganesh N

  • Display as Text page items - How to change color based on Value

    Hi,
    I have a bunch of page items that I would like to display in red if they contain a minus "-" sign. My guess is that this can be done with a template. Right now they are using the Optional Label with Help template. How might I elegantly specify to display a red font if the text contains a minus sign?
    I have done this before with report regions which include conditions and I just tagged a condition to a column template and I am looking to do something similar.
    Thanks!

    You haven't had a response... I was wondering if you could answer the question I posed of where are the "Display As" templates?
    It seems that there is nothing on the forum or WEB about them. They must be in a CSS sheet somewhere, but I don't even have access to those folders at work.
    I exported a "theme" and started to look through the sql code that created the CSS file (at least that is what I think it does) but it is about 170k and it is slow reading... I have tried searching on several key words but no luck yet.
    I appreciate any insights you have. It seems to me that the display as templates would provide some real cool features...
    turn negative numbers red
    gray out non-updateable fields
    The look and feel that would meet a design standard for a specific company...
    Best of luck,
    Sam

  • Page Item Computation

    Hello,
    I have a page item computation, that works for updating but not for inserting.
    The computation:
    After Submit, SQL Query
    SELECT Case WHEN TO_CHAR(venue_prsntd_date, 'MON') IN ('OCT','NOV','DEC') THEN '1'
    WHEN TO_CHAR(venue_prsntd_date, 'MON') IN ('JAN','FEB','MAR') THEN '2'
    WHEN TO_CHAR(venue_prsntd_date, 'MON') IN ('APR','MAY','JUN') THEN '3'
    ELSE '4' END
    FROM venue_prsntd
    WHERE dfcy_seqno = :p2_dfcy_seqno
    AND venue_prsntd_seqno = :p5_venue_prsntd_seqno
    AND :p5_venue_prsntd_date IS NOT NULL;
    I am trying to fill in qtr, but this won't insert into it. I have also tried using this in my insert process on the page, but it doesn't work either. Any suggestions would be greatly apreciated.
    Thanks,
    Mary

    Mary:
    See comments in-line with your codeBEGIN
    DECLARE
    v_venue_prsntd_seqno NUMBER;
    BEGIN
    IF :p5_venue_prsntd_seqno IS NULL AND :p5_venue_prsntd_c '0' and :p5_venue_prsntd_narr IS NOT NULL THEN
    INSERT INTO venue_prsntd(dfcy_seqno,venue_prsntd_c,venue_prsntd_date, venue_prsntd_fy,venue_prsntd_narr)
    VALUES(:p2_dfcy_seqno,:p5_venue_prsntd_c,:p5_venue_prsntd_date,:p5_venue_prsntd_fy, :p5_venue_prsntd_narr)
    RETURNING venue_prsntd_seqno INTO v_venue_prsntd_seqno;
    END IF;
    IF :p5_venue_prsntd_date IS NOT NULL THEN
    SELECT Case WHEN TO_CHAR(venue_prsntd_date, 'MON') IN ('OCT','NOV','DEC') THEN '1'
    WHEN TO_CHAR(venue_prsntd_date, 'MON') IN ('JAN','FEB','MAR') THEN '2'
    WHEN TO_CHAR(venue_prsntd_date, 'MON') IN ('APR','MAY','JUN') THEN '3'
    ELSE '4' END
    INTO v_venue_prsntd_qtr
    FROM venue_prsntd
    WHERE venue_prsntd_seqno = v_venue_prsntd_qtr              ---  Should this not be v_venue_prsntd_seqno  ?
    AND dfcy_seqno = :p2_dfcy_seqno                                        ---- These  would be redundant if venue_prsntd_seqno
    AND :p5_venue_prsntd_date IS NOT NULL;                           ----  is a PK column
    Update venue_prsntd
    SET venue_prsntd_qtr = v_venue_prsntd_qtr
    WHERE venue_prsntd_seqno = :p5_venue_prsntd_seqno  --- see above
    AND :p5_venue_prsntd_date is not null;
    END IF;
    END;
    END;Also, it may be possible to handle the inset/update that you currently have as a single insert statement.
    varad

  • One of the pages I am working on is blocked and I cannot delete/change items displayed there

    One of the pages I am working on is blocked and I cannot delete/change items displayed there. I have unlocked all the layers but still cannot access the content on that page. Thoughts?

    I'm using version 9.2.1. on a mac
    I'm helping edit some maps for the company I work for. The pages are regular A3
    The map part is not blocked, but the second page with the descriptions/text will not let me make any changes to it. I cannot select anything on the page including the images.
    I am trying to edit the text provided and rearrange the page layout accordingly.
    I thought this was a "layer" problem, but this does not seem to be the case.

Maybe you are looking for

  • Multiple mappings without BPM

    Hi Gurus, I have to change an existing scenario in which I have to send message from SystemA to systemB like this. (SystemA)SoureceMsg to ErrorMsg &  ErrorMsg to MailMsg, TargetMsg(in SystemB) in this case the error message will not go to any system

  • Errors in OEM with Diagnostics Pack

    all, when login as oracle, the user used to install oracle9i and oem I can access diagnostics pack under oem. However when accessing it as different user and clicking on diagnostics pack and login in I am getting this: VTD-0123: Error connecting to t

  • Proxy Auth authentication required and kerberos

    Hi All Oracle supports the proxy auth trusted subsystem which allows greater scalability through the use of a system wide connection pool. There is a configuration option to "authentication required" to the proxy auth system. Oracle also support kerb

  • Best way to save an InDesign file for fast/highest res. web viewing

    Help... I've got a 118 page InDesign file created in InDesign CS 3.0.1 that I need to prepare for viewing in a web page flipper program.  I've saved as jpgs straight from InDesign and also as pdfs from Adobe Acrobat 7.0 Professional.  Either works, b

  • How to create table with rows and columns in HTMLB

    Hello All, Can any one tell me how to create table in HTMLB? Regards, Lisa.