dvt:hierarchyViewer make error popup close without clicking ok button

Hi All,
I am using Jdev 11.1.1.3.0
In my page I have 2 region, one contains a form which built from a EO Based VO and a commit button. Another region have a <dvt:hierarchyViewer> which is built from another VO to display some hierarchy diagram.
In my page user can edit some information and commit the transaction by clicking the commit button.
Whenever there is some validation fail in the model layer for the information that user edit, I will use below code:
throw new JboException(error_message);
which ADF will handle it as a popup with the error message and display on the UI.
So now the issue is, whenever I click commit button, region that contains <dvt:hierarchyViewer> will shows as "Fetching Data...", and if there is anything failed for this transaction, error popup will appear. However, the popup will not stay and it will disappear even without user clicking ok button whenever <dvt:hierarchyViewer> finish fetching data and display the content. So this is a problem because error message will only display 1 second then it will disappear, user cannot even see what is the error.
If I set render property of <dvt:hierarchyViewer> to be false, now if there is error, the popup will stay there until user click ok button to close it. So the issue definitely related to <dvt:hierarchyViewer>.
My question will be why rendering <dvt:hierarchyViewer> will impact the error popup and make it disappear? And based on my observation, the issue only happen on IE but not on firefox.
Hope anyone can help me with this issue.
Thanks.
Pei
Edited by: user10867484 on Jun 16, 2011 5:25 PM

Hi,
So the issue definitely related to <dvt:hierarchyViewer>
Your observation is correct, the conclusion you take out of this not. The hierarchy viewer fetches data asynchronously and at the end refreshes the component, which takes the focus out of the dialog into the page. The default behavior of the popup component is to dismiss when the focus is lost. The options to try and handle this are
1. make sure the commit button has "partialSubmit=true" set so it does not refresh the page and thus the hierarchy viewer as a whole
2. configure the af:messages component to show error messages inline and not as a popup
I would go and try 1 first
Frank

