ALV not getting refreshed when call screen is executed second time

I have 2 screens 9001 and 9002. In 9001 , I am displaying the fields of a database table in a Table Control. The user has to select some of those fields and click on a button 'Generate ALV'. After clicking , the control navigates to 9002 where I am displaying ALV with data in the selected fields(the other fields remain empty). (using custom container)
Now there is BACK button in 9002 where i have written LEAVE TO SCREEN  9001. After this if the user again make changes in column selection and click on 'Generate ALV' , then still the old alv data is displayed. (Mind you the structure of alv is same , only the selected fields should show data).
I am using REFRESH_ALV_DISPLAY also and when i tested this function independently , its working fine (although for interactive alv in the same screen).
I am making use of <fs> for dynamic internal table and i checked it using breakpoints , during the 2nd time , it contains the correctly updated data so i think the problem lies with alv
Kindly check this code
MODULE STATUS_9002 OUTPUT.
  SET PF-STATUS 'ZALV'.
*  SET TITLEBAR 'xxx'.
  CREATE OBJECT C_CONT
    EXPORTING
      CONTAINER_NAME               = 'CUST_CONT'
  IF SY-SUBRC <> 0.
*   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
IF OBJ_ALV IS INITIAL.
  CREATE OBJECT OBJ_ALV
    EXPORTING
      I_PARENT           = C_CONT
  CALL METHOD OBJ_ALV->SET_TABLE_FOR_FIRST_DISPLAY
     EXPORTING
       I_STRUCTURE_NAME              = INP_TABLE
     CHANGING
      IT_OUTTAB                      = <itab>
ELSE.
   CALL METHOD OBJ_ALV->REFRESH_TABLE_DISPLAY
  ENDIF.
ENDMODULE.                 " STATUS_9002  OUTPUT
Edited by: amber22 on Sep 16, 2011 6:45 PM

Amber,
Something like:
*&      Module  STATUS_9001  OUTPUT
MODULE status_9001 OUTPUT.
  SET PF-STATUS 'ST9001'.
ENDMODULE.                 " STATUS_9001  OUTPUT
*&      Module  USER_COMMAND_9001  INPUT
MODULE user_command_9001 INPUT.
  CASE sy-ucomm.
    WHEN 'GEN'.
      SELECT * FROM spfli INTO TABLE gt_outtab.
      CALL SCREEN 9002.
    WHEN 'BACK'.
      LEAVE.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_9001  INPUT
*&      Module  STATUS_9002  OUTPUT
MODULE status_9002 OUTPUT.
  SET PF-STATUS 'ST9002'.
  IF obj_alv IS INITIAL.
    CREATE OBJECT c_cont
      EXPORTING
        container_name = 'CUST_CONT'.
    CREATE OBJECT obj_alv
      EXPORTING
        i_parent = c_cont.
    CALL METHOD obj_alv->set_table_for_first_display
      EXPORTING
        i_structure_name = 'SPFLI'
      CHANGING
        it_outtab        = gt_outtab.
  ELSE.
    CALL METHOD obj_alv->refresh_table_display.
  ENDIF.
ENDMODULE.                 " STATUS_9002  OUTPUT
*&      Module  USER_COMMAND_9002  INPUT
MODULE user_command_9002 INPUT.
  CASE sy-ucomm.
    WHEN 'BACK'.
      CALL METHOD: obj_alv->free, c_cont->free.
      CLEAR: obj_alv, c_cont.
      CALL METHOD cl_gui_cfw=>flush.
      LEAVE TO SCREEN 9001.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_9002  INPUT
Altough it's not a really nice solution... Why using 2 screens for example? you could use two containers instead...
Also I would recommand playing with the new salv class for your grids.
Anyway don't hesitate to give feed-back.
Kr,
m.

