How to maximize a popup window?

Hi,
My issue:
A popup contains data larger that the screen size, it therefore maximizes itself, meaning that it sets its WIDTH to 100%. But this is most unfortunate as WD does not recognise its own scrollbar as the end of the available screen and now the close button (cross) of the popup is beneath the scrollbar!
When doing a "true" maximize by clicking on the button left to the "closing cross", it recognizes scrollbars and stays visible in total.
My question:
How can I programmatically access the maximize/fullscreen function? Interface IF_WD_WINDOW does not provide a corresponding method as far as I can see...
Already tried:
...please no "put width and height to 100%" as I already stated that this is not what I want...
Also setting width to 95% or the likes does not work, as the popup automatically sets 100% on refresh if there are to large contents.
<br>
I would appreciate your help on this!!
Kind Regards,
Robert

Hi Robert,
You can do any size related actions in POPUP, Actually we have SET_WINDOW_SIZE Method to set window size,
But for popups it wont work.
Please check this thread, check Thomos reply
Re: Confirm Popup in Web Dynpro, window size
Check using set_window_size.. but can't effect.
How to reduce Popup Window Size?
As suggested saravanan, check SAP NOTE also.
Cheers,
Kris.

Similar Messages

  • How to create a popup window to load HTML page in AIR application without using any mx or spark?

    How to create a popup window to load HTML page in AIR application without using any mx or spark components?
    I need to load the HTML page in popup in AIR application without using any of the <mx> or <spark> components. I need to open in the application itself not in the browser.(If we use navigateToURL() it will open in th browser)

    Can we achieve this? can somebody help me on this scenario..

  • How to close a popup window for system events?

    Hi,
    I have a screen 110 which shows several input field in popup mode.
    The Cancel button can close the screen.
    But my question is how to close the popup window for the following system events?
    1, Customer clicks the cross button in top-right corner
    2, Customer clicks the system icon in top-left corner and then select either: "Close" or "Stop Session"
    The PAI subroutine of the screen has not been triggered for the above system events.
    Thanks for the coming help.
    Best Regards,
    David

    Hi Siddharth,
    I did check with another very experienced ABAP developer.
    The solution was the same as what Arunima Rudra provided.
    And I got a sample program which did work properly.
    The headache is that the system events in my program still cannot be triggered even after I have all the same changes.
    Anyway, I suggest you to try the solution as provided by Arunima Rudra.
    It should work for 2 system events:
    1, Customer clicks the cross button in top-right corner
    2, Customer clicks the system icon in top-left corner and then select either: "Close"
    For "Stop Session", it should not be handled by popup.
    You can observe the same behavior in ALV sorting configuration popup.
    Good luck!
    Regards,
    David

  • 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:26

    hey,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

  • How to display a popup window (DialogMessage) via code behind c#?

    hi all,
    How to display a popup window (DialogMessage) via code behind c#?
    I use sp 2013, in else case I want show the DialogMessage:
    if(condition)
    else
      HttpContext.Current.Response.Redirect(SPContext.Current.Web.Url+"/_layouts/TestError/ErrorDueDate.aspx");
    the above Redirect work good but I want show the error in a DialogMessage its better because of Usability and not redirect the user to new page...
    if not via code behind is there a better way to do it?
    thanks in advance
    Ahmad
    SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

    thanks for you answer,
    And yes I includ them via CDN, like below:
    <script
    type="text/javascript"
    src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script
    src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js"
    type="text/javascript"></script>
    <link
    href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css"
    rel="stylesheet" type="text/css"
    />
    But I get still the above error in my previes post.
    SP 2013 & SPD 2013 & VS 2013 & MSSQL 2012

  • How can I allow popup window within secured site?

    How can I allow popup window wlthin NWA People.com(secured site)?
    Ineed to see Access.

    You can allow pop-ups in Safari via Settings > Safari > Block Pop-Ups set 'off'

  • How to get current PopUp Window

    Dear All,
    I am using NetWeaver 7.1 sp1 and facing a problem. Actually I want to show a view in popup window. The popup window works fine but i want to get currently popup window. How can i get it in View and controller ??
    I found a solution : wdContext.currentPopupElement().getWindowInstacnce();
    but in wdContext there is no method like .currentPopupElement(). plz help.

    Hi
    wdContext.currentPopupElement().getWindowInstacnce();
      Here PopupElement is a attribute of IWDWindow type where u have to put the window instances (say For close or life control of that popup)
    For further plz go through these doc
    1. [Dialog|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/903fed0d-7be4-2a10-cd96-9136707374e1&overridelayout=true]
    2. [Popup Window|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a04870c5-749b-2b10-06ba-d25515ef39e3&overridelayout=true]
    Best Regards
    Satish Kumar

  • How to create a  popup windows

    Hi
    I have seen in Simon Collins application http://apex.oracle.com/pls/apex/f?p=20411:1:888811517916461 a popup windows.
    Can anyone help me, buil a popup windows like that or is there any tutorial where i can see how its done.
    Tanks

    Hi,
    You should have three processes: addPerson, getPerson and updatePerson. All three are "On Demand" processes. This is the PL/SQL code for each:
    addPerson
    BEGIN
    INSERT INTO EMP (ENAME, JOB, MGR, HIREDATE, SAL, COMM)
    VALUES (:P1_ENAME, :P1_JOB, :P1_MGR, TO_DATE(:P1_HIREDATE, 'DD/MM/YYYY'), :P1_SAL, :P1_COMM);
    END;getPerson
    DECLARE
    vRESULT VARCHAR2(1000);
    BEGIN
    SELECT ENAME || ',' || JOB || ',' || MGR || ',' || TO_CHAR(HIREDATE, 'DD/MM/YYYY') || ',' || SAL || ',' || COMM
    INTO vRESULT
    FROM EMP
    WHERE EMPNO = :P1_EMPNO;
    HTP.P(vRESULT);
    END;updatePerson
    BEGIN
    UPDATE EMP
    SET ENAME = :P1_ENAME,
    JOB = :P1_JOB,
    MGR = :P1_MGR,
    HIREDATE = TO_DATE(:P1_HIREDATE, 'DD/MM/YYYY'),
    SAL = :P1_SAL,
    COMM = :P1_COMM
    WHERE EMPNO = :P1_EMPNO;
    END;On the page, in the page's HTML Header setting, I have:
    &lt;script type="text/javascript"&gt;
    $(function() {
       $('#ModalForm').dialog(
        modal : true,
        autoOpen : false,
        buttons  : {
          Cancel : function() {
            closeForm();
          Add : function() {
            $('#ModalForm input[type="text"]').removeClass('ui-state-error');
             var valid = true;
            $('#ModalForm input[type="text"]').each(function() {
              if($(this).val().length == 0)
                $(this).addClass('ui-state-error');
                message = 'Error: ' + $(this).attr('id').substr(3).replace('_', ' ') + ' is blank';
                $('.msg').text(message);
                valid = false;
                return false;
            if(valid)
               addPerson();
    function openForm(pID)
       $('#ModalForm').dialog('open');
       $('#ModalForm input[type="text"]').removeClass('ui-state-error');
       var btns = {};
       btns['Cancel'] = function() { closeForm() };
       $s('P1_ENAME','');
       $s('P1_JOB','');
       $s('P1_MGR','');
       $s('P1_HIREDATE','');
       $s('P1_SAL','');
       $s('P1_COMM','');
       if(pID)
          initilizeForm(pID);
          $('#ModalForm').dialog({ title : 'Update'});
          btns['Save Changes'] = function(){updatePerson(pID);};
       else
          $('#ModalForm').dialog({ title : 'Add'});
          btns['Add'] = function(){addPerson();};
       $('#ModalForm').dialog('option', 'buttons', btns);
    function closeForm()
      $('#ModalForm input[type="text"]').val('');
      $('#ModalForm input[type="text"]').removeClass('ui-state-error');
      $('#ModalForm').dialog('close');
    function initilizeForm(pID)
       var ajaxRequest = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=getPerson', 0);
       ajaxRequest.add('P1_EMPNO', pID);
       var ajaxResult = ajaxRequest.get().split(',');
       $s('P1_ENAME', ajaxResult[0]);
       $s('P1_JOB', ajaxResult[1]);
       $s('P1_MGR', ajaxResult[2]);
       $s('P1_HIREDATE', ajaxResult[3]);
       $s('P1_SAL', ajaxResult[4]);
       $s('P1_COMM', ajaxResult[5]);
    function addPerson(pID)
       if (pID)
         updatePerson(pID);
       else
         var ajaxRequest = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=addPerson', 0);
         ajaxRequest.add('P1_ENAME', $v('P1_ENAME'));
         ajaxRequest.add('P1_JOB', $v('P1_JOB'));
         ajaxRequest.add('P1_MGR', $v('P1_MGR'));
         ajaxRequest.add('P1_HIREDATE', $v('P1_HIREDATE'));
         ajaxRequest.add('P1_SAL', $v('P1_SAL'));
         ajaxRequest.add('P1_COMM', $v('P1_COMM'));
         ajaxRequest.get();
         ajaxRequest = null;
         closeForm();
         gReport.search('SEARCH');
    function updatePerson(pID)
       if(!valid())
          return;
       var ajaxRequest = new htmldb_Get(null, &APP_ID., 'APPLICATION_PROCESS=updatePerson', 0);
       ajaxRequest.add('P1_EMPNO', $v('P1_EMPNO'));
       ajaxRequest.add('P1_ENAME', $v('P1_ENAME'));
       ajaxRequest.add('P1_JOB', $v('P1_JOB'));
       ajaxRequest.add('P1_MGR', $v('P1_MGR'));
       ajaxRequest.add('P1_HIREDATE', $v('P1_HIREDATE'));
       ajaxRequest.add('P1_SAL', $v('P1_SAL'));
       ajaxRequest.add('P1_COMM', $v('P1_COMM'));
       ajaxRequest.get();
       ajaxRequest = null;
       closeForm();
       gReport.search('SEARCH');
    function valid()
       $('#ModalForm input[type="text"]').removeClass('ui-state-error');
       var valid = true;
       $('#ModalForm input[type="text"]').each( function() {
           if( $(this).val().length == 0)
               $(this).addClass('ui-state-error');
               message = 'Error: ' + $(this).attr('id').substr(3).replace('_', ' ') + ' is blank';
               $('.msg').text( message );
               valid = false;
               return false;
       return valid;
    &lt;/script&gt;And I have an HTML region on the page with the following settings:
    Region Header:
    &lt;div id="ModalForm" style="display:none; width:500px;"&gt;Region Footer:
    &lt;/div&gt;This region contains all of the page items - P1_EMPNO (hidden), P1_ENAME (text), P1_JOB (text), P1_MGR (select list), P1_HIREDATE (datepicker), P1_SAL (text) and P1_COMM (text)
    Apart from a bit of styling here and there, that's it
    Andy

  • How to maximize a browser window?

    Can't seem to figure out how to make a Safari window fill the entire screen.
    Or how to vertically or horizontally tile Safari windows.
    Or a keyboard shortcut to maximize a window I'd hidden previously.
    Or how to get my browsing history to display in a convenient always-on-screen tab. Or even how to access the History dropdown menu without using the mouse constantly, which used to save me so much time and hand/arm movement.
    ...All things that were remarkably simple in IE and that I took for granted until a day or two ago.
    Message was edited by: par larsson

    Hello par:
    Sorry, incidentally, for my snippy post. It was 11:30 last night, and I think I was tired. Apple users who have been through the bad and good times tend (me too) to be a bit defensive (and yes, superior) to any comparison of Apple software to the stuff from the behemoth from Washington. As a bit of background information, Microsoft used to support a version of IE for the Mac. They dumped that about three years ago. Many of us (me too) hunted for options and I fell in love (figuratively speaking) with Safari.
    I use Firefox once in awhile as an alternate browser. There are a very few web sites that do no play well with Safari. The developers either do not write to standards or, worse yet, use code that is Microsoft-specific. Firefox is pretty friendly and has a feature that, when you first install it, allows you to import all of your bookmarks.
    F9 allows you to show all of the open windows at once (ones that are hidden under other windows.
    F10 brings all windows (except the active one) to the front.
    F11 hides all open windows.
    I am the world's slowest typer, so I use the mouse extensively (for me, oddly enough, it is faster).
    One nice thing you will find about software written for Apples (OS X) is that code is not shotgunned all over your system (unlike Windows). When you wish to uninstall something without an "uninstaller," a simple "find" will locate all the pieces of the program. Then dragging to trash dumps it. By the by, while I am giving gratuitous advice, do not delete any system software unless you are sure it will not harm other parts of OS X.
    I am like you in the sense that I avoid cluttering up my iMacs with a whole bunch of code. In my case, (touching wood) I have not had a software problem for a couple of years. Apple's pre-release testing has significantly improved.
    P.S. Ask away if you have questions in the future. You will find, I think, that this is the best on-line community anywhere - and virtually everyone is a volunteer.

  • How to generate a popup window?

    i want to click on a link...in response of this a popup window opens and show the details...help me regarding this...

    can u please explain me in bit detail.I can try...
    About Popup
    A Popup is displaying a Component somewhere on (or outside) the screen. When you create a new Popup object you specify the coordinates of the Popup relative to another Component (this other Component could be null)
    How to use it
    You should create your own subclass of javax.swing.Popup to use a Popup, because the constructors are Protected. I have an example for you. Also have a look at the API or some of the links other people have listed.
    Example
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.event.*;
    public class PopupEx extends JFrame{
         private javax.swing.Popup pop; 
         private JLabel lab = new JLabel("text");      
         public static void main(String args[]){
              PopupEx f = new PopupEx();
         public PopupEx(){
              //setting the JLabel and placing it in the JFrame
              lab.setBackground(Color.red);
              lab.setOpaque(true);
              lab.setFont(new Font("Curier",Font.PLAIN,200));
              add(lab);
              pack(); //setting the size of the JFrame
              //popup
              pop = new Poppy(this, new JPanel(), 10, this.getWidth()/2) ;           
              pop.show(); //makes the Poppy show at the position (10, this.getWidth()/2) - relative to this
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              setVisible(true);
         public class Poppy extends Popup implements ActionListener{
              private JPanel pan;
              private JLabel mess = new JLabel("I love Java!");
              private JButton b   = new JButton("ok");
              //Constructor
              //Overrides the Popup(Component owner,Component contents,int x,int y)               
              public Poppy(Component owner, JPanel contents, int x, int y){
                   super(owner,contents,x,y);
                   pan = contents;
                   pan.setBackground(Color.yellow);
                   mess.setFont(new Font("Curier",Font.PLAIN,20));
                   pan.add(mess);
                   pan.add(b);
                   b.addActionListener(this);
              public void actionPerformed(ActionEvent e){
                   this.hide();
         }//end of Poppy
    }If you have questions, just ask!

  • How to add a popup window

    I have a find button in my panel, on click of that button i shld invoke the popup window, to recive the search option.
    Can someone tell me that how to invoke/create a popup window in java swings.
    Thanks in Advance.

    Dheeraj_Gaba wrote:
    You are wrong :)how come?Sorry, that reply was for the OP.

  • How to close a popup window in a used component?

    Hi Experts,
    I have two applications in the same project, and they each have one component controller. Let they be component A and B. They have similar functionalities and screens. There is a popup window in A that I would like to use in B instead of creating a new popup window in B, so I added a used component of A in B in order to share the popup window. I am able to click a button in B to get a popup window from A successfully, but I am unable to close the popup window since the event has been created in A.
    Can anyone suggest me how to fix this please? I would really appreciate your help.
    Thanks,
    -Napadol

    Hi,
    You can either use the approach above, which is having an Attribute, type IWDWindow in B's Component Context. When you open the popup you store the reference. When you click close you get that reference back and destroy the window.
    Note, I'd suggest you to have your "View" with no Close Button. Then in Component A you create another View that has an UIViewContainer with your Popup View. You can code the Close code in Component A.
    This way you can do the same and have a code in Component B to close your window.
    Other way would be having it as a Component variable and using the Component Interface on A (create a Method) that goes to Component A and destroy that instance.
    Regards,
    Daniel

  • 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

  • How to eliminate this popup window

    Out of a sudden, when I open iPhoto I'm getting a window that says that there is a problem importing something, which I'm not trying to import.
    Attached is an image of the desktop showing the popup window.
    How can I get rid of it.
    Regards
    Pedro

    Back up.
    Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look there for a Folder called 'Import' or 'Importing'.
    Drag it to the Desktop. *Make no other changes*.
    Start iPhoto. Does that help?
    If it does then look inside that folder on your desktop. Does it contain anything you want? If not you can trash the folder.

  • How Can I make Popup window hilite?

    I use NWDS , I want to make Popup window hilite,For example, when i click a button , it will show a new Window,But I want the window hilite or hide the view has the button?

    hi
    i didn't understnad the requiremnt properly can you more elloborate.(what is [hiite|http://www.google.co.in/search?hl=en&q=Definition+hilite&aq=f&aqi=g-sx1&aql=&oq=&gs_rfai=])
    If you want to create a pop up window with Hide/minimise, maximize options in it then check the below article.
    [New Features of Web Dynpro Popup Window - SAP NetWeaver CE 7.11|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a04870c5-749b-2b10-06ba-d25515ef39e3?QuickLink=index&overridelayout=true]
    regards
    Mahesh

Maybe you are looking for

  • Dual Monitors Windows 7 Problems

    Ok, this problem is getting really annoying and I think its a problem with windows 7 itself and not my computer. Basically I have a dual monitor setup with the left hand monitor as my secondary and right hand monitor as my primary.  Whenever I have a

  • Activations unavailable?

    i tried to update my development iphone with sdk 7. when i get to the point of activating it in itunes, i get a message saying that activations are not available at this time. unfortunately, this means my development device is useless. any ideas how

  • Getting TI4200 TO Work

    Gfilitti, This is chuck from Houston. Had to loggin with wifes computer, changed internet carrier and site would not allow me to log in. Wanted to let you know what I did to get TI4200 card working. Tried to install 4200 drivers             Invalid d

  • Can I load songs from one iTunes onto 2 separate iPods?

    I want to buy a 2nd iPod (use both) and am curious if I can load all the songs I already have onto the 2nd iPod? I dont want to have to buy them all again, so can I load onto new iPod without paying any more fees?? Im going to keep both iPods active

  • Handling an input mismatch exception

    I have written the following code to calculate tax payments based on income and filing status : import java.util.Scanner; public class computeTax {     public static void main(String[] args) {         Scanner input = new Scanner(System.in);         /