How to disable button behind <p:selectOneMenu> overlay - primefaces

I have an upload area using p:fileupload with 3 buttons, Add Files, Upload and Cancel. Just above this upload area, I have a p:selectOneMenu, and when the user click on the list, the dropbox menu appears, obscuring part of the 'Add Files' button. If the user then happens to select an item that is in the area of the 'Add Files' button behind it, the window pop up letting them select a file to Add, as if the user actually presses the 'Add Files' button, and not select the item from the drop down list. Is there a way I can disable these fileupload buttons when the dropdown menu is displayed in front of it ? Thanks. Primefaces 3.5.
Can anyone please help ?

I fixed my problem by creating an overlay div and hiding the background div if the event is destined for the selectonemenu.

Related

Button shows which one is picked (Constant Color) - PowerBI

The layout of my page has 6 tables and three buttons. Clicking on any of the buttons will change which table is shown on the main page, I did this through bookmarking. Now my question is, is there a way to have the button I click change to a certain color. To show / indicate which button is currently pressed? Or is there a dax function that could help with this as well. I know you can do the two-button thing one which is default and the other which is press button. But that is only for pressing and it reverts back to the same color after pressing. Or have the button bookmark to an identical page with a switch color icon. But that just leads to a lot of redundant work. I want it to where it stays the color until another button is pressed then that button changes color as its now the one picked.
There might be a simple solution but through google might have overlooked the answer.
Overlay a button with a lighter/darker color and include this in the bookmark that is activated by clicking the original button, so it will look like it's gone a dark/lighter shade.
Link closing the bookmark to the new overlay version of the button since it will be obscured by the overlay.

modal window to open when icon is clicked

I have a couple of form definitions in my main HTML file.
I would like to display these forms in a modal window, when the user performs certain action, such as click on an icon.
I have followed an article on how to do it for links (hrefs). But now my requirement is to get the same working for clicking on an icon.
Thank you,
Harriet
The answer is to write a java function, that will explicitly set the location of the window to where you want the url to point - example:
function openPreferences() {
window.location = '#openPreferences';
}
I think the most simple solution would be to create a LinkBlock Element and set the Background to the Icon's Image, which will allow you to turn it into a Link, thus further allowing you to open your Modal Window with it.. Simply create your Modal as Display None, and upon clicking the LinkBlock (with your Icon as the Background), make it change the Modal property to Display Block, etc.

SSRS - adding button to SSRS toolbar

is it possible to add a button to the SSRS toolbar?
Currently on the toolbar you see export, the refresh and the print button. I would like to add a button that will link to a new page.
Is this possible?
There is no method to add your own buttons to the toolbar itself. You can, however, enable the Page Navigation buttons that allow the user to go back/forward or jump to a specific page.

popup in Chrome browser action only if click on down arrow on right side of the icon

I am developing a Chrome extension with browser action. I want to make some action on clicking on browser action icon (it is easy, not a problem), and show popup if user clicks on down arrow at the right side of the icon (that is a problem). So, we will receive a functionality similar to the firefox toolbarbutton from XUL. Is it possible to do such thing with Google Chrome?
Just want to make button, like that:
button
If it is pressed on the main part - it will do something, if on the right "drop-down" part - it will show quick settings page.
But I see only single button possibility.
The entire browserAction button works as a single button. There is no way to detect if a specific area was clicked. The best you can do is either have multiple extensions each having their own button for different actions or have options in the popup that the user selects with a second click.

Open a toolbar on click of a button in MSOffice apps

What i want is to create a button on the toolbar via the standard Customize … in Office apps, that ‘enables / calls / opens another toolbar’? This is still in Access 2003.
You can't do that without VBA (but as you tagged your question this way, this is probably what your are looking for).
First, create a macro that displays your toolbar:
Sub RestoreToolbars()
On Error Resume Next
Application.CommandBars("The toolbar you want to display").Enabled = True
On Error GoTo 0
End Sub
Source on ozgrid
Then, create a custom button that will call that macro:
Add or delete a toolbar button (#addicon)
Customizing your toolbars is from customize, and there are several ways of getting into customize:
View --> Toolbars --> Customize, --or from--
Tools --> Customize, --or from--
right-click on toolbars area --> Customize
To add a button to a toolbar select one of the choices under customize, move the button to the toolbar you want to see it in. Click on an button in customize and look in lower left corner of customize window for it's description.
Add or delete a toolbar button
Customize (Tools --> Customize)
Click on the Commands tab
To add a button, click the name of the category in the Categories
box, and then drag the button or item from the Buttons area to the
displayed toolbar.
To delete a button, drag it off the toolbar to delete.
It can be moved to another toolbar, instead of deleting, but dragging it to the worksheet area will delete the button.
If a button is dragged off a toolbar during customize it can only be restored from an existing toolbar or the builtin pattern toolbars. It is for this reason that you should store originals in a hidden toolbar.
Right-click on the toolbar icon to assign a description, and to
assign a macro.
Source - Add or delete a button