Similar Messages

  • Application Parameter not getting Refreshed when testing in another client

    Hi,
    I have created a WD application in development client 150 and the application has import parameter WORKITEMID. I am getting this value in the startup input plug-in. I am calling this application in the workflow as a activity step. For unit testing purposes I am defaulted the import paramater value to a 000546578. When I put a breakpoint in the startup method, I am able to get the value of WORKITEMID as 000546578. Once I have completed my application I have changed the defualted value to 000436477 and now I am trying to test in testing client 140, and in debugging I am able to stll 000546578 not the newly defualted value. This is happeening only in testing client.
    When I debug and see the client 150, I am able to see the new value, but in client 140 still the old value is showing up at run-time when I test the application. But on the application parameter tab the new value is visible. Only the prb is at run-time its still picking up old value.
    I am new to ABAP WD stuff.  Can anyone help me out how to resolve this issue.
    With Regards,
    Sreekanth

    Try using: weblogic.refresh
    http://edocs.bea.com/wls/docs61/webapp/deployment.html#149386
    Cheers
    mbg
    "Santosh Sahadevan" <[email protected]> wrote in message
    news:3ef55cba$[email protected]..
    >
    Hey all,
    We are developing an application in which the development enviornmentwhich we
    have recieved from the clients ,(configuered bythe clients) which is sameas that
    of the production env.
    The web application is running in a cluster in a weblogic 6.1 env . Whenwe trying
    to change the JSP, it doesnt get refreshed. We have to explicitaiilychanging
    the jsp at the .wlnotdelete dir created , to take its changes . But as weknow
    thats a temp place holder for the application .
    Since we are team of 20 developers it becomes a real pain when weexplictially
    try to stop and restart the server , just for changing a jsp.
    Do we have a solution for the same.

  • Error -1073807346 will get away when i run VI for second time

    This is the weird thing
    i open the vi for the first time and run it and it will put out the error :
    Error -1073807346 occurred at VISA Open in Prompt for com port.vi
    Possible reason(s):
    VISA:  (Hex 0xBFFF000E) The given session or object reference is invalid.
    i run the vi for the second time and the error goes away.. and everything works...
    i dont know whats wrong, have you had this problem also?
    Attachments:
    serial.png ‏31 KB
    serial.png ‏31 KB

    You know that almost threw me untill I re-read the vi name!
    Dude, that's not how you write a "Prompt User" routine!  What is happening is that you read the VISA In Terminal run that value through the for loop (At warp speed burning a cpu core) while the user fiddles with the VISA in terminal.  BUT, nothing changes the value on the wire!  so you pass the "Old" value to the VISA Open.
    I've been meaning to add Prompt(VISA).vi to my reuse for a while anyhow.  Thanks for the excuse.
    Jeff

  • ALV tree  not getting refreshed

    Hi
    I have 2 fields A and B in the main screen and a tabstrip with 4 tabs.
    Each tab contains a ALV tree
    Now when I open the main screen for the first time the ALV tree data is coming properly as per the default values of A and B.
    But when I change the values of A or B the ALV tree does not get refreshed. The final table has the changed data but the ALV shows only the old data.
    I am doing the ALV tree for the first time in module pool. Please provide some sample code to refresh the ALV tree.
    Regards,

    Hi
    Alv tree is now getting refreshed.The subscreen refresh problem is solved
    we have to use REFRESH_TABLE_DISPLAY method to do it.
    if tree1 is initial
       create object
       create container
      call method set_table_for_first display
    else.
      call method refresh_table_display.
    endif.
    Regards,
    Mozila

  • Cell data not getting refreshed in which user enters data OO ALV(editable)

    Hi Friends,
    I am using OO ALV for editable grid display.
    I am unable to change grid data in the cell in which user enters something, using OO ALV. Did through debugging of my own program and found that some problem with system program. Then I did all system debugging. Could not find out why is the grid not getting refreshed with the new data in the cell in which user had entered some value. Rest of the cell's data are getting refreshed with the values which i am updating in the final internal table. I can see that the data in the final internal table is changed for the cell in which user enters data. But even after the call of
          CALL METHOD obj_alvgrid1->refresh_table_display
    does not refreshes the data in the cell in which user had entered data. Rest of the cells data are getting refreshed.
    Piece of code:
      SET HANDLER obj_event_receiver->handle_data_changed
                                         FOR obj_alvgrid1.
        METHODS: handle_data_changed
                       FOR EVENT data_changed OF cl_gui_alv_grid
                           IMPORTING er_data_changed
                                     e_onf4
                                     e_onf4_before
                                     e_onf4_after.
    METHOD handle_data_changed.
      DATA : v_valid    TYPE char1,
             v_refresh  TYPE char1.
    *--check mt_good_cells semantically
      CALL METHOD perform_semantic_checks( er_data_changed ).
    *--If PBO is again visited, just refresh the ALV grid.
      CALL METHOD obj_alvgrid1->refresh_table_display
        EXCEPTIONS
          finished = 1
          OTHERS   = 2.
      IF sy-subrc <> 0.
        EXIT.
      ENDIF.
    ENDMETHOD.
    METHOD perform_semantic_checks.
        LOOP AT er_data_changed->mt_good_cells INTO w_good.
          v_index = sy-tabix.
          CASE w_good-fieldname.
            WHEN 'ZASCAS'.
    *Now here based on some conditions I am changing my final internal table i_zamtsmatnp
                              MODIFY i_zamtsmatnp FROM w_zamtsmatnp INDEX
                                               w_good-row_id TRANSPORTING
                                                 zascas modif.
    User enters data in zascas field. Based on the data entered, I am changing other fields which is getting refreshed. I am also changing zascas in the program even after user had already entered the value which was bit wrong and i am correcting it in the program on the even "data_changed" even.
    Please help me friends as i m strugling past hours wondering why the data is not getting refreshed for the cell in which user enter data.
    Regards,
    Surya

    Hi Surya,
       The approach you are following is correct. You need to use the comibnation of all these things:
    Event - DATA_CHANGED
    Methods - CHECK_CHANGED_DATA
                 -  GET_CHANGED_DATA.
    However, here are few standard programs which are having similar functionality.
    BCALV_EDIT_03
    BCALV_EDIT_07
    Check out these once.
    Note: If anything is helpful, dont forget to reward points
    Thanks,
    Adithya K
    SAP Practise
    [email protected]

  • Battery , time , signal strength bar is not getting displayed in home screen , these will be displayed only when i click on any app. Can u let me know the setting change ?

    Battery , time , signal strength bar is not getting displayed in home screen , these will be displayed only when i click on any app. Can u let me know the setting change ?

    Did you check the Zoom setting?
    Have you tried a reset (reboot)? Hold HOME and SLEEP until an Apple logo appears.
    If it isn't Zoom and a reboot doesn't help try Settings/General/Reset - Reset all settings

  • When i open the organizer for elements 12 on my mac...i can not get to top of screen....help

    when i open the organizer for elements 12 on my mac...i can not get to top of screen....help

    Please post Photoshop Elements related queries over at
    http://forums.adobe.com/community/photoshop_elements

  • I have connected my iphone5 to update the ios8 sofware, now it is stuck in the plug-n screen indicating itunes. the phone is not getting recognized when logged in to itunes on the computer

    i have connected my iphone5 to update the ios8 sofware, now it is stuck in the plug-n screen indicating itunes. the phone is not getting recognized when logged in to itunes on the computer

    Try this:
    Check that your security software and settings aren't preventing your device from communicating with the Apple update server.
    Then try to restore your iOS device two more times while connected with a cable, computer, and network you know are good.
    Confirm that your security software and settings are allowing communication between your device and update servers.
    If you still see the error message when you update or restore, contact Apple support.
    copied from Resolve iOS update and restore errors

  • When I double-click the home button on my iPhone 3g, I do not get the recent apps screen. How come and how can I fix it?

    When I double-click the home button on my iPhone 3G-8GB, I do not get the recent apps screen. How come and how can I fix it?

    Ok..Thank u for the information.. And one more question,
    Is it possible to use two itunes in a same system??(bcz i had an iphone 4 with itunes in my laptop and also wish to back up this 3G with that same system)

  • CRM Header data not getting refreshed in BADI when clicked in New order

    We have used a ORDERADM_H BADI, header badi to populate some custom field values.
    Step 1) While creating sales order in CRM(CRMD_ORDER), we are giving inputs such as sold to party , material etc.
    Step 2) Before actually saving the order, we found that we dont need this order to be created and again click on create new button in the transaction. In order header BADI, order data for the previous order is not getting refreshed. The previous GUID is still there and function module CRM_ORDER_READ still retrieves the old order values which was cancelled in the previous step. It is causing lot of issues and finally giving dump.
    basically the previous GUID is not getting refreshed. Please suggest

    Pls send the code that you have in the Badi. Did you actually compare the GUIDs manually ? Instead of CRM_ORDER_READ have you tried using CRM_ORDER_READ_OW ?

  • Iam not getting the data on screen after using the user exit zxpadu01

    Dear Freinds
                As per my requirement when the user enters value Ansal  it should get defaulted to Amount field (bet01 ) based on the wage type
    i have written calculation ( q0008-bet01 = ansal/100) before it getting defaulted to bet01, i found that value is not getting default  on the screen for bet01 once i enter value for Ansal , please any body correct my code
    in   ZXPADU02 i have written the code as  below :
    data : wa_p0008 like p0008,
            i0008 like p0008,
           l_v_ANSAL type ANSAL_15,
           l_v_amount type PAD_AMT7S.
    CASE innnn-infty.
    when '0008'.
    CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
    EXPORTING
    prelp = innnn
    IMPORTING
    pnnnn = wa_p0008.   -- HERE I GOT ALL THE DATA EXCEPT BET01
    if wa_p0008-lga01 = 'MFPY'.
    l_v_ansal =  wa_p0008-ansal.
    l_v_amount = l_v_ansal / 100.
    move l_v_amount to wa_p0008-bet01.
    CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
    EXPORTING
    pnnnn = wa_p0008  --- HERE I CAN SEE EVEN THE BET01 IS FILLED
    IMPORTING
    prelp = innnn.         --- HERE I CAN SEE LGART BUT NOT AMOUNT VALUE
    endif.
    when others.
    endcase.
    IN ZXPADU01 I HAVE WRITTEN AS BELOW:
    data : wa_p0008 like p0008,
            i0008 like p0008,
           l_v_ANSAL type ANSAL_15,
           l_v_amount type PAD_AMT7S.
    CASE innnn-infty.
    when '0008'.
    MOVE-CORRESPONDING  innnn to wa_p0008.
    CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
    EXPORTING
    prelp = innnn
    IMPORTING
    pnnnn = wa_p0008.
    if wa_p0008-lga01 = 'MFPY'.
    l_v_ansal =  wa_p0008-ansal.
    l_v_amount = l_v_ansal / 100.
    move l_v_amount to wa_p0008-bet01.
    CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
    EXPORTING
    pnnnn = wa_p0008   --- I CAN SEE ONLY WHEN I COME AGAIN
    IMPORTING
    prelp = innnn.
    endif.
    when others.
    endcase.
    Now my problem is as follows :
                   i have entered the value for Ansal (ex: p0008-Ansal = 1000) ..........and i say enter then i should found the calculated value for the ansal through my coding
    and it should  display in bet01 as 10 ( q0008-bet01 =  p0008-ansal /100)
    but i dont find the value 10 being displayed for the field bet01 on the screen  when
    user enters Ansal  as 1000 .........even then i have saved it to test the scenario......
    now i came in displayed mode (pa20 ) for the infotype 008 for the same personnel no for the same  dates .....where i created the record........i found that the value
    bet01 is there i.e i can see  the value bet01 as 10 ( my requiremnt here matching)
    but when the user say enter during the time of creation of the record the value
    bet01 is not getting defaulted with 10 .........why iam not able to understand
    PLEASE ANY BODY HELP ME IN THIS REGARD 
    regards
    shanti.

    Hi Pranesh,
                   i have used the logic which you hav given as below
    in ZXPADU02
      FIELD-SYMBOLS <fs>  TYPE ANY.
    ASSIGN ('(MP000800)Q0008-betrg') TO <fs>.
    if <fs> is assigned.
    <fs> = l_v_amount .  ---  amount as (ansal /100 i.e 1000/100 = 10) 10
    endif.
    still iam not getting the data for the field bet01
    this is the coding i am using
    data : wa_p0008 like p0008,
            i0008 like p0008,
           l_v_ANSAL type ANSAL_15,
           l_v_amount type PAD_AMT7S.
      FIELD-SYMBOLS <fs>  TYPE ANY.
    CASE innnn-infty.
    when '0008'.
    MOVE-CORRESPONDING  innnn to wa_p0008.
    CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
    EXPORTING
    prelp = innnn
    IMPORTING
    pnnnn = wa_p0008.
    if wa_p0008-lga01 = 'MFPY'.
    l_v_ansal =  wa_p0008-ansal.
    l_v_amount = l_v_ansal / 100.
    move l_v_amount to wa_p0008-bet01.
    ASSIGN ('(MP000800)Q0008-betrg') TO <fs>.
    if <fs> is assigned.
    <fs> = l_v_amount .
    endif.
    CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
    EXPORTING
    pnnnn = wa_p0008
    IMPORTING
    prelp = innnn.
    endif.
    when others.
    endcase.
    please help me as iam still not getting (value in bet 01) when i press enter once i enter value in ansal feild.
    regards
    shanti.

  • Data is not Getting refresh in Dashboard

    Hi I have implemented Xcelsius on the top of SAP BI System.
    I have the following architecture -
    SAP BI Cube --> BO XI 3.1 Universe Based on Cube --> QWaaS on the Universe --> Xcelsius Dashboard on the QWaas.
    When i created a dashboard and run it , it worked fine and showed me data , which is lying in Cube.
    But When the Data get updated in Cube and i again refresh the Dashboard , It still showing me the old data , the Data is not getting refresh in Dashboard .
    what could be the possible casue ?
    Is QWaas always fetch the dat at run time ?
    Thanks

    QaaWS web service call needs to be invoked to get the data updates from the datasource. Xcelsius provides several options to command how frequently web services connections are calle/refreshed ('refresh on load', 'refresh every X seconds' or trigger cells...).
    You should also keep in mind, that, since QaaWS hits datasource each time web service is called, this can bring some performance issues (web service calls WebI server to run corresponding query, which performs a refresh). In order to mitigate this, since XI 3.0, QaaWS features a cache mechanism, that is used to store data results from each query refresh (corresponding to a web service call), in order to serve it again with better efficiency, in case same request is performed during a specific time interval (which typically corresponds to dashboard interactions).
    Cache sessions are sorted according to the user names and prompt values used, cache is emptied after a defauilt duration without any interaction (request from the same session).
    Cache timeout duration is set for each QaaWS query, and can be tuned from QaaWS Designer when modifying/creating the query : go to Advanced... button on first step of query edition wizard, cache lifetime corresponds to timeout value (in seconds) displayed on Advanced parameter panel (default value being set to 60 seconds).
    Cache lifetime may also be an explanation why you do not see data refreshed (if you are with QaaWS XI 3.0 or later).
    Hope that helps,
    David.

  • Panel is not getting refreshed.i see a jam of old and new graph and lines

    hi friends
    i am attaching my code .when i adjust the slider position the size of the graph will increase(scaling).when i scroll to see the entire graph the screen is not getting refreshed properly.
    no leads ..can be 3,12 ...try any arbitary ...(stored in a txt file)
    myfile.txt=consider some 600 random numbers for testing.
    public class ECGDisplay extends JFrame implements WindowListener
          Container contain;
          JSlider sliderX,sliderY,sliderCount;
          JTextField Xval,Yval,Count;
          int [] time=new int[600];
          int []Volt=new int[600];
         Simpanel[] panelname;
          float relX=1;
          float relY=1;
          LineBorder lineborder,lineborder1;
          JPanel ScalingAdjustersPanel,ECGDisplayPanel;
          JScrollPane Scroll;
          JViewport vp;
          JRadioButton RbX,RbY,RbCount;
          ButtonGroup group;
          private FileInputStream in;
          String horizontalScalingSliderLabel = "mm/S";
          String verticalScalingSliderLabel = "mm/mV";
          String heightOfTileSliderLabel ="Height of tile in uV";
          boolean flag=false;
          int LeadCount;
          int x=20,y=15;
          int count=4;
          JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
          java.awt.Dimension screen = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
    public ECGDisplay()
         super();     
         this.setTitle("ECG FRAME");
         this.addWindowListener(this);
         this.setSize (screen.width, screen.height);
         contain=getContentPane();
         EcgLeadCount();
         EcgWindowCreation(LeadCount);
    void  EcgLeadCount( )
              try
               FileInputStream in = new FileInputStream("no_Leads.txt");
               BufferedReader br = new BufferedReader(new InputStreamReader(in));
               LeadCount=Integer.parseInt(br.readLine());
               in.close();
               catch (Exception e)
                 System.err.println ("Error while reading no of leads");
    void PanelAdjuster()
              for(int i=0;i<LeadCount;i++)
              panelname.setPreferredSize(new Dimension((30*x),(count*y)));
    void readMyFile(int i)
              try
              FileInputStream in = new FileInputStream("myfile.txt");
              BufferedReader br = new BufferedReader(new InputStreamReader(in));
              String strLine;
              for (int j = 0; j < Volt.length; j++)
                   Volt[j] = Integer.parseInt(br.readLine());
                   in.close();
              catch (Exception e)
                   System.err.println ("Error writing to file");
    public void EcgWindowCreation(int LeadCount)
         for(int i=0;i<600;i++)
              time[i]=i;
              ScalingAdjustersPanel=new JPanel();
              ECGDisplayPanel=new JPanel();
              panelname=new Simpanel[LeadCount];
              for(int i=0;i<LeadCount;i++)
                   panelname[i] =new Simpanel();
                   System.out.println(panelname[i]);
                   readMyFile(i);
                   ECGDisplayPanel.add(panelname[i]);
              ScalingAdjustersPanel.setPreferredSize(new Dimension(200,(screen.height-50)));
              ScalingAdjustersPanel.setLayout(new BoxLayout(ScalingAdjustersPanel,BoxLayout.Y_AXIS));
              ECGDisplayPanel.setLayout(new BoxLayout(ECGDisplayPanel,BoxLayout.Y_AXIS));
         sliderX=new JSlider(10,50,20);
         sliderY=new JSlider(15,50,15);
              sliderCount=new JSlider(4,10,4);
              ScalingAdjustersPanel.add(sliderCount);
              sliderCount.setBorder(BorderFactory.createTitledBorder("uV"));
              sliderCount.setMajorTickSpacing(2);
              sliderCount.setMinorTickSpacing(1);
              sliderCount.setPaintTicks(true);
              sliderCount.setPaintLabels(true);
              sliderCount.setVisible(false);
              sliderCount.addChangeListener(new SliderChange());     
              ScalingAdjustersPanel.add(sliderX);
              sliderX.setBorder(BorderFactory.createTitledBorder(horizontalScalingSliderLabel));
              sliderX.setMajorTickSpacing(10);
              sliderX.setMinorTickSpacing(5);
              sliderX.setPaintTicks(true);
              sliderX.setPaintLabels(true);
              sliderX.addChangeListener(new SliderChange());
              sliderX.setVisible(true);
              ScalingAdjustersPanel.add(sliderY);
              sliderY.setBorder(BorderFactory.createTitledBorder(verticalScalingSliderLabel));
              sliderY.setMajorTickSpacing(10);
              sliderY.setMinorTickSpacing(5);
              sliderY.setPaintTicks(true);
              sliderY.setPaintLabels(true);
              sliderY.addChangeListener(new SliderChange());
              sliderY.setVisible(false);
              RbX=new JRadioButton ("horizontal Scaling",true);
              RbY=new JRadioButton ("vertical Scaling");
              RbCount=new JRadioButton ("height Of Tile");
              group=new ButtonGroup ();
              group.add(RbX);
              group.add(RbY);
              group.add(RbCount);
         ScalingAdjustersPanel.add(RbX);
              ScalingAdjustersPanel.add(RbY);
              ScalingAdjustersPanel.add(RbCount);
              RbX.addActionListener(new buttonSelected());
              RbY.addActionListener(new buttonSelected());
              RbCount.addActionListener(new buttonSelected());
              lineborder = new LineBorder(Color.GRAY,2,true);
              lineborder1 = new LineBorder(Color.RED,2,true);
              ScalingAdjustersPanel.setBorder(lineborder);
              JScrollPane Scroll=new JScrollPane(ECGDisplayPanel);
              contain.setLayout(new BorderLayout());
              splitPane.setOneTouchExpandable(true);
         splitPane.add(ScalingAdjustersPanel);
         splitPane.add(Scroll);
              contain.add(splitPane,BorderLayout.CENTER);     
              setVisible(true);
    public void windowClosing(WindowEvent evt)
              this.setVisible(false);
              this.dispose();
    public void windowOpened(WindowEvent evt) {}
    public void windowClosed(WindowEvent evt) {}
    public void windowIconified(WindowEvent evt) {}
    public void windowDeiconified(WindowEvent evt) {}
    public void windowActivated(WindowEvent evt) {}
    public void windowDeactivated(WindowEvent evt) {}          
    public class SliderChange implements ChangeListener
              public void stateChanged(ChangeEvent AE)
                   Object sliderOBJ=AE.getSource();
                   if(sliderOBJ==sliderX)
                        x= sliderX.getValue();
                        relX=(float)x/20;
                   else if (sliderOBJ==sliderY)
                        y= sliderY.getValue();
                        relY=(float)(((float)y*count)/(15*4));
                   else if(sliderOBJ==sliderCount)
                        count=sliderCount.getValue();
                        relY=(float)(((float)y*count)/(15*4));
                   PanelAdjuster();
                   ECGDisplayPanel.repaint();
                   ECGDisplayPanel.updateUI();
    public class buttonSelected implements ActionListener
         public void actionPerformed(ActionEvent e)
              JRadioButton slid1=(JRadioButton)e.getSource();
              if(slid1==RbX)
              sliderX.setVisible(true);
              sliderY.setVisible(false);
              sliderCount.setVisible(false);
              if(slid1==RbY)
              sliderX.setVisible(false);
              sliderY.setVisible(true);
              sliderCount.setVisible(false);
              if(slid1==RbCount)
              sliderX.setVisible(false);
              sliderY.setVisible(false);
              sliderCount.setVisible(true);
    public class Simpanel extends JPanel
         public void paintComponent(Graphics g)
              g.setColor(Color.BLUE);
              for(int i=0;i<599;i++)
                   g.drawLine((int)(time[i]*relX),(int)(Volt[i]*relY),(int)(time[i+1]*relX),(int)(Volt[i+1]*relY));
              Graphics2D g2=(Graphics2D) g;
         //drawing a rectangle
         double leftX=0;
         double topY=0;
              double width=x;
              double height=y;
                   g2.setColor(Color.RED);
              for(int j=0;j<=count;j++)
                   for(int i=0;i<30;i++)
                             Rectangle2D rect=new Rectangle2D.Double(leftX,topY,width,height);
                             g2.draw(rect);
                             leftX=leftX+x;
                        leftX=0;
                        topY=topY+y;
    public static void main(String args[])
              ECGDisplay frame=new ECGDisplay();
    Edited by: garlapati on Apr 7, 2009 10:18 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    From the [custom painting tutotial|http://java.sun.com/docs/books/tutorial/uiswing/painting/index.html]:
    Most of the standard Swing components have their look and feel implemented by separate "UI Delegate" objects. The invocation of super.paintComponent(g) passes the graphics context off to the component's UI delegate, which paints the panel's background. For a closer look at this process, see the section entitled "Painting and the UI Delegate" in the aforementioned SDN article.

  • Workbook not getting refreshed at a time

    Hi,
    I have created a workbook having 5 sheets using a single query. Only difference between each sheet is in the filter criteria of a particular field. For eg- There is a column 'Customer Group', according to the requirement each sheet should show different 'Customer Group' (eg- Complimentary, Distributor, Employe etc, all this are present under Customer group).
    Now, when I am refreshing the workbook to change the selection criteria all the sheets are not getting refreshed, only the open sheet is getting refreshed.
    So, can anybody help me out as i need to refresh the whole workbook in a single go.

    Hi Riyez,
    I know that refresh button refresh all the sheets in the workbook. But in this case though the variable screen is same for each & every sheet, I have to refresh each & every page separately.

  • Tree Table is not getting refreshed properly in Jdev 11.1.2.0

    Hi,
    I am seeing a peculiar issue with tree table not getting refreshed in Jdev 11.1.2.0.
    Let me explain you my use case.
    I have a tree table in a page, where the first column is displayed as selectBooleanRadio component. When user selects this selectBooleanRadio component, that treetable node should get expanded and at the same time all the child records(I have a select boolean check box component(transient attribute) at the child level) for that node should get selected. This is to allow user to unselect the child records, which he/she does not want to process further(some functionality).
    Now when the user selects any radio button, the tree table node is not expanded, but the arrow beside the radio button for that node can be seen as expanded.
    I thought it may be a partial trigger issue, so i tried refreshing the tree table programatically as well. But it was of no use.
    Then I set the partial triggers wrt to SelectBooleanRadio component on the parent container of the TreeTable. After which somehow the node got expanded but the tree table shrinks in width and the actual disclosure functionality of a tree table is lost.
    The same use case works perfectly fine in Jdev 11.1.1.5.
    For reference:
    I created a sample test case(Dept/Emp) in jdev version 11.1.1.5, which works fine. Workspace: http://adf-use-cases.googlecode.com/files/TreeTable1.rar
    But the same test case, when i created in jdev version 11.1.2.0, gives issues. Workspace: http://adf-use-cases.googlecode.com/files/TreeTableUseCase.rar
    If you download the application and run in respective jdev version, you will get to know more about the issue.
    Please let me know, If I am doing anything wrong in the implementation of this use case.
    Any help/suggestions are appreciated.
    Thanks
    Umesh
    Note: My complete application is in Jdev 11.1.2.0, so I can't degrade my jdev version to 11.1.1.5.

    Thanks Frank for the reply.
    But upgrading the jdeveloper to 11.1.2.2 is not an ideal solution for us now, because of the size of the project.
    Some how, the issue of refreshing the tree table is resolved. I am using a command button with clientComponent to true and causing a full page refresh.
    I am not sure, if this is a perfect solution.
    As you said, that this behavior may be an issue with the Jdev version 11.1.2.0, I am using. I am going with the above said approach.

Maybe you are looking for

  • How can i pin a picture so that it is responsive like the boxes in muse and not stays static?

    I want to include a reponsive picture in muse but dont know how to make it. Thanks for help-

  • Aperture Library in "Desktop & Screen Saver" now, but resolution off

    My Aperture library now show up in Media Browser and Desktop & Screen Saver, but the resolution of images, particularly when selecting them for desktop backgrounds are too low. I'm not getting the full resolution images. Any idea what the deal is? Do

  • Linking one JSP to another

    How do you create a link going from one JSP to another? I would like to know how to go by clicking on a link on the first page which when clicked will take you to the second. I would also like to know how to go to the next page if a certain condition

  • QISRSCENARIO - Action Box - Adding a custom function module

    Hello Experts, Under the scenario ID for Performance Award in the transaction QISRSCENARIO I created a custom function module in order to exchange standard. I clicked on the follow-up Functions of the MCSP and then I type my new function module, then

  • Upgrading from 10.1.5

    I have an eMac with a G4 processor with Mac OS 10.1.5. I'd like to upgrade my OS because I can't download many programs without running 10.2 or later. I don't do much multimedia on this computer - I usually just surf the web and use email. My questio