Webdynpro pop up text change

Hi All,
I have created a pop up window by using method create_popup_to_confirm of if_wd_window_manager . I have created the OK button by using if_wd_window=>co_button_ok of if_wd_window .
I need to change the default button text " OK  " to " EDIT ". I am following the below approach .
        view_controller = wd_this->wd_get_api( ).
        lo_window->subscribe_to_button_event(
        button = if_wd_window=>co_button_ok
        button_text = 'EDIT'
        action_name = 'MSG'
        action_view = view_controller ).
Note : Action " MSG "  is a dummy action which I have created just to change the default button text .
This works if the control is in the same view where pop up is called . If we have to go back to other webdynpro component/ view then , after clicking on EDIT button in pop up , it gives the dump with the error " Controller for View, Window, Interface, and Configuration Cannot Be Created " .
Please let me know if there is any other way to change the default text in the pop up screen or any other solution . I am ok to use any other method which creates pop up window and default text should be modified .
Thanks,
Kiran.

Hi Kiran,
If its that important for you to change the button label, I would suggest creating a new view and calling it as a popup.
Please follow below steps to do so:
1) Create a new view with your respective design having message and EDIT button.
2) Create a new window say Popup_Window
3) Add the new view to this window and add below code
4)Create a
Data: context_node type ref to if_wd_context_node.
  data: lr_popup type ref to if_wd_window,
        lr_view_controller type ref to if_wd_view_controller.
  data: lr_api_comp_controller type ref to if_wd_component,
        lr_window_manager type ref to if_wd_window_manager.
  lr_api_comp_controller = wd_comp_controller->wd_get_api( ).
  lr_window_manager = lr_api_comp_controller->get_window_manager( ).
  lr_popup = lr_window_manager->create_window(
  MODAL               = ABAP_TRUE
  window_name         = 'POPUP_WINDOW'  "Name of the window created in step 2
  TITLE               = Confirmation Message"
  CLOSE_BUTTON        = ABAP_TRUE
  BUTTON_KIND         = if_wd_window=>CO_BUTTONS_OKCANCEL
MESSAGE_TYPE        = if_wd_window=>co_msg_type_error
  CLOSE_IN_ANY_CASE   = ABAP_TRUE
*MESSAGE_DISPLAY_MODE = MESSAGE_DISPLAY_MODE
Adds an action to the popup screen buttons
lr_view_controller = wd_this->wd_get_api( ).
lr_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
button_text = 'EDIT'
action_name = 'EDIT'
action_view = lr_view_controller ).
  lr_popup->open( ).
I hope it helps.
Please revert back in case of issues.
Regards,
Sumit

