Opening TaskFlow as Popup

Hi All,
For Opening the task flow as popup. I have created 2 taksflows wiith one as .jsff and another one as .jspx.but for opening as a dialog it is accepting only .jspx but as per my requirment i need .jsff that is in bounded Task flow with page fragment.....Jdeveloper is not allowing me to create.kindly suggest why it is protesting and how can it be acheived.
I am using Jdev 11.1.2.0
plz kindly suggest a sol.
I have seen this thread but no replys.....It may be usful for both the threads
TaskFlow Region as a Pop Up inside another TaskFlow Region
Regrads
Peter

Hi Frank,
I am looking for a solution to develop a popup as a template or component in ADF since our app uses lots of popups. I try to build own buttons, like SAVE, APPLY, and CANCEL buttons.
I have listened to many of your video and code corners. The following video shows the java controlled popup. It invokes a page fragment in the popup. The questionis : can this method used to popup a taskflow ?
http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF_Insider_Essentials/AdfFacesDialogOkCancelHandling/AdfFacesDialogOkCancelHandling.html
I have two task flows, popup-parent-taskflow.xml and popup-taskflow.xml.
The managed bean in popup-parent-taskflow.xml binds to the popup and table. The managedBean is in the Request scope
The managed bean defined in the popup-taskflow.xml can't access to the popup and table. How is the table get refreshed ?
"There is a pattern that explains how to do similar with Page Fragments, but honestly this is quite a lot of coding and doesn't allow your task flow to decoratively return values."
Could you explain this statement ? Is this example you talked about ?
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/39-taskflow-in-popup-169181.pdf
I would appreciate if you could suggest a best way to do popup for my case and provide the example for it.
Thank you !
David

