How to stop a query showing a popup when an error occurs?

Hello

Suppose that a user click on "New folder" and immediately clicks on "Show détail Popup" button prior to fill all the required fields in the records.
What is happening is that a box of exception will be shown on the screen, asking the user to fill in the mandatory fields.
However, it IS NOT stop the detail popup to display on the screen as well as the exception.
Of course, I can set the property of the button to avoid the user to click on the Popup of detail, but sometimes it's not so easy, and I would have preferred a more general solution.

Is it possible to say with some components in the .jspx Hey, "If an exception occurs here, do not display the context menu:
<af:commandToolbarButton id="ctb2" icon=" " partialSubmit="true" text="Show Detail Popup"rendered="true">
         <af:showPopupBehavior align="endBefore" popupId="::p3" triggerType="click"/>  // this should only be triggered if there are no previous errors
</af:commandToolbarButton>

Hello

I suggest that you change the launch of popup to use the tag showPopupBehavior to a solution based on Java that call you through the listener to action 'commandToolbarButton '.

RichPopup popup = ... get handle to popup instance ...i

f(my condition is met){

  RichPopup.PopupHints hints = new RichPopup.PopupHints();
  //set alignment hint options as explained here: http://jdevadf.oracle.com/adf-richclient-demo/docs/apidocs/oracle/adf/view/rich/component/rich/RichPopup.html
  hints.add(RichPopup.PopupHints.HINT_ALIGN_ID , ... the id ...)
  hints.add(RichPopup.PopupHints.HINT_ALIGN, RichPopup.PopupHints.AlignTypes.ALIGN_END_BEFORE);
  popup.show(hints)
}

This also fixes another bug in your implementation, which is that the popup is open when the mouse is clicked and enter a button on the toolbar button

Frank

Tags: Java

