BUG?: Paginate Doesn't Work with Page Item with Source as Database Column

CREATE TABLE T_PARENT
  ID NUMBER NOT NULL
, STAFFID VARCHAR2(20)
, CONSTRAINT PARENT_PK PRIMARY KEY
    ID
  ENABLE
insert into T_parent values (1, '77258317');
commit;
create table T_child as
select
  rownum id
, '77258317' staffid
, dbms_random.string('U', 5) aa
, dbms_random.string('U', 15) ab
, dbms_random.string('U', 3) ac
from dual
connect by level <= 100;
/Form page for T_PARENT.
Classic report:
select id, aa, ab, ac
from t_child
where staffid = :Px_STAFFIDTry and paginate = no data found.
However, if you first submit the page, then paginate, it works as expected.
Reproduced:
http://apex.oracle.com/pls/apex/f?p=54920:57:106342795192226::::P57_ID:1
If I for e.g. use an item with static assignment, it works fine.
Cheers,
Trent
Edited by: trent on Apr 19, 2013 11:59 AM
Also, it works fine when you reference the PK column.

Just like with the paginate, the problem may also happens when you change the sort column or direction by clicking on the header.
If the item in the WHERE clause was being set fromt he URL this wouldn't be an issue because it would be saved on the Persisten Session state.
Regarding session state, there are two kinds Temporary or in memory and Persistent. When the page is rendering the item values are only on the Temporary session state. This is why the report renders correctly on page load.
The item value won't go to Persistent session state until the page is submitted. Item values also go to Persistent session when they are passed in the URL, or explicitly set with a computation, etc..
The Session state Dialog can only show the Persisten session state which is saved in DB tables. It's unable to show you the values during page render. For that you need other mechanisms like debug messages.
I think that when you set page item as SQL query and Only when current value session state is null the value must be saved to Persistent session state. If you can examine the value with the Session Dialog then that would confirm that.
Hope this helps.
Thanks
-Jorge