Similar Messages

  • How to automatically submit a form without clicking the button?

    Hi,
    Is there any way to submit a form without clicking the button? Any idea is greatly appreciated.
    -Joey

    well if you are filling some textfields you can do a onchange call so you can submit the form, or use any of the existing functions to do that.

  • Af:popUp close when click outside popup area, Jdev 12c

    Hi! I had a similar post a long time ago and it became archived due to lack of time from my part, it was never answered
    the problem is:
    1)Popup without dialog tag: closes when a click is made outside the popup area.
    2)Popup with a dialog tag:  doesn't close when clicked outside the popup area
    I'd like to be able to let the user close the popup(with dialog) when he/she clicks outside the popup area.
    Thanks!

    User, which jdev version do you use?
    Why don't you use the popup without the dialog then?
    Can't be too hard to put some buttons ontp the popup.
    Timo

  • Auto Create lines without clicking configurator button

    Hi All,
    Is there anyway to create related items automatically if a model item is entered in sales order form with out clicking configurator button.
    Thanks
    Kranthi

    Hello Kranthi,
    Once you book the order, the order line should go to “Booked” status in case of an ATO environment. If you will do a Progress Order Place Cursor on the configured item line.
    Actions -> Progress Order -> Ok. Select Create Supply Order-Eligible Press Ok.
    This will Create the star part number (Configuration Item), if your BOM, routings have already been defined for the model part.
    Regards,
    Jyoti Ranjan Mohanty

  • Playing multiple movies without clicking home button

    I want to create a piece of art containing multiple buttons. For example, an illustration of a field, where, if the user were to click on a bush, a rabbit's head would pop out briefly, then disappear behind the bush. If a lilly pad were clicked, a frog would pop his head out of water and again disappear. How can I allow the user to randomly click on the various buttons, triggering the associated movies to play, without necessitating that a "home" button be hit after each sequence?

    I can get each button to play the corresponding movie. After the movie plays, however, I would like the movie to automaticaly revert to the home state.
    In this way, the user could randomly click around on the image, triggering various movies when the appropriate buttons are hit. I have seen this done many times- I remember an an image of a hanunted house, for example. When the user clicked on a window, it would open and a ghost would look out. Without having to then click a home button, a further click on the door of the house would cause the door to open, and a mummy to lean out. I'm trying to avodi having to repeatedly hit a "home" button before additional button hits could trigger additional movie clips.
    I should probably mention that I've had to insert a stop command at the end of each movie clip, otherwise all the animations play sequentially, rather than one at a time, when a button is clicked. How do I tell Flash to procede from this stop command, at the end of each movie, back to home, so that further buttons can be pushed?
    Sorry if I've misunderstood your posting- I've been animating for several years on Flash, but have only started several days ago to use Actionscript 3 for interactivity, and am a complete novice, in that regard.

  • Error when attempting to click "Solved" button in forum

    I have noted other users commenting that clicking on the Solved button produces an error. The post is not marked as Solved (with the Green Star) and points are not award. Here are three examples.
    http://discussions.apple.com/message.jspa?messageID=5354984
    http://discussions.apple.com/message.jspa?messageID=5354560
    http://discussions.apple.com/message.jspa?messageID=5352797
    I think there was one more, but I could not find the topic again. This seemed to be happening during the last 24 hours (09/15/07). I don't know if this is isolated to my user account, or if others are also affected. I'm not concerned too much about the "points" but thought it should be reported.

    Hi Kenichi!
    Here are two other previously posted Topics, in Feedback About Discussions, where this issue has also been reported.
    ERROR when hitting the "helpful" or "solved" buttons
    Error when trying to mark a reply as "solved"
    ali b

  • Under the tools tab and configuring options after it will not close by clicking 'OK' button but have to x out. thus nothing is saved

    Hello, using firefox 6 . windows 7 . under the tools button click on options to try and configure after changing to my desired settings in this case it's my home page it allows me to apply but then it refuses to close the window by using the OK button and have to close the window by clicking on the 'X' out thus not saving my changes. HELP please?

    thankyou. THANK you.
    thankyouthankyouthankyou!
    sorry about no screenie but the first option worked (at least so far!)
    THANKYOUTHANKYOUTHANKYOUTHANKYOUTHANKYOUTHANKYOUTHANKYOUTHANKYOU

  • How to call a popup window when click save button

    Hi, expert
    the scenario is :
    we we create a order , we click the 'save' button,
    then there will show a popup window,
    in the window, there are buttons like 'confirm' , 'cancel' and also show some info about the order.
    how can i do that.
    Thanks
    Oliver.

    Hi ,
    Try to redefine the method and use the IV_TEXT parameter in the CREATE_POPUP_2_CONFIRM method (usaully comes from the Component Controller ).
    Regards
    Vikranth

  • Exporting to PDF without clicking any button

    Hi,
    Is there a way we can export the output of the WEB report to PDF without having to hit a button "Export to PDF"?
    The moment I open the report, the contents should get exported to PDF in a new window which I can print later.
    Please share your ideas.
    Regards,
    Shameem

    Hi
    You can try on Information Broadcasting.
    Regards,
    Chama.

  • Make sound play when I click on button in DWCS3

    Sorry about this nube question. I appreciate the patience of
    the person who helps me. I just want to link a short sound to a
    text item in DW. ( I don't want it to play in a separate window).
    Thanks!

    Go to  > App store > Store > and click on Sign in.

  • [Solved] Notify-osd-customizable activate "bubble-close-on-click"

    Hello again. I installed notify-osd-customizable in Xfce and it works fine. But, I can't find a way to close the notification bubble when clicking it.
    I don't like this, so I'm using xfce-notifyd right now, which have that option available for default.
    I know in Ubuntu you can do this, because I read about it and saw images about it. But, the Arch linux build of Notify-osd-customizable doesn't have this option available.
    Here are two screenshots of the notify-osd-customizable graphical configuration:
    Ubuntu version:
    http://i.stack.imgur.com/4WJZv.png
    Arch Linux version (not the original, but looks exactly like this):
    http://i.imgur.com/uZZK73S.png?1
    As you can see, Ubuntu's version does have some more options available, probably because they have a newer version of the same program. Between those options it is "Close bubble on click"
    I tried configuring this program, manually, via text file, but it didn't work. What I did was including this line at the end of the configuration file:
    bubble-close-on-click = 1
    and also tried with:
    bubble-close-on-click = 0
    But had no luck.
    I also tried enabling composition, but it didn't work either.
    Do you know what am I doing wrong? or if there's a solution to this?
    I have read the commentaries in the AUR page of notify-osd-customizable and it seems someone could make it work. https://aur.archlinux.org/packages/noti … tomizable/
    Regards
    Solution:
    I was editing the wrong configuration file. So, to make the bubbles close on click you have to edit /home/joaco/notify-osd and add this line at the end:
    bubble-close-on-click = 1
    That's all, but it only works if composite is activated.
    Anyway, I didn't stay with notify-osd, because it doesn't stack notifications.
    Last edited by joacoej (2015-05-17 04:37:53)

    jasonwryan wrote:
    joacoej wrote:
    jasonwryan wrote:Stop posting oversized images: read the Forum Etiquette and only post thumbnails https://wiki.archlinux.org/index.php/Fo … s_and_code
    Ok, which is the wright proportion then?
    It's explicitly stated in the link I posted...
    That proportion (250x250) is too little, noone will read anything smaller than 640x356, because it gets distorted. That's the smalller I can resize them, without them being unreadable and they don't occupy a lot of space, so I don't see the problem.
    jasonwryan wrote:
    PD: I think the rezising should be done automatically like in any webpage. You can't expect everyone to download an image from the internet just to resize it an upload it again.
    Like automatically in what web page? Use `convert...`
    Like disqus, facebook, etc, you can upload an image with a big resolution and they just convert it
    Last edited by joacoej (2015-05-14 01:49:35)

  • How can I make the popup with empty fileds and create new record?

    I would like to use a popup to create new record.
    I created a af:popup by drag and drop a VO from data control to jsff. then, I created a button and place a af:showPopupBehavior. I was able to popup window by click the button.
    however, the window filled with the information from the 1st record. and when I select a record in table and click popup, the popup is filled with that record.
    How can I make the popup with empty fileds and create new record by saving the popup?
    Thanks

    You can have edit and new buttons, in the PopupFetchEvent identify button source (using popupFetchEvent.getLaunchSourceClientId()) if new button clicked clear the binding using below code.
    If you want to see empty fields, in the popup PopupFetchEvent clear the input component bindings.
    resetBindingValue("#{bindings.<componentid>.inputValue}", null);
        public static void resetBindingValue(String expression, Object newValue) {
            FacesContext ctx = FacesContext.getCurrentInstance();
            Application app = ctx.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = ctx.getELContext();
            ValueExpression valueExp = elFactory.createValueExpression(elContext,expression,Object.class);
            Class bindClass = valueExp.getType(elContext);
            valueExp.setValue(elContext,newValue);
        }

  • How to place popup menu on clicking a Component

    Hi everybody.
    I have a swing application where I have JFrame and so many components in that. I want to open Popup menu on clicking a button. The menu should have three menu items into that. It looks very simple but I am not sure how should I do that.
    If possible, try to explain it with small piece of code.
    Thanks in advance.

    yourJbutton.addMouseListener(new MouseAdapter() { //Listen for mouse events
      public void mousePressed(MouseEvent e) {
        if (SwingUtilities.isRightMouseButton(e) == true && e.isMetaDown() == true) {
          JPopupMenu popup = new JPopupMenu();
          JMenuItem mItem = new JMenuItem("Something");
          mItem.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              // do your thing
          popup.add(mItem);
          popup.addSeparator();
          mItem = new JMenuItem("Close Popup");
          mItem.addActionListener(new ActionListener() {public void actionPerformed(ActionEvent e) {}});
          popup.add(mItem);
          popup.show(e.getComponent(), e.getX(), e.getY());
    });

  • Pop up on clicking a button

    Hi All,
    Problem : There is a custom screen in a CRM Transaction. In the screen there is a table which displays data.and there are a few buttons which provides a few functionalities like delete records, display attachments etc. The functionality is provided in a CASE statement. The problem now is I need to provide a popup as soon as the user clicks on a button. this popup will display a list from a table.
    I am not able give a popup when i click the button. this will be something like when i click a variant button on a report screen it displaying the list of variants and one of the variants being selected. How do i provide this funtionality it ?
    Thanks,
    Amit

    hi,
    chk a sample code.
    report zsha_0001.
    type-pools: slis.
    data: begin of iku occurs 0,
          check type c,
          kunnr type kna1-kunnr,
          name1 type kna1-name1,
          end of iku.
    data: ifldc type slis_t_fieldcat_alv .
    data: xfldc type slis_fieldcat_alv .
    select kunnr name1 into corresponding fields of table iku
            from kna1 up to 10 rows.
    clear xfldc.
    xfldc-reptext_ddic    = 'Customer'.
    xfldc-fieldname  = 'KUNNR'.
    xfldc-tabname   = 'IKU'.
    xfldc-outputlen  = '12'.
    append xfldc to ifldc.
    clear xfldc.
    xfldc-reptext_ddic    = 'Customer Name'.
    xfldc-fieldname  = 'NAME1'.
    xfldc-tabname   = 'IKU'.
    xfldc-outputlen  = '30'.
    append xfldc to ifldc.
    call function 'REUSE_ALV_POPUP_TO_SELECT'
         exporting
              I_TITLE  = 'This is the message here'
    *          i_checkbox_fieldname = 'CHECK'
              i_tabname            = 'IKU'
              it_fieldcat          = ifldc
         tables
              t_outtab             = iku
         exceptions
              program_error        = 1
              others               = 2.
    check sy-subrc  = 0.
    **********anothe sampel code**
    CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
    EXPORTING ENDPOS_COL = 41
    ENDPOS_ROW = 10
    STARTPOS_COL = 1
    STARTPOS_ROW = 1
    TITLETEXT = TEXT-202
    IMPORTING CHOISE = SEL_ROW
    TABLES VALUETAB = ITAB
    EXCEPTIONS OTHERS = 99.
    IF SY-SUBRC EQ 0 AND SEL_ROW > 0.
    READ TABLE ITAB INDEX SEL_ROW.
    REF_NAME = ITAB-TABNAME.
    ELSE.
    REF_NAME = SPACE.
    ENDIF.
    Regards,
    Anver
    <b><i>if hlped pls mark points</i></b>

  • Error after close popup with swfloader

    Hi all, hope some one could help me with this i get this
    error ( Error: Unable to load '' ) each time after i close a popup
    with a swfloader the error popsup when i click on the datagrid
    *****************************main mxml
    private function ShowPano():void
    var SWFLoaderInstance:Panoramica2 =
    Panoramica2(PopUpManager.createPopUp(this,Panoramica2,true));//
    instantiate and show the title window
    PopUpManager.centerPopUp(SWFLoaderInstance);
    SWFLoaderInstance.mainAppPano = this //Reference to the main
    app
    scope
    *******************************this is the mxml Panoramica2
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="doInt()"
    cornerRadius="10" width="600" height="450">
    <mx:Script><![CDATA[
    import mx.controls.PopUpMenuButton;
    import mx.managers.PopUpManager;
    import mx.collections.ArrayCollection;
    import mx.controls.Button;
    [Bindable]public var mainAppPano:Object = null;
    //called by the close event raised byclicking the close
    button
    private function closeWindow():void
    PopUpManager.removePopUp(this);
    }//closeWindow
    private function doInt():void
    PopUpManager.centerPopUp(this);
    ]]>
    </mx:Script>
    <mx:TitleWindow layout="absolute" right="10" left="10"
    showCloseButton="true"
    close="closeWindow()" top="10" bottom="10">
    <mx:SWFLoader
    source="{mainAppPano.datagrid.selectedItem.pano..src}"
    scaleContent="false"
    horizontalCenter="0" verticalCenter="0"/>
    </mx:TitleWindow>
    </mx:Canvas>
    ********************************xml structure
    <catalog>
    <libro>
    <name><![CDATA[<b>Biblioteca Central
    </b> ]]></name>
    <desc><![CDATA[Se inauguró el 20 de noviembre
    de 1978 ]]></desc>
    <imagen>FOTOS/est/Biblioteca Central Manuel Bartlett
    Bautista.jpeg</
    imagen>
    <pano nombrePano="Biblioteca Central Bautista">
    <src>FOTOS/Panoramicas/PanoZoom642007.swf</src>
    </pano>
    <ico>BOTONES/gifs/video.gif</ico>
    <video nombreVid="Biblioteca Manuel Bartlet">
    <src>VIDEOS/Biblioteca Manuel Bartlet.flv</src>
    </video>
    <audio/>
    <pie>Biblioteca Central Manuel Bartlett
    Bautista</pie>
    </libro>
    </catalog>

    <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'');');

Maybe you are looking for

  • Unable to create a user in Windows AD

    Hi All, Firstly, I tried creating a user("newUserName") with Windows AD authentication, Failed. Below is the Error Message Update Error: There was an error while writing data back to the server: Creation of the user newUserName cannot complete becaus

  • Flat file (BDC)

    Hi friends........ now i want to upload the data from flat file  through recording method  to  "MMO1" tranction now how can i anlyze the data from flate file this data is related for particular field

  • I cannot control volume using keypad or computer can anyone help me?

    Could anyone help me with my problem of not being able to control the volume using the key pad or the computer?

  • Repeat syncing of previously synced items

    I'm using AppleTV 2.0 with the 160 gig model. Have 95 gigs of free space, and all selected movies, music, and photos are completely synced. Have no podcasts or tv shows, etc. Using Custom Sync, there is an annoying tendency for ATV to re-sync items w

  • FOP PDF Printing error

    I just started working with APEX last week, but I noticed that if I try to print a PDF SQL report that contains a SQL function ie. COUNT() or with a variable, I receive the "not a supported file type" error. Basic SQL reports print to PDF just fine.