Need help on POPUP screen  in web ui

Hi Experts,
I have created popup screen in the eh_onsave method .Now it is triggering, in this popup it is displaying YES, NO and CANEL buttons. But i want to change the standard buttons descriptions. how to do ?
I have created custom buttons and displaying as  ACCEPT, REJECT AND CHANGE on the popup screen. if I click any button on the popup is returning same event id, i have seen in debugging custo_btn .
below is my code.
ls_button-id = 'ACCEPT'.
  ls_button-text = 'Accept'.
  ls_button-on_click = 'ACCEPT'.
  ls_button-on_select = 'ACCP'.
  append ls_button to lt_buttons.
  clear ls_button.
  ls_button-id = 'REJECT'.
  ls_button-text = 'Reject'.
  ls_button-on_click = 'REJECT'.
  append ls_button to lt_buttons.
  clear ls_button.
  ls_button-id = 'CHANGE'.
  ls_button-text = 'Change'.
  ls_button-on_click = 'CHANGE'.
  append ls_button to lt_buttons.
  clear ls_button.
  call method comp_controller->window_manager->create_popup_2_confirm
    exporting
      iv_title          = 'Vary Item Proposal'
      iv_text           = lv_text
      iv_btncombination = if_bsp_wd_window_manager=>co_btncomb_custom
      iv_custombuttons  = lt_buttons
    receiving
      rv_result         = gv_confirm_popup.
  gv_confirm_popup->set_on_close_event(  iv_view = me
                                         iv_event_name = 'CONFIRM_POPUP_CLOSED' ).
  gv_confirm_popup->open( ).
ethod EH_ONCONFIRM_POPUP_CLOSED.
Added by wizard: Handler for event 'CONFIRM_POPUP_CLOSED'
INCLUDE: crm_object_types_con.
DATA: lv_answer TYPE string.
lv_answer = GV_confirm_popup->get_fired_outbound_plug( ).
CASE lv_answer. "Here i am getting the same id for any button.
WHEN cl_gs_ptc_bspwdcomponent_cn01=>co_event_yes.
WHEN cl_gs_ptc_bspwdcomponent_cn01=>co_event_no.
WHEN OTHERS.
ENDCASE.
Please help me.
Thanks,
Venky

Hi Venky
Try to Implement the below lines along with other lines while building the button, apart from that check ON_CLIENT_CLICK also (instead of on_click use the on_client_click)
ls_button-enabled = 'X'.
More over I checked your code in the CASE statement you are using the stanadrad constants like co_event_yes , but you are setting the event with other names pls check that also.
now your code will look like this
ls_button-id = 'ACCEPT'.
ls_button-text = 'Accept'.
ls_button-enabled = 'X'.
ls_button-on_client_click = 'ACCEPT'.
ls_button-on_select = 'ACCP'.
append ls_button to lt_buttons.
clear ls_button.
hope this helps.
Thanks & Regards
Raj
Edited by: bmsraj on Sep 21, 2011 7:06 PM

