Initialize ITEMs on page render

I have a page that contains several charts that are dependant on two items:
P1_FROM
P1_TO
The charts need these values in order to render. Both Items are date pickers. The problem I have is that when the page first renders, these values are not defined and therefor the chart query returns no results and the charts do not display. Looking at session state I can see that these items have no value assigned to them. In order to get the pages to render I must click on the GO button that I have create on the page. The two items have default values but they do not seem toget assigned until the GO button is pressed.
How can I assign default values to these items so that when the page first renders the charts are displayed, whithout having to press the GO button?

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

Similar Messages

  • How to disable VO initialization on page render for MessgeChoice *URGENT*

    Gurus,
    I've got a poplist that is getting initialized when page is being rendered. This is causing quite a bit of lag when the page initially renders. The VO is also being called through an EVENT, at which time, an extra condition is applied. This is the valid way this VO should be called.
    How do you avoid the blind query when the page initially renders?
    Please help deadline has passed.
    Thanks,
    Scott
    P.S. I must assign setWhereClause bind variable in VOImpl because value is being derived by user.
    Edited by: sreese on Oct 8, 2009 3:32 PM

    Scott,
    If you don't want to initialize the value of MesssageChoice at page render then when you want to intialize it.
    explain & what is the issue if you initialize in PR.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                   

  • Page Rending Problem In Apex ,Please help

    The Page build by Master Detail Form Wizard. And this page has 37 items (not include tabular forms or reports)
    Under the normal conditions ,each page HTML rendering format must like that:
    =================
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <body>
    <script type="text/javascript">
    </script>
    </body>
    </html>
    ====================
    Scenario 1
    We display all region( 10 regions display)
    After I run the page , the APEX Rendering the html, but we found the javascript error.
    In this scenario, the html rendering result is :
    =====================
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <body>
    <script type="text/javascript">
    ==============
    You can find that the </html>and </body> are missing. And the last part of script aslo missing.JavaScript error is raised by the HTML source can not be completely loaded.
    We save the html source code form Apex rending as the file . We can find that the file size is 48.7 KB
    Scenario 2
    We hide some region ( 7 regions display) , we make some region condition is "Never"
    After I run the page , the APEX Rendering the html
    If we open a form with data , the rending html will like this:
    =================
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <body>
    <script type="text/javascript">
    </script>
    </body>
    </htm
    ====================
    You can find the we only miss the last two characters. And we save the html source code form Apex rending as the file . This file size is 32.0 KB.
    If we open a form without data , the rending html is :
    =================
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <body>
    <script type="text/javascript">
    </script>
    </body>
    </html>
    ====================
    This is the well formed html , we save the html source code form Apex rending as the file ;
    This file size is 24.0KB only.
    We found that ,In our workspace the pages rending size more then 32K, than some thing will be missing at the last rows of the page.
    Are there any configuration wrong? Are there any limitation on the APEX page builder?
    Thanks
    Leo
    Edited by: [email protected] on 2009-5-5 上午12:31

    Re: </htm Error below Apex Page

  • Calling Controller method before page render

    Hi All,
    I have created menu in my web application using DHTML Tabber where each menu item is a link.
    I am using Facelets with JSF 1.2 .
    I want on click of each menu item a page should load in the body section of my template but before that I want a controllers method to be executed which would do some initializations. I cannot change the links in my menu to be <h:commandLink> since the menu is created using javascript (it cannot have <h:commandLink> in it) .
    How do I achieve this ?

    I think the issue here is generating the action on the server side when the link is selected.
    You might want to look into the solutions people have devised for so-called pretty URLs in JSF. Scales, a component library companion to Mojarra, the Sun RI, contains some support for these.
    Solutions that spring to mind off the top of my head are using a PhaseListener to detect the links and queue the event or using a placeholder component which processes the links in the decode (similar to how commandLink works).

  • How to submit a bug report for OSB? - restore fails if number of items per page is changed from the default of 30

    In the OSB web gui, one of my users found that if the number of items per page is changed from the default of 30, the restore of the file will fail.  He tested this using recent versions of Firefox and IE.  We have verified this to also be the case using Chrome.
    In a directory containing over 100,000 files, moving 30 at a time to find the one to be restored is a very frustrating user experience.
    How do I file a bug report for this issue?  Is there a workaround for this bug to enable my users to more easily find the file to restore without being restricted to the default of 30 items per page?

    Yes there is a bug in the webtool in the current release. You can use the commandline obtool to do the restore, that is much faster and works fine.
    Thanks
    Rich

  • A page item on page 'SCHEDULE' at location 34,488 requires rasterization, but is too large to rasterize. Resize it smaller and try again

    I keep getting this error,
    A page item on page 'SCHEDULE' at location 34,488 requires rasterization, but is too large to rasterize. Resize it smaller and try again

    This basically means that there is an object that has its top left corner at x: 34 y: 488 which is too large to be rasterized, it could be due to any large object that is extreme wide or tall.
    Try to check page content and then resize it to verify the behavior. Please let me know how it goes.
    Thanks,
    Sanjit

  • Item Level & Page Level Validation..

    Hi ,
    What is the difference between Item Level validation & Page Level validation..
    in which sceneario it will be useful.
    Anoo..
    Edited by: Anoo on Dec 16, 2008 5:04 AM

    Hi,
    From the APEX help:
    * Item level validations are specific to a single item.
    * Page level validations do not apply to any single item, but apply to an entire page.
    {code}
    Paulo Vale
    [http://apex-notes.blogspot.com]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Inserting a new extension field in the line item details page

    Hi!
    Is it possible to insert an extension field/collection in the line item details page of the master agreement? I have tried supplying several Field ID found on that page on the DISPLAY AFTER field of the extension, but nothing works - the new field still gets displayed at the header page.
    Thanks in advance.

    Hi,
    Line Item is an independent class. You cant add an extension to Line Item through Master Agreement. This is the reason why the extension you add appears on the header tab of Master Agreement.
    When I go to create an extension definition, I don't find Line Item in the drop down of Extended Class Name. So, my guess would be that we cannot create an extension definition for Line Items.
    Let us know if you, or anybody, has a way to achieve it.
    Thanks
    Devesh

  • Image instead of List Name, and hyperlink the image to view 'All Items.aspx' page

    Hi,
    I would like remove the Page title for list (i.e., name of the list in view all items.aspx page) , and instead use image and hyperlink the image
    to 'All items.aspx" page.
    Using developer tool found the element (#PageTitle) and added 'Script Editor' webpart and below css script to it. I am successful in replace the
    title to image, however, I am unable to add the HTML tag for hyperlink. Where do I need to add or how do I add? Could anyone help me please??
    <style type="text/css">
    #pageTitle
    background-image: url('http://w2k81368:2116/SiteAssets/Test.jpg');
    background-repeat:no-repeat;
    text-indent: 100%;
    white-space: nowrap;
    </style>
    Regards,
    Sunitha

    Hi Sunitha,
    According to your description, my understanding is that you want to change the list title to an image.
    I recommend to add the code below to the list page:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script><script type="text/javascript">
    $(document).ready(function (){
    var s = "<img alt='SP' src='http://w2k81368:2116/SiteAssets/Test.jpg'>";
    var $t = $("#DeltaPlaceHolderPageTitleInTitleArea span span a");
    $t.html(s);
    </script>
    After that, the list title will change to the image and it will show allitems.aspx page when clicking the image.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • 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

  • Adding a page path to an "all items in page group" SELECT?

    I have a case where a client's asked me to produce a "report" (nothing fancy, so I'm thinking a basic SELECT right out of the DB here rather than a full solution like Discoverer or Business Objects) for them on all items in particular page groups in our Portal (v10.1.2.0.2).
    I have a query that Oracle Support provided which I can fiddle with a bit to get most of the info I need:
    select I.ID, I.display_name, I.name, I.itemtype, P.name
    from PORTAL.WWSBR_ALL_ITEMS I,
    PORTAL.WWSBR_ALL_CONTENT_AREAS CA,
    PORTAL.WWSBR_ALL_FOLDERS P
    where CA.name = 'MY_PAGE_GROUP'
    and P.caid = CA.id
    and I.caid = CA.id
    and I.folder_id=P.id
    and I.active=1
    and I.is_current_version=1
    and I.visible=1
    and I.itemtype in ('basefile','baseimagemap','basetext','baseurl');
    ...however, what I'd like to do is add a "page path" column; that is, one that would trace up the tree from the item's page to the root of the page group and present something like "My Page Group > Departments > HR" like you get in Portal Navigator.
    I can think of how to do this, conceptually, by tracing through the parent pages in WWSBR_ALL_FOLDERS, but what I'm not quite sure about is how to do it for an arbitrary depth in the page tree - i.e., the page can be any (reasonable) number of levels from the page group's root.
    Any thoughts? I'd prefer to do this as a basic SQL query if at all possible, but writing a little reusable PL/SQL procedure to do it isn't out of the question. My knowledge of PL/SQL is pretty rudimentary but I have enough programming experience in other languages that I could probably manage to bumble through it if necessary.
    Thanks.

    First create a page that can contain two regions. One for a page-path item, and another to have a report portlet.
    For the page-path, you can have another region in your page. Then edit this region to make it items type. Now add an item of type 'Page Path', with depth 3.
    Now, you can create a portal report based on your SQL query, publish it as portlet, add it on that page as portlet.
    That will give you exactly what you have described you want.
    hope that helps!
    AMN

  • How to avoid the hard limit of 100 column and items per page?

    I have created a Form on a Table with Report. I need to create/edit approximately 175 items. The items on the Form have a limit of 100 column and items per page. What is the best way to carry the remaining items to another Form and doing an insert or update? or is the 100 column limit on the insert/update per table as well?
    Thank You.

    Hi Rick,
    The 100 item limit is on a page, not a table, so you shouldn't have any trouble with your insert or update processes.
    Here's a thought:
    Report currently has a column that links to the first page of items (page 14) with the retrieved row. Presumably you also have a Add New button on the report page that links to page 14 for a new row.
    Define a Next button on page 14 that branches to the second page of items (page 16). Also define a Previous button on page 16 to return to page 14. But page 16 would be the only page with a Save button.
    Now, if user clicks Add New, user will get a blank page 14. Once user enters the info and passes validation they click Next and will be sent to page 16 to enter the remaining info and Save.
    If user clicks one of the column links, they will be brought to page 14 with the clicked row - they can change whatever info there and click Next, or just click Next, to get to page 16. After any changes are made, they click Save.
    I'm assuming you've been thru the tutorials and realize that you'd really have two Save buttons defined for page 16 - one conditional on your primary key item having a value (existing record) and one conditional on it being null (new record) - check out the tutorials for more info, but this is how the application would know whether to run an insert process or an update process.
    Hope this all makes sense and can help,
    John

  • IBE: Items Per Page for Display profile at Responsibility level

    Hi,
    we would like to have different number of items per page for different sites. We thought we would achieve it by setting profile "IBE: Items Per Page for Display" at the responsibility level and have unique responsibilities to access different sites.
    However, I saw that by default profile "IBE: Items Per Page for Display" is not visible at the responsibility level. Can I alter it to be visible at responsibility level in the profile definition and then set it at the responsibility level?
    Kindly help.
    Regards
    Harsha.

    I tried to change at SERV level and still the profile never gets updated. Kindly help.

  • Items and Pages completely disappear, version CC

    Document has items and pages that randomly disappear. I get them back most of the time by clicking on another page then going back to the page that disappeared. I have 12gb internal memory so rendering isn't an issue I don't think? I even took the time to rebuild the document on another .indd file. I'm using version CC and per creative cloud it is the latest update. I can't work like this when I have print deadlines!

    I solved my own problem!
    The issue is text threads. I went to view > extras > show text threads and noticed that my text box on page 3 was threading to a text box on page 15 which is why it showed the pages in between as blank. I re-threaded all the boxes properly and everything is great!  A good explanation and tutorial can be found here.
    http://www.youtube.com/watch?v=dUBGaVdmncA
    http://www.youtube.com/watch?v=YF68K_Z16_E
    I hope this helps someone else!

  • Item "Start/stop table":  Counts towards 100 item per page limit?

    One of my form pages has many items and aligning them all just right is quite a chore.
    I found myself using lots of those handy "start/stop table" items instead of fighting with the colspan, rowspan, New Line/New Field attributes.
    Question: Do these "start/stop table" items count toward the 100 item per page limit?
    [I hope the answer is No]
    Thanks

    Vikas - The answer is no. It's only when the counter gets incremented, e.g., between p_t01 and p_t02, ... You can see that the stop-and-start (not star/stop) items do not generate html items with such a sequence component.
    Scott

Maybe you are looking for