SHOWING POPUP MENU BY PRESSING BUTTON?
Hello OTN members,
The situation is as follows:
On a Form i have Button, and by pressing the button it
should bring up the popup menu ?
Is the above condition possible by right clicking the
button.
Thanks for any suggestions.
Sailesh
null
Sailesh (guest) wrote:
: Hello OTN members,
: The situation is as follows:
: On a Form i have Button, and by pressing the button it
: should bring up the popup menu ?
: Is the above condition possible by right clicking the
: button.
: Thanks for any suggestions.
: Sailesh
Hi,
You can have a popup menu attached to a button. So right click
on that button will give you the pop up menu. (in property sheet
of button, attach popup menu under functional section).
I am not sure about bringing up a popup menu through
when-button-pressed of a button. (unless you have a different
canvas, containing your pop up menu...)
Hope this can help.
Thanks,
Srinivasa Rao
null
Similar Messages
-
Why can't we have "show cookies" menu be a button in the new drop down menu on FF29 ?
I see the new Firefox 29 has a drop down menu in the upper right corner, with various shortcut symbols. One of them is "preferences", but I would like to make that to be have an even shorter shortcut to "show cookies", instead of having it buried in several clicks as in the old versions of FF.
# Install Cookie Manager Button and restart Firefox if prompted.
#* https://addons.mozilla.org/firefox/addon/cookie-manager-button/
# Right-click (or Ctrl+click) an empty area of the tab bar and choose Customize.
# Drag the Cookies button from the palette onto the menu panel on the right. -
Need to show popup when the Submit button is clicked for the second time ..
Hi guys,
I have a requirement where i need to show a popup or alert when the submit button is clicked twice . When it is clicked for the first time one method is been called and its process starts. When the user clicks the submit button for the second time they should be shown a popup stating "Submit button already been clicked, please clicked OK to continue".
Can anyone help with this please , its really urgent requirement ?
Thanks in advanceHi,
I dont have any sample code to give you now. For quick reference, I can advice some psuedo steps to achieve your requirement. I dont have access to JDEV to test this. If any syntax errors then pls correct yourself.
1. Extend Controller since it is standard page ( Refer Anil Passi site for steps to extend seeded ontroller)
2. Write below logic in your Process Request method
super.processRequest(oaPageContext, oaWebBean);
pageContext.putSessionValue("status", "notInitiated");
3. Include below logic in your PFR method
if(pageContext.getSessionValue("status")!=null){
if("notInitiated".equals(pageContext.getSessionValue("status")))
super.processFormRequest(oapagecontext, oawebbean);
pageContext.putSessionValue("status", "initiated");
else
String message = "Display error message as required";
throw new OAException(message, OAException.ERROR);
You may need to import required packages ( Related to OAException).
Remeber, to sumbit the request, user need to refresh the page again so that "status" variable will be refreshed.
Hope it helps.
Thanks
venkat -
Problem with Show Popup Menu in Dreamweaver 8
I am trying to add the behavior show pop up menu to
an image. When I try to I get the error While executing onLoad in
ShowPopup Menu.js the JavaScript error occurred at line 2015 of the
file ....Show PopupMenu.js type error
dw.getNaturalSize(getFullPath(selobj.scr)) has no properties. How
can I fix this I have tried everything I know Thanks Stuck2These pop-up menus as implemented in DW are quite bad, and
while your error
is most likely unrelated to your use of the menus, I felt I
had to warn you
that their use leads to a wasteland of failed efforts. There
are much
better ways.
You can try this simple fix -
Quit DW.
Find this folder -
C:\Documents and Settings\<username>\Application
Data\Macromedia\Dreamweaver
8\Configuration\WinFileCache-*.dat
(these folders are normally hidden - you may have to use
Explorer > Tools >
Folder Options to unhide them)
or on Mac -
Library/Application Support/Macromedia/Dreamweaver
8/Configuration/MacFileCache-*.dat
and delete it.
Restart DW. Works better?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"STUCK2" <[email protected]> wrote in
message
news:ehnv6g$k17$[email protected]..
>
I am trying to add the behavior show pop up menu to
an image.
> When I
> try to I get the error While executing onLoad in
ShowPopup Menu.js the
> JavaScript error occurred at line 2015 of the file
....Show PopupMenu.js
> type
> error dw.getNaturalSize(getFullPath(selobj.scr)) has no
properties. How
> can I
> fix this I have tried everything I know Thanks Stuck2
> -
Creating Popup Menu in Desktop Intelligence
I need help creating a popup menu in the Tool menu of Deski.
This popup needs to be visible when a report is open or when no report is open.
It's my first add-in and I can't make my code work.
Sub BuildMyMenu()
Dim PopMenu As CmdBarControl
Dim CleanPop As CmdBarControl
Dim unvButton As CmdBarControl
Dim lsiButton As CmdBarControl
On Error Resume Next 'disable errors temporarily
Set PopMenu = Application.CmdBars(1).Controls("&Tools").Controls("&Clean-Up Utility")
If Err.Number = 0 Then 'button already exists
Button.Delete 'delete it so that it can be re-defined
Else
Err.Clear 'clear the error so other testing can take place
End If
Set PopMenu = Application.CmdBars(1).Controls("&Tools").Controls.Add(boBarPopup)
PopMenu.Caption = "&Clean-Up Utility"
PopMenu.DescriptionText = "Clean-Up Utility"
PopMenu.TooltipText = "Clean-Up Utility"
Set unvButton = PopMenu.CmdBarPopup.Controls.Add(boControlButton)
unvButton.Caption = "C&lean-Up Universe..."
unvButton.DescriptionText = "Clean-Up Universe"
unvButton.TooltipText = "Clean-Up Universe"
unvButton.OnAction = filename(ThisDocument) & "!ShowUserForm2"
Set PopMenu = Application.CmdBars(2).Controls("&Tools").Controls("&Clean-Up Utility")
If Err.Number = 0 Then 'button already exists
Button.Delete 'delete it so that it can be re-defined
Else
Err.Clear 'clear the error so other testing can take place
End If
Set PopMenu = Application.CmdBars(2).Controls("&Tools").Controls.Add(boBarPopup)
PopMenu.Caption = "&Clean-Up Utility"
PopMenu.DescriptionText = "Clean-Up Utility"
PopMenu.TooltipText = "Clean-Up Utility"
Set unvButton = PopMenu.CmdBarPopup.Controls.Add(boControlButton)
unvButton.Caption = "C&lean-Up Universe..."
unvButton.DescriptionText = "Clean-Up Universe"
unvButton.TooltipText = "Clean-Up Universe"
unvButton.OnAction = filename(ThisDocument) & "!ShowUserForm2"
End Sub
What I need is a popup menu from the Tools menu, that says "Clean-Up Utilities". From that popup menu, 2 more buttons: one that says "Clean-Up Universes" and the other "Clean-Up LSI".
Thanks for your help.In what way, exactly, isn't it working? Do you see the pop up menu at all?
Did you make sure that JS is enabled in your Acrobat?
I've ran the code and it seems to work fine for me. However, I don't quite
get what it's supposed to do.
Is it supposed to take the user to a specific page, or to a named
destination? It seems like it's trying to do both, which doesn't make much
sense. -
Hi,
Thanks so much, I have been adding DW popup menus to my
sites for years and have never run into a problem, now today im
getting an error message each time I try to add the menu and I dont
know how to fix this.
The error message is.
While executing apply/behavior in show popup menu the
following java script error occurred. At line 247 of C://program
Files/Macromedica /Dreamweaver
MX/configuration/Behaviors/actuibs/shop popup menu. js";
TypeError: the head.innerHTML has no properties. The action
will not be added to your document.
I have checked at line 247 and nothing is there?
Any thought or suggestion would be greatly appreciated.
JillJill:
I offer my sincere advice here - it's based on years of
seeing people
struggle with these simply awful menus. In fact, you may find
this essay
written by the person who adapted the code for Macromedia to
be
illuminating.
http://www.losingfight.com/blog/2006/08/11/the-sordid-tale-of-mm_menufw_menujs/
Further, you say "no problem" but there are things going on
that you may
have never thought about - read this -
http://apptools.com/rants/jsmenu.php
http://apptools.com/rants/menus.php
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"JND1993" <[email protected]> wrote in
message
news:eqlgkb$ln8$[email protected]..
> Hi,
> Thanks so much, I have been adding DW popup menus to my
sites for years
> and
> have never run into a problem, now today im getting an
error message each
> time
> I try to add the menu and I dont know how to fix this.
>
> The error message is.
>
> While executing apply/behavior in show popup menu the
following java
> script
> error occurred. At line 247 of C://program
Files/Macromedica /Dreamweaver
> MX/configuration/Behaviors/actuibs/shop popup menu. js";
> TypeError: the head.innerHTML has no properties. The
action will not be
> added
> to your document.
>
> I have checked at line 247 and nothing is there?
>
> Any thought or suggestion would be greatly appreciated.
> Jill
>
> -
I have an older iPod that no longer shows up in iTunes or appears to be charging. When I press the Menu and Select buttons, the Apple logo appears and then an icon of a battery with an exclamation point. Is it dead for good?
If it is otherwise working, you can change the battery. If you want to do it yourself, you can buy the part on eBay and other online sources. Just make sure you know the type of iPod you have so that you get the right part.
http://support.apple.com/kb/HT1353
There are online guides, including the ones on this web site
http://www.ifixit.com/Device/iPod
(Note: Most replacement batteries come with plastic/nylon tools seen in the guides.)
You can also have a repair business do the work.
If it is just the battery, if you do a Reset (using the Menu and Select buttons) while it is connect to your computer, I think it should still be recognized by iTunes. -
when I move mouse on Firefox-History (it must show context menu) he just begins to think, and after ~20 seconds he looks like I haven't pressed any buttons! I tried to turn off all addons but it doesn't help. Also he "thinks" everytime when he gets new downloading and sometimes on pushing Bookmarks
Try running Firefox in [[Safe Mode]]. If it functions properly in that configuration, then one of your add-ons is the culprit.
-
How to show Popup window in OAF on click of a button
How to show Popup window in OAF on click of a button (Without using Javascript)
1. I have one OAF page on which i should have button Called "Next"
2. On clicking of this button a new window/page should be displayed with the image stored in database. on clicking on this "Next" button again next image from the database should be displayed on the newly opened window/page.
3. Is it possible to configure OAF to render window_II in the opposite screen of window_I where the OAF client resides? (If the OAF-client resides in screen_I render window with image in screen_II). That is, at the first click on the Next-button, window_II appers on screen_II and not some random location. The user will have 2 screen/monitors on his work place.
4. Given that the two windows reside on each screen, is it possible to make OAF remember the position of window_II ? The goal of this is to force the window to pop up on the same location on the same screen next time the Next-button is pressed.
5. If window_II is closed (eg. by using X) and the Next-button in window_I is pressed again, will window_II pop up in the same location and screen as previously ?
6. Is it possible to have a Print-button in window_I what prints the scanned picture in window_II ? Is it possible to have the click on this Print-button to open the standard print dialog on top of window_II ? Could the button be placed in window_II as well, having the same functionality ?I have tried to open home page window. You can change the URL according to your requirement.
import oracle.apps.fnd.framework.webui.OAUrl;
StringBuffer l_buffer = new StringBuffer();
l_buffer.append("javascript:mywin = openWindow(top, '");
String url = "/OA_HTML/OA.jsp?OAFunc=OAHOMEPAGE"; // Calling Oracle Home Page
OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
String strUrl = popupUrl.createURL(pageContext);
l_buffer.append(strUrl.toString());
l_buffer.append("', 'lovWindow', {width:750, height:550},false,'dialog',null);");
pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
Above code will open the new page in new window.
Thanks
--Anil -
How to create a splitted button with a popup menu?
Hi,
i am trying to build a button which can be clicked and an action is called (a normal button) and an addion to that basic function: there is on the right side of the button a seperated area with an arrow. If this arrow is clicked a popup menu becomes visible and you can choose a special action. This type of buttons (i don't know the name) can be seen by example in Eclipse or the Windows Media Player 11 or in Windows Vista).
Here is an example image about what i mean: http://s2.imgimg.de/uploads/button56b4941cpng.png
Can you tell me how to create a button with this possabilities?
Please help me,
greetings from germany,
picard90hii,
if you are want completed to define the Popup, then you have to define accesible areas,
1/ create Popup (example from void)
public void createPopupMenu() {
JPopupMenu popup = new JPopupMenu();
popup.addSeparator();
ShowsManFxMenuItem = new JMenuItem("Show Details");
ShowsManFxMenuItem.addActionListener((new ActionListener() {
public void actionPerformed(ActionEvent e) {
//..some actions
validate();
repaint();
popup.add(ShowsManFxMenuItem);
MouseListener popupListener = new PopupListener(popup);
//here is your listener directly to prepared object "yourButton"
yourButton.addMouseListener(popupListener);
2/ create POpupListener (example is class)
class PopupListener extends MouseAdapter {
JPopupMenu popup;
PopupListener(JPopupMenu popupMenu) {
popup = popupMenu;
@Override
public void mousePressed(MouseEvent e) {
maybeShowPopup(e);
@Override
public void mouseReleased(MouseEvent e) {
maybeShowPopup(e);
//only in this block you can restrict anything with popup items (test anything and then to display all, only one, parts of them)
private void maybeShowPopup(MouseEvent e) {
if (e.isPopupTrigger()) {
popup.show(e.getComponent(), e.getX(), e.getY());
//these parts you can ingnore, but can covered extended events from popup
public void actionPerformed(ActionEvent e) {
JMenuItem source = (JMenuItem) (e.getSource());
public void itemStateChanged(ItemEvent e) {
JMenuItem source = (JMenuItem) (e.getSource());
protected String getClassName(Object o) {// Returns just the class name -- no package info.
String classString = o.getClass().getName();
int dotIndex = classString.lastIndexOf(".");
return classString.substring(dotIndex + 1);
3/ I removed all my addition
... kopik -
Firefox for Android long press not displaying popup menu.
Often when I Iong press a link, the popup menu doesn't display. Not matter how long I hold the link or how many times I try, nothing happens.
I'm on Android 4.0.3Updated Firefox to the latest version (v37) and it does seem better however, it still isn't 100%. Tried duckduckgo for instance and a long press didn't work.
Oddly, if I visit a link on the page and hit the back button once it's loaded, long pressing nearly always starts working. -
Popup menu does not show in JTextField
I have a JPanel with a popup menu that works perfectly, as long as the right mouse button is clicked on the JPanel. However the popup menu does not show if the right mouse button is clicked on a JTextField that is within the JPanel.
What has to be done that the popup menu shows always?
this.addMouseListener(new java.awt.event.MouseAdapter()
public void mouseReleased(MouseEvent e)
this_mouseReleased(e);
protected void this_mouseReleased(MouseEvent e)
if (e.isPopupTrigger())
popPopup.show(this, e.getX(), e.getY());There are up to 20 JTextFields in the JPanels an the application has a lot of JPanels of course. Adding the listener to each and every JTextField means a lot of extra code. Is there really no generic solution to this problem???
-
How to create a popup window that shows detail information when press submi
hi,all
how to create a popup window that shows detail information when press the submit button ?I mean,when I press the button "Sumit"there will appear a popup window that shows the detail information you typed before.it means are u sure to submit,it is like some confirmation window.
how to do achieve this ?help plz .
best regards
hlee
Edited by: hlee on 2011-4-15 上午1:26hey,vee
thanks for your response,but i had already read this thread before i put up a new question.any way,thanks.
best regards
hlee -
I drag picts to the show and push play and for some reason they just show up as black.. the picture is not showing- clearly I have pressed some wrong button but have no idea what to do.. please help!!
I drag picts to the show and push play and for some reason they just show up as black.. the picture is not showing- clearly I have pressed some wrong button but have no idea what to do.. please help!!
-
Lightroom trial doesn't show complete menu selections or import button. Also get error message on launch: An error occurred when attempting to change modules. I am unable to find/see the following file to try renaming the SLCache and SLStore files: System Library/Application Support/Adobe. Any ideas? I only have 16 days left on the trial and have been unable to get it to work on my Macbook Pro. This is all I am seeing after Lightroom opens. Thanks!
Thanks to both of you for attempting to help. I finally figured out what was wrong . . . it was a Permissions problem. Very frustrating, but after scouring the troubleshooting tips I finally found the one that solved my problem. I had to add a User and give it Read/Write privileges to Lightroom. The file I had to add the User to was Hidden on my Mac, so that added an even bigger challenge to the mystery. Only a few days left on my trial version! I hope I have time to try it out!
Maybe you are looking for
-
I HAVE A HP PHOTOSMART C4700 AND I CANNOT CONNECT IT WITH MY IPAD 2 TO PRINT
I have Photosmart C4700 and want to print from IPad Air 2. Is my printer airprint? If not, is there a way to print from the Ipad or will I need to get a new printer? If I need a new printer...do you have a list of suggested printers that would be sim
-
Custom report parameter references
Dear All, I have a custom report with two parameters FROM_PRAM TO_PRAM Both parameters have same SET_OF_VALUES. I want to apply check on parameter level that TO_PRAM value should not less than FROM_PRAM.
-
After updating my ipad 4 to iOS 7"0"3 I can no longer connect to my PC windows 7 fully updated USB machine. Please, I would appreciate Iate any help. Thamks
-
[Solved][Hal and Partitions] Newbie problem with hal policy
Hello everybody, As a new user of archlinux for less than a week I have experienced a great distribution after having been for 1 year on Linux. After installation I was able to solve most of my problems with the wiki and the forums but there is one p
-
Remote activation in different Clients of R/3 system
Hi I am trying to do CubeServ BW case study from SAP Business Intelligence book. I am logged in BW system and the exercise requires transfer of Data Source Object from BI Content. When I try this step I am prompted with "Remote activation in the Sour