Help on refreshing...

I am using the code from
http://jeffkemponoracle.blogspot.com/2006/10/apex-tip-page-auto-refresh.html
It works great when my form opens up( i can see the curser moving every 60 sec). let me explain the problem.
my application is a simple one, one page, a button and 10 text boxes.
it runs one process that calls an oracle package. the code in the process apex section is like this
select 'Process one started' into :p1_text from dual;
run_package.first_stored_procedure;
select 'Process one completed' into :p1_test from dual;
select 'Process two started' into :p1_text from dual;
run_package.second_stored_procedure;
and so on.
what i get is press button, no freshing... then when all is done. the last procedure finished, no active refresh....
Thanks,
Doug

hi there
thank you for your help
here is what my table does, the program connects to the database, retreive data and populate the table every two seconds to reflect the changes in the database. here is the run method that does the connecting and ...
public void run()
boolean okay = true;
boolean updated = false;
String strSQL = "sql statment"
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection(".....")
PreparedStatement ps = con.prepareStatement(strSQL);
while (okay)
rs = ps.executeQuery();
//code to query the database.....
tablemodel = (DefaultTableModel)jTable.getModel();
//code to repaint the table......
Thread.sleep(1000);
}catch (ClassNotFoundException cnfe){
}catch (SQLException sqle) {
}catch (InterruptedException e){
okay = false;
}catch (Exception ee){
System.out.println("Exception:" + ee.getMessage());
what can tablemodel do for this kind of task?

Similar Messages

  • Need help with refreshing open window in new tab

    Hello all,
    First, all my other problems I've solved.  One last thing, being a newbie and trying things I've found on the net and them
    not working, I can use your help one last time.  My code has a Home page that peforms a Search (most of you have
    I am sure done this), and from that search submit a window opens in a new tab (browser tab) and has the results on
    it.
    That works fine.  What I'm having trouble with is being able to perform a new search and refreshing that open window
    with the new data.  Right now I am closing that window by clicking on the tab and then performing the search.
    While it works, it's not user friendly.
    So, I've tried the usual  mywindow=window.open("url.cfm"); and then trying to grab that handle to refresh, but to
    no avail.  Has anyone done this?
    Thanks!

    Here's an example of how you could do it.
    <script>
    function submitAndFocusTarget(form) {
      var win = window.open("", form.target);
      form.submit();
      win.focus();
    </script>
    <form action="index.cfm" target="mysearchwin" method="get" onsubmit="submitAndFocusTarget(this); return false;">
      <input type="text" name="search" value="" />
      <input type="submit" value="search" />
    </form>

  • Help Req: Refreshing Screen

    Hi Folks,
    Could anyone from amongst you let me know if we can refresh contents of screen after a stipulated time. e.g. after every 5 minutes i need to refresh a screen.
    Please let me know if it is possible and if so could you also send me some demo code so that i can understand what is done in order to achieve it.
    Regards,
    Im

    Hi,
    Check this link:
    http://www.sap-img.com/fu014.htm
    This ABAP program will automatically update a report every 30 seconds while it is on the screen 
    at the same time keeping the GUI screen buttons active.
    Reward if it helps.
    Thanks,
    Swati

  • Help with refreshing applet

    If I recompile my applet and try to restart it in Netscape the changes do not take hold. I've tried refreshing and emptying the cache and even setting the cache to 0, but it won't run the new version of the program. The only way I can get it to work is to quit Netscape entirely, restart it, and start the Java program again. Why is this? And is there a way to get around this?
    And there is a a second related problem I have. My applet calls a CGI program and recieves html text in reply. This HTML text I display in a JEditorPane. The first time I run the program it displays it nicely, but everytime after that it displays the HTML commands mixed in with the text, i.e. "<TABLE><TR><TD>text" instead of a table.
    Does anyone know what causes this or how to prevent it?

    Thanks for the help again. I read the API myself and tried adding the new line, but it had no affect. I tried this:
    ResultsDisplay.getEditorKit().createDefaultDocument();
    ResultsDisplay.setContentType("text/html");               
    ResultsDisplay.setText(inputStore.toString());and even this:
    ResultsDisplay = new javax.swing.JEditorPane();
    ResultsDisplay.getEditorKit().createDefaultDocument();
    ResultsDisplay.setContentType("text/html");
    ResultsDisplay.setText(inputStore.toString());But neither solution fixed it.

  • Help in Refresh please

    hi guys
    iam trying to refresh a main page from a popup window after editing things in it like on clicking a button i want to retrieve to session bean some values : getSessionBean1().SetCacheValue("EmpCheck","1");
    getSessionBean1().SetCacheValue("CompanyCheck","0");
    also i used js to close the popup and refresh the parent window :
    opener.location.reload(true); self.close();
    so iam having the retry or cancel alert and it its very noisy
    do anyone know how to stop this alert and refreshing the page without is please help guys
    ~HR~
    thanks a lot for help

    Instead of refreshing the parent page, why don't you submit the form in the parent page, so that you won't get the annoying alert.
    - WInston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • Crystal Reports crashes when accessing Help or refreshing report data

    I am running Crystal Reports 2008 (v12.0.0.683) on the same server as Business Objects XI 3.0.  When I open a report in the Crystal Reports 2008 designer client, the client crashes without any error messages if I try to access the Help files or refresh the current report data.  My report does include parameters and a subreport.  I am logging onto the Windows 2003 SP2 server via a Remote Desktop connection.  Any ideas?
    Thanks,
    Kathy

    Please re-post if this is still an issue to the Business Objects Forum or purchase a case and have a dedicated support engineer work with you
    directly.  If you have a valid BOE version and support contract you can log a case in SMP.

  • Help on refreshing a table every second ? using table model

    hi there
    i have created a table using defaultTableModel. now i need to refresh the table every two seconds. to implement the refreshing, do i need to revalidate the container pane of the table every two second? i am just wondering since i use the tablemodel, maybe it can revalidate or repack automatically. please help me and thank you.

    hi there
    thank you for your help
    here is what my table does, the program connects to the database, retreive data and populate the table every two seconds to reflect the changes in the database. here is the run method that does the connecting and ...
    public void run()
    boolean okay = true;
    boolean updated = false;
    String strSQL = "sql statment"
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection(".....")
    PreparedStatement ps = con.prepareStatement(strSQL);
    while (okay)
    rs = ps.executeQuery();
    //code to query the database.....
    tablemodel = (DefaultTableModel)jTable.getModel();
    //code to repaint the table......
    Thread.sleep(1000);
    }catch (ClassNotFoundException cnfe){
    }catch (SQLException sqle) {
    }catch (InterruptedException e){
    okay = false;
    }catch (Exception ee){
    System.out.println("Exception:" + ee.getMessage());
    what can tablemodel do for this kind of task?

  • Help for Refresh report data!

    First, the CR report XML datasource without any issues.
    But, Crystal Report Viewer  pop up a warning dialog window when user click "refresh" buttion on the toolbar of Crystal Reports Viewer.(The user PC didn't install Crystall Reports 2008)
    Warning content as below:
    Failed to load database information.
    Details: The Databse connector "crda_xml.dll" could not be loaded, The correct version of the database client for this database type might not be installed.
    I'm not even sure if I'm asking question correctly.
    Anyone have any information about this question?
    Best Regards.
    Pat

    Hi,Navin
    Thank you for your help.
    To clarify what I am doing.
    I have created a report using "XML and Web Services" by specifying the xsd and xml file. To run the report using different xml data sources, at runtime the app I have created changes the LogonProperties to specify the new required "Local XML File" and the "HTTP(S) Schema URL".
    *Crystal Report 2008 runtime is missing crdb_xml.dll *
    This DLL seems to be missing from the runtime MSI and the merge module?
    Without this I am unable to utilise reports that have "XML and Web Services" connection type and refresh button  on toolbar of Crystal Reports Viewer .
    Any advice on how to achieve the same thing with "ADO.NET (XML)" would be much appreciated in VC IDE.

  • Help with Refreshing and Calling Screens

    Hi everyone.  I have somewhat of a simple ABAP program in which the user will enter data on Selection-Screen 1000.  This will then be loaded into an Object Oriented ALV Grid for display purposes only (screen 0100).  At any time, the user may use the back button on the ALV Grid Screen; which will take them from screen 0100 to screen 1000(Selection Screen).  Lets assume the user does not want to go back to the original selection screen from the ALV Grid Screen; they entered the information correctly and want to continue processing using a custom button I've created which will continue to process the record of data into a BW ODS.  This process works, but now I would like to use the write statement once the custom button is clicked to show a summary of the data I am inserting into the ODS after the data has been inserted.  The problem is, the title of the ALV Grid still shows and the Write statement is processed, but not shown on the screen.  I've been trying to refresh the screen with set screen and call screen combinations, but no luck.  Any Help would be appreciated.  Thanks!
    Here is a sample of the code below:
    *& Report  ZINC_DSP_SALES_INCRASE
    REPORT  ZINC_DSP_SALES_INCREASE MESSAGE-ID zsm.
    INCLUDE <icon>.
    DATA: credit_itab type standard table of /bic/azincosvi00,
          wa_credit like line of credit_itab,
          alv_itab type standard table of /bic/azincosvi00,
          wa_alv like line of alv_itab.
    DATA: ok_code LIKE sy-ucomm,
          save_ok LIKE sy-ucomm,
          incent type table of /bic/azincosvi00,
          g_container TYPE scrfname VALUE 'Increase DSP Sales',
          grid1 TYPE REF TO cl_gui_alv_grid,
          gs_layout TYPE lvc_s_layo,
          g_custom_container TYPE REF TO cl_gui_docking_container.
    DATA: active_guid like /bic/mzguid_dsr,
          UNIQUEKEY LIKE /BIC/AZINCOSVI00-/BIC/ZRCRDKEY,
          rpt_per_rec like  /BIC/MZRPTPRDCR,
          dsrcode like /bic/mzdsrcode-/bic/zdsrcode,
          payrec like /bic/mzsubcode.
    CLASS lcl_event_receiver DEFINITION DEFERRED.
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS:
        handle_toolbar
            FOR EVENT toolbar OF cl_gui_alv_grid
                IMPORTING e_object e_interactive,
        handle_user_command
            FOR EVENT user_command OF cl_gui_alv_grid
                IMPORTING e_ucomm.
        PRIVATE SECTION.
    ENDCLASS.
    CLASS lcl_event_receiver IMPLEMENTATION.
    This will create the toolbar
      METHOD handle_toolbar.
       DATA: ls_toolbar  TYPE stb_button.
       CLEAR ls_toolbar.
       MOVE 3 TO ls_toolbar-butn_type.
       APPEND ls_toolbar TO e_object->mt_toolbar.
    append an icon to show booking table
       CLEAR ls_toolbar.
       MOVE 'CREATE' TO ls_toolbar-function.
       MOVE ICON_OKAY TO ls_toolbar-icon.
       MOVE ' ' TO ls_toolbar-disabled.
       APPEND ls_toolbar TO e_object->mt_toolbar.
      ENDMETHOD.
    METHOD handle_user_command.
      CASE e_ucomm.
      WHEN 'CREATE'.
      Insert /bic/azincosvi00 from wa_credit.
      CALL METHOD grid1->free.
      SET SCREEN '200'.
      WHEN 'OTHERS'.
      " DO NOTHING
      ENDCASE.
      ENDMETHOD.
    ENDCLASS.
    Data: event_receiver TYPE REF TO lcl_event_receiver.
    START-OF-SELECTION.
    Selection-Screen BEGIN OF BLOCK 1 with frame title text-001.
    Parameters:  start   like /bic/azincosvi00-BILL_DATE.
    Selection-Screen END OF BLOCK 1.
    Selection-Screen BEGIN OF BLOCK 3 with frame title text-003.
    Parameters: guid         type /BIC/OIZGUID_DSR,
                pcode        type /BIC/OIZPGMCODE,
                scode        type /BIC/OIZSUBCODE,
                reason       type /BIC/OIZEXCPTC,
                quantity(5)  type n,
                discount     type /BI0/OISUBTOTAL_4.
    Selection-Screen END OF BLOCK 3.
    END-OF-SELECTION.
    IF quantity <> '00000'.
       if pcode <> 'SCTMS'.
          message e000 with 'Quantity can only be used with seating spiff'.
       endif.
    ENDIF.
    GET REPORT PERIOD INFO using today's date.
      select single * from /bic/mzrptprdcr INTO rpt_per_rec
          where calyear  = sy-datum(4)
            and /bic/zpgmcode  = pcode
            and ( /BIC/ZRPPRDSTR <= start
                  and /BIC/ZRPPRDEND >= start ) .
      if sy-subrc <> 0.
        message e000 with
        'Report Period NOT FOUND for' pcode ' ' sy-datum(4).
      endif.
    Select Active Guid based upon user entry on selection-screen
    Select single * from /bic/mzguid_dsr into active_guid
                                      where /bic/zguid_dsr = guid
                                      and   /bic/zdsrstat = 'A'.
        If sy-subrc <> 0.
        MESSAGE e000 WITH 'Please enter a valid GUID'.
        ENDIF.
    Select DSR Code based upon a valid guid entered
    Select single /bic/zdsrcode from /bic/mzdsrcode into dsrcode
                                     where /BIC/ZGUID_DSR = guid
                                     and   /BIC/ZDSRCDST = 'A'.
        If sy-subrc <> 0.
        MESSAGE e000 WITH 'GUID entered does not have an active dsr code.'.
        ENDIF.
    Select MAX( /BIC/ZRCRDKEY ) FROM /BIC/AZINCOSVI00 INTO WA_CREDIT-/BIC/ZRCRDKEY.
    UNIQUEKEY = WA_CREDIT-/BIC/ZRCRDKEY + 1.
    WA_CREDIT-/BIC/ZRCRDKEY = UNIQUEKEY.
    WA_CREDIT-PO_NUMBER = UNIQUEKEY.
    WA_CREDIT-/BIC/ZERDAT = SY-DATUM.
    WA_CREDIT-BILL_DATE = SY-DATUM.
    WA_CREDIT-/BIC/ZRPPRDSTR = rpt_per_rec-/BIC/ZRPPRDSTR.
    WA_CREDIT-/BIC/ZRPPRDEND = rpt_per_rec-/BIC/ZRPPRDEND.
    WA_CREDIT-/BIC/ZCUBPRCDT = SY-DATUM.
    WA_CREDIT-/BIC/ZRPTPRDCR = rpt_per_rec-/BIC/ZRPTPRDCR.
    WA_CREDIT-/BIC/ZINCPYPRC = '00000000'.
    WA_CREDIT-/BIC/ZGUID_DSR = ACTIVE_GUID-/bic/zguid_dsr.
    WA_CREDIT-/BIC/ZDSRCODE = dsrcode.
    WA_CREDIT-/BIC/ZPGMCODE = PCODE.
    WA_CREDIT-/BIC/ZUNASSIGN = 'N'.
    WA_CREDIT-/BIC/ZSUBCODE = SCODE.
    WA_CREDIT-/BIC/ZSITE_ICR = ACTIVE_GUID-/BIC/ZSITE_IRG.
    WA_CREDIT-/BIC/ZSUSPEND = 'N'.
    WA_CREDIT-/BIC/ZSUSPNDR = ' '.
    WA_CREDIT-/BIC/ZSITE_IRG = ACTIVE_GUID-/BIC/ZSITE_IRG.
    WA_CREDIT-/BIC/ZSITE_CST = ' '.
    WA_CREDIT-/BIC/ZINCBONUS = '0.00'.
    WA_CREDIT-STAT_CURR = 'USD'.
    WA_CREDIT-DOC_CURRCY = 'USD'.
    WA_CREDIT-SALES_UNIT = 'ST'.
    WA_CREDIT-CALYEAR =  SY-DATUM(4).
    WA_CREDIT-/bic/ZCASEID = SY-UNAME.
    WA_CREDIT-/bic/ZSLSRSN = REASON.
    WA_CREDIT-RECORDMODE = ' '.
    *Depending on Program Code, populate the amounts to be paid.
    Data: fivepercent type p.
          fivepercent = '0.05'.
    If pcode = 'SCW5S' or pcode = 'SCTMS'.
    Select single * from /bic/mzsubcode into payrec
                         where /bic/zpgmcode = pcode
                         and /bic/zsubcode = scode
                         and CALYEAR = sy-datum(4).
          if sy-subrc <> 0.
            write: / '**************  ERROR  ***********************',
                   / '** Missing Program Information for ',
                   /  pcode,
                      scode,
                      sy-datum(4),
            exit.
            endif.
    ENDIF.
    If pcode = 'SCW5S'.
    WA_CREDIT-/BIC/ZINCUSDDS = discount.
    WA_CREDIT-/BIC/ZPAYAMTUS = WA_CREDIT-/BIC/ZINCUSDDS * payrec-/bic/zpayper / 100.
    WA_CREDIT-SUBTOTAL_4 = discount.
    WA_CREDIT-/BIC/ZINC_QTY = ' '.
    Endif.
    If pcode = 'SCTMS'.
    WA_CREDIT-/BIC/ZPAYAMTUS = quantity * payrec-/bic/zpayper / 100.
    WA_CREDIT-/BIC/ZINCUSDDS = '0.00'.
    WA_CREDIT-SUBTOTAL_4     = '0.00'.
    WA_CREDIT-/BIC/ZINC_QTY = quantity.
    Endif.
    If pcode = 'SCTB'.
    WA_CREDIT-/BIC/ZPAYAMTUS = '0.00'.
    WA_CREDIT-/BIC/ZINCUSDDS =  DISCOUNT.
    WA_CREDIT-SUBTOTAL_4 =  DISCOUNT.
    WA_CREDIT-/BIC/ZINC_QTY = ' '.
    Endif.
    *Create ALV Grid to show the user what the record will look like in which they are creating.
    Append wa_credit to alv_itab.
    CALL SCREEN 100.
    *&      Module  PBO  OUTPUT
          text
    MODULE alv_pbo OUTPUT.
      SET PF-STATUS 'MAIN100'.
      SET TITLEBAR  'MAIN100'.
      IF g_custom_container IS INITIAL.
    CREATE OBJECT grid1
    EXPORTING i_parent = g_custom_container.
        CALL METHOD grid1->set_table_for_first_display
          EXPORTING
            i_structure_name = '/bic/azincosvi00'
           CHANGING
            it_outtab        = alv_itab.
        CREATE OBJECT event_receiver.
        SET HANDLER event_receiver->handle_user_command FOR grid1.
        SET HANDLER event_receiver->handle_toolbar FOR grid1.
        CALL METHOD grid1->set_toolbar_interactive.
      ENDIF.
    ENDMODULE.                 " PBO  OUTPUT
    *&      Module  PAI  INPUT
          text
    MODULE alv_pai INPUT.
      save_ok = ok_code.
      CLEAR ok_code.
      CASE save_ok.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'CANCEL'.
          LEAVE PROGRAM.
        WHEN 'BACK'.
          CALL METHOD grid1->free.
          CALL SELECTION-SCREEN '1000'.
        WHEN OTHERS.
        " DO NOTHING.
      ENDCASE.
    ENDMODULE.                " PAI  INPUT
    *&      Module  200_PBO  OUTPUT
          text
    MODULE 200_PBO OUTPUT.
      Write at 5: 'Increase DSP Sales'.
      Skip 1.
      Write at 5: 'USER'.
      Write at 15:'PROGRAM CODE'.
      WRITE AT 25:'SUB CODE'.
      WRITE AT 37:'DISCOUNTED SALES'.
      WRITE AT 67:'PAY AMOUNT US'.
      WRITE AT 80:'REASON'.
    ENDMODULE.                 " 200_PBO  OUTPUT

    There are some problems with ok_code, you need to assign sy-ucomm at each module.  Also the main problem was that you needed leave to list-processing and suppress dialog before writing.  However, when you do this the screens calls change a little. You also needed to use the container correctly.  Apply the correctons below and you'll be all set. Unfortunaley you will have to play around with calling the sel. screen (1000) from screen 100, I don't think call sel. screen 1000 will work properly there (you might need a custome screen instead).  The user may be okay with kicking back out to sa38 after the alv display, however.  Good luck and don't listen to the clowns' comments above. I once worked in that circus,    Hey Guys.
    Instead of this:
    METHOD handle_user_command.
    CASE e_ucomm.
    WHEN 'CREATE'.
    Insert /bic/azincosvi00 from wa_credit.
    CALL METHOD grid1->free.
    SET SCREEN '200'.
    WHEN 'OTHERS'.
    " DO NOTHING
    ENDCASE.
    ENDMETHOD.
    <b>DO THIS:</b>
      METHOD handle_user_command.
        CASE e_ucomm.
          WHEN 'CREATE'.
            Insert /bic/azincosvi00 from wa_credit.
            CALL SCREEN 200.
          WHEN 'OTHERS'.
            " DO NOTHING
        ENDCASE.
      ENDMETHOD.                    "handle_user_command
    <b>Instead of this:</b>
    *Create ALV Grid to show the user what the record will look like in which they are creating.
    Append wa_credit to alv_itab.
    CALL SCREEN 100.
    <b>DO THIS:</b>
      IF g_custom_container IS INITIAL.
        CREATE OBJECT g_custom_container EXPORTING dynnr = '100'
                                          repid = sy-cprog
                                          ratio = '95'.
      ENDIF.
      IF grid1 IS INITIAL.
        CREATE OBJECT grid1 EXPORTING i_parent = g_custom_container.
      ENDIF.
      CREATE OBJECT event_receiver.
      SET HANDLER event_receiver->handle_user_command FOR grid1.
      SET HANDLER event_receiver->handle_toolbar FOR grid1.
      SET SCREEN 100.
      CALL SCREEN 100.
    <b>Instead of this:</b>
    MODULE alv_pbo OUTPUT.
    SET PF-STATUS 'MAIN100'.
    SET TITLEBAR 'MAIN100'.
    IF g_custom_container IS INITIAL.
    CREATE OBJECT grid1
    EXPORTING i_parent = g_custom_container.
    CALL METHOD grid1->set_table_for_first_display
    EXPORTING
    i_structure_name = '/bic/azincosvi00'
    CHANGING
    it_outtab = alv_itab.
    CREATE OBJECT event_receiver.
    SET HANDLER event_receiver->handle_user_command FOR grid1.
    SET HANDLER event_receiver->handle_toolbar FOR grid1.
    CALL METHOD grid1->set_toolbar_interactive.
    ENDIF.
    ENDMODULE. " PBO OUTPUT
    <b>DO THIS:</b>
    MODULE alv_pbo OUTPUT.
      SET PF-STATUS 'MAIN100'.
      SET TITLEBAR  'MAIN100'.
    CALL METHOD grid1->set_table_for_first_display
      EXPORTING
         i_structure_name = '/bic/azincosvi00'
      CHANGING
         it_outtab = alv_itab.
      CALL METHOD grid1->set_toolbar_interactive.
    ENDMODULE.                 " PBO  OUTPUT
    <b>Instead of this:</b>
    MODULE alv_pai INPUT.
    save_ok = ok_code.
    CLEAR ok_code.
    CASE save_ok.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    WHEN 'CANCEL'.
    LEAVE PROGRAM.
    WHEN 'BACK'.
    CALL METHOD grid1->free.
    CALL SELECTION-SCREEN '1000'.
    WHEN OTHERS.
    " DO NOTHING.
    ENDCASE.
    ENDMODULE. " PAI INPUT
    <b>DO THIS:</b>
    MODULE alv_pai INPUT.
      ok_code = sy-ucomm.
      CASE ok_code.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'CANCEL'.
          LEAVE PROGRAM.
        WHEN 'BACK'.
          CALL METHOD grid1->free.
          LEAVE PROGRAM.
    *       CALL SELECTION-SCREEN '1000'.
        WHEN OTHERS.
          " DO NOTHING.
      ENDCASE.
    ENDMODULE.                " PAI  INPUT
    <b>Instead of this:</b>
    MODULE 200_PBO OUTPUT.
    Write at 5: 'Increase DSP Sales'.
    Skip 1.
    Write at 5: 'USER'.
    Write at 15:'PROGRAM CODE'.
    WRITE AT 25:'SUB CODE'.
    WRITE AT 37:'DISCOUNTED SALES'.
    WRITE AT 67:'PAY AMOUNT US'.
    WRITE AT 80:'REASON'.
    ENDMODULE. " 200_PBO OUTPUT
    <b>DO THIS:</b>
    *Take care of all your list output here
      LEAVE TO LIST-PROCESSING.
      SET PF-STATUS 'MAIN200'.
      SET TITLEBAR  'MAIN200'.
      SUPPRESS DIALOG.
      WRITE AT 5: 'Increase DSP Sales'.
      SKIP 1.
      WRITE AT 5: 'USER'.
      WRITE AT 15:'PROGRAM CODE'.
      WRITE AT 25:'SUB CODE'.
      WRITE AT 37:'DISCOUNTED SALES'.
      WRITE AT 67:'PAY AMOUNT US'.
      WRITE AT 80:'REASON'.
    ENDMODULE.                 " 200_PBO  OUTPUT
    <b>Add Moule:</b>
    MODULE 200_pai INPUT.
      ok_code = sy-ucomm.
      CASE ok_code.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'CANCEL'.
          LEAVE PROGRAM.
        WHEN 'BACK'.
          CALL SCREEN 100.
        WHEN OTHERS.
          " DO NOTHING.
      ENDCASE.
    ENDMODULE.                 " 200_PAI  INPUT

  • Help please: Refreshing a window

    Hello,
    I would like to refresh a window so I have
    try
    tell application "Finder" to update folder "My folder" of desktop
    end try
    It compiles but does not work, I have to do this:
    try
    tell application "Finder" to close folder "My folder" of desktop
    tell application "Finder" to open folder "My folder" of desktop
    end try
    That compiles and works, but the opening and closing of "My folder" is obvious to the user.
    How could I improve that?
    Thanks.
    Lennox

    Lennox, you could try using this free shell utility. It has worked just fine for me. Here is the link:
    http://osxutils.sourceforge.net/
    The man page you want is "/usr/local/bin/wsupdate" if you don't specify a file then the finder windows should be updated. Here is a example of using this shell command.
    set Icon_From to choose file with prompt "Choose the file you want to copy the icon from?" without invisibles
    set Icon_To to choose file with prompt "Choose the file you want to copy the icon to?" without invisibles
    my ReplaceIcon(IconFrom, Icon_To)
    on ReplaceIcon(FromFile, To_File)
    try
    do shell script "/usr/local/bin/seticon" & space & (quoted form of (POSIX path of From_File)) & space & (quoted form of (POSIX path of To_File))
    try
    do shell script "/usr/local/bin/wsupdate" & space & (quoted form of (POSIX path of To_File))
    on error Error_Message
    display dialog Error_Message giving up after 2
    return false
    end try
    on error Error_Message
    display dialog "Requires osxutils from http://osxutils.sourceforge.net/" giving up after 3
    return false
    end try
    end Replace_Icon

  • Help! Refresh default tabbed panel

    Hi,
    I have a problem with my spry tabbed panels. The default tab
    is set to be the 1st tab, when I move to 2nd tab and navigate
    through the content, as the page refreshes, and before it is fully
    loaded it shows the content of the first tab for about 20 seconds
    or so....then the page finally goes to the desired content on the
    2nd tab....
    How can I make it so this does not happen and it looks like a
    smooth transition as I navigate through my pages?
    Thanks,
    Brandan98

    Hi Ken:
    When I insert a new spry panel it appears with all the css from the other page.
    When I began to make changes the other page reflexs those changes.
    Don't know how to get a separate SpryCss sheet. Do you?

  • Please Help! - Refreshing a JTable ( JDBC)

    Hi
    Currently I am populating a JTable with data from an Access database.
    I have not yet created my own Table Model.
    My table is displayed in a frame with a button to the side which when clicked creates a dialog box which enables the user to input data. Clicking the OK button on this dialog box then updates the database and the dialog box is removed.
    The problem is that the table is not updated with this newly input data.
    I have tried using
    ((AbstractTableModel)table1.getModel()).fireTableDataChanged();
    which doesn't work.
    If I create my own Table Model and then call on the fireTableDataChanged method,will this update the table? I want the table to update as soon as the dialog box is closed.
    I really would appreciate any help here. The JTable tutorial doesn't really help.
    Thanks
    LGS

    Would you agree that it would be better to requery the database incase another user has subsequently posted new recordsConcurrency shouldn't be a problem, but if it buys you peace of mind, then do it.
    Also -are you saying that I really should have my own Table Model? You should, this will give you more control over the operations of the table.
    If you want to see how I implement DB access in my table, check out the imports from and exports to external databases at the link shown below:
    http://www.aokabc.com
    ;o)
    V.V.

  • Help to refresh content

    Does anyone know how we can overcome the browser cache
    function with swf files . We have build a complete flash site which
    is updated regularly - once a week but whenever these updates are
    posted the client cannot see the changes as their machine is
    caching the old swf's.
    Is there action script code that can force the browser to get
    the new revised file each time it is called to the client machine?
    Any assistance is appreciated.

    Off the top of my head I don't have a firm suggestion, but do
    read the resources on
    http://www.adobe.com/accessibility/index.html
    There's a lot of stuff there. Open a support case if you
    can't get it to work after that.

  • Pls help in Refreshing JTableModel

    I have defined 3 classes;
    JDataBase
    JTableModelClass
    Expenditure
    JDataBase class has the connection to the database and getData(String query) function.
    JTableModel has a constructor with 2 parameters (String Query, Vector ColumnNames)
    Expenditure is my UI class with JScrollPane and JTable which is being displayed.
    *Problem</sOn the interface, i have a provision of the user specifying the columns he wants displayed. In case he wants to change the cols displayed, i have provided some checkboxes where after selecting/deselecting, a button click passes the query to the JTableModelClass which passes it to JDatabase class. The table is adjusted accordingly.
    However, if i click on the colunm headers or the data rows, the initial table is displayed.
    How cal i kill the first instance of the JTableModel before i run a fresh query? i.e. an equivalent of .dispose() method.
    Why does it restore the first instance on table focus?

    Ok Ok..i get it now. i was giving my questions a logical approach and not a programming one.
    1) JDataBase Class
    public class JDataBase {
    public static Connection connection;
    public static Statement statement;
    ResultSet resultSet;
    int regNo=0;
    String[] columnNames = {};
    Vector rows = new Vector();
    ResultSetMetaData metaData;
    public int no_rows;
    /** Creates a new instance of JDataBase */
    public JDataBase() {
    System.out.println("In JDataBase Class");
    public boolean connected(String url, String driverName,
    String user, String passwd) {
    boolean state=false;
    try {
    Class.forName(driverName).newInstance();
    System.out.println("Opening db connection");
    connection = DriverManager.getConnection(url, user, passwd);
    statement = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    state=true;
    catch (ClassNotFoundException ex) {
    state=false;
    System.err.println("Cannot find the database driver classes.");
    System.err.println(ex);
    catch(InstantiationException ins){
    System.err.println("Cannot Instantiate the Driver.");
    catch(IllegalAccessException iae){
    System.err.println("IllegalAccessException.");
    catch (SQLException ex) {
    state=false;
    System.err.println("Cannot connect to this database.");
    System.err.println(ex);
    return state;
    * closes the db connection
    public void close() {
    try{
    System.out.println("Closing db connection");
    if(resultSet!=null)
    resultSet.close();
    if(statement!=null)
    statement.close();
    if(connection!=null)
    connection.close();
    }catch(SQLException ex){
    System.out.println(ex.getMessage());
    * @param query String
    * @return Object
    * returns a collectionof any values selected from the database
    public Vector getData(String query) {
    no_rows=0;
    if (connection == null || statement == null) {
    System.err.println("There is no database to execute the query.");
    return new Vector();
    try {
    resultSet = statement.executeQuery(query);
    metaData = resultSet.getMetaData();
    int numberOfColumns = metaData.getColumnCount();
    columnNames = new String[numberOfColumns];
    // Get the column names and cache them.
    // Then we can close the connection.
    for(int column = 0; column < numberOfColumns; column++) {
    columnNames[column] = metaData.getColumnLabel(column+1);
    // Get all rows.
    rows = new Vector();
    while (resultSet.next()) {
    no_rows++;
    Vector newRow = new Vector();
    for (int i = 1; i <= numberOfColumns; i++) {
    newRow.addElement(resultSet.getObject(i));
    rows.addElement(newRow);
    // close(); Need to copy the metaData, bug in jdbc:odbc driver.
    catch (SQLException ex) {
    System.err.println(ex);
    return rows;
    public static void main(String[] args) {
    JDataBase JDataBase1 = new JDataBase();
    2) JTableModelClass
    public class JTableModelClass extends AbstractTableModel {
    Object [][] data;
    JTable table;
    Vector vectordata,rowdata;
    String[] columnNames;
    JDataBase db=new JDataBase();
    /** Creates a new instance of JTableModelClass */
    public JTableModelClass(String query, Vector colnames) {
    columnNames=new String[colnames.size()];
    String myquery=query;
    String conn=db.connection.toString();
    vectordata=db.getData(query);
    for(int i=0;i<colnames.size();i++){
    columnNames=(String)colnames.elementAt(i);
    int rows=db.no_rows;
    Object row;
    data=new Object[rows][columnNames.length];
    if(rows==0){
    System.out.println("No Such Data Found");
    } else{
    System.out.println("Some Data Found");
    for(int i=0;i<rows;i++){
    rowdata=(Vector)vectordata.elementAt(i);
    for(int j=0;j<columnNames.length;j++){
    //data[i][j]=vectordata.elementAt(i);
    data[i][j]=rowdata.elementAt(j);
    System.out.println("making a table done");
    public int getColumnCount() {
    return columnNames.length;
    public int getRowCount() {
    return data.length;
    public String[] getTableHeader(){
    return columnNames;
    public void addRow(Object[] row) {
    for (int i=0; i<columnNames.length; i++) {
    data[data.length+1][i] = row[i];
    fireTableRowsUpdated(data.length+1,data.length+1);
    public String getColumnName(int col) {
    return columnNames[col];
    public Object getValueAt(int row, int col) {
    return data[row][col];
    public Class getColumnClass(int c) {
    return getValueAt(0, c).getClass();
    3) Expenditure Class
    public class Expenditures extends javax.swing.JFrame {
    Vector fields;
    JTable table;
    String columns;
    JScrollPane datascrollPane;
    private void BtnOkActionPerformed(java.awt.event.ActionEvent evt) {                                     
    // TODO add your handling code here:
    displayData();
    public void displayData(){
    String fieldstring=" ";
    Vector queryfields=checkFields();
    if(fields.size()==0){
    JOptionPane.showMessageDialog(this,"No field has been Selected","Select Field", JOptionPane.OK_OPTION);
    int j=0;
    for(j=0;j<queryfields.size();j++){
    if(j==queryfields.size()-1) {
    fieldstring +=(String)queryfields.elementAt(j).toString()+" ";
    } else{
    fieldstring +=(String)queryfields.elementAt(j).toString()+",";
    String query="Select "+fieldstring +"from card_balances.balances_alloc";
    tablemodel=new JTableModelClass(query, queryfields);
    table = new JTable(tablemodel);
    table.setPreferredScrollableViewportSize(new Dimension(500, 70));
    table.setFillsViewportHeight(true);
    table.setAutoCreateRowSorter(true);
    datascrollPane = new JScrollPane(table);
    datascrollPane.setBounds(10,300,(int)d.getWidth()-50,360);
    this.jPanel1.add(datascrollPane);
    public Vector checkFields(){
    fields=new Vector();
    String field1,field2;
    int i=0;
    if(this.medicalaidcode.isSelected()){
    fields.addElement(medicalaidcode.getActionCommand());
    i++;
    if(this.Amount_alloc.isSelected()){
    fields.addElement(Amount_alloc.getActionCommand());
    i++;
    if(this.Expenditure.isSelected()){
    fields.addElement(Expenditure.getActionCommand());
    i++;
    if(this.balances_alloc.isSelected()){
    fields.addElement(balances_alloc.getActionCommand());
    i++;
    if(this.Pool_nr.isSelected()){
    fields.addElement(Pool_nr.getActionCommand());
    i++;
    if(this.Familynumber.isSelected()){
    fields.addElement(Familynumber.getActionCommand());
    i++;
    if(this.Scheme_startdate.isSelected()){
    fields.addElement(Scheme_startdate.getActionCommand());
    i++;
    if(this.Scheme_endDate.isSelected()){
    fields.addElement(Scheme_endDate.getActionCommand());
    i++;
    if(this.PrincipleName.isSelected()){
    fields.addElement(PrincipleName.getActionCommand());
    i++;
    if(this.mem_nr.isSelected()){
    fields.addElement(mem_nr.getActionCommand());
    i++;
    if(this.PercentageEx.isSelected()){
    fields.addElement(PercentageEx.getActionCommand());
    i++;
    if(this.EmailedDate.isSelected()){
    fields.addElement(EmailedDate.getActionCommand());
    i++;
    if(this.CounterEmail.isSelected()){
    fields.addElement(CounterEmail.getActionCommand());
    i++;
    return fields;
    public String checkParameters(){
    String conditions="";
    String criteria, selected, startdate, enddate;
    selected=this.RadioGroup.getSelection().getActionCommand();
    startdate=this.DateFrom.getDate().toString();
    enddate=this.DateTo.getDate().toString();
    conditions="where ";
    if(selected=="RadioPerFamily"){
    } else if(selected=="RadioPerClient"){
    } else{
    return conditions;
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new Expenditures().setVisible(true);

  • I need help refreshing my Adobe Creative Cloud membership in Business Catalyst.

    I need help refreshing my Adobe Creative Cloud membership in Business Catalyst.
    Hello, I had an Adobe Muse membership and I have changed it to a full Adobe Creative cloud membership. The problem is when I login in to business catalyst and try to push live  a second site, it tells me as follows:  Your Adobe Creative Cloud Membership has reached its limit for hosted sites.
    I think business catalyst has not recognize jet that I have change my Adobe Creative Cloud Membership and does not allow me access to the 5 sites that are supposed to come with my adobe creative cloud.
    Please help me refresh my status on business catalyst so I can publish my 5 sites.
    thanks

    Hi,
    Please reach out to our direct support via case or live chat as this may require escalation.  It appears your account is not syncing with your adobe ID for whatever reason and will require further investigation to help resolve.  We'll need your ID(s) plus any additional details so we can correct this for you. 
    - http://helpx.adobe.com/contact.html
    Thanks,
    -Sidney

Maybe you are looking for