Problem in events

Hi,
There are two tabs in my selection screen ,when I enter the values in first tab and click the execute button ,ALV is shown.After showing the ALV when back button is clicked ,it will come to the first tab.Uptill this point program is working fine.
After that when I enter the values again for first tab and execute ,it is not showing ALV and it reaches the initialization event after the start-of -selection event.
Can any one please rectify the problem.......
Regards,
Prachi

Hi....
i think you have return your code in PBO....
You have to code that in PAI.....
check it an reply....
Regards
Raja

Similar Messages

  • Problem with event handling

    Hello all,
    I have a problem with event handling. I have two buttons in my GUI application with the same name.They are instance variables of two different objects of the same class and are put together in the one GUI.And their actionlisteners are registered with the same GUI. How can I differentiate between these two buttons?
    To be more eloborate here is a basic definition of my classes
    class SystemPanel{
             SystemPanel(FTP ftp){ app = ftp};
             FTP app;
             private JButton b = new JButton("ChgDir");
            b.addActionListener(app);
    class FTP extends JFrame implements ActionListener{
               SystemPanel rem = new SystemPanel(this);
               SystemPanel loc = new SystemPanel(this);
               FTP(){
                       add(rem);
                       add(loc);
                       pack();
                       show();
           void actionPerformed(ActionEvent evt){
            /*HOW WILL I BE ABLE TO KNOW WHICH BUTTON WAS PRESSED AS THEY
               BOTH HAVE SAME ID AND getSouce() ?
               In this case..it if was from rem or loc ?
    }  It would be really helpful if anyone could help me in this regard..
    Thanks
    Hari Vigensh

    Hi levi,
    Thankx..
    I solved the problem ..using same concept but in a different way..
    One thing i wanted to make clear is that the two buttons are in the SAME CLASS and i am forming 2 different objects of the SAME class and then putting them in a GUI.THERE IS NO b and C. there is just two instances of b which belong to the SAME CLASS..
    So the code
    private JButton b = new JButton("ChgDir");
    b.setActionCommand ("1");
    wont work as both the instances would have the label "ChgDir" and have setActionCommand set to 1!!!!
    Actually I have an array of buttons..So I solved the prob by writting a function caled setActionCmdRemote that would just set the action commands of one object of the class differently ..here is the code
    public void setActionCommandsRemote()
         for(int i = 0 ; i <cmdButtons.length ; i++)
         cmdButtons.setActionCommand((cmdButtons[i].getText())+"Rem");
    This just adds "rem" to the existing Actioncommand and i check it as folows in my actionperformed method
         if(button.getActionCommand().equals("DeleteRem") )          
                        deleteFileRemote();
          else if(button.getActionCommand().equals("Delete") )
                     deleteFileLocal();Anyway thanx a milion for your help..this was my first posting and I was glad to get a prompt reply!!!

  • Problems using event structure to write new parameter values to VISA

    Attachments:
    FMA_event_2.vi ‏28 KB
    FMA_event_2.vi ‏28 KB

    It seems I'm also having trouble using forums..not sure what happened...updated and corrected thread: http://forums.ni.com/t5/LabVIEW/Problems-using-event-structure-to-write-new-parameter-values-to/td-p...

  • Problems with events in flex

    Hi there. I'm a AS2 and Flash CS3 guy. I started to learn AS3 and transfer to Flex 3. But I got a problem w/ Events in AS3. I'm adding a canvas component to the stage. On that canvas, I added 3 different events: mouse down, mouse move, and mouse up. When mouse move is fired, there is no way for me to get mouse up event fired, and viceversa, when mouse up is fired, there is no way to get the mouse move event fired. Is there any one to help this newbie with this particular problem? Any help will be very appreciated.
    Code:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:canvas id="myCanvas" x="50" y="50" width="500" height="500" click="event_1();" mouseMove="event_2();" mouseUp="event_3();">
    </mx:Canvas>
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import flash.events.*;
    public function event_1():void
    { Alert.show("First event fired"); }
    public function event_2():void
    { Alert.show("Second event fired"); }
    public function event_3():void
    { Alert.show("third event fired); }
    </mx:Script>
    </mx:Application>

    Hi Greg. Thank you for your replay. The question is I didnt want to bother you with the complete code and post it with the minimal expression. But here I give you the full code w/corresponding package. What I'm trying to do is drawing a line over an empty canvas (I got it very easily in Flash AS2)
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" initialize="addChild(p1)">
    <mx:Canvas id="wrapper" x="10" y="10" width="600" height="600">
      <mx:Canvas x="50" y="50" width="500" height="500" id="imageView" backgroundColor="#F8F3F3" click="startDraw();" mouseMove="drawLine();" mouseUp="noDrawLine();" >
      </mx:Canvas>
    </mx:Canvas>
    <mx:Button x="263" y="618" label="Draw Line" click="prepToDraw();"/>
    <mx:Script>
    <![CDATA[
      import com.myDomain.Lines.Main;
       import mx.graphics.*;
       import mx.binding.utils.BindingUtils;
       import flash.events.IOErrorEvent;
       import flash.events.Event;
       import flash.display.*;
       import mx.controls.Alert;
       import com.myDomain.Lines.Main;
       public var p1:Main = new Main();
       public var pre:Number = 0;
       public function prepToDraw():void
        pre = 1;
       public function startDraw():void
        if(pre == 1)
        p1.graphics.clear();
        var newColor:int = 0xFF00FF;
        var iniX:Number = mouseX;
        var iniY:Number = mouseY;
        var lineWidth:Number = 10;
        p1.graphics.lineStyle(lineWidth, newColor);
        p1.graphics.moveTo(iniX, iniY);
       public function drawLine():void
        if(pre == 1)
         p1.graphics.lineTo(mouseX, mouseY);
       public function noDrawLine():void
        if(pre == 1)
         Alert.show("noLine");
    ]]>
    </mx:Script>
    </mx:Application>
    The package:
    package com.myDomain.Lines
    import flash.display.Shape;
    import flash.display.Stage;
    import flash.events.MouseEvent;
    import mx.core.UIComponent;
    public class Main extends UIComponent
      public function Main()
       super();
      public var p1:Shape = new Shape();
    If you go apply the code, you will see: 1) The first event to fire is mouseUp, then you eill start drawing the line, but again, you will not be able to stop this event with mouseUp. If you can help me, I will be very appreciated. Thanks. 

  • Problem receiving event invitation-not on "me" card

    I have been trying to delete past event notifications/invitation, but when I select them, I get the error message "Problem receiving event invitation - not on "me" card. Someone invited you to an event using an email address that isn’t on your “me” card in Address Book. Find your email address in the following list and add it to your card in Address Book."
    What does this mean? The message does not show a 'following list'. I checked my Address Book "me" card, and it contains all my e-mail addresses.
    thanks!

    I get these all the time, and have yet to figure out how to get them to add to my calendar.
    I'm trying to figure out how to "open" it so I can see what the address conflict is. There appears to be no way to view the actual event, so I can see what address the event thinks is "missing.
    I will keep trying to resolve this (what I call a bug) problem, and will reply here if I come up with something.
    Steve

  • ICal - problem creating events in Exchange calendar

    Hi All, this is a weird one to describe, so please bear with me...!
    My client is on Snow Leopard at the moment, so does not yet have access to iCloud (upgrading remains an option but he is in no hurry). He is, however, having a confusing time of it using iCal on his Macbook.
    He has linked iCal to his corporate Exchange account, and certainly he can view all the events within his iCal. However, when he creates a new event, it does not get created within the Exchange calendar, but rather in his local calendar, and then gets overlaid, visually, on top of the Exchange calendar. Consequently, this created event does not synchronise with his iPhone, because it is only "known about" on his local MacBook. Sorry if this sounds a little confusing, but do you guys see the problem?
    Another, minor-ish, point is that the new event he creates locally always gets colour coded in a way that he seems to have no control over. Can anyone explain how the colour coding gets determined when a new event is posted?
    To sum up then, he seems only to be able to read events in his Exchange calendar, but cannot add events in a way that they then get synced correctly.
    Paul

    I just barely had this problem.  I restarted the program and it worked.

  • ICal problem creating event in month view

    iCal does not allow me to create an event when in Month View. I used to be able to double click a date in Month View and could easily create an event. It does allow in Week View, but I like to use Month View. Anyone have this problem> Solution? Thanks!

    I just barely had this problem.  I restarted the program and it worked.

  • ICal has problem receiving event invitation - not in the address book

    My iCal has been working flawlessly for 4 months and then I started getting the error message in iCal that "There was an error receiving the event invitation" It says that the email address isn't in my address card, but I've checked and it is. I've tried adding and deleting the email address as well as deleting the address card, creating a new one, and designating it as me. It still gives that error, and this was all working previously. Any suggestions would be appreciated!

    I get these all the time, and have yet to figure out how to get them to add to my calendar.
    I'm trying to figure out how to "open" it so I can see what the address conflict is. There appears to be no way to view the actual event, so I can see what address the event thinks is "missing.
    I will keep trying to resolve this (what I call a bug) problem, and will reply here if I come up with something.
    Steve

  • IMovie -Problem restoring events after external hard drive failed.

    iMovie 09 – The external hard drive failed where I stored my 2012 events.  I do not have a backup copy of these events. I bought a new external drive and named it exactly the same as the old drive. Then I uploaded archived original video clips to it recreating the events.  I used the exact same event names.  However when I view the projects I made from the original events, I get “this clip’s media file is not currently available”. The file path I created should be the same as the old, so why does the project not recognize the recreated events?  Any suggestions what I could try?
    If I were able to retrieve and copy the old events from the failed drive to the new drive, would that work?
    Has anyone successfully dealt with this problem?

    That's a very interesting scenario that you've described. I've been concerned about a potential situation arising where I may need to restore Events from a backup drive. However, your situation is somewhat different in that you've had to re-import the Events to a new drive from an archive.
    My main video drive is a Maxtor One Touch III Turbo comprising two 500GB drives set up as a RAID 0. So, effectively it appears as one drive totalling 1TB, with data being written to both drives simultaneously (but not mirrored). However, if one drive fails, the other becomes ineffective as it contains only partial data about imported clips (the remaining data being on the failed drive).
    I backup the Maxtor to a portable 1TB drive by cloning it using SuperDuper. My thinking has been that, if the Maxtor fails then a simple rename of the backup drive to the same name as the Maxtor is all that will be required for iMovie to retain the linkages between Events and Projects. I hope this is the case!
    I hope you get a solution to your predicament - sorry I can't offer any useful advice!
    John

  • Hello, starting with today I have a strange problem: all events are correctly shown in the finder but in FCP-X there`s`none and every time I open it creates a new event. What is wrong?

    Hello, starting with today I have a strange problem with Final Cut Pro X: all events are correctly shown in the finder but in FCP-X there`s`none and every time I open it creates a new event. What is wrong?

    Here`s the screenshot.
    But anyway:
    The drive is Makintosh HD from my Macbook and it is shown in the event mediathek and in the projects. Since I`ve recognized this problem I installed FCPX again and consequently the event and project directory created by FCPX is where it should be and it shows all the test events including it`s files.
    So what happens? Opening FCPX you see only one event and that a new empty event. All previous events are not shown there even if you can see them in the finder. So if you import again the clips they are in this new event library. After closing correctly FCPX and reopening there again is nothing than an new and empty event. What it does is that it recognized that i.e. there are events with previous numbers and so it creates an new one with the next available counting number.
    If you want to open one event from the finder it by clicking to the file it opens FCPX but it says it cannot open the clicked file.

  • Problem with event based scheduling

    Hi,
    We are having a ETL job running everynight, so i need to have daily
    report as soon as my ETL job is finished. For that we have run some
    script to create a event file after completion of ETL job. And by using
    this event file we have scheduled a report that runs after this event
    file is created. Now the problem is that the scheduled report is
    generated before the ETL job is finished. This seems to be working fine
    till last month, but this month we are facing this issue. my question
    is why the scheduler is triggered before the event file is created
    (event file is created after the completion of ETL job)
    Do anybody faced this iss
    FYI
    We are on BO XI 3.1 with no SP's and FP's and on windows environment.
    Do anybody faced this issue?Any advise is appreciated.
    Thanks,

    Hi,
    We are also on BO XI 3.1 with no SP's and FP's. We create Event files after the ETL jobs are completed. These files are used to create BO Events (File), which are used as scheduling criteria before the Reports can run. These files are deleted daily before the next files are created, something you might want check.
    Mike

  • Problems with event import on iMovie 10.0.3

    My complete movie libraries works fine with iMovie 9.0.9. There are no other malfunctions. The filessystem is clean.
    After upgrading to iMovie 10.0.3 the initial startup event and project update process fails on serveral older events and I have problems to import this events folders.
    Why does V. 10.0.3 has problems with some older events ?  What to do to get this files properly ?
    Thanks in advance for any help.
    Alexander

    when i try to move them together this happens..?

  • Problem in event handling of combo box in JTable cell

    Hi,
    I have a combo box as an editor for a column cells in JTable. I have a event listener for this combo box. When ever I click on the JTable cell whose editor is combo box,
    I get the following exception,
    Exception occurred during event dispatching:
    java.lang.NullPointerException
         at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.setDispatchComponent(Unknown Source)
         at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.mousePressed(Unknown Source)
         at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Can any one tell me how to over come this problem.
    Thanks,
    Raghu

    Here's an example of the model I used in my JTable. I've placed 2 comboBoxes with no problems.
    Hope this helps.
    public class FileModel5 extends AbstractTableModel
    public boolean isEditable = false;
    protected static int NUM_COLUMNS = 3;
    // initialize number of rows to start out with ...
    protected static int START_NUM_ROWS = 0;
    protected int nextEmptyRow = 0;
    protected int numRows = 0;
    static final public String file = "File";
    static final public String mailName = "Mail Id";
    static final public String postName = "Post Office Id";
    static final public String columnNames[] = {"File", "Mail Id", "Post Office Id"};
    // List of data
    protected Vector data = null;
    public FileModel5()
    data = new Vector();
    public boolean isCellEditable(int rowIndex, int columnIndex)
    // The 2nd & 3rd column or Value field is editable
    if(isEditable)
    if(columnIndex > 0)
    return true;
    return false;
    * JTable uses this method to determine the default renderer/
    * editor for each cell. If we didn't implement this method,
    * then the last column would contain text ("true"/"false"),
    * rather than a check box.
    public Class getColumnClass(int c)
    return getValueAt(0, c).getClass();
    * Retrieves number of columns
    public synchronized int getColumnCount()
    return NUM_COLUMNS;
    * Get a column name
    public String getColumnName(int col)
    return columnNames[col];
    * Retrieves number of records
    public synchronized int getRowCount()
    if (numRows < START_NUM_ROWS)
    return START_NUM_ROWS;
    else
    return numRows;
    * Returns cell information of a record at location row,column
    public synchronized Object getValueAt(int row, int column)
    try
    FileRecord5 p = (FileRecord5)data.elementAt(row);
    switch (column)
    case 0:
    return (String)p.file;
    case 1:
    return (String)p.mailName;
    case 2:
    return (String)p.postName;
    catch (Exception e)
    return "";
    public void setValueAt(Object aValue, int row, int column)
    FileRecord5 arow = (FileRecord5)data.elementAt(row);
    arow.setElementAt((String)aValue, column);
    fireTableCellUpdated(row, column);
    * Returns information of an entire record at location row
    public synchronized FileRecord5 getRecordAt(int row) throws Exception
    try
    return (FileRecord5)data.elementAt(row);
    catch (Exception e)
    throw new Exception("Record not found");
    * Used to add or update a record
    * @param tableRecord
    public synchronized void updateRecord(FileRecord5 tableRecord)
    String file = tableRecord.file;
    FileRecord5 p = null;
    int index = -1;
    boolean found = false;
    boolean addedRow = false;
    int i = 0;
    while (!found && (i < nextEmptyRow))
    p = (FileRecord5)data.elementAt(i);
    if (p.file.equals(file))
    found = true;
    index = i;
    } else
    i++;
    if (found)
    { //update
    data.setElementAt(tableRecord, index);
    else
    if (numRows <= nextEmptyRow)
    //add a row
    numRows++;
    addedRow = true;
    index = nextEmptyRow;
    data.addElement(tableRecord);
    //Notify listeners that the data changed.
    if (addedRow)
    nextEmptyRow++;
    fireTableRowsInserted(index, index);
    else
    fireTableRowsUpdated(index, index);
    * Used to delete a record
    public synchronized void deleteRecord(String file)
    FileRecord5 p = null;
    int index = -1;
    boolean found = false;
    int i = 0;
    while (!found && (i < nextEmptyRow))
    p = (FileRecord5)data.elementAt(i);
    if (p.file.equals(file))
    found = true;
    index = i;
    } else
    i++;
    if (found)
    data.removeElementAt(i);
    nextEmptyRow--;
    numRows--;
    fireTableRowsDeleted(START_NUM_ROWS, numRows);
    * Clears all records
    public synchronized void clear()
    int oldNumRows = numRows;
    numRows = START_NUM_ROWS;
    data.removeAllElements();
    nextEmptyRow = 0;
    if (oldNumRows > START_NUM_ROWS)
    fireTableRowsDeleted(START_NUM_ROWS, oldNumRows - 1);
    fireTableRowsUpdated(0, START_NUM_ROWS - 1);
    * Loads the values into the combo box within the table for mail id
    public void setUpMailColumn(JTable mapTable, ArrayList mailList)
    TableColumn col = mapTable.getColumnModel().getColumn(1);
    javax.swing.JComboBox comboMail = new javax.swing.JComboBox();
    int s = mailList.size();
    for(int i=0; i<s; i++)
    comboMail.addItem(mailList.get(i));
    col.setCellEditor(new DefaultCellEditor(comboMail));
    //Set up tool tips.
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for mail Id list");
    col.setCellRenderer(renderer);
    //Set up tool tip for the mailName column header.
    TableCellRenderer headerRenderer = col.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer)
    ((DefaultTableCellRenderer)headerRenderer).setToolTipText(
    "Click the Mail Id to see a list of choices");
    * Loads the values into the combo box within the table for post office id
    public void setUpPostColumn(JTable mapTable, ArrayList postList)
    TableColumn col = mapTable.getColumnModel().getColumn(2);
    javax.swing.JComboBox combo = new javax.swing.JComboBox();
    int s = postList.size();
    for(int i=0; i<s; i++)
    combo.addItem(postList.get(i));
    col.setCellEditor(new DefaultCellEditor(combo));
    //Set up tool tips.
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for post office Id list");
    col.setCellRenderer(renderer);
    //Set up tool tip for the mailName column header.
    TableCellRenderer headerRenderer = col.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer)
    ((DefaultTableCellRenderer)headerRenderer).setToolTipText(
    "Click the Post Office Id to see a list of choices");
    }

  • EEM Applet Problem With: event syslog pattern ".*" priority 2

    I went to create a EEM applet that would be invoked whenever any syslog message of priority 0-2 was invoked. I figured  the following event statement would work
           event syslog pattern ".*" priority 2
    I never really used the priority optional argument before but thought I understood from the docs that messages at or numerically lower than the specified level are matched.
    Well it doesn't seem to work as documented.  Seems to me that only messages at the specified level are beng matched and not messages numerically lower than the specified level.
    Anyway I did what I wanted differently but wanted to post this in case this is a bug in the syslog ed.

    Actually, it's a problem with the documentation.  The priority option only matches the specified severity.  What you could do is adjust pattern to do this:
    event syslog pattern "*-[012]-"

  • ICal problem with events

    iCal - since installing Lion, when I enter an event, it defaults to "all day" and the default end time is 8 hours later rather than 1.

    Yes, it's a problem that many people have reported. The notes in the calendar do not wrap around; it's just one long line of text that goes off-screen. Also, any notes you have in "contacts" don't show up at all. I hope this is corrected in future software updates.

  • Problem with Event Dates in iMovie '08

    Ok, here's the problem: I bought my Mac in August and moved over a lot of video clips shot with my camera into my iPhoto library. The metadata all displays correctly in iPhoto. However, when I look at the events in iMovie, they are all listed as Dec. 31, 1903.
    I did check the board and saw that there are others with this problem. I looked at the original files in the Finder and discovered that they are all missing a piece of data in the Get Info window: none of them have a "Created:" date. I'm thinking this is probably where the problem is coming from.
    The next question is whether anyone knows a way to fix it? I can't modify "Created:" from the Get Info window. My guess is that if I match the created date to the actual other metadata that should correct the problem and get the events to display correctly.
    It's just a guess, but I'd appreciate any help.

    I've answered my own problem. It has to do with the "created" date; most of these clips came over from my PC, so they all have the same date. By modifying that, you resolve the problem and it reorders the clips.

Maybe you are looking for