Confirmation in DA before refresh of a PPR region

Apex 4.1.1.00.23
I am working with an app that I am upgrading from v3.2 to 4.1.1.00.23 and I have a page/region that had some javascript in it that I am trying to move away from manual JS and into dynamic actions.
The region in question is a tabular form with PPR turned on and the problem I'm having is that I wish to check if any of the checkboxes are checked and if so, display a confirmation message to the user before the region paginates. I want that if the user does NOT press OK to the confirmation that the pagination is cancelled.
So I have a DA as:
1. Before refresh of my region
2. Conditional based on javascript expression (I have my own JS on the region that checks if any checkboxes are checked and it does work for sure) that checks if at least one checkbox is checked.
<script language="javascript" type="text/javascript">
function verifyCheckboxes()
  var checkboxes=document.getElementsByName('f01');
  if (checkboxes==null)
    return(false);
  else
    var vBoxChecked=false;
    for (var i=0;i<checkboxes.length;i++)
      if(checkboxes.checked)
vBoxChecked=true;
break;
return(vBoxChecked);
</script>
3. If any are checked, prompt the user with the confirmation "are you sure you want to leave this page?". This action is defined as type "confirm".
4. If the user presses cancel, the page should not continue.
Steps 1-3 work fine. Step 4 doesn't happen...no matter what the user chooses (OK or cancel), the region paginates.
I have worked with confirmations before on "before page submit" and it works like this...cancellilng in the confirmation box cancells the submission. I figured this would work similarly with "before refresh" of a region, but it does not.
Is this an Apex bug that the confirmation OK/Cancel always allows the region to refresh (different behavior than with a confirmation used before page submit)?
Ideas on another soution for what I'm trying to do?

Well I guess the situation is that "before refresh" fires after the signal to refresh the region has been heard by the server.
In other words, when I paginate through the region, I click the link to paginate, it wants to refresh but encounters my DA that fires before the region actually refreshes. This is fine. My code fires correctly and prompts "are you really sure...?". Problem is, the answer from the confirmation is ignored (either OK or cancel permits the pagination to continue).
When I've used a confirmation with a "before page submit" in this same manner, answering "cancel" to the confirmation would also abort the submit process.
So I want the same sort of "cancel" action to abort the region refresh in this case, but seems like it's ignored.

