How to listen Events in subclasses

Hello, I'll try to be as clear as possible.
I've two AS2 classes, say Main and Sub.
Sub inherits from Main.
Main gets instantiated by Sub by calling super in its
constructor.
In Sub constructor a Main method gets invocated too.
Being this Main method related to a remoting call, it
automatically
calls a fault or a result event when it receives data from
the server.
In the Result function I put:
dispatchEvent({type:'myMessage', target:this});
What I'm trying to do:
this message should be listened by Sub.
When Sub receives this event it should fire one of its
methods.
How to do this?
Thanks!

Sorry. This doesn't make sense. Please rephrase the question or try posting in your native language.

Similar Messages

  • How do i hide/cancel popup on fetch  listener event

    Hi,
    I have a popup.  popup should not be visible  if there is any database error
    raise on execution of procedure which call inside popup fetch listener

    hi user,
    I have a popup.  popup should not be visible.
    there is lot of ways to rendering or no rendering of popup. why you want to listener event?
    if there is any database error
    what you mean db error. what kind it is.
    raise on execution of procedure which call inside popup fetch listener
    I did not know about your requirement. by blindly read this i can't  able to come to conclusion.
    please give enough info about jdev? and usecase?. and so on.

  • Listener event

    I am trying to create a small game got most of the functionality, apart from one aspect how would you code an Listener event that would take into account that if any two pawns on a chessboard were on the same line in any direction then that row would become highlighted and the user could not place any more pawns on that row?
    I know a wee bit about �if� and �else� statements but I have no idea how you would create code that would carry out the above function.
    Any help would be great
    Tom
    // <applet code="ChessBored.class" width="500" height="500"></applet>
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ChessBored  extends JApplet
      public void init()
         JFrame f = new JFrame("Chess Board");
         ChessBoard board = new ChessBoard();
         f.getContentPane().add(board);
         f.setSize(board.WIDTH, board.HEIGHT);
         f.setVisible(true);
       } // end init
      public class ChessBoard extends JPanel implements MouseListener
        private Color[] squareColor = new Color[2];
        private final int NUMSQUARES = 8, WIDTH = 400, HEIGHT = 400;
        private int squareSize;
        private int boardSize;
    /* The constructor sets only some of the instance variables.
       The rest are set when the screen is painted.
       public ChessBoard()
          squareColor[0] = Color.black;
          squareColor[1] = Color.white;
          addMouseListener(this);
          setSize(WIDTH, HEIGHT);
    /* The paintComponent method is called every time the display
       needs to be repainted. Examples: When the window is
       first displayed, when the window is moved, resized,
       maximized, etc.
       Draws an 8x8 grid of alternately colored squares.
       Make the grid as large as it can be to fit in the
       current size of the drawing pane (which is the content pane
       for the JFrame).
        public void paintComponent (Graphics g)
          super.paintComponent(g);  // Make sure background is cleared
          int paneHeight = this.getHeight();
          int paneWidth  = this.getWidth();
          if (paneHeight < paneWidth)
            squareSize = paneHeight / NUMSQUARES;
          else
            squareSize = paneWidth / NUMSQUARES;
          boardSize = squareSize * NUMSQUARES;
          for (int row=0; row<NUMSQUARES; row++)
             for (int col=0; col!=NUMSQUARES; col++)
            { g.setColor(squareColor[(row+col)%2]);
              g.fillRect(col*squareSize,   // x
                         row*squareSize,   // y
                         squareSize,       // width
                         squareSize);      // height
        } // end paintComponent
    /** The mouseClicked method responds to any mouse clicks.
        public void mousePressed(MouseEvent e)
    // Quit if the mouse press falls outside the board
          Point p = e.getPoint();
          int x = (int) p.getX();
          int y = (int) p.getY();
          if((x>boardSize) || (y>boardSize))
            return;
    // Determine which square (i.e. row, col) was selected
          int row = y / squareSize;
          int col = x / squareSize;
          if (row <= 8)
            drawPawn(row, col, Color.blue);
        //else
          //if (row >= (NUMSQUARES-2))
            //drawPawn(row, col, Color.black);
          //else
           // drawMessage(row, "Checkmate!");
    /* These four methods are not used, but must be
       implemented because they are required by the
       MouseListener interface.
        public void mouseEntered(MouseEvent e)  {}
        public void mouseExited(MouseEvent e)   {}
        public void mouseClicked(MouseEvent e)  {}
        public void mouseReleased(MouseEvent e) {}
    /** The drawPawn method draws a pawn shape on the
        specified square in the chess board.
        public void drawPawn(int row, int col, Color c)
          Graphics g = this.getGraphics();
          g.setColor(c);
    // Calculate position of upper left corner of square
          int x = col*squareSize;
          int y = row*squareSize;
    /* Draw circle for "head" of the pawn. Dimensions are
       for the oval's "bounding box".
          g.fillOval(x+(2*squareSize/5), // x
                     y+(squareSize/5),   // y
                     squareSize/5,       // width
                     squareSize/5);      // height
    // Draw a polygon for the "body" of the pawn.
          Polygon body = new Polygon();
          body.addPoint(x+(2*squareSize/5),
                        y+(2*squareSize/5));
          body.addPoint(x+(3*squareSize/5),
                        y+(2*squareSize/5));
          body.addPoint(x+(4*squareSize/5),
                        y+(4*squareSize/5));
          body.addPoint(x+(squareSize/5),
                        y+(4*squareSize/5));
          g.fillPolygon(body);
        } // drawPawn
    /** The drawMessage method draws the given string in
        the given row of the chess board, centered
        horizontally.
        public void drawMessage(int row, String s)
    //Set a new font and color
          Font bigFont = new Font("Times New Roman", Font.BOLD, 36);
          Graphics g = this.getGraphics();
          g.setFont(bigFont);
          g.setColor(new Color(0.8F, 0.8F, 1.0F));
    //Determine the position of the string
          FontMetrics m = g.getFontMetrics();
          int x = (boardSize - m.stringWidth(s)) / 2;
          if (x < 0)
            x = 0;
          int y = ((row+1)*squareSize) - m.getDescent();
          if (y<0)
            y = m.getLeading() + m.getAscent();
          g.drawString(s, x, y);
        } // drawMessage
      } // end ChessBoard
    } // end ChessBored

    One thing that sticks out is your listener method isn't quite to spec, according to the f:ajax spec they're supposed to match the following signature:
    javax.el.MethodExpression
    (signature must match public void processAjaxBehavior(javax.faces.event.AjaxBehaviorEvent event) throws javax.faces.event.AbortProcessingException)
    Try dropping the boolean return value & adding the throws. I'm running Apache's MyFaces and it's perfectly fine with your method signature, but maybe your JSF implementation isn't.
    Also, you running with javax.faces.PROJECT_STAGE set to Development? Maybe some useful server-side error you're not seeing. You probably should also create your own ExceptionHandler to dump stack traces to the console/logs if you haven't done so already as well.
    And lastly, you sure all your code's published to the server? If you're still stuck, then the best thing to do is to make this page as simple as possible, put just 1 checkbox w/o all the table/repeats/etc. to help you eliminate other possibilities.
    Sorry can't be more helpful...

  • Listening events for numeric keys

    Hi,
    How can I listen events for numeric keys without using Canvas?
    I mean I would like to take some actions when user writes something
    on a TextField. My main class is not inherited from Canvas and because of that
    I can't use keyPressed() method to handle these numeric keys.
    Is there a way to handle these events in commandAction() method?

    Hi,
    If u r concerned only about the texfields and if you are using MIDP 2.0 compatible device then try ItemCommandListener.

  • How to listen to the action in the action performed inside

    I have a code in actionperformed inside that add the listener, how the listener work or listen?
    public void actionPerformed(ActionEvent e){
           JMenuItem item = (JMenuItem)e.getSource();
            String ac = item.getActionCommand();
            if (ac.equals("Reset User Login Status"))
                         p1.removeAll();
                         p1.add(label1);
                      p1.add(menuBar);
                    display dis = new display();
                      table=dis.display();
                         table.setBounds(new Rectangle(10, 50, x-120, y-160));
                         table.getTableHeader().setBounds(new Rectangle(10, 30, x-20,20));
                         table.getModel().addTableModelListener(this);
                         btn_update = new JButton("Update");
                         btn_update.setBounds(new Rectangle(x-110, y-100, 90, 40));
                         //*****This below the listener, how it work???
                         btn_update.addActionListener( this );  
                         p1.add(btn_update); 
                         p1.add(table);
                         p1.add(table.getTableHeader());
                         p1.repaint();
                         p1.revalidate();
                         dis.close();
                    }

    To be simple i have attached the full code and try to higlighted the part with comment:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.table.*;
    import java.text.ParseException;
    import java.io.*;
    import javax.swing.AbstractButton;
    import java.util.StringTokenizer;
    import javax.swing.event.*;
    public class gui extends JFrame implements ActionListener,TableModelListener{
    JLabel label1,label2,label3,label4,errlabel;
    JButton btn1,btn2,btn3;
    JTable table;
    JPasswordField passFld;
    JButton btn_update;
    static JFormattedTextField idFld;
    JFormattedTextField custFld;
    JMenuBar menuBar;
    JMenu menu;
    JMenuItem menuItem;
    DefaultTableModel tabModel;
    StringTokenizer tokenizer;
    static String id;
    static String userRole;
    JPanel p1;
    int x;
    int y;
    display d1;
    String [] arg;
    public gui(String args) {
                    Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
                    x = (screen.width);
                    y = (screen.height);
                    StringTokenizer tokenizer = new StringTokenizer (args, ";");
                    id = tokenizer.nextToken();
                    userRole = tokenizer.nextToken();
                    System.out.println(userRole+""+id);
                    this.setDefaultLookAndFeelDecorated(true);
                    this.setTitle("FOREX Trading System");
                    this.setSize(new Dimension(x, y));
                    //this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    addWindowListener(new WindowAdapter(){
                    public void windowClosing(WindowEvent we){
                    update.main("UPDATE System_user SET LOGIN_STATUS = 0 WHERE USER_ID ='"+id+"'");
                    System.exit(-1);
                    p1 = new JPanel();
                     //Create the menu bar.
                    menuBar = new JMenuBar();
                        menuBar.setBounds(new Rectangle(0, 0, x, 25));
                     //Build the first menu tab.
                     menu = new JMenu("Dealer");
                     menu.setMnemonic(KeyEvent.VK_D);
                     menu.getAccessibleContext().setAccessibleDescription(
                     "For Dealer Acess Only");
                     menuBar.add(menu);
                     //Assign access right
                     if(userRole.equals("Dealer"))
                     menu.setEnabled(true);
                     else
                     menu.setEnabled(false);
                     menuItem= new JMenuItem("Key Deal");
                     menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_K);
                    menu.add(menuItem);
                    menuItem= new JMenuItem("Amend Deal");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_A);
                    menu.add(menuItem);
                    menuItem = new JMenuItem("Cancel Deal");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_C);
                    menu.add(menuItem);
                    menuItem = new JMenuItem("Close Position");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_P);
                    menu.add(menuItem);
                    //Another Menu tab
                    menu = new JMenu("Teller");
                     menu.setMnemonic(KeyEvent.VK_T);
                     menu.getAccessibleContext().setAccessibleDescription(
                     "For Teller Acess Only");
                     menuBar.add(menu);
                     //Assign access right
                     if(userRole.equals("Teller"))
                     menu.setEnabled(true);
                     else
                     menu.setEnabled(false);
                     menuItem = new JMenuItem("Settle Deal");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_S);
                    menu.add(menuItem);
                    menuItem = new JMenuItem("Create Customer Profile");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_C);
                    menu.add(menuItem);
                    menuItem = new JMenuItem("Close Position");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_P);
                    menu.add(menuItem);
                    menuItem = new JMenuItem("Daily Balance");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_D);
                    menu.add(menuItem);
                     //Another Menu tab
                    menu = new JMenu("Settlement");
                     menu.setMnemonic(KeyEvent.VK_S);
                     menu.getAccessibleContext().setAccessibleDescription(
                     "For Settlement Acess Only");
                     menuBar.add(menu);
                     //Assign access right
                     if(userRole.equals("Settlement"))
                     menu.setEnabled(true);
                     else
                     menu.setEnabled(false);
                     menuItem = new JMenuItem("GL Audit Trail");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_G);
                    menu.add(menuItem);
                    menuItem = new JMenuItem("Generate Payment Report");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_P);
                    menu.add(menuItem);
                    menuItem= new JMenuItem("Create/Edit Payment mode ");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_C);
                    menu.add(menuItem);
                    //Another Menu tab
                    menu = new JMenu("View");
                     menu.setMnemonic(KeyEvent.VK_V);
                     menu.getAccessibleContext().setAccessibleDescription(
                     "For View Only");
                     menuBar.add(menu);
                      //Assign access right
                     if(userRole.equals("Dealer")||userRole.equals("Teller"))
                     menu.setEnabled(true);
                     else
                     menu.setEnabled(false);
                     menuItem = new JMenuItem("Customer Profile");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_C);
                    menu.add(menuItem);
                    menuItem= new JMenuItem("Contrated Deal");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_D);
                    menu.add(menuItem);
                    //Another Menu tab
                    menu = new JMenu("Administrator");
                     menu.setMnemonic(KeyEvent.VK_A);
                     menu.getAccessibleContext().setAccessibleDescription(
                     "For Teller Acess Only");
                     menuBar.add(menu);
                       //Assign access right
                     if(userRole.equals("Administrator"))
                     menu.setEnabled(true);
                     else
                     menu.setEnabled(false);
                     menuItem= new JMenuItem("Set Currency & Rate");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_S);
                    menu.add(menuItem);
                     menuItem= new JMenuItem("Create/Remove User");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_C);
                    menu.add(menuItem);
                    menuItem= new JMenuItem("View Login Status");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_V);
                    menu.add(menuItem);
                    menuItem = new JMenuItem("Reset User Login Status");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_U);
                    menu.add(menuItem);
                    menuItem= new JMenuItem("Reset Daily Report");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_R);
                    menu.add(menuItem);
                    //Another Menu tab
                    menu = new JMenu("Logout");
                     menu.setMnemonic(KeyEvent.VK_O);
                     menu.getAccessibleContext().setAccessibleDescription(
                     "For Logout");
                     menuItem= new JMenuItem("Exit");
                    menuItem.addActionListener( this );
                    menuItem.setMnemonic(KeyEvent.VK_X);
                    menu.add(menuItem);
                     menuBar.add(menu);
                     label1= new TimeLabel()     ;
                     label1.setBounds(new Rectangle(x-80, 0, 80, 30));
                     p1.setLayout(null);
                     p1.add(label1);
                     p1.add(menuBar);
                     getContentPane().add(p1);
        public void actionPerformed(ActionEvent e){
             JMenuItem item = (JMenuItem)e.getSource();
            String ac = item.getActionCommand();
                   //---Below this btn_update is not working            
                    if (e.getSource()==btn_update)
                    System.out.println("A");
           if(ac.equals("Key Deal"))
                     label2 = new JLabel("Customer Name:");
                     label2.setBounds(new Rectangle(40, 40, 200, 30));
                     try{
                     MaskFormatter mf1 = new MaskFormatter("????");
                     custFld= new JFormattedTextField(mf1);
                     custFld.setBounds(new Rectangle(250, 40, 140, 30)); 
                    catch(java.text.ParseException exc)
                     //Error message
                     p1.add(label2);
                     p1.add(custFld);
                     p1.repaint(); 
             if (ac.equals("View Login Status"))
                         p1.removeAll();
                         p1.add(label1);
                      p1.add(menuBar);
                    display dis = new display();
                      table=dis.display();
                         table.setBounds(new Rectangle(10, 50, x-120, y-160));
                         table.getTableHeader().setBounds(new Rectangle(10, 30, x-20,20));
                         table.setEnabled(false);
                         table.setRowSelectionAllowed(false);
                         table.setColumnSelectionAllowed(false);
                         p1.add(table);
                         p1.add(table.getTableHeader());
                         p1.repaint();
                         p1.doLayout();
                         dis.close();
                 if (ac.equals("Reset User Login Status"))
                         p1.removeAll();
                         p1.add(label1);
                      p1.add(menuBar);
                    display dis = new display();
                 table=dis.display();
                         table.setBounds(new Rectangle(10, 50, x-120, y-160));
                         table.getTableHeader().setBounds(new Rectangle(10, 30, x-20,20));
                         table.getModel().addTableModelListener(this);
                         btn_update = new JButton("Update");
                         btn_update.setBounds(new Rectangle(x-110, y-100, 90, 40));
                         //--this the button created
                         btn_update.addActionListener( this );  
                         p1.add(btn_update); 
                         p1.add(table);
                         p1.add(table.getTableHeader());
                         p1.repaint();
                         p1.revalidate();
                         dis.close();
            if (ac.equals("Exit"))
               {    update.main("UPDATE System_user SET LOGIN_STATUS = 0 WHERE USER_ID ='"+id+"'");
                    System.exit(-1);
        public void tableChanged( TableModelEvent ev){
        System.out.println("Changed");
       }

  • How to Listen to click on Row of ADF table?

    Hi,
    How to listen to an event on Selection of Row in table?
    I need to capture the data of selected row, listening to event on selection of row(on click on table row).
    Thanks in Advance
    Thoom

    Are you looking for selectionlistener to find the current selected row?
    Take a look at the below snippet for the sample:
    <af:table value="#{bindings.Employees.collectionModel}" var="row"
    rows="#{bindings.Employees.rangeSize}"
    emptyText="#{bindings.Employees.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.Employees.rangeSize}"
    rowBandingInterval="0"
    selectionListener="#{EmpTableBean.onTableNodeSelection}"
    rowSelection="single" id="t1">
    </af:table>
    The following code can be used to get the selected node - after the user selects a node:
    public void onTableNodeSelection(SelectionEvent selectionEvent) {
    resolveMethodExpression("#{bindings.Employees.collectionModel.makeCurrent}",
    null, new Class[] { SelectionEvent.class },
    new Object[] { selectionEvent });
    RichTable object = (RichTable)selectionEvent.getSource();
    Row row = null;
    for (Object facesRowKey : object.getSelectedRowKeys()) {
    object.setRowKey(facesRowKey);
    Object o = object.getRowData();
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding)o;
    row = rowData.getRow();
    System.out.println(row.getAttribute("FirstName").toString());
    public Object resolveMethodExpression(String expression, Class returnType,
    Class[] argTypes,
    Object[] argValues) {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    Application app = facesContext.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = facesContext.getELContext();
    MethodExpression methodExpression =
    elFactory.createMethodExpression(elContext, expression, returnType,
    argTypes);
    return methodExpression.invoke(elContext, argValues);
    Thanks,
    Navaneeth

  • Listening events on another class

    Hi, I am doing a program that uses differents jpanels, So I need to set a button enabled when an event ocurrs in another panel, how can I do that. the problem is that the panel from wich I need to listen is another class.
    please can someone help me posting some small code that shows how can I listen events on other classes. I think I am able to detect it changing a static variable on another class and having a thread that verify its state, But i dont want to do that, I want to use a listener or any other similar way.

    there's a lot of ways so it depends on the architecture of your program.
    here's a couple of ideas to play with.
    import javax.swing.*;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    public class MyFrame extends javax.swing.JFrame {
        public MyFrame(AnotherClass a) {
            JButton b1 = new JButton("OK");
            b1.addActionListener(a);
            JButton b2 = new JButton(a.getButtonAction("Cancel"));
            getContentPane().setLayout(new java.awt.FlowLayout());
            getContentPane().add(b1);
            getContentPane().add(b2);
            setLocationRelativeTo(null);
            pack();
            addWindowListener(new WindowAdapter(){
               public void windowClosing(WindowEvent we){
                   System.exit(0);
        public static void main(String[] args){
            new MyFrame(new AnotherClass()).setVisible(true);
    import javax.swing.Action;
    import javax.swing.AbstractAction;
    import java.awt.event.*;
    public class AnotherClass implements ActionListener {   
        private Action a;//cancel action
        public AnotherClass() {}
        private void setEnabled(boolean b){
            a.setEnabled(b);
        //cancel action
        public Action getButtonAction(String name){
            a =  new AbstractAction(name){
               public void actionPerformed(ActionEvent ae){
                   System.out.println("Cancel");
            return a;
        public void actionPerformed(ActionEvent e) {
            //ok button action
            System.out.println("okay");
    }

  • How do I use GarageBand as a amp/speaker to listen to my Electronic Drum set? I have a MIDI-USB cord already but I can't figure out how to listen to my set through the software using my computer speakers?

    How do I use GarageBand as a amp/speaker to listen to my Electronic Drum set? I have a MIDI-USB cord already but I can't figure out how to listen to my set through the software using my computer speakers?

    If you want to listen to the sounds of your drum set, you should use an audio cable and connect it to the computer's line-in, then create a real instrument track.
    If you use a Midi/USB interface, you'll have to create a software instrument track and select one of GB's drumsets as the instrument. Hopefully your drumset's midi notes are mapped to the right sounds in GB.

  • How to create event based process chains

    Hi All,
    I would like to know about event based process chains. In connection to this, could you please answer the following queries,
    1. How to create events
    2. How to link created event to the process chain in the same BI or BW system and as well as from  
        externel BI system.
    3. How link one process chain with other process chain (i.e, After completion of one process chain, it
        should trigger other dependent process chain)
    Thanks and Regards,
    Kotesh.

    1). Doubt regarding first question.
    For example, i would like to create time based event (it should be trigger daily at specified time),
    where we have to maintain scheduling options while creating event.
    When i checked SM62 there i found only two options a). Event name and b). Description.
    Could please send any doucument link if you have.
    Ans : You can use function modules like "BP_EVENT_RAISE" in a program and schedule the program to trigger.
    2). For externel BIW system also same procedure we need to follow or any difference.
    Ans : Externally you need to trigger the same event.
    3). i found dependent process chain also had scheduling options as direct scheduling insted of start using meta chain or API. As you said dependent process chain should be mata chain. it seems dependent process chain may be Meta chain or Direct scheduilg.
    Ans : Its your choice how you want to schedule it.You can either make that dependent chain a metachain or schedule it separately.
    I found at the end of first process chain they kept one process like Raise event and second process chain connected with the help of raise event process event name. If you have any idea about this process could explain a bit more.
    Ans : May be they are raising the event in the main chain and triggering the dependent chain using this event.
    But Metachain is preferred for such thing.Though it does similar thing.
    Hope this helps.

  • How to create Event Node in smartform

    Hi Experts,
    could you please tell me how to create event node in smartform
    Thanks in Advance,
    Thanks&Regards
    Geetha

    HI,
    plz explain your problem in deeply.
    And as per me you first create page and righ click on it
    Then create window as per your requirement.
    if you want to put condition ot events true or false Righ click on your window
    then goto flow logic -> Altenative
    You can found 2 events in Condition.
    So you can assign this events.If you want to put condition or event on test then goto Text here in General Attributes in bottom side you can find even on page.
    Try it.

  • How to Create Event polling table

    hi,
    1)How to Create Event polling table
    2) wahts RPD stands for.
    3) when we are prefer Dynamic variables.
    thanks.
    raj

    1) http://obiee101.blogspot.com/2008/07/obiee-managing-cache-emptyingpurging.html
    2) Repository Project Design ?
    - More than likely the extension RPD was not used by anything else when Siebel Analytics first started using it, no doubt the 'RP' is repository, so use 'Definition' or 'Design' as you like. Im pretty sure there is nothing in the documentation but i've not checked, maybe you could check and let us know?
    3) Dynamic variables would be something like 'CURRENT_MONTH' where the same query does not need to fire per user (ie SESSION variable) but needs to be periodically refreshed. Another use of you dynamic variable might be 'LAST_ETL_DATE' or somethng similar which might implement with your event polling table. By including the Variable within a Business Model, all cache for the Business Model is purged whenever the Variable's value changes.

  • How to create EVENTS for a View Cluster.

    Hi Tech Gurus,
    I have created a view cluster on 5 tables. I need to do a validation and this can be done by using events. But i am unable to create a EVENT for the View Cluster. Could anyone please tell me how to create events for a View Cluster.
    Thanks in advance for your esteemed replies.
    Regards,
    Raghavendra Goutham P.

    Hello Pasapula
    When you are in the View Cluster maintenance dialog (SE54) click on dialog "Events".
    Below the field for the view cluster you have an additional field <b>FORM routines main program</b>. There you have to add the main program containing the FORM routines called by the VC events.
    For example: I had defined a normal report containing an include with all the FORM routines. The report contains only the following lines of coding:
    report zus_0120_u1.
    * Common Data und access routines for user exits in VC maintenance
    include LSVCMCOD.
    include  zus_0120_f1. "FORM routines for VC events
    Now in the "Events" dialog of the view cluster maintenance you assign your FORM routines to the events.
    Regards
      Uwe

  • How to Call Event Handler Method in Another view

    Hi Experts,
                       Can anybody tell me how to call Event handler Method which is declared in View A ,it Should be Called in
      view B,Thanks in Advance.
    Thanks & Regards
    Santhosh

    hi,
    1)    You can make the method EH_ONSELECT as public and static and call this method in viewGS_CM/ADDDOC  using syntax
        impl class name of view GS_CM/DOCTREE=>EH_ONSELECT "method name.
                 or
    2)The view GS_CM/ADDDOC which contains EH_ONSELECT method has been already enhanced, so I can't execute such kind of operation one more time.
                         or
    3)If both views or viewarea containing that view are under same window , then you can get the instance ofGS_CM/DOCTREE from view GS_CM/ADDDOC  through the main window controller.
    lr_window = me->view_manager->get_window_controller( ).
        lv_viewname = 'GS_CM/DOCTREE '.
      lr_viewctrl ?=  lr_window ->get_subcontroller_by_viewname( lv_viewname ).
    Now you can access the method of view GS_CM/DOCTREE .
    Let me know in case you face any issues.
    Message was edited by: Laure Cetin
    Please do not ask for points, this is against the Rules of Engagement: http://scn.sap.com/docs/DOC-18590

  • How to Disable Event firing while updating a list item using poweshell

    Hi All,
    I am working on a powershell code which updates most of the list items in the entire web application. I am using SystemUpdate($false) to update the items so that 'modified' and 'modified By' and versions are not changed.
    However event receivers gets fired which is now a problem. I want to disable the Event receivers before update and enable it after update. I want powershell code for this. I am using SharePoint 2010.
    Your help would be much appreciated. Thank you in anticipation.
    Regards
    Karthik R.

    hi
    check this thread:
    How to disable event firing outside an event. It contains example on C#, but it is not difficult to convert it to PowerShell.
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • How to Raise Event in BW using ABAP program

    Hi BW Experts,
    Can anyone tell how to raise event in BW using a ABAP program.
    Program should ask for the event to be raised and destination server.
    Edited by: Arun Purohit on May 14, 2008 11:04 AM

    Hi Arun,
    By Using BP_EVENT_RAISE function module you can raise an event.Create an ABAP program and call the function module BP_EVENT_RAISE and create a avariant to specify the event to be raised. Schedule this ABAP code. Go to the start process type and set the schedule to "after event" and mention the event name that you created. Also, I think now you can mention the time as well and you can also schedule for periodic scheduling.
    T Code : SM62 --> To Create an Event.
    T Code : SE38 --> To Create an ABAP Program
    Use Function Module : BP_EVENT_RAISE to raise an event.
    Related links:
    http://help.sap.com/saphelp_sem40bw/helpdata/EN/86/6ff03b166c8d66e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_sem40bw/helpdata/EN/86/6ff03b166c8d66e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_sem40bw/helpdata/EN/86/6ff03b166c8d66e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_sem40bw/helpdata/EN/86/6ff03b166c8d66e10000000a11402f/frameset
    Hope this helps
    Regards
    CSM Reddy

Maybe you are looking for

  • SSO - session time out while navigating across applications

    Hi, Problem statement Handling session time out while navigating across applications involving SSO Current approach Application 1 1. Create session1. 2. URL rewrite the sesssion ID1 into the link refering to App2. Application 2 1. Create session2 2.

  • HT4236 Question about photo albums

    My i-tunes library on my laptop won't allow me to sync up my phone as there isn't enough storage space.  However, I cannot delete particular photo albums directly on my phone, it isn't an option, but  cannot deselect certain albums without syncing it

  • ABAP function module TH_POP_UP message

    Hi experts, I created a report that call function module TH_POPUP to users from a role. It works perfectly fine BUT the pop-up present a red cross, that might be confusing for users because a pop-up is sent if the job involved is successful or not. S

  • Insanely slow upload speeds with normal download speeds -- can anyone help?

    I have done LOTS of troubleshooting and I'm coming up blank. I've just moved from CA to HI and have a new ISP, but other machines in the house are not having this issue. I'm having a very difficult time figuring out why I can no longer upload files l

  • ACS 2.6(4)

    Hi, we currently run ACS 2.6(4) on NT Server! We need to upgrade to 2k3 Server and ACS 3.3! So I installed 2K3 on new hardware and try to install ACS 2.6 to the machine to replicate the DB with existing database! But i am not able to install 2.6 to W