Change Button text during component use of WDR_SELECT_OPTIONS

Hello,
I have implemented a WD component (WD for ABAP) by making use of component WDR_SELECT_OPTIONS. The selection screen is getting displayed. But the selection screen contains the button Copy, Check, Cancel and Reset.
I want to rename the button tex "Copy" to "Search". Is it possible to do so?
Please help!
Thanks and Besd Regards,
Maya

Hi Maya,
Unfortunately, this is not possible. There is also a translation bug while translating it from German into English. The button should have been translated into "Apply" instead of "Copy". This is issue is being addressed and should be fixed within one of the upcoming service packs.
Nonetheless, there is a solution to your problem. Just hide the button (or the whole row) by calling method SET_GLOBAL_OPTIONS and add your own buttons below or above where you embed the SelectOptions component. The handler interface contains methods to reset the selection screen as well as for input validation.
Kind regards,
Thomas

Similar Messages

  • Using the Gradient tool to change button text

    I have had a request to change the text on a number of buttons on the website that I am maintaining. I thought it would be a simple case of cropping the text, editing this using the background colour and then pasting back in. The background colour, however, seems to be graduated so when I paste it back in, it doesn't match. What is the easiest way of using the Gradient tool to achieve this?
    Sorry if this seems a bit on a 'RTFM' request, but time is of the essence.
    Thanks.

    I see, the buttons are all pixels at this point.
    That's still pretty easy...
    1.  Edit the text out of the original button by duplicating the part of the button that doesn't have text over it.  You can just use the rectangular marquee and duplicate some of the gradient to the right or left of the text and move it over the text.  It will take a little care, but it's pretty easy if you work zoomed-in.
    2.  Determine what font they were using through a site like http://www.whatthefont.com.  In this case it looks like a pretty close match to Tahoma Bold.
    3.  Choose the Text tool and type the same text, then use the various adjustments in the CHARACTER panel to get it to match very closely.  Looks like it needs to be horizontally scaled in width to 110% or so.
    4.  Erase that text then type the text you want.
    Hope this helps!
    -Noel

  • Changing buttons text in Report

    Hi !
    I am using a standard Region report in my application.
    There are some buttons in this Region:
    "Next button" and "Previous button".
    How to change the buttons text ?
    I want to get empty text on this buttons.
    Thanks,
    Roman

    Hi user....
    I am sorry,
    but I want to change a text of link label inside the Region.
    There are two links inside the Region: Next link and Previous link.
    I want to get the links without text label.
    Thanks, Roman.

  • External ITS change button text

    We are just implementing ESS 50.4 using WAS 4.7, Portal 6.0, and external ITS.
    In the Enrollment IAC, transaction PZ14,
    SAP Template Button href=URLPLAN
    button=TXT_INFO
    iconName=b_info
    The button displays the word 'Information' and we need to change that word.  Where does one change the text for a button on external ITS?
    I have tried SE93.
    Thank you,
    D. Maupin
    University of Kentucky

    Hello Donna,
    normally the button texts are set by the application. But did you try to override it by providing the parameter buttonLabel="something" to the function that renders the button?
    With best regards,
      TJ

  • Change Button text ?

    Hi All,
    I got a button in my custom transaction in ABAP. I want to change the text/Label of the button dynamically based on some conditions. How to achieve the same.
    Thanks & Regards,
    Navneeth K.

    Data:   gs_toolbar           TYPE stb_button,
          handle_toolbar
              FOR EVENT toolbar OF cl_gui_alv_grid
                  IMPORTING e_object e_interactive,
    METHOD to handle_toolbar
      METHOD handle_toolbar.
    append a separator to normal toolbar
        CLEAR gs_toolbar.
    MOVE your text TO gs_toolbar-TEXT.
        APPEND gs_toolbar TO e_object->mt_toolbar.
    Try this.
    Thanks & Regards,
    Harsha.

  • Edit Button text during runtime (Javascript )

    I am able to display the contents of a button's text.. using
    xfa.host.messageBox("" +EditButton.caption.value.text.value);
    however if I try to change that value, it does not change. Is there a different property to modify to change the value of the text on a button during runtime?

    Hello Andrew,
    In JavaScript, try this:
    b On Click Event.
    > xfa.resolveNode("this.caption.value.#text").value = "New Text";
    It should work...
    Dan

  • RESOLVED:  Can't Change Button Text

    I have a text entry box that requires the user to enter a
    specific phone number. After entering the correct phone number,
    they are to click a Search button to go to the next slide. For the
    text entry box, I have the 'Show Button' option selected. I want to
    edit the text of the button to say Search, instead of Submit, but
    nothing happens when I double-click the button. Nor does anything
    happen when I right-click the button and select Properties.
    According to Captivate help, I should be able to edit the
    button's text, but it won't let me. Any ideas?

    Apparently this is another one of Captivate's 'Undocumented
    Features'. To resolve this issue, I deleted the original text-entry
    box and then inserted a new one. This time, using the same options,
    I was able to edit the button's text. Go figure.

  • JFileChooser's approve button text changes when file

    I have a JFileChooser used for loading some XML file(s). We want the approve button's text to be "Load". When I bring up the dialog, the button text initially reads "Load", when I select a directory, it reads "Open", if I select a file again, it goes back to "Load". So far, so good.
    The problem comes when using it in a non-English language. When I bring up the dialog, the button text initially reads the appropriately translated "Load". However, when I select a directory, it changes to the English "Open". I do not see a method to use to adjust this text. Am I missing something, or is this a bug?
    Any help is greatly appreciated.
    Jamie

    Here's some code I'll put into the public domain:
    package com.graphbuilder.desktop;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Stack;
    import java.util.Vector;
    import java.util.StringTokenizer;
    import java.io.File;
    <p>Attempt to improve the behaviour of the JFileChooser.  Anyone who has used the
    the JFileChooser will probably remember that it lacks several useful features.
    The following features have been added:
    <ul>
    <li>Double click to choose a file</li>
    <li>Enter key to choose a file after typing the filename</li>
    <li>Enter key to change to a different directory after typing the filename</li>
    <li>Automatic rescanning of directories</li>
    <li>A getSelectedFiles method that returns the correct selected files</li>
    <li>Escape key cancels the dialog</li>
    <li>Access to common GUI components, such as the OK and Cancel buttons</li>
    <li>Removal of the useless Update and Help buttons in Motif L&F</li>
    </ul>
    <p>There are a lot more features that could be added to make the JFileChooser more
    user friendly.  For example, a drop-down combo-box as the user is typing the name of
    the file, a list of currently visited directories, user specified file filtering, etc.
    <p>The look and feels supported are Metal, Window and Motif.  Each look and feel
    puts the OK and Cancel buttons in different locations and unfortunately the JFileChooser
    doesn't provide direct access to them.  Thus, for each look-and-feel the buttons must
    be found.
    <p>The following are known issues:  Rescanning doesn't work when in Motif L&F.  Some
    L&Fs have components that don't become available until the user clicks a button.  For
    example, the Metal L&F has a JTable but only when viewing in details mode.  The double
    click to choose a file does not work in details mode.  There are probably more unknown
    issues, but the changes made so far should make the JFileChooser easier to use.
    public class FileChooserFixer implements ActionListener, KeyListener, MouseListener, Runnable {
         Had to make new buttons because when the original buttons are clicked
         they revert back to the original label text.  I.e. some programmer decided
         it would be a good idea to set the button text during an actionPerformed
         method.
         private JFileChooser fileChooser = null;
         private JButton okButton = new JButton("OK");
         private JButton cancelButton = new JButton("Cancel");
         private JList fileList = null;
         private JTextField filenameTextField = null;
         private ActionListener actionListener = null;
         private long rescanTime = 20000;
         public FileChooserFixer(JFileChooser fc, ActionListener a) {
              fileChooser = fc;
              actionListener = a;
              fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
              okButton.setMnemonic('O');
              cancelButton.setMnemonic('C');
              JButton oldOKButton = null;
              JButton oldCancelButton = null;
              JTextField[] textField = getTextFields(fc);
              JButton[] button = getButtons(fc);
              JList[] list = getLists(fc);
              String laf = javax.swing.UIManager.getLookAndFeel().getClass().getName();
              if (laf.equals("javax.swing.plaf.metal.MetalLookAndFeel")) {
                   oldOKButton = button[0];
                   oldCancelButton = button[1];
                   filenameTextField = textField[0];
                   fileList = list[0];
              else if (laf.equals("com.sun.java.swing.plaf.windows.WindowsLookAndFeel")) {
                   oldOKButton = button[0];
                   oldCancelButton = button[1];
                   filenameTextField = textField[0];
                   fileList = list[0];
              else if (laf.equals("com.sun.java.swing.plaf.motif.MotifLookAndFeel")) {
                   oldOKButton = button[0];
                   oldCancelButton = button[2];
                   button[1].setVisible(false); // hides the do-nothing 'Update' button
                   button[3].setVisible(false); // hides the disabled 'Help' button
                   filenameTextField = textField[1];
                   fileList = list[0];
              fix(oldOKButton, okButton);
              fix(oldCancelButton, cancelButton);
              okButton.addActionListener(this);
              cancelButton.addActionListener(this);
              fileList.addMouseListener(this);
              addKeyListeners(fileChooser);
              new Thread(this).start(); // note: rescanning in Motif feel doesn't work
         public void run() {
              try {
                   while (true) {
                        Thread.sleep(rescanTime);
                        Window w = SwingUtilities.windowForComponent(fileChooser);
                        if (w != null && w.isVisible())
                             fileChooser.rescanCurrentDirectory();
              } catch (Throwable err) {}
         public long getRescanTime() {
              return rescanTime;
         public void setRescanTime(long t) {
              if (t < 200)
                   throw new IllegalArgumentException("Rescan time >= 200 required.");
              rescanTime = t;
         private void addKeyListeners(Container c) {
              for (int i = 0; i < c.getComponentCount(); i++) {
                   Component d = c.getComponent(i);
                   if (d instanceof Container)
                        addKeyListeners((Container) d);
                   d.addKeyListener(this);
         private static void fix(JButton oldButton, JButton newButton) {
              int index = getIndex(oldButton);
              Container c = oldButton.getParent();
              c.remove(index);
              c.add(newButton, index);
              newButton.setPreferredSize(oldButton.getPreferredSize());
              newButton.setMinimumSize(oldButton.getMinimumSize());
              newButton.setMaximumSize(oldButton.getMaximumSize());
         private static int getIndex(Component c) {
              Container p = c.getParent();
              for (int i = 0; i < p.getComponentCount(); i++) {
                   if (p.getComponent(i) == c)
                        return i;
              return -1;
         public JButton getOKButton() {
              return okButton;
         public JButton getCancelButton() {
              return cancelButton;
         public JList getFileList() {
              return fileList;
         public JTextField getFilenameTextField() {
              return     filenameTextField;
         public JFileChooser getFileChooser() {
              return fileChooser;
         protected JButton[] getButtons(JFileChooser fc) {
              Vector v = new Vector();
              Stack s = new Stack();
              s.push(fc);
              while (!s.isEmpty()) {
                   Component c = (Component) s.pop();
                   if (c instanceof Container) {
                        Container d = (Container) c;
                        for (int i = 0; i < d.getComponentCount(); i++) {
                             if (d.getComponent(i) instanceof JButton)
                                  v.add(d.getComponent(i));
                             else
                                  s.push(d.getComponent(i));
              JButton[] arr = new JButton[v.size()];
              for (int i = 0; i < arr.length; i++)
                   arr[i] = (JButton) v.get(i);
              return arr;
         protected JTextField[] getTextFields(JFileChooser fc) {
              Vector v = new Vector();
              Stack s = new Stack();
              s.push(fc);
              while (!s.isEmpty()) {
                   Component c = (Component) s.pop();
                   if (c instanceof Container) {
                        Container d = (Container) c;
                        for (int i = 0; i < d.getComponentCount(); i++) {
                             if (d.getComponent(i) instanceof JTextField)
                                  v.add(d.getComponent(i));
                             else
                                  s.push(d.getComponent(i));
              JTextField[] arr = new JTextField[v.size()];
              for (int i = 0; i < arr.length; i++)
                   arr[i] = (JTextField) v.get(i);
              return arr;
         protected JList[] getLists(JFileChooser fc) {
              Vector v = new Vector();
              Stack s = new Stack();
              s.push(fc);
              while (!s.isEmpty()) {
                   Component c = (Component) s.pop();
                   if (c instanceof Container) {
                        Container d = (Container) c;
                        for (int i = 0; i < d.getComponentCount(); i++) {
                             if (d.getComponent(i) instanceof JList)
                                  v.add(d.getComponent(i));
                             else
                                  s.push(d.getComponent(i));
              JList[] arr = new JList[v.size()];
              for (int i = 0; i < arr.length; i++)
                   arr[i] = (JList) v.get(i);
              return arr;
         public File[] getSelectedFiles() {
              File[] f = fileChooser.getSelectedFiles();
              if (f.length == 0) {
                   File file = fileChooser.getSelectedFile();
                   if (file != null)
                        f = new File[] { file };
              return f;
         public void mousePressed(MouseEvent evt) {
              Object src = evt.getSource();
              if (src == fileList) {
                   if (evt.getModifiers() != InputEvent.BUTTON1_MASK) return;
                   int index = fileList.locationToIndex(evt.getPoint());
                   if (index < 0) return;
                   fileList.setSelectedIndex(index);
                   File[] arr = getSelectedFiles();
                   if (evt.getClickCount() == 2 && arr.length == 1 && arr[0].isFile())
                        actionPerformed(new ActionEvent(okButton, 0, okButton.getActionCommand()));
         public void mouseReleased(MouseEvent evt) {}
         public void mouseClicked(MouseEvent evt) {}
         public void mouseEntered(MouseEvent evt) {}
         public void mouseExited(MouseEvent evt) {}
         public void keyPressed(KeyEvent evt) {
              Object src = evt.getSource();
              int code = evt.getKeyCode();
              if (code == KeyEvent.VK_ESCAPE)
                   actionPerformed(new ActionEvent(cancelButton, 0, cancelButton.getActionCommand()));
              if (src == filenameTextField) {
                   if (code != KeyEvent.VK_ENTER) return;
                   fileList.getSelectionModel().clearSelection();
                   actionPerformed(new ActionEvent(okButton, 0, "enter"));
         public void keyReleased(KeyEvent evt) {}
         public void keyTyped(KeyEvent evt) {}
         public void actionPerformed(ActionEvent evt) {
              Object src = evt.getSource();
              if (src == cancelButton) {
                   if (actionListener != null)
                        actionListener.actionPerformed(evt);
              else if (src == okButton) {
                   File[] selectedFiles = getSelectedFiles();
                   Object obj = fileList.getSelectedValue(); // is null when no file is selected in the JList
                   String text = filenameTextField.getText().trim();
                   if (text.length() > 0 && (obj == null || selectedFiles.length == 0)) {
                        File d = fileChooser.getCurrentDirectory();
                        Vector vec = new Vector();
                        StringTokenizer st = new StringTokenizer(text, "\"");
                        while (st.hasMoreTokens()) {
                             String s = st.nextToken().trim();
                             if (s.length() == 0) continue;
                             File a = new File(s);
                             if (a.isAbsolute())
                                  vec.add(a);
                             else
                                  vec.add(new File(d, s));
                        File[] arr = new File[vec.size()];
                        for (int i = 0; i < arr.length; i++)
                             arr[i] = (File) vec.get(i);
                        selectedFiles = arr;
                   if (selectedFiles.length == 0) {
                        Toolkit.getDefaultToolkit().beep();
                        return;
                   if (selectedFiles.length == 1) {
                        File f = selectedFiles[0];
                        if (f.exists() && f.isDirectory() && text.length() > 0 && evt.getActionCommand().equals("enter")) {
                             fileChooser.setCurrentDirectory(f);
                             filenameTextField.setText("");
                             filenameTextField.requestFocus();
                             return;
                   boolean filesOnly = (fileChooser.getFileSelectionMode() == JFileChooser.FILES_ONLY);
                   boolean dirsOnly = (fileChooser.getFileSelectionMode() == JFileChooser.DIRECTORIES_ONLY);
                   if (filesOnly || dirsOnly) {
                        for (int i = 0; i < selectedFiles.length; i++) {
                             File f = selectedFiles;
                             if (filesOnly && f.isDirectory() || dirsOnly && f.isFile()) {
                                  Toolkit.getDefaultToolkit().beep();
                                  return;
                   fileChooser.setSelectedFiles(selectedFiles);
                   if (actionListener != null)
                        actionListener.actionPerformed(evt);

  • Change tab text

    Hi Experts,
    I have a standard webdynpro screen which has a Tabstrip having different tabs. For one of the tabs in the Tab Strip I want to change the Tab text on certain condition during runtime.
    When I check the Tab property, the propery Caption is holding the Text for the Tab. Is it possible to change the text during runtime?
    I would need to create and assign an OTR text to make enable the text in other login, so I is it possible to create another caption and bind it during runtime? or anyother option?

    Srinivas Kalluri wrote:
    Is it possible to change the text during runtime?
    > I would need to create and assign an OTR text to make enable the text in other login, so I is it possible to create another caption and bind it during runtime? or anyother option?
    As the text property of the caption of the Tab is bindable, Yes you can bind it at runtime. As you mentioed it is standard component, you need to use enhancment concepts to do this.
    you can create OTR and then use below code,
      data: lw_alias   TYPE sotr_alias,
            lw_otr         TYPE string.
    data: l_otr type ref to cl_sotr.
      IF NOT l_otr IS BOUND.
        CREATE OBJECT l_otr.
      ENDIF.
           lw_alias = 'Z_OTR_TAB_TEXT'.
    *    Get OTR text
            CALL METHOD l_otr->get_text_by_alias
              EXPORTING
                i_alias = lw_alias
              IMPORTING
                e_text  = lw_otr.
    *     set single attribute
      lo_el_tab_text->set_attribute(
        EXPORTING
          name =  `TAB_TEXT`    "TAB_TEXT is attribute having type string
          value = lw_otr. ).
    Thanks,
    Chandra

  • How can a button in a component change text in main

    I have created a new component and moved a combobox from the main app to this component. In the main app I’ve include the component and it works marvelous. Also in the main app I have a label id="myLabel”. Now I want to change the text from myLabel when the combobox change (close event).
    How can I allow e.g. the combobox in the new component to change something in the main app. It only works visaversa. (Of course I know that this is not the best practice, but I’m just wondering while testing)

    Technically this answer is correct, but for most scenarios it is wrong. You should not have your components change properties in their parent components, since this creates a tight coupling making re-use difficult or impossible.
    The appropriate way to do this is to use events. A component emits an event and someone listens for this event and the text in the parent changes as a result of the event.

  • Using cue points to change a text box

    Ok I asked a simlar question before but I am still having trouble getting it to work.
    I have a video with 11 Cue points and at each cuepint I want the Typebox to change it text at each cue point.
    When the video is playing I want a the textbox to change the text when cue point 1 is reached. This is the code I am using. But every always goes straight to the whatever the last functions text and skips all the other before it. Its bassically this code repeated with difffernt function name and string.
    import fl.video.MetadataEvent;
    flvplayer.addEventListener(MetadataEvent.CUE_POINT,section2Cue);
    function section2Cue(event:MetadataEvent):void{
        for(var String = "section2" in event.info){
            typebox.text = "Hello";                        }
    So basically I want to tell flash, when CuePoint1 is reached text = "hello world" and when CuePoint2 is reached I want the text ="Hello Again". I don't know what I am doing wrong or what is the best way to tell flash how to do this

    Ok, I tryed that code Basically I want to call upon each cue point individually and have an event for each one. So how i tell it to display this only when Cuepoint1 is reach and display that only when Cuepoint2 is reached.  What data would help ?
    Most of my code is just buttons to reach each cuepoint within the video. I got that to work fine.
    I'll supply it anyways
    import flash.events.MouseEvent;
    // Assign a new skin to my FLVPlayback instance using ActionScript
    flvplayer.skin = "player.swf";
    flvplayer.fullScreenTakeOver = false;
    //select section menu button
    selectBtn.addEventListener(MouseEvent.CLICK, openMenu);
              function openMenu(event:MouseEvent): void{
                        trace("working");
                        selectMenu.gotoAndPlay(2);
              selectMenu.closeX.addEventListener(MouseEvent.CLICK, closeMenu);
                        function closeMenu(event:MouseEvent): void{
                                  trace("closing");
                                  selectMenu.gotoAndPlay(11);
              //Cuepoint Buttons
    selectMenu.sec1.addEventListener(MouseEvent.CLICK, section1Button);
    function section1Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section1");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Orion Health EMR Lite Overview";
    selectMenu.sec2.addEventListener(MouseEvent.CLICK, section2Button);
    function section2Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section2");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Adopt Electrionic Patients Records Easily";
              selectMenu.sec3.addEventListener(MouseEvent.CLICK, section3Button);
    function section3Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section3");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Introducing Orion Health EMR Lite";
                        selectMenu.sec4.addEventListener(MouseEvent.CLICK, section4Button);
    function section4Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section4");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Meet Mr. Smith - Patient Registration and Intake";
    selectMenu.sec5.addEventListener(MouseEvent.CLICK, section5Button);
    function section5Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section5");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Orion Health EMR Lite in the Exam Room - Clicnical Documentation and Orion Health HIE Integration";
    selectMenu.sec6.addEventListener(MouseEvent.CLICK, section6Button);
    function section6Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section6");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Working with Orion Health EMR Lite - Documentation";
    selectMenu.sec7.addEventListener(MouseEvent.CLICK, section7Button);
    function section7Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section7");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Order Entry in Orion Health EMR Lite";
    selectMenu.sec8.addEventListener(MouseEvent.CLICK, section8Button);
    function section8Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section8");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "ePrescribing";
    selectMenu.sec9.addEventListener(MouseEvent.CLICK, section9Button);
    function section9Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section9");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "ePrescribing";
    selectMenu.sec10.addEventListener(MouseEvent.CLICK, section10Button);
    function section10Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section10");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Quality and Utilization Reporting";
    selectMenu.sec11.addEventListener(MouseEvent.CLICK, section11Button);
    function section11Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section11");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Summary";
    As for data? This is all I know about my CuePoints
    Would the best way to acheive changing type is to change the way my movie clips are set up? Instead of telling it within the actionscript maybe telling it to go to next frame within a movieclip with the content? I don't know exactly how to word what I am trying to acheive but I'm trying!
    thanks!

  • How can i access and change a text from a button in diferents symbols!?

    I have this:   ELEMENTS:  Stage  - symbol_1
                                                         - symbol_2
    So,... i would like to change a text inside symbol_2 from a button on symbol_1, using sym.$("Text").html("NewText");  What's the correct path!?
    Thanks in advance,
    Regards,

    sym.$('symbol_2')
    sym.getComposition().getStage(). getSymbol('symbol_1').$("Text").html("NewText");

  • Simple Button.Text not changing properly

    Hi all,
    The WPF learning curve is steep.
    I have pulled my hair over this simple Button.Text change and I can't get it to work.
    In WinForms this works:
    Public Class Form1
    Private Sub BTN_1_Click(sender As Object, e As EventArgs) Handles BTN_1.Click
    BTN_1.Text = "CLICKED BUTTON 1"
    BTN_2.Text = "CHANGED BY BUTTON 1"
    End Sub
    Private Sub BTN_2_Click(sender As Object, e As EventArgs) Handles BTN_2.Click
    BTN_2.Text = "CLICKED BUTTON 2"
    BTN_1.Text = "CHANGED BY BUTTON 2"
    End Sub
    End Class
    I want to do the same thing in WPF
    <Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525">
    <Grid>
    <Grid.RowDefinitions>
    <RowDefinition/>
    <RowDefinition/>
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition/>
    <ColumnDefinition/>
    </Grid.ColumnDefinitions>
    <Grid Grid.Column="0" Grid.Row="0">
    <Button Name="BTN_1" Click="CLICK_BTN_1">
    <StackPanel>
    <TextBlock Name="CLICK_BTN_1_LABEL_1" Text="Button 1 text" VerticalAlignment="Top" Foreground="#BF000000" >
    </TextBlock>
    <TextBlock Name="CLICK_BTN_1_LABEL_2" VerticalAlignment="Top" Foreground="#BF000000">
    <Run FontSize="25">Button 1</Run>
    <Run FontSize="12">Label 2</Run>
    </TextBlock>
    </StackPanel>
    </Button>
    </Grid>
    <Grid Grid.Column="1" Grid.Row="0">
    <Button Name="BTN_2" Click="CLICK_BTN_1">
    <StackPanel>
    <TextBlock Name="CLICK_BTN_2_LABEL_1" Text="Button 2 text" VerticalAlignment="Top" Foreground="#BF000000">
    </TextBlock>
    <TextBlock Name="CLICK_BTN_2_LABEL_2" VerticalAlignment="Top" Foreground="#BF000000">
    <Run FontSize="25">Button 2</Run>
    <Run FontSize="12">Label 2</Run>
    </TextBlock>
    </StackPanel>
    </Button>
    </Grid>
    </Grid>
    </Window>
    Class MainWindow
    Private Sub CLICK_BTN_1(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles BTN_1.Click
    ' CHANGE LABEL 1 ON BUTTON 1
    CLICK_BTN_1_LABEL_1.Text = "CLICKED BUTTON 1"
    ' CHANGE LABEL 1 ON BUTTON 2
    CLICK_BTN_2_LABEL_1.Text = "CHANGED BY BUTTON 1"
    End Sub
    Private Sub CLICK_BTN_2(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles BTN_2.Click
    ' CHANGE LABEL 1 ON BUTTON 1
    CLICK_BTN_1_LABEL_1.Text = "CHANGED BY BUTTON 2"
    ' CHANGE LABEL 1 ON BUTTON 2
    CLICK_BTN_2_LABEL_1.Text = "CLICKED BUTTON 2"
    End Sub
    End Class
    This used to be so simple with WinForms, what am I doing wrong here?
    New to WPF

    Yeah, I saw that as well but now I am stuck again:
    Same project but I have put the buttons in a usercontrol
    <Window x:Class="MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Component_Changes"
    Title="MainWindow" Height="350" Width="525">
    <Grid>
    <Grid.RowDefinitions>
    <RowDefinition/>
    <RowDefinition/>
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
    <ColumnDefinition/>
    <ColumnDefinition/>
    </Grid.ColumnDefinitions>
    <Grid Grid.Column="0" Grid.Row="0">
    <Viewbox Stretch="Fill">
    <ContentControl Name="UC_BTN1">
    <ContentControl.Content>
    <local:btn1 Margin="20"/>
    </ContentControl.Content>
    </ContentControl>
    </Viewbox>
    </Grid>
    <Grid Grid.Column="1" Grid.Row="0">
    <Viewbox Stretch="Fill">
    <ContentControl Name="UC_BTN2">
    <ContentControl.Content>
    <local:btn2 Margin="20"/>
    </ContentControl.Content>
    </ContentControl>
    </Viewbox>
    </Grid>
    </Grid>
    </Window>
    btn1.xaml
    <UserControl x:Class="btn1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
    <Button Name="BTN_1" Click="CLICK_BTN_1">
    <StackPanel>
    <TextBlock Name="CLICK_BTN_1_LABEL_1" Text="Button 1 text" VerticalAlignment="Top" Foreground="#BF000000" >
    </TextBlock>
    <TextBlock Name="CLICK_BTN_1_LABEL_2" VerticalAlignment="Top" Foreground="#BF000000">
    <Run FontSize="25">Button 1</Run>
    <Run FontSize="12">Label 2</Run>
    </TextBlock>
    </StackPanel>
    </Button>
    </Grid>
    </UserControl>
    btn1.xaml.vb
    Public Class btn1
    Dim CL_BTN2 As btn2
    Private Sub CLICK_BTN_1(sender As Object, e As RoutedEventArgs) Handles BTN_1.Click
    ' CHANGE LABEL 1 ON BUTTON 1
    CLICK_BTN_1_LABEL_1.Text = "CLICKED BUTTON 1"
    ' CHANGE LABEL 1 ON BUTTON 2
    CL_BTN2.CLICK_BTN_2_LABEL_1.Text = "CHANGED BY BUTTON 1"
    End Sub
    End Class
    btn2.xaml
    <UserControl x:Class="btn2"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
    <Button Name="BTN_2" Click="CLICK_BTN_2">
    <StackPanel>
    <TextBlock Name="CLICK_BTN_2_LABEL_1" Text="Button 2 text" VerticalAlignment="Top" Foreground="#BF000000">
    </TextBlock>
    <TextBlock Name="CLICK_BTN_2_LABEL_2" VerticalAlignment="Top" Foreground="#BF000000">
    <Run FontSize="25">Button 2</Run>
    <Run FontSize="12">Label 2</Run>
    </TextBlock>
    </StackPanel>
    </Button>
    </Grid>
    </UserControl>
    btn2.xaml.vb
    Public Class btn2
    Dim CL_BTN1 As btn1
    Private Sub CLICK_BTN_2(sender As Object, e As RoutedEventArgs) Handles BTN_2.Click
    ' CHANGE LABEL 1 ON BUTTON 1
    CL_BTN1.CLICK_BTN_1_LABEL_1.Text = "CHANGED BY BUTTON 2"
    ' CHANGE LABEL 1 ON BUTTON 2
    CLICK_BTN_2_LABEL_1.Text = "CLICKED BUTTON 2"
    End Sub
    End Class
    No warnings in the code but the error is: 'Object reference not set to an instance of an object' and I thought I did, obviously not in the right way.
    New to WPF

  • How to change the text of a button in ALV dynamically?

    Hi Gurus,
    I have a ALV with a button in the toolbar.Basically i have to change the button text each time the button is pressed.
    How can i do this?
    PS:points will be awarded

    On your alv model, first call if_salv_wd_function_settings~get_function( ID = <your ID> ). This will return you a reference of cl_salv_wd_function. If your function uses a button editor, do the following:
    data:
    lr_button type ref to CL_SALV_WD_FE_BUTTON,
    lr_function type ref to cl_salv_wd_function.
    lr_function = l_alv_model->if_salv_wd_function_settings~get_function( ID = <your ID> ).
    lr_button ?= lr_function->get_editor( ).
    lr_button->set_text( ).
    I have not tried this, but it should work.
    Regards
    Nithya

  • Trying to change the text of the command button.

    Hi.,
    Am using jdeveloper 11.1.1.6.,
    I have dragged and dropped a command button in my jsff page.
    When there is no record in my VO which dragged and dropped as a af:form the button will act as a create insert so that the text of the button should also be create Insert. If there is record the button should act as a update so that the text should also be update. I have used the follwoing code to change the text accordingly.
        public void settext(ActionEvent actionEvent) {
            // Add event code here...
            BindingContainer bc = getBindings();
            DCIteratorBinding dcIter =
                (DCIteratorBinding)bc.get("EssEeoDemInfView1Iterator");
            int e = (int)dcIter.getEstimatedRowCount();
            System.out.println (e);
            if ((e == 0)) {
                myButton.setText("CreateInsert");    // Null pointer exception occurs
            } else {
                myButton.setText("Update");  //null pointer exception occurs
        }Can any one pls help me?

    Hi Timo!
    This was the thing which i have did.
    I have dragged and dropped a command button to my jsff page.
    When i press the button a popup will show which ask the confirmation from the user.
    This is the code which i have written in my managed bean.
        public String delete_action() {
            BindingContainer bindings = getBindings();
            OperationBinding operationBinding = bindings.getOperationBinding("Delete");
            Object result = operationBinding.execute();
            Commit();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            return null;
        public void deleteItem(DialogEvent dialogEvent)
            if (dialogEvent.getOutcome() != DialogEvent.Outcome.yes)
                delete_action();
              return;
          }I have used the EL Expression in my another button which will change it property according to the values in my row.
    #{bindings.EssEeoDemInfView1Iterator.estimatedRowCount gt 0 ? 'Update':'Create Insert'}For this button i have used the following code in my managed bean.
        public String update() {
             BindingContainer bc = getBindings();
            DCIteratorBinding dcIter =
                (DCIteratorBinding)bc.get("EssEeoDemInfView1Iterator");
            int e = (int)dcIter.getEstimatedRowCount();
            if ((e == 0)) {
                  CreateInsert();
            } else {
                   Commit();
            return null;
        }When i initially delete the record the button has not been changed to createinsert it remains as update. When i press the update am getting NULL pointer exception in CreateInsert() and Commit();

Maybe you are looking for

  • How to upgrade Crystal report to 10.5.3700

    Hi All, I have standalone Crystal report 10 and VS2008 Professional 2008 SP1 Installed. the version number for crystal report shown for Crystal report 10 with SP6 is 10.0.1.2522 the version number for VS2008 built in crystal report is 10.5.1943. I ha

  • OVi player will not load on PC

    When i try to load the ovi player on my PC Ireceive a message" Application has generated an exception that cannot be handled". Then  when I click "CANCEL" to debug the problem I receive a message "no registered JIT debugger was specified". Can anyone

  • Does anyone have an idea how to solve this glitch in iCal synchronizing?

    I have switched to iCoud from Mobile Me before the June, 2012 cut off date. Now I have a problem with synchronizing all my calendars in my iPhone with MacBook pro. When I go to iTunes info, and select calendars, there is no recognition of all my cale

  • BAPI_BUS2054_CREATE_MULTI - error CNIF_PI - 076

    Hi, I'm using BAPI BAPI_BUS2054_CREATE_MULTI to create new WBS elements and sudenly it has started to trow me errors CNIF_PI(076) and CNIF_PI(074). Can anyone help me? thanks Juraj

  • Assuming the worst of me...

    Hi all! I posted yesterday on the iMovie forum asking how to get my home movies off of a DVD and on to my computer. I want to be able to manipulate the movies and edit them (I had a professional convert all my VHS tapes to DVD, as I do not have the r