Popup pls

i saw many threads regarding popup ,
bit still i am not able to get it.
so anybody pls post me the coding
from declaration onwards.

Hi jean
lets say you want to generate a popup when user press the save button.
Create the action associated with save button : SAVE_DATA.
Go inside the code of action SAVE_DATA and add following code:
DATA : lr_component_api TYPE REF TO if_wd_component.
      DATA : lr_popup         TYPE REF TO if_wd_popup_to_confirm.
      DATA l_controller_api TYPE REF TO if_wd_controller.
      DATA : l_configuration  TYPE wdr_popup_to_confirm.
      DATA : l_text_table     TYPE  string_table,
             ls_text_table    TYPE  string  .
      l_controller_api = wd_this->wd_get_api( ).
      lr_component_api = wd_comp_controller->wd_get_api( ).
      ls_text_table = 'Are you sure you want to save record?'.
      APPEND ls_text_table TO l_text_table .
      TRY.
          CALL METHOD cl_wd_popup_factory=>popup_to_confirm
            EXPORTING
              component        = lr_component_api
              text             = l_text_table
              window_title     = 'Confirmation'
              configuration    = l_configuration
            RECEIVING
              popup_to_confirm = wd_this->popup.
        CATCH cx_wd_runtime_repository .
      ENDTRY.
      wd_this->popup->subscribe_to_events(
                            controller   = l_controller_api
                            handler_name = 'ON_CONFIRM_SAVE' ).
Go to the attribute of your view and add an attribute 'POPUP' of type IF_WD_POPUP_TO_CONFIRM.
when you will press the save button the action SAVE_DATA will be triggered and a popup will be generated.
To handle the action related to the buttons appearing on the popup window ( yes, no and cancel) create one more method in your view having name 'ON_CONFIRM_SAVE' (method type must be event handler) . in that event handler you can decide what to do  when any of the button on popup window ( yes, no and cancel) is pressed.
Go inside the event handler 'ON_CONFIRM_SAVE'
write the code:
  CASE wd_this->popup->answer.
    WHEN if_wd_popup_to_confirm=>co_button_1_pressed.
*your code regarding yes button.
WHEN if_wd_popup_to_confirm=>co_button_2_pressed.
*your code regarding no button.
endcase.
Thanks
Vishal kapoor
Edited by: vishal kapoor on Feb 9, 2008 10:51 AM