Similar Messages

  • I have install io6 and now Music doesn't work, sometimes it stay with a blank page with no possibility to press anithing, sometimes it crash. I have match music active with more than 15000 title. Someone could help me?

    I have install io6 and now Music doesn't work, sometimes it stay with a blank page with no possibility to press anithing, sometimes it crash. I have match music active with more than 15000 title. Someone could help me?

    What is your current Flash Player version: http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html ?
    What is your display adapter, driver version & date?  See http://forums.adobe.com/thread/945765

  • Discoverer Viewer Report with Page Items Slow Performance

    I created a report in Discoverer User that has page items and parameters and runs fine (under 3 minutes) in Discoverer User, but when I try and run it in Discoverer Viewer it takes a long time. It took over 70 minutes before manually terminating it. I made a copy of the report and removed the page items and tried to run it again in Discoverer Viewer and now the report runs in under 3 minutes. Any idea why a report with page items would run in Discoverer user fine, but not discoverer viewer?
    I am using Oracle Business Intelligence Plus 10g (10.1.2.55.26)

    As long as you can access the middle-tier server where Discoverer Viewer is running, you should be able to run and view Discoverer worksheets.
    While it is difficult to even start guessing what the problem might be, if the machine you installed Discoverer on has DHCP addressing, you will run into problems.
    Thanks
    Abhinav
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN : http://www.oracle.com/technology/products/bi/
    Discoverer : http://www.oracle.com/technology/products/discoverer/
    BI Software : http://www.oracle.com/technology/software/products/ias/devuse.html
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    BI Samples : http://www.oracle.com/technology/products/bi/samples/
    Blog : http://oraclebi.blogspot.com/

  • I have a VGA adapter and an iPad2.  Tried projecting my iPad2 to projector using the VGA but doesn't work.  Tried it with friend's iPad1 and it works.  Why??

    I have a VGA adapter and an iPad2.  Tried projecting my iPad2 to projector using the VGA but doesn't work.  Tried it with friend's iPad1 and it works.  Why??  Pls help.

    Yup - nothing happens.  I then took the same VGA cable and plugged it into my friend's iPad1 and it worked perfectly when she opened Keynote.  My understanding is that the iPad2 mirrors the entire screen, so no need to go into any specific application in order to project to the screen, right?  Do I need to download any specific app or change any settings in order to be able to project the screen using VGA?
    Sorry - novice at this.  Not very tech minded either...

  • [svn] 4610: Commit Josh's patch for 3. x to fix bug SDK-17367 which works around an issue with Dictionary that stops ObjectUtil .toString() working with QNames.

    Revision: 4610
    Author: [email protected]
    Date: 2009-01-21 12:48:01 -0800 (Wed, 21 Jan 2009)
    Log Message:
    Commit Josh's patch for 3.x to fix bug SDK-17367 which works around an issue with Dictionary that stops ObjectUtil.toString() working with QNames.
    QE: Yes, please add a test case to ObjectUtil tests for this scenario.
    Doc: No
    Checkintests: Pass
    Bugs:
    SDK-17367 ObjectUtil.toString(QName) causes RTE
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-17367
    http://bugs.adobe.com/jira/browse/SDK-17367
    Modified Paths:
    flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/utils/ObjectUtil.as

    VPN-User,
    Ok - I see the list of issues and will ensure our X300 specialist takes a look at it.   
    Please do understand that while you have put together a very coherent list, I try to ensure priority to threads in which multiple customers are focused on a single issue, as we deliver the most benefit to the community in working on those.   This forum is primarly a peer to peer discussion forum rather than a Lenovo chat / tech support where we try to solve each and every issue put forth.
    Individuals with a long list of issues on a particular machine may find benefit from either contacting technical support and working through their list, or publishing it as you have done and wait for other users of the same system to share their experiences.
    Thanks for your patience
    Mark
    ThinkPads: S30, T43, X60t, X1, W700ds, IdeaPad Y710, IdeaCentre: A300, IdeaPad K1
    Mark Hopkins
    Program Manager, Lenovo Social Media (Services)
    twitter @lenovoforums
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • HT5538 I receive an error message when trying to link my iMessage account to my Apple ID.  My phone syncs fine, just my Macbook doesn't work.  Same issue with Facetime.

    I receive an error message when trying to link my iMessage account to my Apple ID.  My phone syncs fine, just my Macbook doesn't work.  Same issue with Facetime.

    HI,
    In effect this is a DNS block.
    You can do it.
    You need to be in an Admin Mac User Account that has  non blank password.
    Go to the Applications/Utilities folder and open Terminal.
    You should see your shortname (the one under the Little House icon) followed by the $ symbol
    Copy and paste the bold text below into Terminal after the $ symbol.
    sudo pico /etc/hosts
    This will load the file "hosts" into and editor that works in Terminal.
    Use the arrow keys to get to the line with Verisign in it.
    Now type the # symbol and it will be added in front of the character that is highlighted.
    The # symbol is either Shift +3 or ALT+ 3 depending on your keyboard layout
    Now use CTRL and O keys together.
    This Saves the changes.
    Quit Terminal.
    10:02 PM      Wednesday; May 1, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Camera doesn't work on iPad 3 with iOS7

    Camera doesn't work on iPad 3 with iOS7

    Facetime (front side) camera works fine.
    But when I use the camera app for the back side camera I see nuthin' but black and when I try to toggle views the app freezes.

  • Wake up doesn't work After IOS 7 with my Philips clock radio AJ3270D

    Wake up doesn't work After IOS 7 with my Philips clock radio AJ3270D!
    The other function is OK(listen music like an Ipod or charge)
    Can you help me?

    Apple did update their help section on the app. I found this trying to figure out why my Find Friends wasn't working after the update to iOS 7. 
    "Find My Friends is turned on in Background App Refresh (in Settings > General in iOS 7). When Background App Refresh is turned off, Find My Friends can’t use Location Services in the background. If Background App Refresh is turned on, but you quit Find My Friends via the multitasking interface, location updates won’t be sent to your friends until you open the app again."
    Hopefully Apple will update this as it was not this way prior to iOS 7. Killing the app didn't prevent your location from updating in iOS 6 as I constantly killed the apps running in the background and never had this problem till the update. Hope this helps! Just make sure to not kill the app as of now and to tell everyone you follow not to kill their app and locations will continue to refresh. Otherwise it won't update locations till the app is opened again.

  • Pre populate an item with source type="Database Column"

    Hello gurus,
    How can I pre populate an item with source used "Always, replacing any..." and source type="Database Column"?
    I have a form that creates/updates rows in a table and when creating a new row I want to populate some of the fields based on some parameters from the previous page. How can I achieve this?
    I tried adding a conditional process when PK is null and populate the expected fields, but in the browser they are not shown with those values, even if I look into the session I can see that they have the values assigned in the process ?!?!?!
    Thanks in advance,
    Florin

    Florin,
    Use the Default Value item attribute. In you case, set the Default Value Type to Static Text with Session State Substitutions and enter your item using the &P1_ITEM_NAME. syntax in the Default value text box.
    Thanks,
    - Scott -

  • Always open with Pages '09 doesn't work? (Pages 3.0)

    i have a copy of Pages '09 and a copy of Pages 3.0 on my MBP. unfortunately my Mac Pro only goes up to Lion so i cannot use 3.0 and this machine cannot /read/ 3.0 pages document.
    consequently, i would like to almost always open Pages documents with the 09 version or i would like to temporarily unload 3.0 so that i don't end up with a mess of files that only open on my laptop.
    unfortunately when i right click on a PAGES document and go to PAGES 09 and check "Always Open With" - this single document opens with pages 09 but other pages documents seem to open with pages 3.0.
    am i missing something here or is this the intended implementation? i mean, can i set pages documents on this computer ot always open with 09 unless i manually tell it to open with 3.0 or am i somehow supposed to tell every pages file on my HD to open with 09 (which is obviously not workable).
    any ideas on what i am missing or if my system is acting buggy.
    thanks

    hi T.
    thanks a bunch.
    somehow i forgot this fact.
    does seem like for new users they could put a prompt in Open With Other to direct people to Get Info and in Get Info they could put a prompt to direct people to Open With Other in the event one has one workflow need as opposed to the other. this is a pretty basic user need, there is nothing obvious in the prompts that tells you what in fact you are doing, and even after having been back on the mac for a number of years now it is not one i remember even when working in the UI.
    again many thanks.

  • Problem with Page-Item

    Description:
    I created a database link with our Production-Database to publish some data
    via Intranet.
    Some pages got links to open Popup-Windows for a detailed description of the
    data. Every page was built in the same way - a list with data and the ID got a link like this:
    #ID#
    In this case I created a link to open page 2 in a different window. On page 2 I use &P2_ID. as title and use :P2_ID for my sql-statement.
    Problem:
    On my popup-page 104 I see my title &104_ID. but my sql-statement returns nothing. The sql-statement itself works if I change :P104_ID to the value I can see in my title.
    So I have really no idea why I can see the value of P104_ID if I use &P104_ID. or if I change the hidden item P104_ID to a textbox and if I use it in my SQL-Statement as :P104_ID I'll get no result. All other pages work fine.
    Any idea?
    Dietmar

    Hi!<br>
    This one should be my list I link from to page 104. The first row is my ID I store in P104_ID:<br>
    <br>
    AV8B<br>
    C-160<br>
    C130H<br>
    E3A<br>
    <br>
    My link again:<br>
    <href="javascript:popupURL('f?p=&APP_ID.:104:&APP_SESSION.::::P104_ID:#AC_ID#')">#AC_ID#</>
    <br>Remark: I did'n forget the A in front of HREF!<br>
    My Page 104 looks like the other pages I did it in the same way:<br>
    Page-Title:  &P104_ID.<br>
    It shows allways my data "AV8B" or "C-160" or "C130H" etc.<br>
    My SQL-Statement looks as follows:<br>
    select UNIT_NAME<br>
    from AIR_UNIT@BLUE<br>
    where AC_ID = :P104_ID<br>
    I can not understand why I can see in my title "AV8B" and the result of any SQL-Statement is the same: no data found!<br>
    If I replace in SQL :P104_ID with AV8B I get my result list. The obove statement was just a simple test script but doesn't work even if I use:<br>
    select AIR_UNIT.UNIT_NAME<br>
    from AIR_UNIT@BLUE<br>
    where AIR_UNIT.AC_ID = :P104_ID<br>
    or using instead of the unit_name ac_id doesn't work either!<br>
    I've got really no idea!

  • Call print apex_util.get_print_document() with page item values

    Hi all
    I ran into an issue that very frustrated as it sounds so simple.
    I'm in Apex 3.1.
    My database has table TAB_CLASSES, TAB_STUDENT
    My application has page 1 with P1_SID is student_ID
    I had an simple report query name Class_query, show all classes that a student attends
    select * from TAB_CLASSES where SID = :P1_SID;
    I also select option "include application and session information"
    I had report template Class_template
    In my application, I have a process tried to generate report list classes for all students.
    l_report blob;
    for x in (select * from TAB_STUDENT)
    loop
    :P1_SID := x.SID;
    l_report := apex_util.get_print_document (
    p_application_id => :APP_ID,
    p_report_query_name => 'Class_query',
    p_report_layout_name => 'Class_template',
    p_report_layout_type => 'rtf',
    p_document_format => 'pdf'
    insert all the l_report into database with SID as a part of l_report name (*) 
    end loop;
    After this, I got multiple of l_report blob in database, number of report is exactly number of student in the TAB_STUDENT table. The problem is that every report looks the same, and it got the information of only first student
    I guessed it did not pass the item value (P1_SID) every time it call the get_print_document, but it still shows in the report name (*)
    Please help me. Thanks for any idea.
    Teiv
    Edited by: teiviag on Mar 10, 2010 7:16 AM

    This post had the same problem with me
    [ http://forums.oracle.com/forums/thread.jspa?threadID=663186&start=0&tstart=0|http://forums.oracle.com/forums/thread.jspa?threadID=663186&start=0&tstart=0]
    Thanks for the post of Marc, about how variables are binding and calling by process, I changed my app design to have a sp to print and store the pdf file. Then in my app, I just called the sp and passed the P1_SID. It worked.
    Thanks.
    Edited by: teiviag on Mar 10, 2010 10:49 AM
    Edited by: teiviag on Mar 10, 2010 10:50 AM
    Edited by: teiviag on Mar 10, 2010 10:50 AM

  • Photo galery doesn´t work in blog entry with Intensedebate installed

    I´ve installed Intensedebate with iWeb Buddy (because I want comments be relationated with the master page), and when i put a photo galery copied from other galery page it doesn´t work.
    You can check it here http://www.jesusgb.com/blog/bl/Blog/Entradas/2011/8/3_Decenas_de_policias_impide n_el_acceso_a_Sol_a_todas_las_personas_sospechosas.html

    The issue has been solved thanks to the great guys on the Support Web Chat, they lead me through the resseting PRAM and NVRAM, and now everything works just fine.
    Cheers to all.
    Zo

  • Problem with using sql with page items

    Hi
    I have a simple query that when i enter this works
    SELECT SUGGESTION_ID, SUPERVISOR_ID, OVERVIEW
    FROM PROJECT_SUGGESTION
    WHERE SUPERVISOR_ID = 1;
    But when i enter this doesnt
    SELECT SUGGESTION_ID, SUPERVISOR_ID, OVERVIEW
    FROM PROJECT_SUGGESTION
    WHERE SUPERVISOR_ID = &P12_SUPERVISOR_ID;
    Even though the value of the page item supervisor_id for page 12 is 1.
    Anyone know why this is or another way i can refrence the page item?
    thanks
    Dan

    Instead of &P12_SUPERVISOR_ID
    try
    :P12_SUPERVISOR_ID
    And i think when you used the & you follow it with a period. ie. &P12_SUPERVISOR_ID.
    Just a guess.
    Mike

  • Creating pages,item WITH approval.

    Hi,
    I found out how to create a page and add an item to that page automatically. But now I need to find out how to use this with approval.
    1) I noticed that approval only exists on the item level and not the page level. Is this correct?
    2) How can I make that the page/item I create automatically, has to be approved? The approval will be done in a normal way, through the existing approval portlet. Normally one should enable approval control on the page, create a user and give this user the 'manage items with approval' rights, all items published by this user, will not be published before approval.
    Can someone provide an example, on how to mark an item for approval programmatically?
    The function add_item contains a parameter 'p_author - Author of the item.'. Can this be used, as I enable the author to 'manage items with approval'?
    Cheers
    B.
    Message was edited by:
    Ratjeuh

    Even If I bypass the public user problem and do the following:
    -- create new page
        l_new_page_id := wwsbr_api.add_folder(  p_caid             => l_caid,
                                                p_name             => l_uppertext,
                                                p_display_name     => l_text,
                                                p_type_id          => wwsbr_api.FOLDER_TYPE_CONTAINER,
                                                p_type_caid        => wwsbr_api.SHARED_OBJECTS
        -- Process cache invalidation messages.
        wwpro_api_invalidation.execute_cache_invalidation;
        portal.wwctx_api_private.set_context( p_user_name => 'NEEDAPP', p_password => 'dummy');
        -- create new item
        l_text_item := 'This is a new item on the new page';
        l_new_item_master_id := wwsbr_api.add_item( p_caid              =>  l_caid,
                                                    p_folder_id         => l_new_page_id,
                                                    p_display_name      => 'This is the display name',
                                                    p_type_id           => wwsbr_api.ITEM_TYPE_TEXT,
                                                    p_type_caid         => wwsbr_api.SHARED_OBJECTS,
                                                    p_region_id         => 0,
                                                    p_text              => l_text_item
        -- Process cache invalidation messages.
        wwpro_api_invalidation.execute_cache_invalidation;
        wwctx_api.clear_context;
        owa_util.redirect_url(curl => l_back_url || '&' || l_reference_path || '.p_text=' || l_text);So, I change the context in my code to make sure that the item is created by the user NEEDAPP. This works, the page is created first (by the user who invoked the portlet) and an item is placed on the page. I can even see the item showing up in my 'PENDING ITEMS LIST' for approval.
    BUT
    After the procedure I am NOT redirected to the page where I submitted the form bu instead I get an error:
    Fout: De listener heeft het volgende bericht geretourneerd: 503 Service Unavailable
    What is the problem?

Maybe you are looking for

  • How do I uninstall a MS wireless mobile mouse 3000 from Mac Mini. It overwrites my trackpad till I log in

    I installed this mouse prior to getting the Apple Bluetooth trackpad. And the trackpad works fine, once i've logged in, but not until then. The Trackpad pointer will navigate OK, but won't register a click.I must use the mouse to click my sign-in ico

  • Powermac G4 ADC Display Problem

    Hi, I just bought a 17" Studio (LCD Flat Panel) Display. I was suprised to see that everything is powered by one cable because I though that I needed separate cables. I installed an AGP Graphics Card from another Powermac G4 MDD. The Powermac G4 I in

  • VAT SUM AVAILABLE ON PRINT DOCUMENT

    Hello I have a question regarding VAT and PLD Does anyone knows how to see at the end of the report the sum of each VAT category at item level Say one item is 5.5% One item 19.6% I would like to have the sum at teh bottom of all 5.5% and all 19.6% I

  • Garbled Fonts in Safari

    I have been having issues for quite some time with Safari and it's display of certain websites. From time to time Safari displays certain webpages full of garbled fonts.... totally unreadable. I read somewhere about getting Font Fingaler.. I have use

  • Login Issues Via Chrome Browser on PC

    Hi, having major login issues. Occasionally I can login and all works well but 9/10 I can't login. I know its not a password issue.I have disabled ABP. TVCatchup, BBC iPlayer, in fact any other TV stream works fine as does the Android app. Anybody in