Similar Messages

  • REALLY NEED HELP!! screen is just black and wont turn on

    i have an 8GB, 2nd geration, black ipod nano and i was just listening to my ipod in activity class when my ipod froze. so i tried the manual restart. but it didn't turn back on. now the screen is just black, wont even restart no matter what. so i tried plugging it into my computer but the itunes doesn't recognize it. there's a screen that pops up thats tells me to look for the files or download or something like that but when i try to, it says files not found. right now im at a total loss. nothing i do turns it on. what do i do now? should i just toss it? i dont even know if i wan't to buy a new one cause im scared this might happen again. i really dont want to use another $250 for another one.
    ABSOLUTELY NEED HELP!!. im a bboy so i need my music lol.

    Sounds like the fall broke something internal. Take it to Apple and have them check it out.
    Allan

  • Need help on selection screen optation

    1)PARAMETER: P_DETAIL RADIOBUTTON GROUP G1 DEFAULT 'X'.
    2)PARAMETER: P_SUMM RADIOBUTTON GROUP G1
    3)SELECT-OPTIONS: S_PGI FOR ZAPDDLIV-ZDATE
    i have 2 parameters depending on parameter i need to accept selection screen for parameter 1 accept data in dd.mm.yyyy. and for parameter need to accept only mm.yyyy
    only
    need help on this selection criteria..

    Hi Anil,
    It is very much possible. Use Modif ID concept. First dont display any date, depending on radio button selected display date in which ever form u need.
    See the sample coding for Modif id.
    PARAMETERS: test1(10) TYPE c MODIF ID sc1,
                test2(10) TYPE c MODIF ID sc2,
                test3(10) TYPE c MODIF ID sc1,
                test4(10) TYPE c MODIF ID sc2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group1 = 'SC1'.
          screen-intensified = '1'.
          MODIFY SCREEN.
          CONTINUE.
        ENDIF.
        IF screen-group1 = 'SC2'.
          screen-intensified = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Dont forget to reward points if found useful.
    Thanks,
    Satyesh

  • Need help formatting List (checkbox list) web app items on a page.

    See this page: Joseph Cancilla
    As you can see from the above example the List (checkbox list) items are all running together. I can't figure out a way to separate the items.
    i.e. DANCE: Ballet,Ballroom should read DANCE: Ballet, Ballroom with a space after the comma.
    Seems like a simple problem but having a hard time finding a solution. Any help would be appreciated.
    Thanks!

    Hi Matt, You should read about web apps here:
    http://helpx.adobe.com/content/help/en/business-catalyst/partner/web-apps-module-create-cu stom.html
    And module reference here:
    http://helpx.adobe.com/business-catalyst/kb/modules-quick-reference.html
    If you insert through the admin and click customise you will see the option to use listbackup. You will also see that layout availible via FTP and in the admin or DW.
    Here you can see where in the module paramaters the option to choose listbackup occurs:
    http://helpx.adobe.com/business-catalyst/kb/modules-quick-reference.html#id_65138

  • I need help with blue screen on Windows 7

    Hi guys...I was wondering if someone could help me...!
    While I play a video game, I recieve a error blues screen message...I don't know if it is an error from my S.O, or it is an error for that video game...! 
    The message that I been given so far says :
    Problem signature:
      Problem
    Event Name:                        BlueScreen
      OS Version:                                         6.1.7600.2.0.0.256.1
      Locale ID:                                             10250
      Additional
    information about the problem:
      BCCode: 
                                                 50
      BCP1:                                                    FFFFF900C061C770
      BCP2:                                                    0000000000000000
      BCP3:                                                    FFFFF96000636D15
      BCP4:                                                    0000000000000000
      OS
    Version:                                          6_1_7600
      Service
    Pack:                                       0_0
     Product:                      
                            256_1
      Files
    that help describe the problem:
      C:\Windows\Minidump\022710-26223-01.dmp
      C:\Users\Caroline\AppData\Local\Temp\WER-125393-0.sysdata.xml

    Hi,
    In order to assist you, we will need the .DMP files to analyze what exactly occurred at the time of the crash, etc.
    If you don't know where .DMP files are located, here's how to get to them:
    1. Navigate to the %systemroot%\Minidump folder.
    2. Copy any and all DMP files in the Minidump folder to your Desktop and then zip up these files.
    3. Upload the zip containing the .DMP files to Onedrive or a hosting site of your choice and paste in your reply. Preferred sites: Onedrive, Mediafire, Dropbox, etc. Nothing with wait-timers, download managers, etc.
    4 (optional): The type of .DMP files located in the Minidump folder are known as Small Memory Dumps. In %systemroot% there will be what is known as a Kernel-Dump (if your system is set to generate). It is labeled MEMORY.DMP. The difference
    between Small Memory Dumps and Kernel-Dumps in the simplest definition is a Kernel-Dump contains
    much more information at the time of the crash, therefore allowing further debugging of your issue. If your upload speed permits it, and you aren't going against any strict bandwidth and/or usage caps, etc, the Kernel-Dump is the best
    choice. Do note that Kernel-Dumps are much larger in size due to containing much more info, which is why I mentioned upload speed, etc.
    If you are going to use Onedrive but don't know how to upload to it, please visit the following:
    Upload photos and files to Onedrive.
    After doing that, to learn how to share the link to the file if you are unaware, please visit the following link -
    Share files and folders and change permissions and view 'Get a link'.
    Please note that any "cleaner" programs such as TuneUpUtilities, CCleaner, etc, by default will delete .DMP files upon use. With this said, if you've run such software, you will need to allow the system to crash once again to generate a crash dump.
    If your computer is not generating .DMP files, please do the following:
    1. Start > type %systemroot% which should show the Windows folder, click on it. Once inside that folder, ensure there is a Minidump folder created. If not, CTRL-SHIFT-N to make a New Folder and name it Minidump.
    2. Windows key + Pause key. This should bring up System. Click Advanced System Settings on the left > Advanced > Performance > Settings > Advanced > Ensure there's a check-mark for 'Automatically manage paging file size for all
    drives'.
    3. Windows key + Pause key. This should bring up System. Click Advanced System Settings on the left > Advanced > Startup and Recovery > Settings > System Failure > ensure there is a check mark next to 'Write an event to the system
    log'.
    Ensure Small Memory Dump is selected and ensure the path is %systemroot%\Minidump.
    4. Double check that the WERS is ENABLED:
    Start > Search > type services.msc > Under the name tab, find Windows Error Reporting Service > If the status of the service is not Started then right click it and select Start. Also ensure that under Startup Type it is set to Automatic rather than
    Manual. You can do this by right clicking it, selecting properties, and under General selecting startup type to 'Automatic', and then click Apply.
    If you cannot get into normal mode to do any of this, please do this via Safe Mode.
    Regards,
    Patrick
    “Be kind whenever possible. It is always possible.” - Dalai Lama

  • Need help with a customized interactive web application for  apparel

    Help!!!!
    Hi I am a web designer at beginners stage with web
    devlopment. I am seeking guidance on how to develop a customized
    interactive web application so that the end user can change color
    and patterns of apparel on vector images such as teamsports
    uniforms and tshirts. Once the design is customized to their liking
    they can save it with all of the spec information in a file to
    there desktop or to a database to send to the manufacturer.
    Also looking for a possible way to use a CMS so I can upload
    templates of the garment easily for the end user to customize
    online. Can this be done and if so how? This is an example the kind
    of application I am looking for:
    http://www.dynamicteamsports.com/elite/placeorder.jsp
    I am in desperate need of some brilliant developer to help
    with this.
    Thanks in advance for anyone who is willing to assist or give
    me guidance,
    Danka
    "Reap what you sew"

    some parts of that are doable using non-advanced skills, but
    will be difficult and unwieldly if there are more than a few
    colors/patterns.
    saving the image to the server is a bit more advanced and
    you're going to need some server-side scripting like php, perl, asp
    etc. in addition to some flash programming ability.

  • Need Help.... Web Services

    Hello..!!
    Kindly help me...
    I want to build webservice with java/jsp as described below...
    the client will just type the sql query in the text box provided on html (or jsp???) page. and the resulted string from the database will be displayed in the browser.
    So, which technologies I should read? Like there are JAX-RPC, SAAJ, etc. and how can I invoke the sring from the database (say MySql) like '2 rows updated'....
    please help.
    Thanking you.
    .Mohit

    Well the way I alwasy treat connections between a mobile client and the server is using a wait screen
    I haven't seen all your code, but I found no executable Task in info.java
    So if you got in your mobileApp a login screen, for example, and then you got the okCommand to send data, you could switch display to a Wait Screen.
    WaitScreens got a method called getTask(), in which you can programm any task - like a connection to a web service -, you must write your code inside the inner method "execute()", so Success command will redirect to a custom display, let's say, for example a SplashScreen with "Hello <loginName>, welcome", or redirecto to another SplashScr with "Sorry, incorrect user/pass"
    I work with netbeans, so it's pretty easy to drag a WaitScreen and edit the atomatically-generated method getTask()
    So Use a wait Screen =)

  • Need help with popup windows

    Hi,
    (I don't know if this is where I should post this, so if somewhere else is more appropriate, please let me know)
    I'm building a window (might say a popup window). What I need it to do is this. I'm working in the gui. When the user clicks the button "load", it launches this window. In this window, the user selects what they want to load. They can select their option and click load, they can double-click on their option, or they can click "cancel". When any of these three happen (and only then), I want this window to return a value of "long" in accordance with what they selected. (What it returns doesn't really matter). So, basically, it will work almost the same a JOptionPane. (However, I don't want to use JOptionPane).
    However, I can't figure out how to do this. In JOptionPane, the window pops up and doesn't return anything until the user clicks one of the buttons. How can I make it so it won't return anything until the user does one of the three choices I listed above.
    I tried to use wait() and notify() but that didn't work either. (I don't know how to use them). Anyway, I don't know that that's the best way.
    I looked at the source code for JOptionPane and tried to track down how it does it, but I couldn't narrow it down.
    Could anyone please help me?
    (If I need to explain better, let me know).
    Thanks,
    Daniel Lorimer

    Yeah, I converted mine from using JFrame to JDialog and it does what it's supposed to. I didn't realize that JDialog has basically all the same features as JFrame. So, I guess I'll use JDialog for this one.
    However, I was hoping that the solution that I got would work for everything -- Which I don't think it will. JDialog is more like a popup window (which is fine), and JFrame is more like a main window. I want to figure out how to do in JFrame what JDialog does with setModal(). (I think I tracked it down to Dialog.show() -- however, it didn't work when I tried to implement it on my own.)
    Do you know, is there already something like this (for JFrame), or would I have do it on my own?
    Thanks,
    Daniel Lorimer

  • NEED HELP.. white screen

    My Ipod Nano does not seem to charge, all I can get the Nano to do is turn on to a white screen then go blank. Tried to restore, reset. Have left it plugged in for many hours and still nothing.. PLEASE HELP... getting frustrated with this thing....

    Answer is you need another Mac.
    Plugged in another mac using a firewire lead and setting my imac as an external drive.  I managed to recover my files by copying them to another external drive.  I was very lucky re the data but surprised that I could only do this with another mac.  Fortunate that I could get a friend with one to help.
    No idea why the machine has White screened - the apple store said 'it happens' so off with my new machine to the store to have it fixed. Never had to do this with pc's in 15 yrs, still it's a nice store and everyone is so helpful perhaps I'll buy something else whist they sort this out...

  • Need help! Z2 screen cracked. Need my data out! Check details below.

    Hey guys, I need your help desperately. 
    So, my phone's screen cracked. Honestly, I dropped it and now it has some fluid and some parallel lines showing with shades of pink color and a very lil amount of blue and green color lines and its touch itsn't working either. It's screen is shattered. So, basically, I can touch it but it will touch at multiple places like crazy but I can't see anything. And to make things worse I have a pin lock. ^_^ How annoying pleasant is that. I went to the service centre, they said that my phone's screen cannot be replaced as this is a Z series and Z series only have the whole mobile replacement option. So, I need to get my data out.
    My USB debugging is turned on, maybe this can help me? But Idk how. If it can, tell me!
    And I can't access my phone until unless I unlock the pin lock on my phone. Please help me, I need my data. :'(
    I saw this OTG method. I have an OTG cable but even if I connect mouse, I can't see anything so OTG with mouse failed. But I saw a post, someone said they used a keyboard and did some up and down and left right arrow keys and enter and it worked. If you know this OTG KEYBOARD method, please briefly explain it to me!
    I read about some Android Debug Bridge. If you know about this too, please explain it to me. I'm literally.. crying inside.That data is.. my LIFE!
    Anyways.. I read also about the Multipupose MHL to HDMI OTG with USB support, with which you can use a mouse and display the screen of your mobile on the TV or PC Monitor. But I'm not sure about that, it will cost me around 25 USD but I've seen people say in the reviews that it doesn't work for XPERIA Z2 or Z3 and stuff like that. So, I don't wanna risk it.
    So, guys. If you know any other methods or these methods in brief with which I can get my internal data out, do tell me. And then when I get it out, I will give my phone to the service centre for replacement.
    Thank you..
     

    Sorry to hear about your phone
    If you have a computer that is allowed to access the phone over ADB you could try using a 3:rd party software like MyPhoneExplorer from www.fjsoft.at to access it.
    If you don't have a computer that is allowed over ADB in the phone i would recommend that you try to get hold of a TV with MHL or an MHL-adapter (but make sure it supports CEC). If you have a numeric PIN you can unlock the phone using the TV remote. It works fine when i test it with a Sony TV here. When unlocked you can then connect it to a computer.
    I edited your post a little to remove some offensive words.

  • Need help to set values from web.xml in a jsp class

    Hey :-)
    I`m trying to get value from my web.xml file into a jsp class. The problem is that the value always retur null. My web.xml file is replaced in the WEB-INF directory where should be. Here is my web.xml
    <servlet>
    <servlet-name>Html</servlet-name>
    <servlet-class>Html</servlet-class>
    <init-param>
    <param-name>html_test</param-name>
    <param-value>Value I want have in my jsp class
    </param-value>
    </init-param>
    </servlet>
    And her i my java class who don`t work:
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    import javax.servlet.ServletConfig;
    public class Html extends BodyTagSupport
    String title="";
    String html_test;
    ServletConfig config;
    public void doInitBody() throws JspException
    html_test = config.getInitParameter("html_test");
    }//End of method doInitBody()
    public int doStartTag() throws JspException
    try
    JspWriter out = pageContext.getOut();
    out.print( "<HTML>\n" );
    out.print( "<HEAD><TITLE>" + title + "</TITLE></HEAD>\n" );
    out.print( "<BODY>\n" );
    out.print( "<BR><H1>" + html_test + "</H1>" );
    And here are my html_test variable return null.
    I hope somone can help me, duke dollars will be given away for the solution answer.
    paulsep

    Nothing seems to work, have change the string and rewritten the web.xml file to:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
              <context-param>
                   <param-name>html_test</param-name>
                   <param-value>Value I want have in my jsp class</param-value>
              </context-param>
    </web-app>

  • Need Help - Sign in screen hangs Adobe PS CS6 trial installation

    While Installing Adobe Photoshop CS 6, I clicked on Set-up.exe to run as an administrator in Windows 7 Home Premium 64 bit workstation. In the Adobe Id sign in page, I entered my email id and password. However, the screen hangs while authenticating my id and password and I had to kill the process in Task Manager and restart the installation process with the same issue of screen hanging. I tried the same on a different Computer with Windows 7 Ultimate 32-bit and the same issue occurs. Please help.

    Hi JJMack, There is no option to cancel it. Either you click on "Sign in" or "Cancel" to exit the installation

  • Need help! White screen and hard drive

    I have a MacBook Pro A1211 I got off Craigslist. It needed a new logic board and hard drive so I got both. My problem is I just found out the hard drive has windows on it and when I power on the MBP all I get is a white screen.  My question is is there a way to get windows off that hard drive while its installed in the MBP? I've tried every command I could find online to push when I power on the MacBook but it does nothing. I bought a copy of snow leopard 10.6 factory sealed and put it in the super drive but it just spins for a while and then stops. The fans constantly run also but I'm new to MacBook so I don't know if that's suppose to happen. I got the disk management to come up one by holding down option and power on but it didn't give me the option of choosing the SuperDrive and I can't get it back up. It's almost like the keyboard isn't working. If there's any suggestions y'all can give me I'd appreciate it.

    Startup - Gray, Blue or White screen at boot, w/spinner/progress bar
    Startup - Gray Screen
    Startup Issues - Resolve
    Startup Issues - Resolve (2)

  • Need help with full screen slideshow image quality

    I am looking to display some images with full screen slideshow. The images I add are very large, over 5000 wide. When I publish the site some images retain their quality while others lose it and look like crap. Why would this be and how can I fix it. I tried to resize them to the 2560x1707 that muse does, and then add them. This doesn't change the end result of poor quality.

    Go to Assets Panel and locate the image you want to use at original size. Right click the image and chose 'Import Larger Size'.
    See if that helps retain quality for that image, since Muse does not resize/interpolate that image for you.
    Cheers,
    Vikas

  • Need help on IDES screen change script

    Dear All..
    Can any one tell me the steps of the IDES screen change when sap logged on.., i want put my company logo and company name..
    advanced thanks for help
    Praveen

    I got the script for this question..
    Thanks
    Praveen

Maybe you are looking for