How to load a popup conditionally loading of the page

Hello

I want to load popup on loading the page if:

  1. the user is autheniticated
  2. and popup does not appear.

I am aware of the new feature in JDeveloper 12.1.2.0.0 release conditionally disabling af:showPopupBehavior

ADF binary Decompilation: conditionally disabling af:showPopupBehavior

But I use the 11.1.1.6 version.

I'd appreciate your help/suggestions.

Thank you

Singh

These are two problems:

(1) the execution of an action on the page loading

(2) showing a popup under certain conditions

1 solution), https://blogs.oracle.com/adf/entry/an_epic_question_how_to

(Solution 2) each of the 1) use a method somewhere inside this method, you can check your conditions and display the pop-up window of the method. For this 'How to launch a popup programmatically from Java' in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/oct2010-otn-harvest-183714.pdf (Page 6) can be used.

Timo

Tags: Java

Similar Questions

  • Open popup on loading of the page, but with conditions

    Hello.

    I use JDeveloper 11.1.1.7.0

    I need to open a popup on the page load. This problem is recurring, and there are a few messages and discussions in the forum about this. But I need to go further on this subject.

    My case is:

    • Loading of the page, I have to check some conditions.
    • If it's true, popup is open.
      • Popup is YesNo type, and I have a dialogListener to treat the user's response. Finally, the page is loaded.
    • If false, the popup is not open.

    To do this, I use beforePhase like that

    <f:view beforePhase="#{myBeforePhaseMethod}" />
    

    Inside the method, I use PopupUtil.invokePopup (...)


    Well, my problem is that when the user answers Yes or No, Treaty dialoglistener the answer, page reload, beforePhase is re-run and popup is displayed again.

    How can I solve this? How to display the pop-up window only once?

    Thank you. Best regards

    This ingenious solution has worked.

    First of all, check phaseId in the beforePhase method. Check the phase is MADE

    if (!phaseEvent.getPhaseId().equals(PhaseId.RENDER_RESPONSE))
    return;
    

    Then, use a flag to avoid the popup shows more than once, like that

    String popUpShown = (String)ADFUtils.getPageFlowScopeValue("POPUP_SHOWN");
              if (popUpShown == null)
                popUpShown = "NO";
              if (popUpShown.equals("NO")) {
                ADFUtils.setPageFlowScopeValue("POPUP_SHOWN", "YES");
                PopupUtil.invokePopup( ... );
              }
    

    Any other suggestions or problems it may have are appreciated.

  • How to prevent from loading alongside the page I actually laoded apges announcement?

    How to stop additional (or generally unwanted) pages loading alongside the page I actually asked.

    These additional pages can be advertisements or some sell a program that is supposed to improve the performance of my system.

    I'm using Firefox under Microsoft 8.1 34.0.5.

    Never, the problem appeared when using XP that I converted from a month ago!

    Adblock more {web link}
    Blocks annoying video ads on YouTube, Facebook ads, banners
    and much more. Adblock Plus blocks all the annoying ads, and
    supports Web sites by blocking is not discrete (configurable) default ads.

  • How to load a web page

    Hi friends,

    It's my first query on the forum.

    I'm new to Blackberry applications. Basically, I'm a developer of j2me.

    I want to write a small application that loads a Web page.

    I tried a small piece of code:

    Private bs = Browser.getSession (Browser.CID_BROWSERCONFIG);

    bs.displayPage ("http://www.google.com");

    But it did not help me.

    How to load a Web page for blackberry devices.

    Can someone help me please.

    Thank you

    Maury.

    See this article.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800440/How_To _...

  • How to set ' hide / show ' regions during the loading of the Page mode 'hide '.

    How to 'Hide' under regions on a page on the loading of the page, but don't show the region above in mode 'show' on a page?

    I have multiple regions, one under the other on a Page. All models on those who are assigned to the regions 'Hide and Show '. When the initial page loading - my goal is-displays only the Top more Region in "Show" mode, while setting all the other (regions to 'Hide' in low mode).

    Can someone please suggest ideas on how to achieve this? Dynamic action? or other approaches? Examples/steps please would be greatly appreciated.

    My request for a theme is set to 23 Crimson. Apex 4.1.x

    Thank you.

    VSKumar

    Hello

    What needs to be done is:
    Set up the STATIC ID for all regions with the exception of the first region.

    For example:
    REGIONTWO
    REGIONTHREE
    REGIONFOUR
    REGION 5

    Then go to the properties of the Page to the section head and footer. In the footer section, add the following:

    
    

    You can for example see http://apex.oracle.com/pls/apex/f?p=60428:5

    P.S. If you switch to another topic you should check if the classes are the same. Otherwise it will not work.

    Kind regards
    Aljaz

    Published by: Aljaz on 6.3.2012 0:04

  • How to make an object to fade the loading of the page

    Nobody knows in a simple way in Muse have an object load with the page as transparent and then fade in?

    I am trying to darken my background image on a gallery page to draw attention to the gallery slideshow in the middle of the page. I have a filled shape of black 60% extend to the width of the page on the bottom layer on the bottom. The look is fine but I would like for the darkening effect to fade in a few seconds after the page loads.

    I tried to use the mouseover States, but when the cursor is moved over the actual slide show the effect of darkening disappears to reappear once the mouse moves away again.

    Would appreciate any suggestions. -Thanks!

    Just look at this sample site: Homepage , you can download the corresponding .muse directly from this site.

    In my view, it should be easy enough to change the file according to your needs.

  • laptop (Dell Inspiron) with Windows 7 Home Premium is now slow to most of the activities - loading of the pages in the browser, etc.

    I heard that after a few years of use, Windows-based computers lose their ability to function. This happened to me before and I bought a new laptop. Now, I think that it happens again. The laptop (Dell Inspiron) with Windows 7 Home Premium is now slow to most of the activities - loading of the pages in the browser, etc... He is also declining my VPN connection occasionally, but also my direct connection is very slow. Latency shows speedtest software provided by the ISP in addition of 250 ms, download speed of 1 MB/s (compared with 8 planned) and 0.05Mbps download. The ISP has corrected this once, but I'm wondering now if it is the computer which is slow rather than on the network because my laptop works well on the same network/router. Is there one solution to this other than another new laptop?

    Jonathan,

    You say that your computer is slow, but all of the examples you give are rather than slow computer operations slow network communications.  To avoid any unnecessary work, check how fast the computer is on the tasks that don't use any network.

    If it works fine for tasks not network then you can concentrate on the problems of network as being the only concern.

    It has also become very slow for no network tasks you should study other causes.  Just as an example: If, like me, you sleep / turn off the computer when you are not using it then defrag will never work, so you can run it manually to make sure that doesn't cause problems.   Describe your symptoms in this thread so that someone can advise on the best course of action.

    In the unlikely case where you must run Dell Factory Image Restore, then the instructions are in your manual PC *.  Before doing this, run Dell Datasafe Local Backup then click on Backup, recovery to create - media allows you to create a bootable USB of the partition that you can use the normal procedure that failing Dell Factory Image Restore [to do this, even if you have already solved your problems so that you could face if the hard drive has failed never completely].

    * Procedure Dell Factory Image Restore [excerpt from the manual for Dell Inspiron 1545]

    1. turn on the computer.

    2 when the Dell logo appears, press several times to access the Advanced Boot Options window.

    Note: If you wait too long and the operating system logo appears, continue to wait until you see the Microsoft Windows desktop; then, shut down your computer and try again.

    3. Select repair your computer.  The System Recovery Options window appears.

    4. Select a keyboard layout and click Next.

    5. to access the recovery options, log in as a local user. To access the command prompt, type administrator in the user name field, and then click OK.

    6. click on Dell Factory Image Restore. The Dell Factory Image Restore welcome screen appears.

    Note: Depending on your configuration, you may need to select Dell, then Dell Factory Image Restore factory tools.

    7. click on next. Data delete screen is displayed.

    Note: If you do not wish to continue Factory Image Restore, click Cancel.

    8. check the box to confirm that you want to continue reformatting the hard drive and restoring the system software to the factory condition, then click Next.  The restore process begins and may take five or more minutes. A message appears when the operating system and the applications installed in the factory have been restored to the State of the plant.

    9. click Finish to restart the system.

  • Check if the user has selected box element apex before the loading of the page

    4.2.1

    THM:2

    Hello world

    I have two classic reports with different conditions but even select the columns based on a sql that uses the apex_item.checkbox2 element that allows users to select the lines and run some process. I also have a radio unit that hides and shows these two reports. However, it is possible that the user select a few lines and without doing anything click on the radio button that will present the page and all the lines that earlier he had chosen will be lost. I want that we should be able to pop an alert if there are checkboxes checked and the user tried to hit the button of the radio looks like the APEX_APPLICATION. G_F01. Count is not available at the time the page is submitted. We thought to use a pl/sql to see if APEX_APPLICATION DA. G_F01. Count > 0 then trigger an alert to confirm.

    Any ideas on how to do this?

    Thank you

    ryansun wrote:

    Hi FAC586 - basically, there are two parts of the report, were grouped products consolidated (as master) and the other report has all the products of the child. So based on the option the user selects that he sees who discovers and processes information.

    I tried to create the DA, but he does not seem to fire and I'm sure it would be because I have something wrong.

    No, in this case, there was a typing error in my JS expression above (this is what happens when there is no example in the trial against...)

    Must be:$('td[headers="COL_ALIAS"] input:checked').length > 0

    I have page submit on the evolution of radio, given that other elements of the actual application, don't do with this feature which is filled on the loading of the page.

    It does not work. If the present radio on the presentation changes group cannot be controlled by the dynamic action to confirm that it has already been committed before the confirmation message is displayed. Presentation must be made by further action of real on the DA. By the way other values is possible by using dynamic actions or region to submit elements of Page properties.

    But here it is necessary, if the user has activated all the lines, then changes the selection of the radio, it should show an alert to confirm. In addition, what happens if we have a very select in the box by a header label already. Can I use the same label to identify the COL_ALIAS?

    Do not understand the question.

    Don't know what I'm doing wrong.

    As I noted above, an important part of your problem is that you asking what amounts to a series of questions XY rather than the big picture given by presenting the necessary resources. You have been really good on the creation of examples on apex.oracle.com, but they are all fragments of the righteous, which makes things difficult when you try their synthesis in something that works as a coherent whole. Various bits and pieces that have been revealed in recent weeks, it seems like this could be treated using dynamic measurements without having to send the page until the final choice has been made.

  • ADF Table retrieves all lines during the loading of the page

    Hello

    We have a requirement where we need run the query programmatically by giving the query column and its value.

    I used the code below in the AMimpl.java and calling this method during the click on the button Search my Search Page.

    I am able to get the features you want on the search page by clicking the search button.

    The question now is when the page initially loads, the table fetches all rows of the VO by default.

    Can you please let me know where I need to change so that the table will get no line on the initial load of the page?

    ' public void setVoParams (String columnName, String columnValue) {}

    ViewObject mapVO = this.getFusionSapMapping1 ();

    String whereClause = "MappingEO." + columnName + "" as: colValue ";"

    mapVO.setWhereClause (whereClause);

    mapVO.defineNamedWhereClauseParam ("colValue", null, null);

    mapVO.setNamedWhereClauseParam ("colValue", columnValue);

    mapVO.executeQuery ();

    }

    Hello

    You don't tell us your version of JDeveloper.

    An easier approach to implement your condition is to use the property refreshCondition of your iterator. Here is an example of how do: https://blogs.oracle.com/shay/entry/delay_method_execution_when_us

    Antonis

  • Error opening the page of modal (plugin skillbuilder) during the loading of the page

    Hi all

    I use 4.2.1. (on 11 GR 2), theme 25.
    SkillBuilder Modal plugin v2 page

    Modal pages are working on all sorts of events, great, but if I try to open the other via a D.A. on loading the page, it fails with ' Eception TypeError: loading of the object has no method 'stopImmediatePropagation""error (in the browser console). "
    < edit >
    just found out that this error is caused by the "cancel event' DA action that should be fired after the modal dialog box open. If I omit this event Cancel modal page is not loaded, but also no error appears.
    < / Change >

    Any ideas on how to solve this problem? In the end, I just want to open a modal window after loading the page depending on the value of an item set when loading the page (the branch sets an element value to indicate that the modal window must be open).


    Concerning
    Bottom

    Published by: bottom of Klerk on 2013-apr-11 07:43

    Bottom,

    The modal shows do not charge is actually quite simple. Look at the generated code for the dynamic action and note in particular the code "javascriptFunction":

    {"name":"modal on load","bindEventType":"ready",actionList:[{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,javascriptFunction:function(){
       if (this.browserEvent !== 'load'){
          apex.jQuery(document).apex_modal_page('openPageFromApexThis', this);
       }
    },"attribute02":"STATIC","attribute03":"f?p=54687:38:115741808752478:::38:::","attribute05":"data-url","attribute06":"div#success-message","attribute07":"AUTO","action":"PLUGIN_COM_SKILLBUILDERS_MODAL_PAGE"}]}];
    

    You can see that there is an explicit for the browserEvent criterion, and it must be different from "load."

    Of course, when you create a dynamic action with type "Page load", the browserevent will be "load", so no popup and no errors. Running a page in debug and research in the javascript console, you can also click through events fired, for example, I have this in the console:

    Dynamic Action Fired: modal on load (PLUGIN_COM_SKILLBUILDERS_MODAL_PAGE) Object { triggeringElement=document, affectedElements=[1], action={...}, more...}
    

    Firebug allows me to click on the object and display its properties. One of them is the "browserEvent" and set to "load".
    This prevents also the modal open when you actually set the real action of pull on the loading of the page.

    I tested a bit after commenting on prevention onload, and while I'm sure there are reasons why it was built in like that, I have immediate problems. The modal open during loading and anything funky happens, not even when you navigate around in the iframe.
    This does not however only if you want the modal to react on the loading of the page that your only option is to change the the plugin plsql code. I would say: test it enough!

    Go to the plugin, change it. Under Source > Code PLSQL find this:

       l_result.javascript_function :=
          'function(){' || l_crlf ||
          '   if (this.browserEvent !== ''load''){' || l_crlf ||
          '      apex.jQuery(document).apex_modal_page(''openPageFromApexThis'', this);' || l_crlf ||
          '   }' || l_crlf ||
          '}';
    

    and change it to this:

       l_result.javascript_function :=
          'function(){' || l_crlf ||
          --'   if (this.browserEvent !== ''load''){' || l_crlf ||
          '      apex.jQuery(document).apex_modal_page(''openPageFromApexThis'', this);' || l_crlf ||
          --'   }' || l_crlf ||
          '}';
    

    As you can see, I only commented those 2 lines, but it should allow the modal to open the loading of the page. I hope this helps you forward a bit.

  • Go to a specific line on the loading of the page

    i was working on JDeveloper 11.1.2.3

    How I navigate to a specific line on the loading of the page

    Concerning

    inside the workflow task Insert method call before your page and inside the method, you can set the line

  • Tabluar form hide/show items on the loading of the page

    Hi all

    Apex 4.1

    I use JS to display or hide fields, based on the values of other fields, cela in a tabular presentation. So it is used as a work-around as dynamic actions are not able to do out of the box on tabular forms (that I know of).
    The code I use is something like this:

    In the page header:

    function test (pThis) {}
    get the index of line curren on changes
    var currIndex = $('select[name="'+pThis.name+'"]').index ($x (pThis.id));
    If (pThis.value < 0) {}
    . style.display $('input[name="f06"]') [currIndex] = 'block ';
    }
    else {}
    . style.display $('input[name="f06"]') [currIndex] = 'none ';
    }
    }

    In the attributes of the item in the column 'source '.
    OnChange = "JavaScript:test (this); »

    This fires that when the source column is changed, but not working when you load at the start page when it is filled with already stored reports. So it works only when a field is changed to the hand.

    How can I force this action shot the loading of the page so the rule (hide fields) also gets applied to existing records?

    Concerning
    Bottom

    Down de Klerk wrote:
    Hi all

    Thanks for the comments.
    So far I m unable to make it work. Fire code (debug using alert messages, and these show upwards), but the suggested procedure does not work.

    I tried all kinds of entry points, as for example the test via dynamic when a button is clicked, tried action on loading the page, and also via the $(document) .ready (function
    The function is executed and nothing happends, no error does not code so should be ok.
    I'll investigate further and let you know what happends. Don't know if the class type of the associated field f06 might have something to do with it, but one is LOV/Select list type

    This code is looking for input i.e. text, checkbox etc and will not find a slelect list.

    You must change the jquery like this selector

     $(document).ready(function () {
          jQuery.each($('select[name="f06"]'), function () {
               hide_field(this);
          });
     alert("function executed");
     });
    
  • ADF: Procedure to Pl/sql call prior to the loading of the page.

    Hello world

    I have a requirement to call a Pl/sql procedure prior to the loading of the page. I saw in google everywhere he gave to AMImpl but I want to call the Pl/sql procedure in init method().
    The procedure includes four SETTINGS.

    How can I do this?

    Wat should be the code?

    Please, help me get out of very new this.im for the ADF.

    Thank you.

    Dear user,

    Learn little by little the Big :) Book Oracle jdeveloper. It will help you.

    Articles of beautiful I can't forget never. :) thank us for these blogerr
    http://andrejusb.blogspot.in/2011/04/invoking-stored-procedures-and.html
    http://www.baigzeeshan.com/2010/05/calling-PLSQL-procedure-and-function-in.html

  • Accordion tabs closed the loading of the Page

    How this page would set so all accordions are closed the loading of the page? I don't want the first tab to be opened when a viewer opens the page.

    Link is http://thedenovo.worldsecuresystems.com/solutions.html

    Moved on the forums of Muse!

    Select the option may close in Design view and click the tab open once to close all tabs within the accordion.

    Thank you

    Vinayak

  • unpaginated load visible items on the loading of the page

    When I turn the page in my indesign CS5 flash viewer, all items related to this page can be seen briefly, before disappearing, leaving those that are associated with the loading of the page. These are not at all linked to the loading of the page. Everything seems poorly maintained that the page turns. How you can hide not paginated items charge? I thought that the function "hide until the animation ' would do that, but it doesn't.

    Hide until the animation does not work as it should... In my view, the problem you have described as a bug...

    If you have items that you would like to "fly in", you can work around this problem by putting your moving outside the page objects and animate "appearance" using parameter in the Panel of Animation, instead of the default "to the current situation."

  • Animation during the loading of the page

    I just created an animation using Fireworks which, according to the tutorial can be used as entertainment during the loading of the page. What format this file must be in and where do I download it on the server... (someone has a tutorial)... one I used went, step by step, how to do it, but did not operate on the site... Thank you

    "whatisgood" wrote in message
    News:go3jlv$29$1@forums. Macromedia.com...
    > I have just created an animation using Fireworks according to the tutorial
    > can
    > serve animation while the page is loading. What format for this
    > file
    > have need to be and where do I download it on the server... (anyone have one)
    (> tutorial)... one I used went, step by step, how to do it, but does not
    > talk
    > make it all work on the site... Thank you
    >

    Im not that warned with animation in FW, but I'm assuming it would be a
    animated gif format.

    When you turn the image, the actual file or the path is not so much the
    important thing, making sure that you have correctly linked to the image
    destination on the page.
    When you upload to the server, make sure that you keep the file
    structure of your local files. If you use dreamweaver to ftp and you
    have set properly your site in dreamweaver, and then download the image
    your local site files should maintain this structure.

    Hope this is useful

    Concerning
    Fiona

Maybe you are looking for

  • Change the background iWeb photo album page?

    Hello community. I'm changing a background of iWeb photo album page but without success. I am currently implementing a gradient background thought that retrieves Html code, and directly on Inspector menu in the background of the browser, but that onl

  • Problem with the different Labview platform

    Maybe this question should be address to OR. I have this library calling a DLL registry. The library aims to convert a movie from hard disk (type *.mcf) file type in image stream and then to show and possibly to save. The DLL is designed by the desig

  • synchronize the microcontroller and labview Visa series

    Hello I have a small problem with my labVIEW VI. I do the following things: I send 7 features of the microcontroller to Labview under string (ASCII characters) to a time interval of 31.45mS. In labview, I read the string with a delay of 32 Ms. I extr

  • Help with viewing DirecTV

    Hi - I have DirecTV, which is connected to my phone line with Qwest.  I downloaded the software Drectv2PC.  When I try to play a show that appears on the list of programs that I recorded it, I get the following error message. Directv2PC annot display

  • GIF and Windows Photo Gallery files

    Why don't the .gif files in the windows photo gallery longer work? It works perfectly on XP and they have been animated too when being read through the provided windows photo viewer, but whenever I try to open one, it takes me directly to Internet Ex