Similar Messages

  • How to open a taskflow as popup

    Hi any example to open taskflow as popup window

    task flow as popup dialog in bounded task flow
    It cannot be.

  • Open taskflow in new window

    I try to open taskflow in a new explorer window (no dialog)
    For that i use i go link and try to add a URL in Destination.
    eather if i use:
    MyTask-flow that gives url:
    http://127.0.0.1:8988/CallingFormsArtifact-ViewController-context-root/faces/MyTask-flow
    or i use
    http://127.0.0.1:8988/CallingFormsArtifact-ViewController-context-root/faces/adf.task-flow?adf.tfid=MyTask-flow&adf.tfDoc=/WEB-INF/MyTask-flow.xml
    the same exception occure:
    500 Internal Server Error
    oracle.security.jazn.JAZNRuntimeException: ADFC-02006: ?? ????????????? ??? ???? ???????? ??? ??????? ??? ????????? ??????????.     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:480)     at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:583)     at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:334)     at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:942)     at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:843)     at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:658)     at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:626)     at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:417)     at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)     at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:163)     at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)     at java.lang.Thread.run(Thread.java:595)Caused by: oracle.adfinternal.controller.application.InvokeTaskFlowException: ADFC-02006: ?? ????????????? ??? ???? ???????? ??? ??????? ??? ????????? ??????????.     at oracle.adfinternal.controller.util.UrlParams.getTaskFlowInfo(UrlParams.java:133)     at oracle.adfinternal.controller.application.RemoteTaskFlowCallRequestHandler.invokeTaskFlowByUrl(RemoteTaskFlowCallRequestHandler.java:81)     at oracle.adfinternal.controller.application.RemoteTaskFlowCallRequestHandler.doCreateView(RemoteTaskFlowCallRequestHandler.java:60)     at oracle.adfinternal.controller.application.BaseRequestHandlerImpl.createView(BaseRequestHandlerImpl.java:55)     at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:90)     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:518)     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:252)     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)     at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:178)     at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)     at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilter(SharedLibraryFilter.java:135)     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)     at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:69)     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)     at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter.java:85)     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:241)     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:198)     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:141)     at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)     at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)     at oracle.security.jazn.oc4j.JAZNFilter$3.run(JAZNFilter.java:434)     at java.security.AccessController.doPrivileged(Native Method)     at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:308)     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:452)     ... 13 more

    Thanks for the reply, yet
    I tried that way also, and the URL it creates is the same
    The result is also the same:
    oracle.security.jazn.JAZNRuntimeException: ADFC-00021: ? ??? ???????? '/WEB-INF/UWApplicationTask-flow.xml#UWApplicationTask-flow' ??????? DataControlFrame ?????? ?????? ???? ?? ?????? ??????? ???? ???? null.     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:480)
    i dont have any security on my application, i just try to open a taskflow in a new window

  • Opening an HTML popup from Flash, not as tab

    Hi
    I need to open an HTML popup from Flash (using ActionScript in
    Flex 4).
    Thus far I found a solution, and it does work in Safari - a new
    and separate HTML window is popped up (with a new web page).
    private function popUpTheHtmlEditor():void {
      var url:String = "http://www.adobe.com";
      var request:URLRequest = new URLRequest(url);
      try {
        navigateToURL(request, '_blank');
      } catch (e:Error) {
        trace("Error occurred!");
    But in (my) Firefox (with my settings), when I click on the Flash
    (Flex) button, the page is being opened in a new tab.
    I need a solution which pops up the HTML page in a new/separate
    window, as far as possible regardless of the browser (and browser
    settings).
    I found an example where a popup is opened from HTML, and it opens a
    separate window (a real popup) in my Firefox:
    http://www.gtalbot.org/FirefoxSection/Popup/PopupAndFirefox.html
    -> "Open a requested popup"
    The JavaScript code seems to be:
      OpenRequestedPopup(this.href, this.target); return false;
    with this function def:
      function OpenRequestedPopup(strUrl, strTarget)
        if (WindowObjectReferenceOfRequestedPopup == null || WindowObjectReferenceOfRequestedPopup.closed)
        WindowObjectReferenceOfRequestedPopup = window.open(strUrl, strTarget, "top=" + windowTop + ",left=" + windowLeft + ",width=" + windowWidth + ",height=" + windowHeight + ",menubar,toolbar,location,resizable,scrollbars,status");
        else
        if(WindowObjectReferenceOfRequestedPopup.focus)
          WindowObjectReferenceOfRequestedPopup.focus();
    How could I call such code from ActionScript? Should this work through
    ExternalInterface? I couldn't even get this to work:
      ExternalInterface.call('alert', 'foo');
    Should I use swfobject.js for embedding the .swf in the HTML wrapper?
    Any other ideas?
    The two files are pasted below.
    Here's the compiler command I'm using:
      mxmlc -output button.swf -target-player 10.0.0 flash_to_editor.mxml
    I'm running the examples locally (as files, not over http). Would it
    help to place the files on a server?
    Tobi
    <?xml version="1.0" encoding="UTF-8"?>
    <mx:Application
      xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      horizontalAlign="center" verticalAlign="middle">
      <fx:Script>
        <![CDATA[
    import mx.controls.Alert;
    import flash.external.ExternalInterface;
    import flash.net.URLRequest;
    // This 'http://www.adobe.com' is just an example URL.
    // Works but opens tab in FF (not a separate window):
    private function popUpTheHtmlEditor():void {
      var url:String = "http://www.adobe.com";
      var request:URLRequest = new URLRequest(url);
      try {
        navigateToURL(request, '_blank');
      } catch (e:Error) {
        trace("Error occurred!");
    // Doesn't work:
    // var url:URLRequest = new URLRequest("javascript:alert('foo'); void(0);");
    // navigateToURL(url, "_self");
    // How to get this to work?
    private function popUpTheHtmlEditor():void {
      ExternalInterface.call('alert', 'foo');
    // How to get this to work?
    private function popUpTheHtmlEditor():void {
      ExternalInterface.call('launch','http://www.adobe.com');
      // Or
      // ExternalInterface.call("window.open", "http://www.adobe.com", "win", "height=200,width=300,toolbar=no,scrollbars=yes");
    // Perhaps it's necessary to try different approaches:
    // (As soon as I get two approaches to work.)
    private function popUpTheHtmlEditor():void {
      var s:String;
      if (ExternalInterface.available) {
        // Necessary? Safe?:
        // Security.allowDomain('*');
        s = ExternalInterface.call('launch','http://www.adobe.com');
      } else {
         // TODO: Then try URLRequest?
         s = "Wrapper not available";
      Alert.show(s);
        ]]>
      </fx:Script>
      <s:Panel title="One way to open the HTML editor"
      width="75%" height="75%">
        <s:Button id="button" label="Open the HTML editor"
        click="this.popUpTheHtmlEditor();"
        horizontalCenter="0" verticalCenter="0"/>
      </s:Panel>
    </mx:Application>
    <html
      xmlns="http://www.w3.org/1999/xhtml"
      xml:lang="en" lang="en">
      <head>
        <title>html_around_swf.html</title>
        <script type="text/javascript">
    function launch(url) {
      alert(url);
      //  OpenWin = this.open(url, "FOO", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width=400,height=200");
        </script>
      </head>
      <body>
        <object id="button" name="button" width="550" height="400"
        classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
          <param name="movie" value="button.swf" />
          <param name="allowScriptAccess" value="always" />
          <embed id="foo" name="button" src="button.swf" width="550" height="400"></embed>
        </object>
      </body>
    </html>

    Hi, 
    Here's a solution.
    1. Make ExternalInterface work when files are loaded as local files: 
    Go to
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l 
    In tab Global Security Settings: Edit Locations -> Add Location ->
    browse to the .swf file, add it. Make sure it's in the list (under the
    Edit Locations drop down, with a green check mark.) 
    Now open the HTML wrapper in a browser (eg Firefox). 
    Now this works (ActionScript): 
    private function popUpTheHtmlEditor():void {
      ExternalInterface.call('alert', 'foo');
    On Windows: perhaps:
    http://techjig.blogspot.com/2008/03/flash-global-security-settings-windows.html
    "In order for external interface functions to be called, you must also
    specify the folder/file where the swf file is located." 
    The above setup isn't necessary when the files are on a server. 
    Also see: 
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/external/External Interface.html#call()
    ""ExternalInterface" "
    "call() method" 
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ea6.html
    "About ExternalInterface API security in Flex" 
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf626ae-7fe8.html#WS2d b454920e96a9e51e63e3d11c0bf69084-7f31
    "Using the ExternalInterface API to access JavaScript" 
    2. Open a real popup: Example: 
    ActionScript: 
    private function popUpSomething():void {
      var editorPathOrUrl:String =
        'wrapper.html';
      var windowName:String =
        "SomeNameSeeDocs";
      var windowFeatures:String =
        "toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,width=500,height=700";
      ExternalInterface.call(
        'launch',editorPathOrUrl,windowName,windowFeatures
    JavaScript: 
    function launch(editorPathOrUrl,windowName,windowFeatures) {
      windowRef = window.open(
        editorPathOrUrl,windowName,windowFeatures
    Works in all browser I tested except Opera. 
    Tobi

  • Showing TaskFlow as PopUp in Jdev 11.1.1.5.0

    Hi,
    I am showing TaskFlow as popup and while entering popup TaskFlow,
    keeping following transaction setting
    Always Use Existing Transaction
    Share data control with calling task flow
    Create a save point on task flow entry
    On Task flow page, I have Ok and Cancel button.
    If User clicks on Cancel, I am restoring to save point and retuning from TaskFlow.
    If user clicks on Ok, i am just returning from TaskFlow.
    Every thing works fine but once in a while, I am facing HTTP 500 error on TaskFlow popup.
    I don't have enough logs also to analyze.
    If any one comes across this problem, please help me.
    Note: every time control enters to popup TaskFlow, TaskFlow get passivates.
    Thnaks...

    I got some logs and I have seen similar issue in many threads but no Solution.
    Please let me know if solution exists or SR raised for this.
    ####<Dec 16, 2011 1:46:06 PM EST> <Notice> <Stdout> <mia-slz-d01.wfs.com> <wltest2_ms1> <Timer-45> <<WLS Kernel>> <> <b215270f851cb10d:-38ad76b4:13424c2c766:-8000-00000000000daab1> <1324061166815> <BEA-000000> <oracle.jbo.PCollException: JBO-28030: Could not insert row into table PS_TXN, collection id 22,853, persistent id 1
    at oracle.jbo.PCollException.throwException(PCollException.java:36)
    at oracle.jbo.pcoll.OraclePersistManager.insert(OraclePersistManager.java:1901)
    at oracle.jbo.pcoll.PCollNode.passivateElem(PCollNode.java:564)
    at oracle.jbo.pcoll.PCollNode.passivate(PCollNode.java:688)
    at oracle.jbo.pcoll.PCollNode.passivateBranch(PCollNode.java:647)
    at oracle.jbo.pcoll.PCollection.passivate(PCollection.java:465)
    at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:294)
    at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:267)
    at oracle.jbo.server.ApplicationModuleImpl.passivateStateInternal(ApplicationModuleImpl.java:5975)
    at oracle.jbo.server.ApplicationModuleImpl.passivateState(ApplicationModuleImpl.java:5845)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:384)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8995)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4603)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.manageReferencingState(ApplicationPoolImpl.java:1489)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.finalizeResource(ApplicationPoolImpl.java:1389)
    at oracle.jbo.pool.ResourcePool.removeResourceInternal(ResourcePool.java:865)
    at oracle.jbo.pool.ResourcePool.setState(ResourcePool.java:1120)
    at oracle.jbo.pool.ResourcePool.gc(ResourcePool.java:1556)
    at oracle.jbo.pool.ResourcePool.wakeup(ResourcePool.java:890)
    at oracle.jbo.pool.ResourcePool.wakeup(ResourcePool.java:895)
    at oracle.jbo.pool.ResourcePoolMonitor.run(ResourcePoolMonitor.java:121)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)
    Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (APPS.PS_TXN_PK) violated

  • Adobe Air I cannot open up a popup browser

    I'm having a problem with adobe air. I cannot open up a popup
    browser window from clicking on a button in a adobe air program. I
    can only open up browser windows within existing browser windows or
    a new window if none is open.

    Update:
    I can get this to work:
    var request:URLRequest = new URLRequest("
    http://www.mydomain.com");
    navigateToURL(request, "_blank");
    but not this:
    var request:URLRequest = new
    URLRequest("javascript:window.open('
    http://www.mydomain.com','NameofWindow','width=800,height
    =600,top=0,left=0'); void(0);");
    navigateToURL(request);

  • Firefox opens all the popup windows closed last time

    I open Firefox. Then a window and then tabs. Now some of the sites like bank sites open popups, sometimes more than one, to let users login. Also some of the sites like Opensubtitles.org open Ad popups. So it becomes numerous pop-ups even if the browsing duration is as short as 1 hour.
    I simply click those popup windows by clicking on the X button. There's no File->Exit and neither is there a File->Exit for the parent tab unless I want to exit from the Firefox itslef.
    So, after I close final/last tab of Firefox and eventually exit, then most of the times when I reopen Firefox it opens all the popups I had opened again. Even if the last tab to be closed was entirely unrelated to any of those pop-up windows or parent tabs.

    Make that "Firefox ->Preferences -> General -> When Firefox starts: "Show my windows and tabs from last time" is not selected as this is not the default.
    Basically this setting will make Firefox start with whatever windows and tabs that were last open when a user closes Firefox by way of File ->Quit/Exit as if Firefox was never closed.

  • Open a browser popup in a new process

    Hi,
    I am opening a browser popup using window.open in javascript and that popup is running in the same process. Due to which, when i close the process, both the popup and main window are closed. My concern is to open a popup in a new process, so that killing popup's process shouldn't kill the main window's process and vice versa. How can i accomplish this. Please post a solution if anyone knows.
    Thanks in advance.
    Regards,
    Venky.

    public void showDocument(URL url)
    Replaces the Web page currently being viewed with the given URL. This method may be ignored by applet contexts that are not browsers.
    Parameters:
    url - an absolute URL giving the location of the document.
    Applet must be running in a browser for this to work. More information at this website
    http://java.sun.com/j2se/1.4.1/docs/api/

  • I am trying to use automator to open a safari popup window that will automatically log me into whatever account and I attempted to type up an applescript that utilized the "System Events" function with no avail, any ideas?

    I am trying to use automator to open a safari popup window that will automatically log me into whatever account and I attempted to type up an applescript that utilized the "System Events" function with no avail, any ideas?

    Hi
    In iMovie'11 (version 9.0.x)
    on top menu row - Apple/iMovie/File/Edit/Cut (Can vary dep. on language - in Swedish Apple/iMovie/Arkiv/Redigera/Klipp . . . )
    down Cut menu - Slow playback/Raspid Playback/Re-play in Slow Motion and onvards
    Here one can select the Pre-Set speeds
    Are you familiar with getting 'inspector' to run?
    No - but I guess that Double Click on clip/sequense or ctrl-Click on it might open it.
    Yours Bengt W

  • Open portlet as popup and communication with opener

    Hi,
    I need open portlet as popup window from another portlet. After that when user select some data (id) I need close window and then set up hidden html input field on opener portlet according to selected data (id) on popup window. I suppose it via Javascript, right?. I didnt find any example or information about it so thanks for any info about it. Sure any code would be great.
    Thanks for helping.

    Hi
    Use http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/javadoc/com/bea/portlet/StandalonePortletURL.html to generate the url (or render:standAlonePortletUrl)
    Use window.opener to reference the main window from the popped up window.
    (e.g. http://www.webreference.com/js/tutorial1/opener.html)
    regards
    deepak

  • Opening taskflow in a popup programatically

    My requirement is to open a new task flow from one task flow.
    I can do it with taskflowcall activity. I can also do in place replacement of source task flow with new task flow or can open new task flow in new dialog/window using run-as-dialog element in task flow definition.
    Using the same source task flow definition how can I do in-place replacement or open task flow iin new dialog, based on some condition.
    Scenario can be like this -
    User selects either to open new task flow in place of current task flow or to open in new dialog. Using this selection how can I open task flow as per users requirement.
    Can I add/remove run-as-dialog element in task flow definitions using some APIs?

    Hi,
    User selects either to open new task flow in place of current task flow or to open in new dialog. Using this selection how can I open task flow as per users requirement.
    Can I add/remove run-as-dialog element in task flow definitions using some APIs?
    Create two task flows call activities, one that opens as a dialog, the other one opening in place. Have both task flow activities pointing to a managed bean to get their task flow document to show (unless the task flow shown never changes, in which case it can be hard coded). Then use a router that, dependent of the user choice) launches one or the other
    Frank

  • Open and Close Popup With Javascript

    Using Apex 3.2
    I have probably done this loads of times in my old job, but do not have access to the code and today I just can't get it to work properly.
    I have opened a pop up window with javascript
    Now I need to close it and refresh the calling page, but only if it passes the validation on the popup.
    I have a hidden item on my pop up called P7_FLAG.
    I have a page process after validation that sets P7_FLAG to (only set to 1, if passes validation).
    I also have a SUBMIT button.
    So once I click my SUBMIT button the page should look at the validations, if ok, set P7_FLAG to 1, then close the popup and refresh the calling page.
    My current javascript look like this
    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    var test = $x('P7_FLAG').value;
    if(test == '1')
    window.close();
    window.opener.doSubmit('REFRESH');
    </script>On my button
    javascript:saveChanges();The problem is that I need to click the SUBMIT button twice.
    First time it sets P7_FLAG
    Second time it closes page and refreshes.
    I have probably made some basic error, but today I cannot see it.
    Cheers
    Gus
    Edited by: Gus C on May 10, 2012 12:48 AM

    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    var test = $x('P7_FLAG').value;
    if(test == '1')
    window.close();
    window.opener.doSubmit('REFRESH');
    </script>javascript does not wait for the current action to complete and then perform the next line.
    means in your function call
    doSubmit('SUBMIT');is triggered and it carry on's to next line that is
    $x('P7_FLAG').value;this will not be set because you are setting the value of P7_FLAG to 1 in plsql and trying to check in javascript, which will not work.
    what you need to do is amend your js function like below
    <script type="text/javascript">
    function saveChanges(){
    doSubmit('SUBMIT');
    </script>create a page branch to procedure and make it conditional to when P7_FLAG = 1
    and set the branch source to below
    htp.p('window.close();');
    htp.p('window.opener.doSubmit(''REFRESH'');');

  • Issue in FF v 3.6.10: I have a page which have more than 20 link, clicking on these link opens up a popup using window.showModalDialog, for the first 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open.

    Issue in FF v 3.6.10: I have a web page which have more than 20 link, clicking on each of these link opens up a pop-up using window.showModalDialog, for the first consecutive 20 popup opens up without any prob but for the 21st n more click it block the popup and do not open. This is m problem, the real user on the web page can click on more than 20 link in such a scenario it may create problem, please help

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r999
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    In Firefox 3.6 and later versions you need the Next-Generation Java™ Plug-In present in Java 6 U10 and later (Linux: libnpjp2.so; Windows: npjp2.dll).
    http://java.com/en/download/faq/firefox_newplugin.xml
    See also http://java.sun.com/javase/6/webnotes/install/jre/manual-plugin-install-linux.html

  • How can i edit Iweb published page to open as a Popup?

    I want to edit my iWeb site so that when a link is clicked it opens a different page as a popup with no other toolbars, scrollbars etc - just the image i want to show.
    I found some code online (http://www.quackit.com/html/codes/html_popup_window_code.cfm)  that does this in javascript, but i do not know where in the html file this would need to go for it to force that page to open as popup.
    I have text wrangler so i can edit and save the file in the right format again.
    I need to be able to set up various different triggers on a web page - Its a single photo image but i want to be able to open different pop-ups depending on where the viewer clicks. I tried using a blank shape (no fill, no stroke) along with an html snippet widget. This triggers the pop-up as i want, but it also places a definite empty box over the image. I need this to be invisible.  I have also read that the snippet widget is not the mpst reliable way to add code at specific places on the page.
    Hence i think the best way would be to insert code into the actual page that instructs it to open as popup.
    Please can someone advise me the best way to go about editing the code to get this result?
    thanks
    adam

    thanks for the suggestions...
    unfortunately, i don't understand the code enough to figure out what i need. The pop-ups you show are exactly right, but they are being triggered by smaller individual thumbnails.
    That is not what i want - i need to have various trigger points for different pop-ups, placed at diferent places on a larger single image.
    Imagine a photo of a crowd - each person when clicked on would open a popup showing a specific image. Its not a regularly laid out grid - and the trigger points need to be manually positioned.
    I have created a blank page with the same dimensions as the graphic it contains, then published this from iweb. When i link to this it opens the page as a docked page, with all the navigation bars, scrolling bars etc, as well as a large area of empty white page below the image.
    My question is really how do i edit the code of the graphic page so that it only pops open the graphic when its accessed. Surely the relevant code for that would be embedded in the page itself, and not the link that connected to it?
    thanks for your patience!
    adam

  • Mail: CTRL Click popup gone (Copy, Paste, Open in. etc) popup no longer working in Yosemite Mail.

    Hi Folks,
    Current model Macbook Air, Up-to-date Yosemite. In Mail, the Control Click function no longer works on attachments. I've been using that as an option all the time, and today when I went to CTRL click on a file (PDF) to open it a different application, I realized that you no longer can even get a popup to appear. I need to open a pdf in Adobe Acrobat Pro instead of in preview. While I can certainly use workarounds, this is annoying. Is this intentional or a glitch ?.

    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Mail Feedback
    Or you can use your Apple ID to register with this site and go the Apple BugReporter. Supposedly you will get an answer if you submit feedback.
    Feedback via Apple Developer

Maybe you are looking for

  • Payment Method while manually entering Receipt

    Hi, I am not getting any payment method in the LOV for Payment Method while manually entering the receipt information. Receipt class and Payment method is defined in the system. Do I need to do any other setting so that the defined Payment method wil

  • Step by step method

    Hi, Can anyone please explain me one real time(A to A) scenario step-by-step related to material master. Thanks in advance.

  • My ipod freeze every time i plug in the computer i need help plz

    my ipod freeze every time i plug on my computer i dont know how to reset and delete all songs plz help u.u

  • Edit In opens PS CC back up copy???

    When using Edit In function form Lightroom (latest) the backup version of PS CC on an external is being opened rather than the app on Mac HD....... Why would this happen??

  • 3rd party call log software questions

    Does anyone know of a Centro-compatible 3rd party call log manager that lets me delete/purge multiple entries at once, ie, something like each entry has a checkbox and if it's checked, you can select delete (or purge) and just those entries get remov