Similar Questions

  • How to stop the menu showing "export pdf, create pdf, edit pdf, comment" etc

    How to stop the menu showing "export pdf, create pdf, edit pdf, comment" etc. which always appear on the right side of the screen every time I open a pdf file?  We do not pay for any of these functions and may not use it.  The menu takes a good amount of screen and is quite annoying to have to hide whenever I open a pdf file.

    Hi tonyc34311488,

    You can disable the tool of the right pane in the latest version of Adobe Acrobat Reader DC, please refer to this note of release hide the tools Panel in Acrobat and Acrobat Reader DC at all times.

    Kind regards

    Nicos

  • How to stop the red symbols to appear when I use the question mark, the apostrophe and slash keys. This only happens in my e-mail program.

    How to stop the red symbol to appear when I use the key question mark in my e-mail program.

    HI Julie Delany.

    1. for how long are you facing this problem?

    2. is there any changes made prior to this issue?

    3. may I know what mail client do you use?

    Disable the function key (lock) and then check

  • How to enable/disable preferably: "Show Start Workspace when no documents are open" via the script?

    Hello, does anyone know how to disable the item 'show 'Start' workspace when no documents are open"in the General preferences (11.3 InDesign (version 2015.3) via script or command?):

    screenshot1.png

    I'm about to deploy several other parameters with CC2015 via script .jsx in the startup scripts folder; a parameter I did was turn off the frame of the Application (app.generalPreferences.useApplicationFrame = false ;)

    I thought that this setting would hide the workspace of starting, but when the startup script runs this command, instead, I see more buggy behavior, a random window appears with the news of the workspace of departure, and then InDesign freezes completely.

    See attached screenshot3.

    Screen Shot 2016-04-13 at 3.39.42 PM.png

    I have deploy a default file, this setting but really tried to get away from that and would like to find a way to disable this check box with a command or a script...  I searched around the object model and cannot find it.

    Much obliged for all help!

    app.generalPreferences.showStartWorkspace

  • How to save the slide show settings so when I press on Ctrl + enter only what I want?

    How to save the slide show settings so when I press on Ctrl + enter only what I want?

    huh?

    R

    I tested what you gave me there Rob. On my Mac, I have two monitors:

    -Blacken / display slide show on a monitor (the primary monitor, if I move LR in my secondary follow-up, the slide show is still on the first, but the second still works normal with LR just sitting there).

    -If I turn off slide durration I manually advance the slides with the right arrow.

    -I don't have 'Lightroom' (or with my settings current all) text on the screen.

    -Does not repeat itself.

    My Windows machine is not two monitors, but the others work properly...

    In other words, until I thought about it differently. As we seek to change the slideshow settings, I was naturally in the slideshow module. But I then remembered that the interest of the Impromtu Slideshow is that you can view the slide show playback from any module. Once I went back to the library and click Command / Ctrl + Enter, then I saw exactly what you're talking about. Both monitors are blackened, duration of the slide is ignored, etc.

    You know why? As the Impromptu slideshow uses one of the models outside the slideshow Module. Which one? Well, by default +, of course. How do change you that? Right-click (Cmde) slideshow model you prefer to use and select «Use for Impromptu slide show»

  • How to stop a 3D of resizing text when I resize canvas?

    When I resize my 3d text canvas resizes also.

    How to stop the 3d of resizing text when the canvas is resized?

    Thank you

    Bring out the crop tool and then pull one or more sides and commit the harvest.

    To stretch the canvas on all sides press the alt (option) key and pull on one of the corner handles.

    The downside is that it is not as easy to extend a certain amount.

    before:

    right of the canvas expanded:

    expanded on all sides:

  • Show the popup when the selection is made on SelectOneChoice

    Hello genius!
    I'm back with another question. = D
    With the help of Jdeveloper 11 g Release 1.

    I'm showing a popup when a value is selected on a selectOneChoice component. I tried to use showPopupBehavior, but it looks like you can use that on a selectOneChoice... it works of course if I have a button, but I want to get rid of the button and just show popup when a selection is made on the selectOneChoice.

    Suggestions, ideas?

    Hello

    (1) set autoSubmit = true for the SelectOneChoice element, then create a method of valueChangeListener for the selectOneChoice.
    (2) in the valueChangeListener method, the popup can be demonstrated using the examples
    http://www.adftips.com/2010/10/ADF-UI-popuputil-class-to-show-or-hide.html

    Thank you
    Nini

  • When I insert my apple ID for FaceTime then show these words (and n error occurred during results. Try again)

    Dear I have a problem in my FaceTime for the e-mail address, of FaceTime also work on cell phone, when I insert my apple for FaceTime ID then show these words (and n error occurred during results. (Try again). Please help me and tell me what is a problem. Thank you

    < re-titled by host >

    See if it might help - If you get an error when you try to activate FaceTime - Apple Support or iMessage

  • How to stop the query takes too long

    Is there a way to tell oracle to stop a query that takes too long to run?

    I'm trying to end a way to prevent some users from running any querys that takes more than 2 minutes... any help?

    I use 10g

    Thank you!

    Hello

    You can create a profile... and limit...

    CREATE a PROFILE prof_low LIMIT
    CPU_PER_CALL 3000 (about 30 seconds)
    PRIVATE_SGA 500K
    LOGICAL_READS_PER_CALL 1000;

    ALTER USER myuser PROFILE prof_low;

    Concerning
    Joao Oliveira

  • BlackBerry 10 how to stop the expansion of the screen when I wake up in the new os update

    When I wake my Z10 screen develops or grows so I have to squeeze to fit the entire screen. Very boring ideas of how to stop it?

    Hi pgaffney,

    Please see the following forum post for a resolution of this problem.

    Please go into settings > accessibility and make sure that the "magnify" mode.

  • How to stop history iphone showing on multiple phones?

    Only after obtaining iOS9 (currently both iOS 9.3.1 phones) did find out about the 'great' feature of iOS8 that makes my phone history (and sometimes text messages) between my iPhone5 and iPhone6s my wife; and prevents me from using FaceTime and iMessage while that connected to iCloud.  We share the same account Apple ID and iCloud.  Let me preface this and make it very clear, I don't want to get a separate Apple ID or an iCloud account separate b/c in the past at least, we could share photos, calendars, etc. automatically between phones, we pay for an iCloud account and need two day I will also understand how to get once more my iPhoto on my Mac flow to really share pictures with our iPhones.    And, NO, I don't want to not go through the steps of 'push' or 'sharing' of photos to choose photos, send invite, accept, repeat whenever I have new pictures I want to share between my phone and my wife.  It is enough that iPhoto on my Mac is no longer download photos in photostream badly (or unfortunately), but this is another can of worms, I turn w / in another post.

    Apple technical support told me that I have two options: 1. get my Apple ID and somehow still connect to the existing iCloud account, and I would use the new Apple ID when I connect to FaceTime and iMessage for allowing me to use FaceTime and iMessage on my phone and do not receive the history of my wife's phone calls. 2. on my phone off iCloud sign, sign out of FaceTime and log iMessage so that I don't get my wife story iPhone and vice versa.  Way to go Apple!

    And before the obnoxious ask, Yes, on both phones we have disabled transfer; on both phones, we don't just list the phone number for that particular phone for iMessage (send and receive), but below the selected phone number e-mail address for the AppleID is also listed but w / 'active' not next to the email address we cannot erase or delete the email address from a phone without getting a warning "is no longer can receive iMessage to the 'xyz.net" on all devices "-we have an iPad Mini that my wife sometimes used for FaceTime, so we have to be able to use the email address on this device (the mini has currently FaceTime or iMessage selected or put in operation and only uses the AppleID address e-mail to join to the); FaceTime - I turned it off on my phone (so I can't use FaceTime); Families lists only members enamel of the AppleID and no other e-mail address or by telephone etc are listed (I still don't know how the family share works except it is somehow w / 'purchases'); iCloud unit is running (on both phones I think)

    I got w / Apple software that's supposed to do 'just' and not work.  Every iOS update removes, modifies or installs a limitation or feature that live until I had in place (and updated change settings I need to look after that things are twisted). The "Apple way" isn't often the 'client' way these days.

    Someone at - there a way for me to keep using the same Apple account ID and iCloud on phones separate without obtaining the history of each shared phone calls between phones?

    STOP sharing an iCloud account. They are NOT intended to share. If you insist to do, then you will have to face the consequences.

  • How to stop the slide show to start automatically on the desktop

    On my Windows 7, my graphics card is NVIDIA GeForce 310. Within the last week, with the inactive computer on the desktop, all of a sudden a slideshow will begin watch the images located in the directory "my images". I've never set up something like this. Desktop/Customize, I have a slide show of some of the landscapes on the Aero themes. I have only 5 of these verified and they continue to change the blades at 5 minute intervals. However, this unwanted 'My images' slideshow takes over and begins to play. How can I prevent that from happening. Thank you

    I forgot to mention that when I open the NVIDIA card (that I'm here and I never went forward), everything is not checked.

    I think I can find the answer, but I don't know to see you for a few days if the problem still exists. When I went to customize, I found that there are 2 themes, one save and the other unregistered. By clicking on one of them, the drop-down arrow showed a directory called "Image library" which, once opened was the "My pictures" directory that had the same pictures that have been popping up. In addition, everyone had a check mark on it. I clicked on 'Clear all' / register and liquidated. Then I went to the theme and deleted. At least for a day, I have no pop ups that occur.

    There is always a strange thing is happening. When I deleted the theme which was the directory of the images as a choice library, the only theme on the left on the screen was a "unsaved theme".  I couldn't delete it. It seems to be OK since the only slide show which continues to work is that I chose the default categories with 6 audited slides. However, if I click on the 'wallpaper' in the lower left corner of the screen, the screen opens showing all categories with my slides selected audited. At the top of the page, there is a drop-down list "image location". These are several places, including "photo library". When I clicked on it, once again, 'My pictures' folder open and all images have a checkmark on them again. I do not understand why they have been checked since I did a 'clear all' earlier and saved. I don't think that having checked them are bad something, but I don't understand why they are checked when I've previously saved in a State as non-verified. This is another example of why Windows 7 is so bad. All should be disabled until the user decides what he or she wants.
  • How to stop the query url

    How I want to navigate url... because it loop several times

    I suspect that the code you show processes repeatedly the navigateToURL command.  If you intend only to function once then you will need to build in some kind of control for this.  What I see, that you can maybe just use everything that 'variable' is if it's true, until the code treats the first time...

    If (a & ((sceneWidth-(r.width + r.x) * scaleFactor) > = 50) & ((r.y*scaleFactor) > = 150)) {}

  • How to stop FF to show police hurt in some Web sites?

    Hello. I had this problem for some time and I finally decided to try to do something...

    What happens is, the police text / on some sites I visit is really hard to read, and given that the same pages look good in Solution Explorer, it seems that FF is somehow entering and using the wrong font.

    I use FF17 on Win XP SP3, but I've been seeing this problem on previous versions of FF as well.

    I'll post a few screen grabs but I don't see how to do this? Here is a site where all the text looks bad - buttons, captions, the text on the right... http://fuckyeahcharacterdevelopment.Tumblr.com/post/28177782962/the-significance-of-plot-without-conflict

    You close and restart Firefox after enabling / disabling the hardware acceleration setting?

    What happens if you select the police Calibri as default font for a test?

    Does make a difference?

    What do you get if you temporarily remove the Calibri font in the fonts folder?

    If ff is closely spaced so that means usually a font that supports ligatures is used.

  • Add an account for my niece how to stop my shortcuts showing on his account?

    How can I remove the shortcuts from another account, as I did for someone. i: e incredimail, games, ect

    easier to say that how do I have move my own desk top/menu start and how to make one for my car?

    You navigate (in WIndows Explorer / workstation) to 'C:\Documents and Settings\All Users\Bureau' or 'C:\Documents and Settings\All Users\Menu Menu' and look for ones you do not want to see all the users.  Nothing in these files all users will see.  All users is a folder that is aptly named.

    Once you have located a folder shortcut / you want all users to see all users - in the subfolder that you're going to CUT that (highlight and press CTRL + X, or right-click on it and choose cut) and then search for YOUR user specific ("C:\Documents and Settings\") folder and in the appropriate subfolder (desktop or the Start Menu) and then PASTE the file/folder it (CTRL +) V or right click and choose Paste.)

    You could set up two windows--one with the stuff of all USERS and the other with your tips and drag & drop too.  Move, not copy.

Maybe you are looking for