Button Item to open a popup window  but not do a submit

Hi,
I want to open a popup using a button that is next to an item. I do not want a submit to occur.
I've followed the directions in Want Button Item to call popup window and the popup displays correctly.
However it also does a submit.
How to do I prevent the submit when this button item is pressed?

I copied the Button templates, called it "Javascript Button", and changed its code from:
<table class="t15Button" cellspacing="0" cellpadding="0" border="0"  summary=""><tr>
<td class="t15L"><img src="#IMAGE_PREFIX#themes/theme_15/button-l.gif" alt="" /></td>
<td class="t15C"><a href="#LINK#">#LABEL#</a></td>
<td class="t15R"><img src="#IMAGE_PREFIX#themes/theme_15/button-r.gif" alt="" /></td>
</tr></table>to:
<table class="t15Button" cellspacing="0" cellpadding="0" border="0"  summary=""><tr>
<td class="t15L"><img src="#IMAGE_PREFIX#themes/theme_15/button-l.gif" alt="" /></td>
<td class="t15C"><a href="AAAAA">#LABEL#</a></td>
<td class="t15R"><img src="#IMAGE_PREFIX#themes/theme_15/button-r.gif" alt="" /></td>
</tr></table>where "AAAAA" is "javascript:#BUTTON_ATTRIBUTES#" (the markup wasn't working so I had to describe it this way).
I then put the script I want to execute in the Button Attributes and made the Request whatever. It's not very elegant but it does work.

Similar Messages

  • When button press it should validate item and open another popup window

    apex 4.2.1
    I am having difficulties on it please help.
    I have a report and link and it open a page (popup window ) and it has items say, :p2_item_no and :p2_Final_Date (Date) and button submit and cancel.
    this page has process that is fetced the data for some hidden items. for example. :p2_Last_date (hidden).
    all above work ok but when hit the submit button then :p2_final_date item should be validated with :p2_last_date item
    so if :p2_final_date < :p2_last_date then error else accept the date value and same time go to the page 3 (another popup window).
    so from same submit button it must control both action. first validate and if success then open another page (popup window).
    thanks for help!
    RI.

    You can create an item level validation of type PL/SQL Expression on the popup page opened from the report.
    The item you would create the validation on would be P2_FINAL_DATE and the pl/sql expression you would use would be:
    :p2_final_date >= :p2_last_date;--Keith                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Task List URL (to FR Report) opens in new window, but not for all users!

    Hi all,
    I am not sure if this is the correct forum to ask the question (for me it looks like an IE topic), but perhaps anybody can help me anyway...
    In one of our Planning apps (9.3.1) we defined several task lists and tasks that link to relevant FR Reports (URL Tasks). If I open the URL task in basic view the relevant FR Report opens in the same IE Window (in the main frame of the planning app). If my colleague opens the same task the FR Reports opens in a new IE Window.
    My problem is that I dont have any ideas where I can set the relevant property. Is that a planning property, a workspace property or an IE property setting??? Where can I adjust the settings that for ALL users the URL opens the Report in the same window??????
    Thanks in advance!!!!
    Kind Regards
    André
    P.S.: We are on IE8.

    Have you both got the same settings in Tools > Internet Options > Tabs Settings
    There was also a bug though I can't say if it is related to your issue
    9549216 - Instead of a new tab, a new window is displayed after you create a Financial Reporting task in Workspace.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Onclick of a button needs to open a popup

    Hi,
    I have a textbox and button.Instead of entering a code in a text box i need to clcik on searchcode button and needs to open a popup window with a list and in that list i need to select a code and enter in the text box.How to ahieve this please help.
    Regards,
    Praveen

    Hi Praveen,
    you need to create Modal dialog and return value, check the following links:
    http://blog.mastykarz.nl/sharepoint-2010-application-pages-modal-dialogs/
    http://www.learningsharepoint.com/2011/08/26/pass-value-from-modal-dialog-to-the-calling-page-sharepoint-2010/
    http://sharepoint.stackexchange.com/questions/22581/custom-dialog-return-value
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

  • Message (of message manager) gets lost by opening a popup window

    Hi all,
    On behalf of a better error/exception handling, I would like to show the stacktrace in a popup window, that means, if the application reports an error message (through the message manager in the view controller), the user (administrator, developer) can optionally click a link (LinkToAction => opening a modal window) to see the stacktrace in a separat popup window.
    Unfortunately if the popup window now gets displayed, the error message on the main view (background of the popup window) will be cleared, so this - for the common user more readable - information is not anymore displayed, also when the popup will be cleared.
    Of course, I could backup the error message in a context value and redisplay it after closing the popup window, but I suppose that's not a very cool solution...
    Other any good ideas?
    Thanks,
    Stefan

    Hi Stefan
    Usually showing a stack-trace to the end-user of your application is not so helpful as might appear. My experience shows that the information is too technical for the end-user and does not help him/her to resolve the issue/problem. It's better to display error messages pointing him to some solution or directions that he might do in order to fix the error.
    If you still want to show a stack-trace I'd advise the following. You have to prepare the UI control with the stack-trace in the same server response (round trip) which shows the message manager's messages. The messages will not disappear until a client sends a new request to the server. When you open the popup such request definitely takes place.
    Maybe try to display the stack-trace in the bottom of the screen so user have to scroll down a little bit to show the trace.
    Or maybe Tray control will help in the case. Try to put the trace in a text view and put the view in a tray. Then user has to expand the tray to see the trace. But do not assign any event handlers to the tray to avoid additional request to the server while it's expanding.
    BR, Sergei

  • Action to open a popup windows?

    Hi experts,
    In a view I want to have a button which has an action 'search' to open a popup window. So how to write this action code?
    Thanks!

    hi,
    pop up is a new window.
    so make a new view for the pop-up.
    make a window for this pop-up view.
    you will be calling this window as a pop-up.
    make a context element for your window of IWDWindow type.
    write the following code in the action of the event when you want the popup...
    //     IWDWindowInfo objWindowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("<Window name here>");
    //     IWDWindow objWindow = wdComponentAPI.getWindowManager().createModalWindow(objWindowInfo);
    //     objWindow.setWindowPosition(300,150);
    //     objWindow.setTitle("Choose Manufacturer");
    //     objWindow.setWindowSize(300,400);
    //     objWindow.show();
    //     wdContext.currentPopupNodeElement().setCtxManuPopup(objWindow);
    regards,
    -Amol

  • How to open a popup window ?

    Hi,
    I try to open a popup window it does't throgh any exception but it will not show the popup window
    I want open popup window when i enter in url of the parent window.
    Thanks & Regards,
    Merlin Roshina

    Tested successfully with the following code ...
    <html>
    <head>
    <SCRIPT>
              function openindex()
              var OpenWindow=window.open("http://yahoo.com", "newwin","height=300,width=300");
              <%     System.out.println("inside the script"); %>
    </script>
    <%     System.out.println("outside script"); %>
    </head>
    <body onload="openindex()">
    <p>Hello,</p>
    </body>
    </html>NOTE:
    The System.outs will be printed during interpretation by browser during page load and not during javascript invokation.
    Cheers
    -Rohit

  • I can't use Yahoo messenger (it doesn't open the dialogue window), but in other PCs with older versions of Firefox I don't have problems

    I can't use Yahoo messenger (it doesn't open the dialogue window), but in other PCs with older versions of Firefox I don't have problems
    As stated earlier even though when I have an incoming message I hear the "Beep" Firefox does not open the dialogue window as it used to do.
    Also I am not able to open a new dialogue window or tab by clicking on an online contact of mine.

    Known issue, See:
    * https://bugzilla.mozilla.org/show_bug.cgi?id=713014
    this issue maybe fixed in beta/ nightly, you should try it
    * firefox.com/beta

  • I can open a new browser window, but not a new tab, neither by clicking the plus or selecting it from the menu. I have fully updated firefox and also restarted. what's going on?

    I can open a new browser window, but not a new tab, neither by clicking the plus or selecting it from the menu. I have fully updated firefox and also restarted. what's going on?

    I have the same problem with the right click and do not have the ask toolbar installed on my system?

  • I read the info on TBird opening messages in tabs. I set it to open in main window, but it hasn't changed. Is there another solution?

    I could not understand the info on the action of tabs. I followed instructions to set "open in existing window" but messages still show up in tabs along the top. I have trouble finding my inbox. Thank you, Martha

    If you select Open in an Existing Message window, the first message that you double click to open will always open an new window. If you leave that window open and double click a second message it will open the new message in the existing message window.
    If you select Open in a New Window, every message that you double click will open a new window. If you do not close the windows after reading the messages you will be right where you are when you neglect to close the tab after reading the messages. You will have every message that you have read open in a tab and the Inbox tab gets pushed off the screen.
    '''Close the tab or window after reading the message.'''
    If you have lots of tabs open you can '''right click''' one of them and select '''Close Other Tabs''' and then use the x on the last tab to close it.
    This will also close the tab with the Lightning calendar in it so you will need to reopen that.
    Have you tried using the Message Pane to read the messages and not open them at all? F8 will toggle the Message Pane on and off.

  • I am having trouble with my mac book air. I think I have a virus because everytime i click on a link it openes up popup windows and other things. How do I reset teh computer?

    I am having trouble with my mac book air. I think I have a virus because everytime i click on a link it openes up popup windows and other things. How do I reset teh computer?

    Please post a screenshot that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply.

  • I have installed Adobe Photoshop Elements 8 onto my computer.  I am able to open the Organizer in the Welcome Window but not the editor. why?

    I have installed Adobe Photoshop Elements 8 onto my computer.  I am able to open the Organizer in the Welcome Window but not the editor. why?

    The serial number will be on the disc case, not the outer box.  Find your serial number quickly

  • I upgraded to OS Yosemite on my MacBook Air...and I cannot upgrade the Adobe Flash download that Adobe keeps asking me to download. I get the screen and when I click on the icon it just creates a new window but not download. Thoughts?

    I upgraded to OS Yosemite on my MacBook Air...and I cannot upgrade the Adobe Flash download that Adobe keeps asking me to download. I get the screen and when I click on the icon it just creates a new window but not download. Thoughts?

    I just tried the link and it is just fine. If the GateKeeper pops up then open Security & Privacy preferences, click on the General tab, set the last radio button to Anywhere.

  • My phone is not showing up in itunes.  I want to sync it.  I have a MAC and I have restarted the phone, it's charged, I have the most current version of itunes.  What do I do now?  It says to reinstall itunes if you have windows but not for mac.  Help!

    My phone is not showing up in itunes.  I want to sync it.  I have a MAC and I have restarted the phone, it's charged, I have the most current version of itunes.  What do I do now?  It says to reinstall itunes if you have windows but not for mac.  Help!

    With your phone plugged in, open Image Capture and see if the iPhone shows up.  If not, you are having a sync problem.  If it shows up in Image Capture, but not iTunes, I'd delete iTunes and reinstall it.

  • IPod shows up in Windows but not in iTunes

    I have recieved a new IPod video 30Gb off my g/f (how nice of her :D) anyway when I plug it into my computer it will not appear in iTunes, a problem plenty of people are having it seems. The difference being I think I know what caused the problem but I'm having trouble with it still.
    When I recieved the Ipod I tried it on my girlfriends computer and it worked fine. She already had an ipod and itunes installed. I was able to add music no problem and it appeared in itunes. She however was having problems downloading on her computer for websites or using download sofware since installing itunes and the problem went away when itunes was uninstalled.
    Because of this (there were work arounds so I'm not after a fix for that) I thought I try using other software to see if that stopped me having this problem. This meant when I got my ipod home I plugged the ipod into my computer and did not install anything off the disc. This I believe is what has caused my problem for not being able to see my ipod in itunes.
    Anyway I tried to get other software to work (winamp at the time) but couldn't figure it out and so thought I'd just bite the bullet and install itunes and hope I didn't have the same problems as my g/f.
    After installing and plugging my ipod in again nothing happened. I checked My Computer and the ipod was there and called PHIL'S IPOD but nothing was in itunes. I then followed all the instructions on here :
    http://docs.info.apple.com/article.html?artnum=93716
    but it still won't pick up my ipod.
    Is there anything else I can try to get my ipod to appear in itunes I really do want to use it but at the minute I can't at all.
    Thanks in advance.

    Two years ago I had to return an ipod mini to the shop for a refund as I could not get it to work. It showed up in windows but not in itunes. I spent about a week trying EVERYTHING, blamed apple for some stupid glitch and gave up. Ten days ago my daughter got an ipod nano, and since we share the same pc I did warn her of what might happen. Yup, it did. Exactly the same problem. Once again I tried all the tricks, the five Rs, renaming the drive, you name it, I did it. Throughout this period though my PC was running a little slow and weird things were happening and despite using Norton Antivirus and other anti spyware I suspected I had not fully recovered from some sort of infection which drove me mad by blasting me with popups for 888 casinos etc. What I thought was really odd was that nothing showed up in Device Manager and having googled around a bit I came across this from which you can download a AproposFix.
    So if this sounds like your problem go here:
    http://www.dslreports.com/forum/remark,14679793
    and try it. The ipod now works, my daughter turned pink with delight, and my PC is now back to normal speed and all sorts of other seemingly unconnected annoyances have been resolved. I really do wish Apple could be more aware of problems like this as there seem to be many thousands of 'users' (ha ha) out there who look as if they are having similar problems.
    Dell Dimension   Windows XP  
    Dell Dimension   Windows XP  

Maybe you are looking for