Dynamic page Unload Action

Hello

I want my tabular presentation, use to display a warning message if they try to sail away without saving the changes. To do this, I created a dynamic action - Page Unload/confirmation.

When I try to navigate away from the form of tables, it appears the confirmation alert but when I click OK, it blocks the browser. I use IE 9.

Is there any version of IE that is recommended for the use of this dynamic action? Has anyone run this dynamic action successfully with IE 9?

Thank you

Zoro

Alternatively, you can make use of the jQuery plugin built

Demo: Are you sure? -dirty a jQuery forms Plugin

Sunil Bhatia

Tags: Database

Similar Questions

  • ApEx 5: Modal dialog dynamic page title resists change

    I have a modal dialog box that is called from a page with several buttons, each of which has a value different from the value to a page element in the modal page which is then used as a change in the title of the page. It works the first time when open the dialog box indicating the title depending on button, but then this first value sticks and won't change during his call with others buttons until the calling page is updated. Then it changes according to whatever the button is first used and gets stuck again. I also tried setting the value of the element in a process of pre-rendering or dynamic action of page load, but the behavior is the same.

    The trickiest part about modal APEX pages is that the content of the page is in an iframe, but the dialog box itself (including the title bar) is in the parent window.

    The problem is that the title of the dialog box is set in the call to apex.navigation.dialog which is located in the button's onclick attribute. This code is rendered on the server when the page is rendered, so it will use whatever the current value of the dialog page is including the substitutions.

    The links should be generated on the server because of the checksum. But the checksum does not include the options of the dialog box, so it is possible to do something like that. I have two buttons that open the same dialog is a button on the other cakes and pies. Is the title of the dialog attribute: dialogue &. P32_TITLE_ARG and the buttons set P32_TITLE_ARG to 'Pies' or 'cakes '.

    original var = $("#btnPies").attr ("onclick");

    $("#btnPies").attr ("onclick", original.replace (/ title:'[^'] ' *'/, ' title: ' pies dialogue' "" "));

    origin = $("#btnCakes").attr ("onclick");

    $("#btnCakes").attr ("onclick", original.replace (/ title:'[^'] ' *'/, ' title: "Dialogue hardens" ""));

    In this case there is no need to still have P32_TITLE_ARG, unless it is used for more than just replacement of the title.

    One thing that I don't like this solution, is that it is changing the code is sensitive to changes in the way the onclick code is rendered. By changing the text of an onclick handler you basically get the browser to the code eval for you. However, most (all?) techniques that use the apex.navigation.dialog API from your JavaScript code will have to change somehow what prepare_url generates on the server.

    Another option is to set the title of the dialog box of the page apex loaded by using a dynamic page loading action.  Yet once the title of the page does not have to use the substitution so better to change it to something like 'Dialogue'... "so that it shows something reasonable while loading the content of the dialog box (page APEX).

    The code runs in the DA of the dialog page loading is very simple. What is most interesting is the use of apex.util.getTopApex. The dynamic action runs in the iframe, but the dialog box is in the parent document (dialog boxes are always opened in APEX above). Using getTopApex allows us to find the title of the dialog box in the parent document.

    apex.util.getTopApex ().jQuery(".myDialog.ui-dialog-title").text ("Dialogue" + $v ("P32_TITLE_ARG"));

    For the above to work, you shall provide your dialogue a single class (on the parent page) so that the dialog box can be found. Make sure to set the dialog box > CSS Classes do not attribute the appearance > Classes CSS attribute. I used the name of the class that is lame "myDialog '.

    The disadvantage of this method is that there is a delay until the title is set, it is the same delay as the page loads, so it may not be a problem.

  • dynamic hostname in action link

    Hi all

    Is there a way to create dynamic host name URL in the link of action for dashboard? I tried to use the repository variable to store the host name of the server in the navigate to the Web page. However, the action link shows the error when I tried to place the variable repository in the navigation to the Web page in action link. We do not want to manually change the hostname for each migration.


    @{biServer.variables ['hostname']}: 7001\analytics



    Thank you

    Sushil

    Check this box
    http://intelligentinsight.WordPress.com/2012/09/23/OBIEE-11g-dynamic-action-link-URL-for-drilldown/

  • Separate Page 2 Dynamic Pages numbers

    I have two dynamic pages on the same form:

    < Cover page >

    < Form data page >

    I want to have separate pages for the two numbering. For example if the cover Page 4 pages then form data to start it could start with Page 1 / Total number of Pages of the form data. No Page 1 on the total of all pages.

    I can't get down to writing scripts for the number of pages for each master page. Any ideas? I am attaching a test file to show the challenge I am. Thank you for your time.

    https://workspaces.Acrobat.com/?d=SwypKLeZhlvykEs6xjzGUw

    Fixed! Trick is to use pageSpan to get the a variable necessary to calculate remaining on the other Subform subform (s).

    Fixed form:

    https://workspaces.Acrobat.com/?d=TLu0AaZhVCfik3-8FIk80A

    See also the Thread:

    http://forums.Adobe.com/thread/788404

  • Using 'Redirect to Page' and ' Action to update SQL ' together

    When I finished to modify data in the fields on page 3, I want to commit my changes and redirect to page 6.

    On page 3, under the heading ' Action when the button clicked ", if I select"Submit Page"and" Action to UPDATE SQL ', my changes are committed to the database, but I am not redirected to page 6 (which, of course, makes perfect sense).

    If I select "redirect to Page in this application" and "action SQL UPDATE", comes the redirection to page 6, but my changes are not committed to the database.

    What I am doing wrong?

    Using the version online at apex.oracle.com.

    Mark T. says:
    When I finished to modify data in the fields on page 3, I want to commit my changes and redirect to page 6.

    On page 3, under the heading ' Action when the button clicked ", if I select"Submit Page"and" Action to UPDATE SQL ', my changes are committed to the database, but I am not redirected to page 6 (which, of course, makes perfect sense).

    If I select "redirect to Page in this application" and "action SQL UPDATE", comes the redirection to page 6, but my changes are not committed to the database.

    What I am doing wrong?

    You must submit the page, then branch of the page 6.

    (You can review pages similar to the sample application or another application to see how things are handled it.)

  • Dynamic page references

    I've done a few documents that contain what I would call inline references page numbers. For example in the middle of a paragraph, "for more information, see page x". Usually, the document redéroule at some point and I have to remember to update the page references.

    I can't help but wonder if there is a simple way (and I mean by simple without custom scripts) to the dynamic page number references. Kind of like how TOCs work, except that I don't want to pick up all instances of a certain style of paragraph, just a specific line or something. I guess I could do with the anchors, but I do not want to turn the words into hyperlinks in the document. I just want the correct page number is displayed permanently.

    For CS3, take a look at this script of sectors de Jong: Script for referrals, including a tutorial on how to use it (updated April 10, 2006) you need to update manually, I think.

    If you use a large number of cross-references, the upgrade to CS4 would probably be worth it for that alone.

  • Huh?  Or, call a procedure from a dynamic page portlet

    I have a procedure which returns the number of records in a table. Works very well.
    I want to call this procedure from a dynamic page portlet in Oracle portal.
    Here is (close to the) the content of the page:
    < HTML >
    < TITLE > example < /title >
    < ORACLE >
    HTP. P (SCHEMANAME. PROCEDURENAME());
    < / ORACLE >
    < / BODY >
    < / HTML >

    I get an error
    ORA-00900 invalid sql statement.
    Could not be parsed as portal_app - HTP. P (SCHEMANAME. PROCEDURENAME()); WWV-08300
    (The procedure has been granted execute privileges to the public and anonymous.)

    So, it is a FUNCTION and not a PROCEDURE that you are trying to call from a dynamic page? Then try something like the following:

    
    DECLARE
    v_test VARCHAR2(4000);
    BEGIN
    v_test := SCHEMA.FUNCTION();
    htp.p(v_test);
    END;
    
    
  • dynamic page structure

    Hello

    I use ADF 11 g.

    I'm trying to set up a page structure that stands out in the order to a logic behind. So, page can have different number of facets, and these aspects should be filled by program. I wonder what is the best method to achieve this. I am trying to use different templates for every possible page structure. But I have a few questions about this, any idea would be appreciated.

    1 - is this supported: hand files with a jsp page (which has a side named contentArea), model a jsff file (which has a model of dynamic page reference) included in contentArea.

    2. when using dynamic page template binding, it is a requirement that used templates of pages must have the same amount of facetrefs?

    3 can dynamically change jsp: include the attribute of 'page' of the tag, for example with the expression language?

    4 - How can I find a page (RichPageTemplate component) to support bean template.


    Thank you.

    Hello

    1 - is this supported: hand files with a jsp page (which has a side named contentArea), model a jsff file (which has a model of dynamic page reference) included in contentArea.

    I tried and it works with the full support of the IDE.

    2. when using dynamic page template binding, it is a requirement that used templates of pages must have the same amount of facetrefs?

    Yes.

    3 can dynamically change jsp: include the attribute of 'page' of the tag, for example with the expression language?

    Include the page is added during compilation tme, no PERIOD. So I don't think that this is possible. However you can dynamically change the contents of . If you need to dynamically change the elements of an EAP, take a look at the dynamic Page template tag in the tag documentation ADF Faces

    4 - How can I find a page (RichPageTemplate component) to support bean template.

    You can start searching for the UIViewRoot or relatve to the container parent, which is af:form. In the latter case, you create a reference of the JSF for the RichForm component binding in the managed bean and then to call getChildren

    for example

        public String cb1_action() {
            // Add event code here...
            List l = form1.getChildren();
    
            for (UIComponent u : l){
                System.out.println("Child "+ u.getId() + "--"+u.getClass());
            }
            return null;
        }
    

    Frank

  • Another Question for dynamic Pages

    Hello

    If I create a dynamic page and then I used as a portlet in a simple portal page, can I link to it, as a portlet settings page? as it can be done with the omniportlets.

    and if it is possible how can I do?


    Thanks in advance!

    aTTe
    Blume

    If you have a bind variable in your dynamic pages, then change the dynamic page and check the box 'Make Public' of each variable binding tab display form Customization Options. After you add the dynamic page portlet to a page, see if you are then able to bind the page settings for the parameters of the dynamic page.

  • Title of the dynamic page (full name)

    Hi all!
    How can I change page tutle dynamically, according to certain parameters. I have a page with portlet (develops in JDeveloper), I have the setting in this portlet and you want to use this setting to generate the new display name for the page.

    Maybe it's not a complicated task, but I ' ve searched in the Forum discussions and found more questions than answers: dynamic page title title of Page based on a Page setting header

    Must I use the pl/sql? the java-portlet pl/sql procedure call?
    Thanks in advance,

    A. Roshina

    The document.title property controlling the page title. Have your portlet to run a JavaScript function that defines document.title.

    document.title = "Your new title";

  • Print a Message of success to the dynamic Page Action

    Hi guys,.

    I have a dynamic action that executes a block of code pl/sql. I need to display a message when the procedure is executed. I tried several options such as the use of "apex_application.g_print_success_message" but I could not achieve this goal. Here's my plsql code:

    CREATE OR REPLACE PROCEDURE processAlrm
    (
    p_alarmAction in VARCHAR2
    p_alarmID IN VARCHAR2
    )
    AS
    BEGIN
    Update...;
    COMMIT;
    apex_application.g_print_success_message: = ' < span style = "color: red" > alarm properly treated. </span > ';
    EXCEPTION
    WHILE OTHERS
    THEN
    ROLLBACK;
    LIFT;
    END processAlarm;
    /


    You have an idea how I can do this?

    Thank you.

    Hello
    Defining the will apex_application.g_print_success_message variable does not work because it is only used for page rendering.

    What you could do is
    a. create an item hidden on the page, tell P1_FOR_DA_HDDN
    b. in your DA make the following change

    --apex_application.g_print_success_message := 'Alarm processed successfully.';
    apex_util.set_session_state('P1_FOR_DA_HDDN', TO_CHAR(SYSTIMESTAMP) );
    -- SYSTIMESTAMP is only to force a change in the item every time the process is run. Alternate to using null/not null or other values.
    

    (c) in 'Page elements to return' her DA enter P1_FOR_DA_HDDN
    d. create a DA on P1_FOR_DA_HDDN, the change event, which has a real 'alert' Action and give the message "processed alarm with a success." in it.

    Here's what will happen
    1. when the process is run the value of the hidden element will change
    2 change in value of the hidden item will trigger the DA 'The change' in this regard.

    It will display an alert message, not in the area of SuccessMessage. But I think your goal is to inform the user, that is enough.

    Kind regards

  • Dynamic selection of actions LOV

    I have a form with 12 fields and a pop up Lov. This LOV is called model.  When I select a value LOV (Template), all 12 fields must be defined with a default value based on the model.

    The model is nothing more than a row of a table. Can be done by using the dynamic action?  Help, please

    George

    Yes, you can create a dynamic Action as follows:

    Event: change

    Selection type: product (s)

    Article (s): PXX_TEMPLATE

    Real Action

    Action: execute the PL/SQL Code

    BEGIN
      SELECT COLUMN1, COLUMN2
      INTO PXX_COLUMN1, PXX_COLUMN2
      FROM TABLE
      WHERE ID = PXX_TEMPLATE;
    EXCEPTION
      WHEN NO_DATA_FOUND THEN
        PXX_COLUMN1 := NULL;
        PXX_COLUMN2 := NULL;
    END;
    

    Page to submit items: PXX_TEMPLATE

    Page to return items: PXX_COLUMN1, PXX_COLUMN2

    Thank you

    Erick

  • Conditional display of links - using dynamic application example "Actions".

    I have a similar to the one shown on the page need delete and refresh the application "Sample of dynamic Actions" on Apex.Oracle.Com.  However, in my case, the application must be selective.

    How can show us the cross out 'X' for people in the SALES Department.

    I tried this using a case statement to return the EMP_IDS for people in the SALES Department and NULL values for all others (in a new column called Sales_Emp_IDS.  My attempts failed but that each record in this new column shows red X if the emp in the sales department or not.

    Is this possible?

    Here are the changes I made to the EMPLOYEES area

    Adds the source code of the next column

    SELECT e.ROWID

    e.EMPNO ID

    case when 'd.dname =' SALES

    then e.EMPNO

    Another null

    end Sales_Emp_IDs

    e.EMPNO

    e.ENAME

    e.JOB

    m.ename MGR

    e.HIREDATE

    e.SAL

    e.COMM

    DEPTNO d.dname

    OF #OWNER #. E EBA_DEMO_DA_EMP

    #OWNER #. EBA_DEMO_DA_EMP m

    #OWNER #. EBA_DEMO_DA_DEPT d

    WHERE e.mgr = m.empno (+)

    AND e.deptno = d.deptno (+)

    Then on the report to the report ineractive attributes I copied the link column to delete settings

    Text link < img src = "" #IMAGE_PREFIX #red_x_16.png "alt ="Remove"> "

    Link attributes = id' #ID # "class ="delete" "

    Target URL

    URL                 #

    Thank you

    Gene

    Hi Gene Lowy,

    you see X for each column because you made conditional, only the column don't value not the link,.

    Need to add X in the query itself.

    1. remove this part of the column binding

    The link textDelete

    Link attributes = id' #ID # "class ="delete" "

    Target URL

    URL                 #

    2 change your query, added X in the query.

    Replace with your report query

    SELECT e.ROWID
        ,  e.EMPNO ID
        ,  case when d.dname='SALES'
                then 'Delete'
                else null
           end Sales_Emp_IDs
        ,  e.EMPNO
        ,  e.ENAME
        ,  e.JOB
        ,  m.ename MGR
        ,  e.HIREDATE
        ,  e.SAL
        ,  e.COMM
        ,  d.dname DEPTNO
    FROM #OWNER#.EBA_DEMO_DA_EMP e
    ,    #OWNER#.EBA_DEMO_DA_EMP m
    ,    #OWNER#.EBA_DEMO_DA_DEPT d
    WHERE e.mgr = m.empno ( + )
    AND   e.deptno = d.deptno ( + )
    

    3. change your Sales_Emps_IDs column-> column-> display attributes as-> change to Standard report column.

    Hope this helps you,

    Kind regards

    Jitendra

  • Adusting a dynamic page counter

    I have a headache for a page counter to work in a module. It is a long course - 120 slides - and it has a dynamic menu and a side menu that allows navigation to the different sections of anywhere. It also has a glossary, available from anywhere in the course, which has a back button that goes to the last visited slide.

    I need to change the variable cpinfocurrentslide in-2, to take account of two screens before that the menu (which is the glossary). I created a variable, display_currentslide, that is in a text caption of time during the rest of the project. I have an entry action in the menu that has an expression display_currentslide = cpinfocurrentslide. The result is that it shows the slide 1 of 120 on each slide. I see that the problem is that this action doesn't happen on every single screen - only in the menu. If a solution would be to add this as an action to each screen, above all other actions are already there. It of doable, but would take ages. I also saw method of adding a or subtracting one for the cpinfocurrentslide using the forward and back buttons, which will work very well for me, except that there is a glossary which you can go from any screen in the course. Is there an implementation method that does not involve adding a new action for each of the 120 screens?

    Thank you very much in advance for any advice or tips! I use 8.1 Captivate, completely up to date.

    I suspect that you use 8.0.1.242, because there is not AFAIK available 8.1.

    If you want to have the v_CurSlide variable (sorry for my translation, it's my way of labelling), updated on each slide, you will need to perform an action on each slide, of course. Because this action never changes you can join all the slides in a work flow: select all the slides in the film (CTRL + A on Win) and enter the name of the action in the Actions tab, enter.

    However, I would recommend using a shared action (best for the size of the file), the same workflow because you don't have to do anything a parameter.

    Another tip: why not show the interaction of Glossary for the rest of the project as well and use a toggle the enable/disable button. Much less navigation which will speed up the experience for the user, since you have a long journey.

  • Cannot call a dynamic report link action after dynamic refresh

    I have a shopping car, that I'm trying.  (apex 4.2 database 11 g 2)

    In the basket, I have a link change which performs the dynamic action to open the modal page plugin.   I also have a button on the region to do a region of dynamic action refresh if you modify the cart in modal region.  After the updating of the region, I can no longer click on the link Edit (nothing happens)

    the link is defined as class = "lines" onclick = "return false".

    and lines is a dynamic action of jquery to call the page target in the link for the modal skills builders page.

    I checked the JS console and I saw no errors... any suggestions?

    Thank you

    Scott

    Hello

    When the page is loaded, Jquery listen event trigger on document.ready

    But in your case, when you refreshed your region, the values on the screen are from this point while it was loaded before.

    Go to your dynamic action

    Change extended the event live or dynamic.

    Scope of the event: DYNAMIC or LIVE

Maybe you are looking for

  • Satellite M30: brightness adjustment is no more in Vista

    Hello I recently upgraded to Vista Ultimate and I found that the brightness on my Satellite M30 controls no longer work. If someone has had this problem and know of a fix for this. Previous operating system was Windows XP Home. Concerning Alex

  • installation of iTunes says it is incompatible

    Original title: Compatible program I installed iTunes, but I get a pop up stating that it can't open because it is not compatible.  What should I do?

  • I need help to install a printer on my laptop.

    I am trying to install a HP Photosmart C5580 all-in-one printer, Scanner, and copier on my HP lap top and I get this message.  'Try to install PSSCORE' then I get this message.  "I need to contact someone about my Windows Installation Package."  I am

  • Repair boot loop

    So I installed a new Windows 7 64 bit on my computer and just after I was checking for updates, it is approximately 199 important updates. After you install all of them, he asked me to restart my computer. After that, I got stuck on the boot of the r

  • Unable to connect to the printer

    I am trying to connect my HP Officejet Pro 6830 to my Lenovo Thinkpad T460, but when I try to configure the printer there is no driver called HP Officejet Pro 6830 under the preinstalled list of drivers. Any thoughts?