Similar Messages

  • I am trying to setup iCloud account and when I login I see a popup. The Maximum number of free accounts have been activated on this iPhone. Pls, help me fix it. What other accounts? Thanks

    I am trying to setup iCloud account and when I login I see a popup. The Maximum number of free accounts have been activated on this iPhone. Pls, help me fix it. What other accounts? Thanks

    Then you'll have to use another iOS device or Mac running OS X Lion or higher to create a new account for you to use on your phone.  If you don't have one, perhaps a friend would allow you to create and account on their device (note: this will use one of their three maximum accounts).  To do this, they would need to go to Settings>iCloud, tap Delete Account (which will delete the account from their device but not from iCloud), then allow you to sign back in with your ID to create the new account.  Then tap Delete Account to delete the new account from their device, and finally, sign back in with their iCloud ID to restore their iCloud account to their device.  Then you can sign in with your ID on your phone in Settings>iCloud and use the new account.

  • All of sudden, I can't launch iTunes as I get a popup saying "iTunes requires Quicktime 7.5.5 or later". I only have 7.4 currently and the apple site doesn't show anywhere to download Quicktime upgrade. Software Update detects no reqd updates. Help pls??

    all of sudden, I can't launch iTunes as I get a popup saying "iTunes requires Quicktime 7.5.5 or later". I only have 7.4 currently and the apple site doesn't show anywhere to download Quicktime upgrade. Software Update detects no reqd updates. Help pls??

    Here's a link to the QuickTime for Leopard 7.7 installer:
    http://support.apple.com/kb/DL761

  • Headache with IE11 not opening some java(i think) popups/boxes. Pls Help!

    Hello, I work as an IT guy, and this is the first time I cant solve something, or Im rly stupid with this or its an IE11 problem.
    Im running windows 8.1 with IE11, I wish I could downgrade!
    The problem: While opening a website (insurance) when I click some elements to open a popup into the same ie tab it "loads" but it does not open/show anything.
    This is the element in this website that does not work. I tried a lot of things... sfc /scannow, reinstalling java, reseting IE11 settings, etc etc etc
    I WOULD LOVE SOME HELP!
    <INPUT onclick="ShowDialog(this, 'LienholderPPro', true); return false;" onmousedown=OnMouseButtonDown(this) onfocus="OnFocusShowDialog(this,'LienholderPPro','VEH.0.veh_lien_ind'); return false;" id=VEH.0.veh_lien_ind-button
    class="lpAiDbdButton dbdButton" style="BORDER-LEFT-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-TOP-WIDTH: 0px" src="Images/add_delete.gif" type=image name=VEH.0.veh_lien_ind-button TreatUnknownRelevanceAs="None"
    jQuery1910693633654042384="124" enabledimage="Images/add_delete.gif" disabledimage="Images/add_delete_disabled.gif">
    P.S. IT WORKS WITH GOOGLE CHROME, BUT I RLY NEED IE TO WORK.

    Hi Loy,
    Apologize for the late reply. What is your current situation?
    I think what Robert suggested here is to use F12 tools to change the User-Agent string:
    User-Agent string changes
    For the compatibility changes in IE 11, please see:
    Compatibility changes in IE 11
    Please take use of F12 tool, and then change the User-Agent string or the document mode, see if there are any differences.
    Using the F12 developer tools
    Best regards
    Michael Shao
    TechNet Community Support

  • Refresh data in popup by external event

    Hi folks,
    I have got a popup with an alv grid displaying data from a database table.
    I want to reload the alv grid in case new entries were created outside of this popup.
    I thought it would be possible to fire an ABAP OO event after writing new data to database.
    The popup implements a handler for this event and this handler executes a manual refresh.
    My problem is that the event handler doesn't get this external event.
    In case I fire the event within the popup screen it works.
    I already thought about a periodic screen refresh. But that causes to much database traffic.
    Are there any suggestions?
    Thanks,
    Josef

    Hi Joseph.,
    I think periodic refresh is the way for ur requirement.,  U pls post ur thread here.. [ABAP OO Forum|ABAP Objects; . U will get some more useful inputs.,
    Thanks & Regards
    Kiran

  • Rename a Jtree node directly & Popup Menu

    Pls assist with codes to rename a Jree node directly without using a dialog box or optionpane. I tried
    tree.startEditingAtPath(/* path of selected node*/);
    to go to edit mode and it does not work.
    II. Is it possible to attach different popmenu to the root, separate from the parent and child? Pls assist with code as the popupmenu i use at the moment shows up on the nodes(root, parent, leaf).
    I have benefiited greatly from questions asked and answers proferred at this forum and I use this opportunity to thank everyone greatly as I have migrated to Java based on all the materials sourced on the net.
    [email protected]

    public class AutomatedTreeMouseHandler extends MouseAdapter {
         public void mousePressed(MouseEvent e) {
              JTree tree = (JTree) (e.getSource());
              int x = e.getX();
              int y = e.getY();
              TreePath path = tree.getPathForLocation(x, y);
              if (path != null) {
                   // generate your popup here
    Dennis,
    are you saying that i have to define the popmenu for each category of node in the mouseadapter and att'd these to the tree depending on whether root, leaf or whatever type of node is selected?
    I will try this and revert.
    I can not make anything out of the reference giving with regard to renaming a node in edit mode.
    Pls provide more explanation and sample code, if necessary.
    Thanks a million.

  • How to show modal window without popup in a web page using javascript

    Hi,
    How to show modal window without popup in a web page using javascript, means when the modalwindow is opened it should not ask for popup blocker alert......
    pls help me.....

    Thanx for ur reply,
    Actually the senario is when i click on a button, another jsp page should be displayed in a modal window without popup, but the functions alert() and confirm() will not accept the url path of the another jsp page...

  • How do I remove my credit card from my account and still download free apps. Bc that card is no more good anymore the App Store will not let me download any apps . I no longer have a credit or debit card.so PLS help

    How do I remove my credit card from my account and still download free apps? because that card is no more good anymore the App Store will not let me download any apps . I no longer have a credit or debit card.so PLS help

    On your iPad tap on your id in Settings > iTunes & App Store and tap on 'View Apple ID' on the popup and log into your account  - that should give you a payments link on your account's page. Or on your computer's iTunes you should be able to edit your payment info by going into the Store > View Account menu option and logging into your account, and on your account's details page there should also be a payment link.
    Changing payment info : Change or remove your payment information from your iTunes Store account (Apple ID)
    If you don't get the 'none' option on the payment details screen : Why can’t I select None when I edit my Apple ID payment information?

  • I need the code for creating popup windows and code for open and close

    I can write the code for creating popup window , i am getting problem while trying to open and closing that popup windows.
    Can anybody help me in that pls ?
    Regards
    Sreeni.

    Hi
    For pop up window
    IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("PopWin");
    IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
    window.setWindowPosition (300, 150);
    window.show();
    wdContext.currentYourNodeElement().setPopupAttribute(window);
    For closing window code
    IWDWindow window = wdContext.currentYourNodeElement().getPopupAttribute();
    window.hide();
    window.destroyInstance();
    For more infornation refer this link
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20d2def3-f0ec-2a10-6b80-877a71eccb68&overridelayout=true
    This link is very useful for you.
    Regards
    Ruturaj
    Edited by: Ruturaj Inamdar on Aug 13, 2009 9:10 AM

  • Skillbuilders modal Popup loading issue??

    Hi All,
    I have implemented skillbuilders modal plugin in my Application.We have some six different region in the home page.Each region is having a create and edit button.
    In the report region,when i click edit icon against each record and modify some values and click apply changes,changes are getting reflected in the home page.When am trying to click the same record,popup is loading continuosly for 4 -5 mins,not opening the form,then i close the popup and refresh the page,again i clicked on the same record which i modified recently ,its opening quickly.
    If anyone faced the same issue ,please post your comment like how you resolved that issue!!
    It will be very helpful for me.
    Many thanks
    Ramya

    Hi Dan,
    Thank you very much for the response.
    I have created a sample demo in apex.oracle.com.
    Please find the link below
    http://apex.oracle.com/pls/apex/f?p=4000:1500:2180107774088701:::::
    Workspace name - newrmo
    username/pwd - DAN/abc123
    DEMO APPLICATION - 66096
    Please check the report region in page 27.
    Try to create a record in that report region and also try to edit the report and click on the show icon to view the record details.
    Thanks,
    -Ramya.

  • Skillbuilders modal popup v2. - popup does not open, can't figure out why..

    Hi, I am using APEX v4.1 and have used skillbuilders modal popup v2 successfully in the past. For some reason, it is working on one page (calling page 700 to pull up popup page 360) but not working on another page (calling page 900 to pull up popup page 920).
    Both modal popup pages are called from HTML buttons using dynamic actions.
    Does anyone have ideas for debugging.
    thanks, Karen
    ps. when I run the console debug, I receive the following on loading the page. I am completely new to javascript and have no idea what this means....it does not happen on p700, only on page 900
    SCRIPT5007: Unable to get value of the property 'length': object is null or undefined
    apex_4_1.min.js, line 18 character 88940
    function initTabForm(a,b,d,h,g){
    var f="#init_row_"+a;
    gErrItems=g;
    gChangedItems=new Array();
    gNumRows=h;
    gNewRows=0;
    gTabFormRegionID=a;
    gTabFormReportID="report_"+a;
    gTabForm=apex.jQuery(f).parent();
    gTabFormDefaultBG=apex.jQuery(f).children("td").css("background-color");
    gTabFormInitRow=b+apex.jQuery(f).html()+d;
    apex.jQuery(f).remove();
    var c=$x_FormItems($x(gTabFormReportID));
    for(var e=0;
    e<c.length;
    e++){
    apex.jQuery(c[e]).attr("autocomplete","off");
    if(c[e].name!="X01"){
    gTabFormData[e]=c[e].value
    else{
    gTabFormData[e]="0"
    apex.jQuery(".row-selector").click(function(){
    highlightRow(gTabFormRegionID,this,apex.jQuery(".row-selector").index(this))
    apex.jQuery(document).bind("apexbeforepagesubmit",function(){
    apex.jQuery("input[name$=NOSUBMIT]",apex.jQuery("#"+a)[0]).each(function(){
    $x_disableItem(this,true)
    apex.jQuery(f).remove()
    Edited by: KarenH on Sep 28, 2012 10:39 AM

    Thanks Pete.
    This is a large application, and I have had difficulty posting to apex in the past because the schema is too large and cannot be exported...but at least it gives you an idea.
    I am trying to rewrite p900 as it is much too complicated, and thought the modal popup would help in terms of adding new rows and validating, rather than using collections. This code was inherited, so I am a bit confused myself...but hoping to make progress.
    The button in question is called TRIPHEADER (add/edit trip header).
    https://apex.oracle.com/pls/apex/f?p=4550:1:33303433963:::::
    workspace: KEH813
    user: guest
    pwd: fish
    if you have trouble with that, access my development site:
    http://warsaw-grouper.accsp.org:7777/pls/safisd_11/f?p=4550:1:0:::::
    workspace: SAFIS
    user: guest
    pwd: fish
    you will need to run application 200 and logon as MDFISHER/SHARKBAIT
    go to FAVORITES (p900) and press ADD/EDIT TRIP HEADER....nothing happens.
    if you go to menu-->FISHER INFO and press ADD/EDIT EMAIL, you will see the modal successfully appear.
    thanks again. Karen

  • Skillbuilders Modal Popup does not open correctly

    Hi,
    i installed the modal popup from skillbuilders but i'm having trouble using it. I've gone through the online tutorial and the forum but i don't know what i am doing wrong.
    The modal page opens but very quickly a larger window shows that reduces in size to a smaller one which display no regions or items from the page i have selected to be a popup modal. I have created a demo which has the same effect
    http://apex.oracle.com/pls/apex/f?p=35329:1
    (usr,pwd: modal, modal)
    I'm not sure what page type should be used, i have tried a blank page, form, classic report but all have the same result. I'm using Apex 4.2.3
    Teo

    Try Page Template = 'Popup' for your modal page.
    If you provide access to your workspace, it might be easier to track what's wrong.

  • How to startup a report in a popup after committing a form (solution)

    How to startup a report in a popup window after succesfull submission of a form</p>
    In Portal Applications you can create forms in which e.g. users can enter
    order-entries. When a user submits his order, it's a good practice to show his
    filled-in order-form, containing the delivery address, items, descriptions,
    prices etc etc.</p>
    In this solution the order-report is started up in a popup window after
    succesfully completing the order-entry form.</p>
    Once you've created the form and report, you have to take two extra steps
    (the abbrevation mos represents MyOrderSystem and offcourse you should replace
    that by the schema- and applicationname you use).</p>
    1  Create a package to startup the report</p>
    <font face="Courier">create package MOS.MOS_POPUP_ORDER 
    as 
     procedure show ( order_id varchar2, backurl varchar2 );
    end; </font></p>
    <font face="Courier">create package body MOS.MOS_POPUP_ORDER 
    as 
     procedure show ( order_id varchar2 , backurl varchar2 ) 
     is 
      l_url varchar2(2000);
    begin 
     if order_id is not null 
     then
    -- URL to startup the report. Surf to the Develop tab while managing the
    -- portal-report and click on Show the call interface.
      l_url := 'http://www.mydomain.com/pls/portal30/' 
            &#0124; &#0124; 'MOS.MOS_ORDER_REP.show?'
            &#0124; &#0124;
    'p_arg_names=_show_header&;p_arg_values=YES&;'
            &#0124; &#0124; 'p_arg_names=order_id&;p_arg_values=' 
            &#0124; &#0124; order_id;
    -- Display the popup window and startup the report.
      htp.p('<SCRIPT> var MyWindow = window.open(&quot;'
            &#0124; &#0124; l_url
            &#0124; &#0124;
    '&quot;,&quot;MyOrderWindow&quot;,&quot;toolbar=no,location=yes,directories=no,'
            &#0124; &#0124;
    'status=no,menubar=yes,scrollbars=yes,resizable=yes,'
            &#0124; &#0124;
    'height=400,width=600,left=150,top=150&quot;);'
            &#0124; &#0124;
    'MyWindow.focus();</SCRIPT>');
    -- Now you have two options:
    -- 1. When you have your form in a Portal Page, you want to return to the page.
    -- 2. When you have your form in a full window, you only have to return to that
    --    window.
    -- The coding is as followed:
    -- 1. Copy this URL from the navigator pointing to the page.
      l_url := 'http://www.mydomain.com/pls/portal30/'
            &#0124; &#0124;
    '!portal30.wwpob_page_util.redirect?'
            &#0124; &#0124;
    '_pageid=123&;_mode=3&;_tabstring=&;_portletmode=&;_cache=1';
    -- 2. Parameter backurl contains automatically the correct url to return
    --    to the form in full browser mode.
      l_url := backurl;
    -- Now return to the original window.
      htp.p('<SCRIPT>self.location.href=&quot;'
           &#0124; &#0124; l_url
           &#0124; &#0124; '&quot;</SCRIPT>');</font></p>
    <font face="Courier"> end if;
    end;</font></p>
    2  Modify the form</p>
    In the &quot;on succesful submission of a form&quot; part you enter this
    PLSQL. Note that the order is identified by the column ORDER_ID and the CALL
    procedure needs two parameters: the url for starting up the report and the
    parameter name for the back-url. </p>
    <font face="Courier">declare
     l_order_id integer;
    begin
     l_order_id := p_session.get_value_as_NUMBER(
     p_block_name => 'DEFAULT',
     p_attribute_name => 'A_ORDER_ID');
     call('mos.mos_popup_order.show?order_id='&#0124; &#012 4;l_order_id,'backurl');
    end;</font></p>
     </p>
    null

    Excellent tip! Thank you for that!
    One question - where you have hardcoded the URL to navigate to the report and back again, I'd like to be able to do this without the hardcoding. The domain of my development environment is different from the domain of my production environment, and I don't want to have to remember to change the URL when I handover code. How could I do this?

  • Popup LOV returns not found on this server after upgrading to APEX 3.2

    The Popup Key LOV (Displays description, returns key value) does not work after upgrading to APEX 3.2 from APEX 3.0.
    Don't now if the character set is relevant.
    The database character set on APEX 3.0 was:
    NLS_CHARACTERSET: WE8MSWIN1252
    DAD CHARACTERSET: WINDOWS-1252
    APEX 3.2:
    NLS_CHARACTERSET:     AL32UTF8
    DAD CHARACTERSET:     UTF-8
    When clicking on the popup the message is "The requested URL /pls/apex31mb/wwv_flow_utilities.gen_popup_list was not found on this server.".
    This error applies for both Firefox and IE.

    Can't reproduce the error on apex.oracle.com, the popup works fine.
    The only difference I notice on the environments is the database version (our: 10g, oracle.apex.com: 11g), but I can't see this have any influence.

  • Calling a WDA on a field's F4 help.. pls reply

    Hi friends,
    I have a WDA1, with a table of item list. coloumns --  item no:  product no: status:
    I need to give a F4 input help for product no: .. it should call a other WDA2(this is for product search. I already did this).
    so once product F4 button is hit, it shoudl call my WDA2 as a popup.... and there the product search list table, if i click one record and hit chooose button.. that product selected in WDA2, should
    transfer to my WDA1's product no coloumn?
    how to call a wda on F4 input help?  how to pass values back to my field...?
    also before the product comes to my WDA1, i need some validations to figure out the status(coloumn 3)...?
    kindly pls.. check this one.. if someone reply me it will be thankful..
    thanks in advance,
    Niraja

    Hi,
    Get yourself familiar with the concept of "Freely Programmed Value Help".
    http://help.sap.com/saphelp_nw70/helpdata/EN/47/9f724642314aabe10000000a42189b/frameset.htm
    And then take a look to the demo value help component that you can find in the system. I cannot now remember the name of this demo component, but you should find it by looking components using component interface IWD_VALUE_HELP (or searching components in SE80 with "WDvaluehelp" or something like that). You should get the idea quite easilly with this demo component provided by SAP.
    Regards,
    Karri
    Edited by: Karri Kemppi on Nov 13, 2008 9:41 PM

Maybe you are looking for

  • If statement in calculated batch characteristic (dependencies)

    I have a little problem with calculating a certain batch characteristic. The situation is the following: I have batch char A, batch char B and batch char C. Batch char C is the result of the sommation of char A and B. The problem I have now is that b

  • Blue Screen Of Death When Syncing Ipod

    Hey so if anyone can help me i will love you so much, So I have a 20GB fourth generation ipod (old i know) but it works fine, and i have an new HP laptop that i got for christmas and like for a good 2 months everything was fine with itunes and then o

  • Help-kerberos works with spnego keytab file but not in netbeans and Metro

    Hi, Appreciate if someone can shed some light on this problem and guide on what else am I missing. I'm trying to call .NET based WCF webservice (MS Dynamics CRM - OrganizationSvc) from a java client. Started looking at Metro framework for interoperab

  • Cannot create an A4 Scanned PDF

    HI, I cannot set the Paper SIze to A4 when Creating a PDF from Scanner. I go into Configure Presets and see no preset option to do this and when i try to set Custom get an error with the message max siz to 279.3mm and not 297.00mm as it would need to

  • Problem with trnsaction variant

    Hi Gurus, I want to create transaction variant for XD01 transaction and make district field mandatory. I have done it using transaction SHD0 and its showing effects when i test it from SHD0. But I cant see its effect in actual transaction XD01. Pleas