Similar Messages

  • No background color on pop-up text labels in dock

    Something strange has happened to my dock. Normally when I mouse over an icon, text appears above it saying the name of the program. The text is white on a dark gray background. Recently I have noticed that the dark gray background has disappeared, leaving only white text. In some cases this makes it completely unreadable depending on the position of any open windows. I have looked in the preferences pages but I can't find any option to change the background color for the pop-up text.
    Note that I don't have any customization programs installed.
    Any help is appreciated.

    Try using a web safe color (one of the 256 colors shown in
    the pop up palette in Dreamweaver) color # 7dabef is not in that
    group. By the way, it doesn’t show up in Netscape either.
    This limitation kind of stinks, but ot’s something we
    have to live with, and you need to get used to the limitations if
    you want to publish for multiple browsers and monitor setups.
    However, I could be wrong… since a test of your color
    shows up in a table background in all 3 browsers… and it
    shows in all three browsers when set as a page property…
    So… setting the background color in CSS (using your css
    file unaltered) shows the color in EI, but not FF or NS… so,
    I’m learning something here as well.
    So, ok… took everything out of the style sheet except
    for :
    body {
    background-color: #7dabef;
    And your background shows up in all the browsers… so
    now, to figure out what is conflicting with it…
    Thanks Bash... I was working in that direction, and you
    jumped in and fixed it...
    http://www.cmhager.com/webcolors.html

  • Pop up text on clicking link on a sql report

    Hi
    I'm using apex 3.2
    I've a sql report like below
    taskId(edit) Task_details Notes owner .....
    What I want to do is if I click on taskId which is edit link ,pop up text box should open where I can add notes to that row.
    How can I achive this?
    Thanks in advance

    Hi,
    Take a look at the following blog posts and see if they can help you get what you are looking for (there are sample applications in them showing the functionality):
    http://monkeyonoracle.blogspot.com/2010/07/modal-pop-up-with-dynamic-actions.html
    http://www.danielmcghan.us/2008/12/popup-in-report.html
    Hope that's useful for you.
    Regards,
    Sergio

  • Blocking long text change if open PR and open PO found for material

    Dear SAP MM Gurus,
    Our client is having one requirement. Their requirement is like this,
    If there is any open PR, PO, contract etc. for a material ,  system should not allow to change the long text of the material.
    Is there any way out. Any user exit or BADi, which will trigger on the long text change of material master then please let me know.
    Thanking you.
    With Regards,
    Mihir

    Dear SAP MM Gurus,
    Our client is having one requirement. Their requirement is like this,
    If there is any open PR, PO, contract etc. for a material ,  system should not allow to change the long text of the material.
    Is there any way out. Any user exit or BADi, which will trigger on the long text change of material master then please let me know.
    Thanking you.
    With Regards,
    Mihir

  • Pop Up Text in an applet on mouse over event

    Can anyone help me to design a pop up text message to be displayed in an applet on moving your mouse over a particular control. Plz. Its urgent

    To show a pop-up use javax.swing.Popup. Add a mouse listener to button. When mouse enters the button pop-up shows and when mouse exited the button, pop-up disappears. This pop-up is capable of displaying simple message to any swing component. Sample code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * @author mrityunjoy_saha
    * @version 1.0
    public class AppletWithPopup extends JApplet {
        private Popup popup;
        private JButton button;
        private JLabel message;
        @Override
        public void init() {
            setLayout(new FlowLayout());
            button = new JButton("Hello");
            message = new JLabel("This is a JLabel. It can be any swing component.");
            button.addMouseListener(new MyMouseListener());
            add(button);
        private class MyMouseListener extends MouseAdapter {
            @Override
            public void mouseEntered(MouseEvent e) {
                System.out.println("Mouse entered.");
                PopupFactory factory = PopupFactory.getSharedInstance();
                popup = factory.getPopup(AppletWithPopup.this, message, (int) button.getLocationOnScreen().
                        getX() - 20, (int) button.getLocationOnScreen().getY() + 40);
                //popup = factory.getPopup(AppletWithPopup.this, message, 50, 10);
                popup.show();
            @Override
            public void mouseExited(MouseEvent e) {
                System.out.println("Mouse exited.");
                if (popup != null) {
                    popup.hide();
    }If you are talking about alert box (where some message can be displayed), in above example instead of javax.swing.Popup use javax.swing.JOptionPane. In case you are using JOptionPane, make it visible in mouseEntered() method and hide it in mouseExited() method.
    Thanks,
    Mrityunjoy

  • Pop up text boxes on mouseovers

    I'm looking for an easy way (and the easiest tool to use
    between Dreamweaver, Fireworks, and Flash [and I'm guessing
    'Fireworks']...or maybe Flash---I have Studio MX2004) to create not
    a 'pop-menu', but 'a Pop-Up TEXT box' on a mouseover event.
    For example, please perform the following steps to see what I
    would like to do:
    1)Google 'Product Demos'
    2)Click on 'Blackberry' link at top of list 3)A selection of
    product thumbnails appears...click on any product link 4)A Flash
    presentation loads....Click on 'Interactive Views' in the lower
    right-hand corner.
    5)Go to the upper left-hand corner and click on 'Included
    Applications' to see the text pop-ups activated when you mouse over
    parts of a graphic (in this case, each icon)....AND THEN...click on
    the next one in the list, 'Handheld Features' to see text pop up
    boxes activated once you mouse over the textual captions (or
    pointers).
    This is the effect I would like to achieve when a user mouses
    over a section of a figure or illustration, or over a textual
    caption itself.
    Thanks!

    Pure CSS Disjointed Rollovers (tool tips)
    http://alt-web.com/DEMOS/CSS-Disjointed-Image-Rollover.shtml
    http://alt-web.com/DEMOS/CSS-Disjointed-Text-Rollover.shtml
    http://alt-web.com/DEMOS/CSS-Disjointed-Rollover-1.shtml
    http://alt-web.com/DEMOS/CSS-Disjointed-Rollover-2.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How to create pop-up text boxes?

    Hello,
    Does anyone know if it's possible to make pop-up text boxes/windows in iBook Author? For instance, I can click on a text on the layout and a window pop-up with another text, in my case, they're references/citations. If this isn't possible in iBook Author, is there work-around for this, preferably, in iBook Author itself instead of creating widgets/imagest for every instance of the references. Any help would be appreciated.
    Thanks,
    Hoa

    The glossary offers this capability. However, using it for that purpose might be a bit confusing, especially if you also have "real" glossary entries.
    I'm not aware of any other way to create a pop-up.
    Michi.

  • Creating 3 links each with pop-up text box on the same slide

    Hi,
    I'm trying to create a slide that has 3 links and each link has a pop-up text box. I do not want to separate the pop-up text into separate slides. I have it so that there are 3 click boxes and each have the action "show" the proper text box. I also created another click box that acts as a close button where the action is to hide the pop-up box. I have an extra click box hidden on the page to make sure the user stays on the page and not automatically advance.
    Once I have the user click on the first "link" it shows the text box. Once the user clicks the close click box it takes the user to the next slide. I just need it so that it shows the user the pop-up text and then when the user closes the pop-up and returns to showing the 3 options/links. So it basically refreshes the slide instead of going to the next slide.
    Thanks,

    This will be a little tricky to achieve. This is because per default Adobe has decided that any interactive object (like a button or a click box) that has a user defined action on it (like continue, pause, open URL etc.) automatically continues to play the project when clicked.
    Therefore when you click your button it will show your textbox, but it will also continue to play on your timeline.
    You can read some more about it here: http://forums.adobe.com/thread/479725?tstart=0
    I did something similar to what you want one time and I just created a bunch of click boxes and made them very small and put them in a corner. The click boxes were placed on the timeline with 0.2 seconds between the pauses. Then I created my "real" buttons to show/hide the text boxes and placed them on the timeline before the other click boxes.
    The result is that once a user clicks your button it will show the text caption you want - continue on the timeline and pause at the first click box. When they click another button the same will happen. Just make sure that you have a lot of click boxes (I think I put like 30) and make sure that your navigation button for advancing to the next slide is set to "go to next slide" and not "continue" as that would make it pause at all your click boxes as well.
    /Michael
    Click here to visit the www.captivate4.com blog

  • How to restrict header text changes in sales order level

    Dear Experts,
    how to restrict header text changes in sales order level change mode
    thanks

    Hello Chandu,
    how to restrict header text changes in sales order level change mode
    In order to restrict changes to Sales Order Header Text, the appropriate User Exit would be USEREXIT_MOVE_FIELD_TO_TVCOM_H. With the help of ABAPer, you can include the simple logic on the basis of Header Text type such that whenever any changes are incurred on the Sales Order header text, updates would be prevented.
    Please try out this approach and let us know your latest observation on this issue.
    Regards,
    Sarthak

  • [svn:fx-trunk] 10075: Cleanups from the spark text changes and some bug fixes for VideoElement.

    Revision: 10075
    Author:   [email protected]
    Date:     2009-09-08 18:01:58 -0700 (Tue, 08 Sep 2009)
    Log Message:
    Cleanups from the spark text changes and some bug fixes for VideoElement.  Also some PARB changes for UIComponent.
    TitleBar: Changing the skin part type from Label to Textbase
    UIComponent: skipMeasure()->canSkipMeasurement() to be in line with GraphicElement.  This has been PARB approved.
    UIComponent: same with hasComplexLayoutMatrix...this replaces hasDeltaIdentityTransform.  This has been PARB approved.
    StyleProtoChain: cleanup around what interfaces to use
    TextBase: clean up code that?\226?\128?\153s no longer needed.
    VideoElement: Fixing 4 bugs:
    SDK-22824: sourceLastPlayed keeps track of what video file we?\226?\128?\153ve called play() with last.  This way if a user pauses the video and wants to start it up again at the same point, we can call play(null) on the underlying FLVPlayback videoPlayer.  However, anytime the souce changes, we want to null out sourceLastPlayed.  This was causing a bug when someone set the source to null and then reset it to it?\226?\128?\153s previous value.
    SDK-23034 (GUMBO_PRIORITY): This deals with some FLVPlayback quirks around sizing.  I had put in a fix so we weren?\226?\128?\153t setting width/height on the underlying videoPlayer too many times, but apparently we need to make sure it always gets called once.  Hopefully when switching to Strobe we can cleanup this logic...I put a FIXME in to do this.
    SDK-21947/ SDK-22533 - some video files don?\226?\128?\153t always send out a metadata event.  I?\226?\128?\153m not quite sure why this is, but in case this happens, we do a check in the ready handler to see whether we should call invalidateSize() to make sure it gets sized properly.
    QE notes:-
    Doc notes:-
    Bugs: SDK-22824, SDK-23034, SDK-21947, SDK-22533
    Reviewer: Glenn, Corey
    Tests run: checkintests, Button, GraphicTags, VideoElement, and VideoPlayer (some VideoPlayer were failing, but I think it should be fine)
    Is noteworthy for integration: Yes
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22824
        http://bugs.adobe.com/jira/browse/SDK-23034
        http://bugs.adobe.com/jira/browse/SDK-21947
        http://bugs.adobe.com/jira/browse/SDK-22533
        http://bugs.adobe.com/jira/browse/SDK-22824
        http://bugs.adobe.com/jira/browse/SDK-23034
        http://bugs.adobe.com/jira/browse/SDK-21947
        http://bugs.adobe.com/jira/browse/SDK-22533
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/airframework/src/spark/components/windowClasses/TitleB ar.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/StyleProtoChain.as
        flex/sdk/trunk/frameworks/projects/spark/src/mx/core/UITLFTextField.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Group.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Label.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichEditableText.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RichText.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Skin.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/TextBase.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AddActionInstan ce.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransfor mInstance.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/RemoveActionIns tance.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/VideoElement.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/supportClasses/GraphicEleme nt.as

  • How can I add an image to my pop up text box built in Fireworks?

    Hello all,
    I have already built my page (a map) with all the pop up text boxes in Fireworks and imported them into my Dreamweaver page, but I would like to add an image in that same pop up box as well as the text. I tried going back to Fireworks and editing the pop up box, but there is no option for adding an image alongside the text. Is there a way I can go into the code and add the image? This is a line of code for one of the pop up boxes:
    <td rowspan="4"><a href="javascript:;" onmouseout="MM_swapImgRestore();MM_menuStartTimeout(0)" onmouseover="MM_menuShowMenu('MMMenuContainer1016121037_0', 'MMMenu1016121037_0',25,23,'Plaza_map_r11_c6');MM_swapImage('Plaza_map_r11_c6','','Plaza_ map_r11_c6_f2.jpg',1);"><img name="Plaza_map_r11_c6" src="Plaza_map_r11_c6.jpg" width="30" height="28" border="0" id="Plaza_map_r11_c6" alt="" /></a></td>
    I'm trying to avoid rebuilding the whole thing in another program! Thanks very much in advance.
    Pam

    If you have more than one of these, then I would add a class rule to your css style sheet
    .fltleft     {
         float:left;
    }.fltright     {
         float:right;
    Then add this rule to your image.
    <img name="Plaza_map_r11_c6" src="Plaza_map_r11_c6.jpg" class="fltleft" width="30" height="28" border="0" id="Plaza_map_r11_c6" alt="" (add new image here) ?>
    This will position your image to the left in the container. You can then add the fltright in the same way.
    GAry

  • Is there an inexpensive Adobe product that can make small text changes in an InDesign document?

    I run a small nonprofit where one of our staffers uses InDesign to design our documents. I often make small text changes and would rather not have to run them through her all the time. Is there any inexpensive Adobe product that would met me make these small changes, since I don't need the full Creative Suite (or even full InDesign) capabilities?

    You say that you want an Adobe product, but you may not be aware that
    there are other products that may work for you as well, in particular
    DocsFlow or WordFlow (EmSoftware -- no affiliation to me!)
    This would allow your designer to export the story to Word or GoogleDocs
    where you make your changes -- and he or she then simply updates the
    document in InDesign with the press of a button.
    Worth looking into.

  • On text change trigger in oracle forms 9

    I want to simulate on-text-change trigger similar to the one present in java and other programming languages.
    I need this trigger to be invoked when ever we change some text in the textfield.
    Is there any way to do this?
    I used two text fields to compare the last entered and newly typed based on a timer interval of 3secs
    But my problem is Oracle trims the spaces present in the textfield and also highlights the text present in textfield when ever I enter a space....
    Scenario : I want to use this trigger and refresh the search results based on the text present in the textfield.
    Thanks in advance

    To do the kind of thing you are talking about you will need to implment a Java Bean in your form listen for the changes. Take a look at KeyEvent Java Bean or the Oracle Forms PJCs-Java Beans web site for more information and examples.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Detect purchase requisition item text changes

    Hi Abap Gurus,
    During a PR modification (ME52N), I need to read the purchase requisition item text at runtime to compare with the stored item text (read text) and detect if it have changes.
    Actually, I am using the badi ME_REQ_POSTED.
    How could I detect the PR item text changes? or How could I read the item text at runtime.
    Somebody could help me with this....
    Other ideas will be welcome.....
    Regards,
    Jaya Sankar.M

    Hi,
    But can you change the purchase requisition item text using the badi?

  • Word to PDF - I lose links and pop up text

    Hi there,
    I am working on Office 2010 for Mac.
    I have internal hyperlinks within the doc as well as pop up text.
    When I save as a PDF - I lose my links.
    I would be so greatful if someone could help me fix this?
    Thanks,
    Amy

    Hi,
    This is the forum to discuss questions and feedback for Windows-based Microsoft Office client. Since your query is directly related to Office for mac, I would suggest you to post in the forum of
    Office for Mac, where you can get more experienced responses:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011?tab=Threads
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

Maybe you are looking for

  • Report for in time delivery schedules

    Dear all, Plz give me information abt in time and out of schedule material received against given schedules in an purchase order.  provide me relevant tables in which sceduled delivery wise grn data is updated. regards , prasad.

  • Is the new Ipod Touch 8gb the same as the 4th generation?

    Hi, I'm looking into getting the Ipod Touch 5th generation 8gb. I have the 3rd generation 8gb and I found that this was pretty much the same as the 2nd generation, so when I tried to update to the new iOS at the time, it only had limited features, wh

  • Installing windows XP using discs supplied with virtual PC

    I am currently running Windows XP Home in Virtual PC under 10.3.9 in a powerbook G4. I want to upgrade to a new Macbook for Christmas. Can I use the Windows discs I purchased with Virtual PC to install Windows for the dual boot process? Thanks in adv

  • G5 Power Mac Wont Boot

    Hello, all. I'm trying to fix a G5 tower, power pc with issues booting. The owner was browsing a large folder of images when, suddenly, the pinwheel of death began spinning without end. He had to reboot the system. When he now boots the system, there

  • API for Shared Review in Acrobat SDK

    Hi, I would like to implement the functionality for Shared Review programmatically. Right now we need to open each pdf file select Comments -> Send for Shared Review in Acrobat Professional and follow the steps in wizard. I am looking at achieving th