How to reduce Popup Window Size?

Hello All,
I have one popup window, the height of popup window is being displayed too large.
I used method IF_WD_WINDOW->WINDOW_SIZE( ), there are parameters 'Width' and 'Height' of type string, i have passed '30' and also '30%'  like formate, it didn't work.
how to control the size of window? Could you please suggest me?

To be honest i havent found the size parameters working, what you can do though is to RESTRUCTURE the TEXT to be displayed in the pop-up, that would allow you to controll the WIDTH of the pop-up.
in my code sample below l_text table has 2 entries, we can further have more inserts to it to gain height.
You can create pop-up with different text, by extending the below source.
data :  l_cmp_api          type ref to if_wd_component,
          l_window_manager   type ref to if_wd_window_manager,
          l_popup            type ref to if_wd_window,
          l_text             type        string_table,
          l_api              type ref to if_wd_view_controller,
         RR_POPUP_WINDOW type ref to  IF_WD_WINDOW.     
  l_cmp_api        = wd_this->wd_get_api( ).
  l_window_manager = l_cmp_api->get_window_manager( ).
  insert `Records marked with RED LED contain error into table l_text.
  insert `To proceed processing with errors, select YES for this POP-UP.` into table l_text.
  rr_popup_window = l_window_manager->create_popup_to_confirm(
                text            = l_text
                button_kind     = if_wd_window=>co_buttons_yesnocancel
                message_type    = if_wd_window=>co_msg_type_warning
                window_title    = 'INFO'
                window_position = if_wd_window=>co_center
                ).                                          "#EC
      rr_popup_window->subscribe_to_button_event(
               button            = if_wd_window=>co_button_yes
               action_name       = 'TO_V_PODETAILS' "action on the view that handles click
               action_view       = ir_view
               is_default_button = abap_true ).
RR_POPUP_WINDOW ->open( ).
Greetings
Prashant

Similar Messages

  • Reduce Popup Window Size

    Hello Experts,
    I have one popup window, the height and width of popup window is being displayed too large.
    I am using method window set_window_size() and passing the parameter u2018Width = 20%u2019 and u2018Height = 30%' but it doesnu2019t work. How to reduce Popup Window Size?
    Could you please suggest me?
    Thanks.

    Check out this post POPUP WINDOW .
    I think the popup size will work in later SP level, instead of work on height and width of the popup specify the size of the called UI  container.
    Sergio

  • Popup window size problem

    Hi,
    For some reason, the popup window link in my Flash website
    opens up a popup which doesn't behave to the window size rules I
    set.
    The website is www.caveataudiens.net , click on the 'music'
    button, and then on the Jukebox button to see as example.
    The Jukebox button has the following actionscript:
    on (release) {
    //customize the window that gets opened
    // 0 equals NO.
    // 1 equals YES.
    address = "
    http://www.caveataudiens.net/music/mp3player.html";
    target_winName = "kirupa";
    width = 400;
    height = 300;
    toolbar = 0;
    location = 0;
    directories = 0;
    status = 0;
    menubar = 0;
    scrollbars = 1;
    resizable = 0;
    //sends data back to the function
    openWinCentre(address, target_winName, width, height,
    toolbar, location, directories, status, menubar, scrollbars,
    resizable);
    and in my main actionscript layer I have:
    stopAllSounds();
    forum_btn.onRelease = function() {
    getURL("
    http://www.flaccidsacks.co.uk/phpBB2/",
    "_blank");
    music_btn.onRelease = function() {
    gotoAndStop("music");
    links_btn.onRelease = function() {
    gotoAndStop("links");
    about_btn.onRelease = function() {
    gotoAndStop("about");
    news_btn.onRelease = function() {
    gotoAndStop("news");
    Movieclip.prototype.openWinCentre = function (url, winName,
    w, h, toolbar, location, directories, status, menubar, scrollbars,
    resizable) {
    getURL ("javascript:var myWin; if(!myWin ||
    myWin.closed){myWin = window.open('" + url + "','" + winName +
    "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar +
    ",location=" + location + ",directories=" + directories +
    ",status=" + status + ",menubar=" + menubar + ",scrollbars=" +
    scrollbars + ",resizable=" + resizable +
    ",top='+((screen.height/2)-(" + h/2 +
    "))+',left='+((screen.width/2)-(" + w/2 + "))+'" +
    "')}else{myWin.focus();};void(0);");
    Can some kind soul help me figure out how to adjust the
    window size?
    Many thanks
    lyle

    Any ideas?
    When I change the settings for toolbar, status, etc, then the
    changes take effect, it seems though only the width and height
    don't work for some reason.
    I would be very grateful for any suggestions
    Thanks
    Lyle

  • Managing Popup window size

    I am using RoboHelp 10 - I need to manage the popup window sizes so the larger popups (images of the main screens) can be displayed full size but without scroll bars.  Can anyone help?  If I choose the option for the popups where I decide on the size it makes all popups that size.  Suggestion????
    Also - how do I create lists so the are properly aligned.  bullet remains to the left like a hanging paragraph and the text remains indented properly ....

    Any ideas?
    When I change the settings for toolbar, status, etc, then the
    changes take effect, it seems though only the width and height
    don't work for some reason.
    I would be very grateful for any suggestions
    Thanks
    Lyle

  • 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 reduce jpg file size, not pixel dimensions?

    I am preparing images for the web and I really have 2 questions: one about gifs, and one about jpgs.
    My standard procedure is to reduce the image to the desired pixel dimensions at 600 dpi
    That gives me a crisp small image. then I either use it as is if the file size is low enough (I try for under 600 kb) or convert it to a gif with the save for web and devices tool.
    So here are my 2 questions (I will count this solved with either answer)
    1) When I convert to a gif I have the 4 boxes: one with original size, the other 3 with options but often the options are too low res for me How do I change my 3 options to start at a higher gif res?
    2) If I try to reduce the file size of the jpg in the image size box I set the resolution lower ( 400, 300), which lowers the pixel dimensions and the filesize, but I don't want to cahnge the pixel dimensions. And  If I reset the pixel dimensions back to the size I want them, even though it is a lower resolution the file size doesn't change. How to reduce jpg file size using only the resolution, not pixel dimensions?  PS I have tried messing with checking and unchecking the 3 little boxes( scale styles, constrain proportions, and resample) but nothing has worked.

    Gif is not a great filetype, especially if you want a crisp image. What are your pixel dimensions?
    For web, it makes no difference what the dpi is, only the final pixel dimensions so once you have that as you want, use 'Save for Web and Devices' and you can lower the quality - 100% being max and 0% being lowest. I wouldn't save anything below 55%. For a 600kb image, your dimensions must be rather big.

  • How to reduce the barcode size

    hi
    How to reduce the barcode size in smartforms
    Thanks & Regards
    krishna rao

    Hai,
    Go to se73
    select system barcodes radi button
    click change button
    it wil moves to another screen .In that screen it wil show all Bar codes.
    select u r barcode from the list  click and change button.
    in this way u wil change barcode size.
    Reagards.
    kishore ale

  • How to reduce the database size based on MS SQL/Oracle?

    Hi,
    I had deleted severy clients via SCC5, but the database size is more and more bigger. Do you know how to reduce the database size.
    my platform is: NT, MS SQL 2005
                           NT, Oracle 10.2
    Best Regards,
    Simon Shen

    Hi Simon,
    In the case of SQL you need to check how many space free you have in your datafiles and the based on that you need to Shrink them using DBCC SHRINKFILE command.
    Find a couple of reference docs here,
    http://www.intermedia.net/support/kb/default.asp?id=996
    http://doc.ddart.net/mssql/sql70/dbcc_21.htm
    Also i'm pretty sure that if your check the properties of the datafiles in MSSQL Enterprise Manager you get a "Shrink" option.
    Regards
    Juan
    Please reward with points if helpful

  • Notify popup window size

    Hi,
    Is there a way to change the Notify popup window size (especially width)?
    Sometimes I got emails where the subject is quite long, and quite important information is at the end of the subject. The default width of the popup window is not enough to show the full subject.
    Thanks in advance for any tips.

    Hi,
    Unfortunately I too can't figure out a way to do this.
    Perhaps one of the GroupWise guru's knows something that we don't ;)
    Cheers,

  • How To reset Safari window size back to original factory setting?

    How To reset Safari window size back to original factory setting?
    I resize my pages often but I don't want to always keep them at random sizes. I want to know the proper method to reset the webpage size back to it default size. Right now it's too wide, and I click the green plus button in the upper left corner and it goes down to a very small size, I click the green plus again and it returns to the Too Wide size. I just can't seem to get it to go back to the default size.
    Thanks for your help!

    You could try this.   Set the safatri page to your convenience by dragging the bottom right hand corner of the page.   Quit safari, then immediately relaunch.   It should start up the same size as it was before you quit.  Then ...
    Go to Safari > preferences and set the page as your home page.

  • On a certain website the window size has become so huge I cannot use certain features and am unable to reduce the window size myself. It went huge as I was moving the cursor and I have been unable to ajust this. How do I alter screen size manually?

    Sometimes when moving the cursor the window size on certain sites reduces or increases. This happens randomly and I am not able to make it happen to change the size of the screen to my choice. The window on a particular site is now so huge I am unable to use features on there as they do not come into view on my window at all. Please help me on how to control this feature or in other words how do I increase or decrease the window size manually.

    See "Resizing oversize window" - MozillaZine Knowledge Base
    *http://kb.mozillazine.org/Resizing_oversize_window
    There are a couple of extensions tat could also be involved
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • Popup image works fine but how to control the window size

    Hello folks,
    I use
    <img title="Click to pop up large image" src="#OWNER#.view_my_file_form?p_file=#IMGID#" width="40" height="30" />
    to popup a image window. It works just fine. How can I set the popup image window size? The window is too big but the image is too samll.
    Many thanks.
    Mickey

    The popupURL function is defined as
    function popupURL(url)
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
    if (w.opener == null) w.opener = self;
    w.focus();
    If 800x600 is too big for you, write your own mypopupURL function with whatever size you want

  • Controlling popup window size

    Is there a way to influence the size of popup windows? I am
    developing help that will be displayed in a narrow panel, and
    popups get to be ridiculously narrow. It seems that the autosizing
    algorithm prioritizes tall over wide, so that a pupup topic that
    fits in the help display without scrollbars doesn't use as much
    width as it could. The width is extended as a last resort if the
    amount of text would otherwise demand a scrollbar. I would like the
    popups to be only a little narrower than the main window regardless
    of the text amount.

    GEWB,.
    Thanks. A bit of elaboration:
    I make extensive use of popups to display screen shots in a
    separate window so the user can browse help and go from topic to
    topic without necessarily navigating in the parent application at
    the same time. I also make the guide available in our DocWeb
    library as a standalone guide, so the user can read it with the
    parent application closed.
    Sometimes the popup window contains a fair amount of text in
    a subtopic that the user may need to read only once and never
    summon again. He or she has the option of ignoring that popup link
    on returning to the topic. It's the same principle as a Glossary
    definition. The link is there, but once you read it, why bother if
    you can remember it from last time?
    I haven't used dropdowns much, but as I recall they appear in
    the topic pane and push text down until they are dismissed. Useful,
    yes, but they wouldn't accomplish my purpose for popups.
    I looked through ehlpdhtm.js, which primarily serves IE. It
    figures out the autosize dimensions on the fly, and performs the
    dhtml effect on text, such as flying in and out, but
    Firefox/Mozilla/NS don't use dhtml effects.
    I can't find a place in ehlpdhtm.js where (if it's in this
    file) the default popup window is sized (it's about 300 px wide by
    150 px high).
    BSSCDHTM.JS doesn't appear in WebHelp output. Much of it is
    similar to the other js file. I have no idea how it's used. The RH
    help topic on output files mentions ehlpdhtm.js, but there is no
    reference to bsscdhtm.js.
    Is it possible that ehlp... replaced bssc.. and bssc... never
    was removed from the RH code? Or is bssc... perhaps used in
    generating html help?
    If it's in some dll file, I can't fiddle with it, unless you
    can tell me how to edit and save a dll file without destroying its
    dll file type. DHTMLFX.DLL has a lot of code that looks similar to
    the two .js files, but I can't find the default size. That's why I
    thought perhaps the non-ie browsers have a built-in default when
    the html code doesn't specify a custom size.
    I'm content with the workaround, using custom sizes for all
    popup windows, unless a real developer (of which I am not one) can
    help figure this out.
    Thanks again.
    Harvey

  • How  to change default window size?

    I'm using MX 6.0 on Mac... For some reason I can't figure out
    how to change the default window size in the work windows. Every
    time I open a new file to work on it opens to a smaller size than
    the actual page is. When opening pages dozens of times a day, it
    gets annoying to have to resize each time. I'm sure it wasn't
    always like this, but I can't figure out how to change it so the
    default size that it opens to each time is larger.
    Thanks for any help,
    DD

    Window | Workspace | Save Current
    This gives you the opportunity to save a current layout look
    that you like
    You might also look under
    Edit |Preferences | Status bar - but I don't see that this
    does anything
    in DWCS3

  • How to create popup Windows in WebDynpro

    I am learning WebDynpro and have developed a sample application where i ask the user to login. In case of incorrect login I want to display a popup window which shows an error message and has an ok button on it. On click of the OK button i want to close the Window.
    I have created a view for this popup... called errorView
    On click of login button i perform validations n incase the validatins fail i have put in the following code
    IWDWindowInfo myWinInfo = wdComponentAPI.getComponentInfo().findInWindows("Ra_ErrorView");
    myPopupWindow = wdComponentAPI.getWindowManager().createWindow(myWinInfo,true);
    myPopupWindow.setWindowPosition(300,150);
    myPopupWindow.open();     
    How should i proceed?
    Where should i write the myPopupWindow.close()
    Kindly give a step-by-step solution.

    Hi Reema,
    You want to close a window say window1 which you opened from a view.
    create an attribute. select its type from java native settings to IWDWindow
    wdContext.currentcontextElement().setWindowInstance(window);
    1.create an event in component controller say event1
    2.In order to trigger the event in component controller create a method in it
    write this code in implementation of controller to trigger the event
    wdThis.wdFireEventAddressSelectedEvent();
    3.For catching whatever event that is responsible for closing the window create an event handler in view1 say eventhandler1.Choose the subscibed event to be event1
    4.In that eventhandler1 write the code in implementation
    IWDWindow window =
    wdContext.currentcontextElement().getWindowInstance();
    window.close();
    Hope this helps you.Do revert back if you have more doubts
    Regards
    Rohit
    Message was edited by: Rohit Radhakrishnan

Maybe you are looking for