How to Reset Pagination Page called by a button defined in Select Statement

Its easy to reset the pagination for a page that is called using a 'Button' such as 'Create'.
But
I've defined a button in my records list by using the this entry in the select statement:
(some characters have been removed to allow for its inclusion in this post)
href="f?p=&APP_ID.:12:&SESSION.::NO::P12_SEARCH_BLDG1,P12_SEARCH_FLOOR:'||BLDG_ID||','||ID||'">'
|| 'img src="#IMAGE_PREFIX#connections.gif" border="0" alt="Icon 4"'
||
"CONNECTIONS",
It works great, Except, I need to reset the pagination for the page, (P12_),
Because I have similar buttons defined on other pages that also call page, (P12_).
Can you help me?

Hi Gary,
see the f?p URL format at http://download-west.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32471/concept.htm#BEIHCICF chapter "Clearing Session Cache for Two Pages While Resetting Pagination"
Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

Similar Messages

  • How can I limit the number of rows returned by a select stat

    How can I limit the number of rows returned by a select
    statement. I have a query where I return the number of stores
    that are located in a given area.. I only want to return the
    first twenty-five stores. In some instances there may be over
    200 stores in a given location.
    I know is SQL 7 that I can set the pagesize to be 25....
    Anything similiar in Oracle 8i?
    null

    Debbie (guest) wrote:
    : Chad Nale (guest) wrote:
    : : How can I limit the number of rows returned by a select
    : : statement. I have a query where I return the number of
    : stores
    : : that are located in a given area.. I only want to return the
    : : first twenty-five stores. In some instances there may be
    : over
    : : 200 stores in a given location.
    : : I know is SQL 7 that I can set the pagesize to be 25....
    : : Anything similiar in Oracle 8i?
    : If you are in Sql*Plus, you could add the statement
    : WHERE rownum <= 25
    : Used together with an appropriate ORDER BY you
    : could get the first 25 stores.
    Watch out. ROWNUM is run before ORDER BY so this would only
    order the 25 selected
    null

  • Can we call a stored procedure in a select statement

    Hi All
    I want to call a stored procedure inside a select statement is this possible.
    Regards
    Sravz

    You can create a pipelined function which gathers the data from your stored procedure and then use that in a select statement or directly write your script in any function or pipelined function. ;)
    There is no way you can call any stored procedure in a SELECT statement directly - i guess.
    Regards.
    Satyaki De.

  • How to join THREE different tables into internal table using one select statement .

    How to join THREE different tables into internal table using one select statement .
    Hi experts,
    I would like to request your guidance in solving the problem of joining the data from three different database tables into one internal table
    Scenario:
    Database tables:
    SPFLI
    SFLIGHT
    SBOOK.
    Table Fields:
    SPFLI - CARRID CONNID COUNTRYFR CITYFRM COUNTRYTO CITYTO
    SFLIGHT - CARRID CONNID FLDATE SEATSMAX SEATSOCC SEATSMAX_C
    SEATSOCC_C SEATSMAX_F SEATSOCC_F
    SBOOK - CARRID CONNID CLASS
    MY INTERNAL TABLE IS IT_XX.
    Your help much appreciated.
    Thanks in advance.
    Pawan.

    Hi Pawan,
    please check below codes. hope it can help you.
    TYPES: BEGIN OF ty_xx,
            carrid     TYPE spfli-carrid   ,
            connid     TYPE spfli-connid   ,
            countryfr  TYPE spfli-countryfr,
            cityfrom   TYPE spfli-cityfrom  ,
            countryto  TYPE spfli-countryto,
            cityto     TYPE spfli-cityto   ,
            fldate     TYPE sflight-fldate ,
            seatsmax   TYPE sflight-seatsmax ,
            seatsocc   TYPE sflight-seatsocc ,
            seatsmax_b TYPE sflight-seatsmax_b,
            seatsocc_b TYPE sflight-seatsocc_b,
            seatsmax_f TYPE sflight-seatsmax_f,
            seatsocc_f TYPE sflight-seatsocc_f,
            class      TYPE sbook-class,
          END OF ty_xx,
          t_xx TYPE STANDARD TABLE OF ty_xx.
    DATA: it_xx TYPE t_xx.
    SELECT spfli~carrid
           spfli~connid
           spfli~countryfr
           spfli~cityfrom
           spfli~countryto
           spfli~cityto
           sflight~fldate
           sflight~seatsmax
           sflight~seatsocc
           sflight~seatsmax_b
           sflight~seatsocc_b
           sflight~seatsmax_f
           sflight~seatsocc_f
           sbook~class
      INTO TABLE it_xx
      FROM spfli INNER JOIN sflight
      ON spfli~carrid = sflight~carrid
      AND spfli~connid = sflight~connid
      INNER JOIN sbook
      ON spfli~carrid = sbook~carrid
      AND spfli~connid = sbook~connid.
    Thanks,
    Yawa

  • How to reset pagination

    hi there,
    how can I reset the pagination of page x if I visit page y ?
    another question:
    is it possible get the value of the referer page?
    thanks in advance
    dave

    I can't use an onload process on page 3, right? Sure you can. If your design requires that page 3 should always be rendered with pagination reset, that is the best way to do it.
    how can I use the RP keyword in the clear cache
    section of the f?p=URL within my tabs? You canot specify a f?p= URL as a tab target. Tab targets are just page nos.
    So I guess your only option is to (conditionally?) reset pagination on the pages you want using onload processes on the page itself.

  • How to reset new page counter

    Does anybody knows how to reset page counter (next free page number suggested on page creation)?

    If your web host doesn't provide you with meaningful stats, sign-up for Google Analytics.  Google will give you more valuable stats about your site visitors than a hit counter will.  And it's free.
    http://www.google.com/analytics/
    Simply paste the GA code they give you into your web pages.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • How to get the page call stack

    Is there any way to get a list of files used in building a
    single page? What I need is to be able to see what page called the
    custom tag from within that custom tag. Using getBaseTemplatePath
    doesn't work because it only shows the top level page, not the
    actual file that called the custom tag. Take the following
    structure for instance:
    /webroot/mydir/myfile.cfm
    /webroot/mydir/myincludes/includefile.cfm
    /webroot/customtags/thecustomtag.cfm
    If myfile.cfm cfincludes includedfile.cfm and then
    includefile.cfm calls thecustomtag.cfm, thecustomtag.cfm thinks
    myfile.cfm called it. Which is wrong, and a bit stupid.
    I've tried the back door method:
    <cfset objFactory = CreateObject( "java",
    "coldfusion.server.ServiceFactory" ) />
    <cfset objDebugging = objFactory.GetDebuggingService()
    />
    <cfset qEvents = objDebugging.GetDebugger().GetData()
    />
    <cfdump var="#qEvents#">
    But found out later that this only works with debugging
    turned on in CF admin AND no IP restrictions are set (unless the
    IPs for the clients are listed there).
    This should be a very simple task, one would think. Any
    suggestions?

    We CFInclude the following snippet into all project files
    when this functionality is needed:
    <CFScript>
    // Init Template Management
    myName = getFileFromPath(getCurrentTemplatePath());
    if(NOT isDefined('TemplateManagement')){
    TemplateManagement = structNew();
    TemplateManagement.cnt = 0;
    else{
    TemplateManagement.cnt = TemplateManagement.cnt + 1;
    if(NOT structKeyExists(TemplateManagement, myName)){
    TemplateManagement[myName] = structNew();
    // Versioning:
    TemplateManagement[myName].App.Version.Major = 1;
    TemplateManagement[myName].App.Version.Minor = 1;
    // License:
    TemplateManagement[myName].License.SerialNumber = '';
    TemplateManagement[myName].License.Owner = '';
    </CFScript>
    ...at the end of the http request, usually in
    onRequestEnd.cfm, you can grab the 'TemplateManagement' struct and
    take a look.

  • How to reset a particular view object alone to it's initial state??

    Hi,
    My application contains view objects with custom data source implementation. One of my requirement is to reset the particular view object alone to it's initial state. I can't use rollback since it is at Db Transaction level. I searched in forums and finally written the following coding to achieve it. It works fine during sometime but sometimes i am getting the exception oracle.jbo.DeadEntityAccessException: JBO-27101: Attempt to access dead entity in Person, key=oracle.jbo.Key[1 -10 ]
        public void resetPersonViewObject(String voName) {
            Iterator dirtyItr = this.getEntityDef(0).getAllEntityInstancesIterator(this.getDBTransaction());
            while (dirtyItr.hasNext()) {
                Object obj = dirtyItr.next();
                if (obj instanceof EntityImpl) {
                    EntityImpl entity = (EntityImpl)obj;
                    String state = null;
                    byte entityState = entity.getEntityState();
                    switch (entityState) {
                    case Entity.STATUS_INITIALIZED:
                        state = "Initialized";
                        // Don't do anything
                        break;
                    case Entity.STATUS_UNMODIFIED:
                        state = "Un-Modified";
                        // Don't do anything
                    case Entity.STATUS_DEAD:
                        state = "Dead";
                        // Don't do anything
                        break;
                    case Entity.STATUS_DELETED:
                        state = "Deleted";
                        entity.revert();
                        // entity.refresh(Entity.REFRESH_CONTAINEES);
                        break;
                    case Entity.STATUS_MODIFIED:
                        state = "Modified";
                        entity.refresh(Entity.REFRESH_UNDO_CHANGES);
                        break;
                    case Entity.STATUS_NEW:
                        state = "New";
                        entity.refresh(Entity.REFRESH_FORGET_NEW_ROWS);
                        entity.refresh(Entity.REFRESH_REMOVE_NEW_ROWS);
                        break;
                    System.err.println("State : " + state);
            getDBTransaction().clearEntityCache(getEntityDef(0).getFullName());
            getViewObject().clearCache();
    }Questions:
    1. How to achieve my requirement? Is there any code correction required?
    2. How to reset the row which is actually deleted by the user?
    3. The sample code shown above is applicable for all the view object instances which are created from the same entity? What should i do if i want to reset a particular instance of a view object (I may use different instance of same view object at various screens whereas i want to reset only one)
    Can anyone help on this??
    Thanks in advance.
    Raguraman
    Edited by: Raguraman on Apr 24, 2011 8:48 PM

    Hi,
    As per my requirement, i use various instances of same view object in various dynamic tabs only. Since each tab has its own transaction, refreshing an EO of a particular transaction will refresh only the VO instances which comes under that transaction. So it will not cause any issue for my requirement i hope.
    Requirement: Need to reset a particular entity driven view object instances.
    Tried Schema: Departments table of HR Schema. Tried using the Application Module tester.
    Code i use:
        // Client Interface method of DepartmentsViewImpl
        public void resetView() {
            Iterator dirtyItr =
                this.getEntityDef(0).getAllEntityInstancesIterator(this.getDBTransaction());
            while (dirtyItr.hasNext()) {
                Object obj = dirtyItr.next();
                if (obj instanceof EntityImpl) {
                    EntityImpl entity = (EntityImpl)obj;
                    byte entityState = entity.getEntityState();
                    switch (entityState) {
                    case Entity.STATUS_UNMODIFIED:
                        break;
                    case Entity.STATUS_INITIALIZED:
                        break;
                    case Entity.STATUS_DEAD:
                        break;
                    case Entity.STATUS_DELETED:
                        entity.refresh(Entity.REFRESH_WITH_DB_FORGET_CHANGES);
                        break;
                    case Entity.STATUS_MODIFIED:
                        entity.refresh(Entity.REFRESH_UNDO_CHANGES);
                        break;
                    case Entity.STATUS_NEW:
                        entity.refresh(Entity.REFRESH_FORGET_NEW_ROWS);
                        entity.refresh(Entity.REFRESH_REMOVE_NEW_ROWS);
                        break;
            getDBTransaction().clearEntityCache(getEntityDef(0).getFullName());
            getViewObject().clearCache();
    Issue i have:
    1. Add a blank row (Soon transaction has become dirty). Call the resetView() client interface. It gives me JBO-25303: Cannot clear entity cache model.eo.Departments because it has modified rows
    2. Modify any row and then delete the same row. Call the resetView(). It gives me JBO-27101: Attempt to access dead entity in Departments, key=oracle.jbo.Key[10 ]
    [NOTE:  Above code works fine when for simple deletion of rows, modification of existing rows, new rows]
    Edited by: Raguraman on Apr 24, 2011 8:48 PM

  • How to get the inserted row primary key with out  using select statement

    how to return the primary key of inserted row ,with out using select statement
    Edited by: 849614 on Apr 4, 2011 6:13 AM

    yes thanks to all ,who helped me .its working fine
    getGeneratedKeys
    String hh = "INSERT INTO DIPOFFERTE (DIPOFFERTEID,AUDITUSERIDMODIFIED)VALUES(DIPOFFERTE_SEQ.nextval,?)";
              String generatedColumns[] = {"DIPOFFERTEID"};
              PreparedStatement preparedStatement = null;
              try {
                   //String gen[] = {"DIPOFFERTEID"};
                   PreparedStatement pstmt = conn.prepareStatement(hh, generatedColumns);
                   pstmt.setLong(1, 1);
                   pstmt.executeUpdate();
                   ResultSet rs = pstmt.getGeneratedKeys();
                   rs.next();
    //               The generated order id
                   long orderId = rs.getLong(1);

  • How to create Form page using a query-like filter to select editable rows

    Hi!
    Does anyone knows how can I create a Tabular Form page to update a table's data, but using the capabilities offered when creating an Interactive Report page (that is, having the "Search Bar" filtering tool at the top of the form)?
    I mean, is that possible without customizing the page? I ask this because I still don't have that much APEX knowledge and I would prefer to accomplish this by just using the "Create Page" wizard but without doing too much programming afterwards.
    Thanks a lot.

    Try this method,
    1. Creat a Master Detail Form (Custom Layout and not tabular)
    and in the master block select one field.
    2. In the HTML layout for master remove the reference for
    that field(so that nothing will appear in the master block
    of the form).
    3. Before the update (in the Pl/SQL event handler select the 'Save' event and write the following code to avoid updating master block).
    p_session.set_value(p_block_name => 'MASTER_BLOCK',
    p_attribute_name => 'MASTER_ACTION',
    p_value => 'None');
    doSave;
    For eg, let's say
    Master is from 'Dept' table and Detail is from 'Emp' table(with join condition Dept.dept_id = Emp.dept_id). In the master remove everything except dept_id field and in the HTML layout for master remove the reference of the dept_id field(you cannot remove this field physically from the master layout). Now the form will look like multirow form rather than master detail form but only problem with this workaround is 'Detail Action' will be present in the detail block.
    I hope this will help you.
    Thanks
    -Krishnamurthy

  • How to control volume during call when hard buttons don't work?

    I was wondering if there is another way to increase the volume during a call when the hard + volume button does not work. Only the - volume button works. Is there possibly an on screen volume button or another screen I can go to for in call volume control. While on a call using the speaker, the volume is so low I can barely hear the person I'm talking to but I can't increase the volume anywhere. Please help! It's so frustrating  when you're using  the speaker phone and you can't hear anything. What's the point??  I also decreased the volume on a regular call while testing the buttons and now that's so low I can't hear that way either. Help!

    Double-click the Home button, swipe the icons at the bottom of the screen to the right twice and it should show a volume slider.  Adjust the volume then press the Home button.

  • How to pass the parameter in the where clause of the select statement

    Hi All,
    Iam getting one of the value from the Input otd and using this value i need to query one of the tables in oracle database and selected the table using the oracle eway otd like shown below .
    otdRISKBLOCK_1.getRISKBLOCK().select() .
    where clause in side the select takes a string parameter as Iam getting the string parameter from the input otd and passing this to where clause by creating a string literal after deployment it is giving an error saying "ORA-00920: invalid relational operator".
    can any one throw some input on this .
    Thanks in Advance
    Srikanth

    You will see this error if the search condition was entered with an invalid or missing relational operator.
    You need to include a valid relational operator such as
      =, !=, ^=, <>, >, <, >=, <=, ALL, ANY, [NOT] BETWEEN, EXISTS, [NOT] IN, IS [NOT] NULL, or [NOT] LIKE in the condition. in the sql statement.
    Can you throw some more light on how are you designing your project?

  • How to compare two fields from the same table in the select statement

    Hi, friends
    I try to compare tow fields from the same table, but no result,
    For example, this
    data: cptotchek tyep i.
    select count(*) into cptotchek
    from aufk where erdat = aufk-idat2 .
    The result is  cptotchek = 0, but there are the records in aufk , where,  aufk-erdat = aufk-idat2.
    Please, help me, i don't use the loop statement for optimize my program.
    Regards

    Hi  ,
           it will not return  any value   when you are using   column of same table 
           such as Date Field   , Because  while Using Aggregate Function  it will not check with self column
    .      For that you have to take data in one internal table and then you can work on it  .
         And if you are worried about Performance  it will not affect  , untill you are selecting only required data  .
    you can try this way  .
    data: cptotchek type i.
    types : begin of  w_aufk.
            include structure aufk  .
          types : end of  w_aufk .
    data : it_aufk type standard table of w_aufk with header line  .
    select * into corresponding fields of table it_aufk
    from aufk  .
    loop at it_aufk .
    if it_aufk-erdat  = it_aufk-idat2 .
    write : / it_aufk-erdat , it_aufk-idat2 .
    else .
    delete it_aufk .
    endif  .
    endloop.
    Regards
    Deepak.

  • Mixing of interactive report and classic report fails the RESET PAGINATION process.

    I have a tab page where i got 3 different reports REPORT_A (classic), REPORT_B(interactive)  and REPORT_C (CLASSIC) in the same alphabetic order. I have a reset pagination page process which will always fire (without any condition) when you visit the page via tab.
    The reset pagination process which exists in the before header stage is firing but not resetting the interactive report. It does affect the subsequent classic report REPORT_C as well. The REPORT_A would reset pagination fine since it exists before the interactive report. Is this a know bug in apex?
    I created a test demo application with exact steps to reproduce the problem. The steps are in the demo website itself.
    http://apex.oracle.com/pls/apex/f?p=56638
    U: testuser
    P: password
    Apex Version: 4.2.4.00.08
    In my real application i would have a dropdownlist in the page based on which I would filter the data. The dropdownlist will have a corresponding after-submit branch which will handle the reset pagination & RIR absolutely fine. But when we visit the website through tab the above problem would crash the page.
    I tried solutions like gReport.search('SEARCH') but that will fix only the interactive report, not the classic REPORT_C. That is just a hack anyway.
    Any ideas.?

    Ramani_vadakadu wrote:
    in classic report pagination need to be make it up max rows in APEX_SCHEMA(APEX_040200) itself. i was fixed this issue long back myself,but right now i don't remember which table! so please check the schema and track it.
    This makes very little sense to me. Please explain this in detail. Are you advocating making changes to APEX metadata by executing DML on tables in the APEX_040200 schema? Doing so will leave your APEX instance in an unsupported an possibly inoperable state.

  • How do i get pages to read documents

    I have Irlens syndorm which makes reading on the computer difficult. So how do i get Pages to read documents to me?

    Select the text you want spoken.
    Press the system-wide Hot-Key set in:
    System preferences > Speech > Text-to-Speech
    The defalut key is Option+Escape
    An additional feature, VoiceOver, is available to read all on screen Items in a different way. It is enabled in
    System preferences > [Universal] Access

Maybe you are looking for