Similar Messages

  • [svn:fx- flex] 21410: Tag trunk at 21368 before refresh

    Revision: 21410
    Revision: 21410
    Author:   [email protected]
    Date:     2011-06-20 08:35:27 -0700 (Mon, 20 Jun 2011)
    Log Message:
    Tag trunk at 21368 before refresh
    Added Paths:
        flex/sdk/tags/trunk-4.5.0.21368/

  • Qa32-confirm the operation before proceeding error even though operation is confirmed.

    Hi,
    In qa32, while doing ud and while saving, it is showing the error message as confirm the operation before proceeding.even though the operations are confirmed. we are doing the co1f conformation.please find the screenshots for the issue.
    we are 3 in process inspections operations with operation nos 25,65,75. The 25,65 operations we are closing in qa32 with force closer. i.e when operation 75 doing ud, the inspection operations 25,65 happening force closer. But in order even though operations are confirming also,it is showing the below error message while doing ud in qa32. Please help me on this. why it is showing that error message even though operations are confirmed.
    Regards,
    Mastan.

    Memory errors have nothing to do with actual lack of RAM. The file is damaged or references a potentially critical external component like a specific printer driver whose info has been stored in the file, a font, a color profile, a linked image or whatever. You need to figure out those problems instead of blindly throwing more resources art the program. As a start, try to open the file on another system. If it works you can limit the investigation to the specific machine and even if it doesn't it may give you a more meaningful warning that helps to diagnose the error.
    Mylenium

  • Updating a PPR region

    I have a report with a PPR region in it. What I'd like to do is to trigger the list to refresh via PPR when I change the search criteria.
    I've searched the forum, and I assume I need to call html_PPR_Report_Page in some way, but I can't find details on what I'd put in as parameters.
    (Basically, I want to have an "onChange" event on my "pick a customer" dropdown list, which triggers a PPR refresh on the report region - just like a submit, but without refreshing the full page.)
    Can anyone help?
    Thanks,
    Paul.

    Ah, yes. I'd looked at Carl's examples, but hadn't noticed this one.
    Thanks for the pointer.
    Paul.

  • Partially refresh the sql report region by clicking the region selector tab

    Hi,
    In my page i have a region display selector tab. This region selector tab contain show all,booking,service,.. etc. when i click the booking tab,sql report region will appear. My intention is when i click the booking tab i want to refresh that region partially to display the record according to sql query in that region source of report region.
    how to do this?
    skud.

    KevinFitz wrote:
    The report region being displayed is conditional on P2_QUERY item being NOT NULL. I assume the region not appearing is because the Action for the Select List Item is set to None and so P2_QUERY is always NULL.
    No, the region is not appearing because it is conditional on P2_QUERY being NOT NULL. This means that the report region never exists on the page shown in the browser, so it can't be dynamically refreshed. (Dynamic refresh doesn't evaluate region conditions, and it only re-renders the report content, not the entire region.)
    Remove the condition on the report region, check the refresh is working, then reconsider exactly what the requirements here are. If you want the region to appear only when P2_QUERY has a value, and you want it to be refreshed without submitting and re-rendering the page, then the region needs to be hidden rather than conditionally rendered, and shown via a dynamic action when P2_QUERY gets a value.
    I tried adding an additional Set Value True Action for the DA event but got an error as listed above,
    All irrelevant if Page Items to Submit on the region is used properly.

  • Refresh PL/SQL Report Region (not Page) using Select List value

    Hi,
    I've got a report region based on a 'PL/SQL function body returning a SQL query'which gets generated on selecting a value from a Select list item, The Select List action is 'Redirect and Set value' but this causes the whole page to refresh rather than just the report region. I've tried to refresh the report only using a dynamic action on the Select List item (Action now reset to  'None') but now the report is not appearing on choosing from the List. Can anyone suggest a solution that will allow me to refresh this report without refreshing the page? I am using APEX 4.2.2 and the report syntax is as follows:
    DECLARE
      v_statement VARCHAR2(500);
    BEGIN
      SELECT query_text
        INTO v_statement
       FROM sql_queries
       WHERE query_id = :P2_QUERY ;
       RETURN v_statement ;
    END ;
    where P2_QUERY is Select List Item,
    regards,
    Kevin.

    KevinFitz wrote:
    The report region being displayed is conditional on P2_QUERY item being NOT NULL. I assume the region not appearing is because the Action for the Select List Item is set to None and so P2_QUERY is always NULL.
    No, the region is not appearing because it is conditional on P2_QUERY being NOT NULL. This means that the report region never exists on the page shown in the browser, so it can't be dynamically refreshed. (Dynamic refresh doesn't evaluate region conditions, and it only re-renders the report content, not the entire region.)
    Remove the condition on the report region, check the refresh is working, then reconsider exactly what the requirements here are. If you want the region to appear only when P2_QUERY has a value, and you want it to be refreshed without submitting and re-rendering the page, then the region needs to be hidden rather than conditionally rendered, and shown via a dynamic action when P2_QUERY gets a value.
    I tried adding an additional Set Value True Action for the DA event but got an error as listed above,
    All irrelevant if Page Items to Submit on the region is used properly.

  • BPM: Confirming alerts doesn't refresh alert status

    Hi Colleagues,
    Have anyone dealt with refreshing problems in Solman's BPM?
    If I have a red alert and process it, I proceed to confirm the alert.
    In this node, status is changed to green (some cases into grey).
    If I get back to the first screen in the BPM, process is still in red leading to confusion to our local monitoring team. It doesn´t matter that no other alerts are current unconfirmed.
    You can refresh as many times you want, system remains in red.
    I have a message in support but response process is really slow.
    They just recomended to apply latest version of note 0001255970 but no effects were observed.
    We are in ST 400 SP 17.
    Thanks,
    Renato Petrulis

    Just as feedback from SAP Support, it´s not an error:
    (...) Let me explain the difference between Current Status and Open Alerts a
    little more:
    Every MTE (MTE: Monitoring Tree Element. It is the actual measurement that you are interested in. For example, BDocs con ErrorBDocs con Error defined in component BDocs con Error is an MTE) has configurable thresholds. The thresholds define the values which, when exceeded, create an alert instance. Both yellow and red thresholds can be defined. The alert instance records the time at which the threshold was exceeded,and also have a corresponding status i.e. if the red threshold is
    exceeded, a red alert instance is created. When you hit the 'Confirm' button, you are actually clearing the alert instances.
    Whereas, in the Current Status view, you actually see the current value of the MTE, which can be red or yellow or green irrespective of what hadhappened in the past.
    Therefore, the expected behaviour is that when all the alerts are confirmed, the MTE shows green in the Open Alerts view. But the Current Status view continues to show the actual current status, which may be red or yellow or green. Therefore the DSWP transaction is actually working as expected.
    Edited by: Renato Petrulis on Dec 11, 2009 3:31 PM

  • E71: annoying confirm connection question before s...

    hello
    how can I disable the confirm question before a synchronization?
    I'm synchronizing over a bluetooth connection. The user guide tells me to click on authorize but I can't find the opportunity to choose this option. Is this done on the E71 or in the Nokia PC Suite application?
    thanks for any hints

    hello,
    do you have any idea how to sync my e71 offline with outlook emails/inbox. there's no checkbox for emails on the synchronisation set-up screen (only contacts, tasks, calendar). I've been doing this for years with my Palm Treo. I can't believe it's not a function on this high-end Nokia?
    thanks
    james

  • Confirming CLI commands before copying?

                  Hi All,
                       Is there a way to confirm the cli commands inputted into a Nexus5k (NX-OS) Ver 4.1(3) N1(1), before copying it to start. The JunOS has a "commit check" command that will give a heads up if the commands you are about to put in are going to hose your network. The "checkpoint" function will get me back to an operational state, but, I would rather not have to dance while the network comes back to life.
    Thanks All,
                  Ron Clifford

    Hi,
    IOS-XR implements the commit feature and checks the validity of the config and it seems NX-OS does the same
    http://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus5000/sw/configuration/guide/cli_rel_4_0_1a/CLIConfigurationGuide/sm_rollback.html#wp1076261
    Regards
    Alain
    Don't forget to rate helpful posts.

  • Identifying Changes on Dimensions before Refresh

    Hi All,
    Is there a way of identifying the alterations done after last database refresh on 9.3.1 or higher.
    Let say we have a planning app and users do their dimension hierarchy alterations, etc on the planning, after that can we have a list of changes to verify before we hit Refresh. Or to compare existing essbase outline and planning.
    Thanks!

    If you are going down the auditing route and want to understand what is captured and how to use it then have a read of :- http://download.oracle.com/docs/cd/E12825_01/epm.111/hp_admin/rep_aud.html
    Auditing writes to a table called HSP_AUDIT_RECORDS in your planning application, you can then query/filter the table to find out the information you need.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Confirmation of changes before pagination

    1. I have a report with a checkbox added to each row (generated with apex_item.checkbox function.
    2. As pagination I use "row ranges ... in select list with pagination"
    Now I would like the application to ask the user, if he/she really wants to leave the page without saving,
    - but only if the pagination select list is changed or the pagination buttons are pressed
    - and if any of the checkboxes was changed.
    Even though I read this thread Challenge: Save "dirty" form before navigating away I could not really figure out the solution.
    Maybe Vikas or Vishal M. or ? could once more post their smooth solution for this in a new thread? I think that this would be especially useful for many developers. Thanks a lot in advance!

    <p>See Saving session state during pagination for an alternative approach. Frankly I don't remember the solution I used in that other thread either. It was not very robust, it was IE-specific and quite a bad hack overall.
    <p>But, in general, try to stay away from this sort of stuff. Pagination is meant to get the next set of rows, period. It is not meant to save anything on the current page. It uses HTTP GET, which is supposed to be idempotent operation

  • DUPLICATE: NEED TO "DROP DATABASE" BEFORE REFRESH OR CAN REMOVE DATAFILES

    I have TARGET and AUX, i need to REFRESH my AUX, so the question is:
    i need to "DROP DATABASE" or just REMOVE DATAFILES, CONTROLFILES, REDO LOGS?
    Sure, i will create new INIT.ORA , etc...
    Cheers

    Either command will do.
    Hemant K Chitale

  • Configurator 1.6 - Why is the new "feature" of erasing iPad before refreshing NOT OPTIONAL?

    How are we supposed to manage a shared iPads in a charge and synch trolley with Configurator 1.6 ? Where it took on average 5 mins 10 tops to refresh and restore a backup it is now taking 30 to 30 minutes. It is the time taken to install each App that is the killer!
    What were Apple developers thinking about!
    In between each lesson we want to be able to wipe the iPads so that any pictures, personal information, logins (eg into Google Drive) are removed. This is not just a convenience it is an important aspect of eSafety when sharing iPads.
    I have had to revert back to Configurator 1.5 which fortunately so far seems to be working ok with iOS 8.

    This is an unconscionable decision on the part of Apple, whose engineers probably have not been in the field, and cannot imagine how long it takes to load an iPad with the entire iWorks suite & iMovie. This particular batch of four apps can easily take >20 minutes to download, not counting the other apps in the payload. Restoring a backup should have stayed as it was originally designed: to remove all personalization and user-created data only. It was a bone-headed decision that needs to be reversed.
    There is no recourse but to send feedback to Apple through this link.
    Unfortunately, there is no Configurator feedback page, but this is close enough.

  • Confirmation box(popup) before event

    Hi,
    I am using epcm eventing to pass the entire table data from VC to a table in web dynpro. Now, I want to show a confirmation box in VC which would enable the user to decide if the event should be fired or not. If the user clicks on 'OK' then the event should be fired and data would be available in web dynpro, if 'NO' is chosen, the event would not be fired. I tried quite a few things to make this work but unfortunately every time, I am unable to get the contents of the entire table when the user chooses OK.
    Any help in this regard would be highly appreciated.
    Thanks,
    Prathamesh

    Worked it out with a crude solution.
    I am now invoking a table view to perform as a confirmation box. The table view has all the columns hidden, the title contains the alert message and the toolbar consists of two buttons yes and no. The purpose of using the table view as a confirmation box was that I wanted the contents of the entire table to be sent to a webydnpro application. Now, when I raise an event on the table(contains results), I have used used the output as the input to the confirmation box(table view) but it doesnt display the results to the user based on the logic explained above. When the user clicks on Yes, I fire a signal out with mapping scope as all data rows which is caught by the webdynpro application.
    Regards,
    Prathamesh

  • Need to confirm Serial Key before downloading CS6 product from reseller.

    After purchasing, I found questionable comments regarding reseller. (I know. Initial research wasn't thorough enough.)  Payment has gone through. How do I verify Serial Key prior to download, in case this is a fraud? I can stop payment. They state product won't be officially registered for up to 45 days.

    Hi smmg3,
         You said that the reseller informed that the product will not be officially registered for up to 45 days. Now this is quite suspicious because, once you receive the serial number, it is can be registered anytime you prefer and can be located under your Adobe account immediately after registering it.
    Please refrain purchasing the Adobe products from auction sites like Amazon Marketplace or eBay because they are not authorized reseller of Adobe.
    Regards,
    Jairaj

Maybe you are looking for

  • Does anyone know how to block a specific person's e-mail acccount in Mail??

    I am trying to block a specific person from sending me e-mail. They insist on sending me that forwarding crap that I hate, and refuse to ignore my pleas to stop. So I would love to be able to block their e-mail address from my Mail account so I won't

  • How to set query title or heading

    Hi, How  can I set the query title or query heading. And also how can I creat text variable for query description. Thank you Joe

  • I'm having audio playback problems in Premiere Pro CC...

    The Apple Pro Res 422 clip only plays about 15 frames of audio.  Video looks great, but I get no useable audio, and can't edit this way. I've got Pro Res 422 video, with 32 bit PCM float audio, captured off a DVC PRO HD deck, using an AJA Kona LHI ca

  • Hwnd and acrobat plugin

    I'm using opengl and i have a question : is possible to get an hwnd from a pdf document that can use it for draw with opengl through a plugin? How i can render with opengl in acrobat sdk? thanks.

  • A complete novice HELP!

    I am a complete novice, any help would be appreciated. I have written this short programme to display two buttons in a window on screen import java.awt.*; import java.awt.event.*; public class ButtonExample extends WindowAdapter{ private Frame mainFr