How to refresh table column during button method call ?

Hi,
I have one table on my screen in which there are 5 rows.
One of the column of this table is Status with initial value Not Completed.
Now when I press submit button my 5 processes are started in for loop one by one.
After completion of 1st process, I am updating 1st row status with Completed and vise a versa.
But change is reflected on table after by method call over means if my submit action take 5 minutes to finish all 5 process than after 5 minutes, I can see all rows with status Completed while I want it to reflect as soon as I set its status.
How can I do this ?
regards,
devang

.. or break up the method in 5 methods (for each process a separate method) and with you button you call the first method. then when at the end of the method you call a javascript which updates the first column to completed and the js calls the second method (with queue of client event and serverListener) ... and so on and so on.
Really not so cool idea but I think it's achievable:)

Similar Messages

  • How to refresh table display using slis and 'reuse_alv_grid_display method.

    hello,
    how to refresh table display using slis and 'reuse_alv_grid_display method'.
    when i'm refreshing table display it performs once again reuse_alv_grid_display.and when i back the previous value appear.how to solve it?
    neon

    are you chaning any value in the gird if so use this..
    Pass the user_command form name to the Import parameter
    I_CALL_BACK_USERCOMMAND .
    and have the Dynamic form implementation..
    FORM user_command USING ucomm TYPE sy-ucomm
                selfield TYPE slis_selfield.
    "The below is important for Editable Grid.
      DATA: gd_repid LIKE sy-repid, "Exists
      ref_grid TYPE REF TO cl_gui_alv_grid.
      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.
      IF NOT ref_grid IS INITIAL.
        CALL METHOD ref_grid->check_changed_data .
      ENDIF.
      CASE ucomm.
        WHEN 'REFRSH'.
      ENDCASE.
           selfield-refresh = 'X'.
    ENDFORM.                    "user_command

  • Type conflict during dynamic method call.

    While executing the following program I get the error "Type conflict during dynamic method call.":
    DATA: container_r  TYPE REF TO object,
          grid_r       TYPE REF TO object,
          itab_saplane TYPE TABLE OF saplane.
    * IMPORTANT NOTE: class names must be in UPPER CASE
    DATA: str_cnt TYPE seoclsname VALUE 'CL_GUI_CUSTOM_CONTAINER',
          str_gui TYPE seoclsname VALUE 'CL_GUI_ALV_GRID',
          meth_name TYPE STRING VALUE 'SET_TABLE_FOR_FIRST_DISPLAY'.
    TYPE-POOLS abap.
    DATA: ptab    TYPE abap_parmbind_tab,
          wa_ptab LIKE LINE OF ptab,
          ref     TYPE REF TO data.
    CREATE OBJECT container_r TYPE (str_cnt)
      EXPORTING container_name = 'CUSTOM_CONTROL1'. " Name of the custom control area (UC!)
    * Construct parameter itab
    GET REFERENCE OF container_r INTO ref.
    wa_ptab-name  = 'I_PARENT'.  " Must be upper-case
    wa_ptab-value = ref.
    INSERT wa_ptab INTO TABLE ptab.
    *   EXPORTING i_parent = container_r.
    CREATE OBJECT grid_r TYPE (str_gui)
      PARAMETER-TABLE ptab.
    SELECT * FROM saplane INTO CORRESPONDING FIELDS OF TABLE itab_saplane.
    * Cannot call set_table_for_first_display directly...
    CALL METHOD grid_r->(meth_name)
      EXPORTING I_STRUCTURE_NAME = 'SAPLANE'  " Type of the rows in the internal table  (UC!)
      CHANGING  IT_OUTTAB = itab_saplane.     " The internal table itself
    CALL SCREEN 100.
    Any help would be appreciated!

    Hi ...
    Apologies ... for confusion ... actually both are required ...
    the type 'E' as well as CL_GUI_CONTAINER.
    The below code worked for me ...
    check out how I cast it to the parent class type ...
      DATA : lv_container   TYPE seoclsname VALUE 'CL_GUI_CUSTOM_CONTAINER',
             lv_control     TYPE seoclsname VALUE 'CL_GUI_ALV_GRID',
             lv_method      TYPE string VALUE 'SET_TABLE_FOR_FIRST_DISPLAY',
             lt_par_tab     TYPE abap_parmbind_tab,
             ls_param       LIKE LINE OF lt_par_tab,
             lref_cont      TYPE REF TO cl_gui_container,
             lv_data        TYPE REF TO data.
    CREATE OBJECT lref_container
          TYPE
            (lv_container)
          EXPORTING
            container_name = 'ALV_AREA'.
        ls_param-name = 'I_PARENT'.
        ls_param-kind = 'E'.
        lref_cont ?= lref_container.
        GET REFERENCE OF lref_cont INTO lv_data.
        ls_param-value = lv_data.
        INSERT ls_param INTO TABLE lt_par_tab.
    **  Now create ALV Control.
        CREATE OBJECT lref_alv_ctrl
          TYPE
            (lv_control)
          PARAMETER-TABLE
            lt_par_tab.
    **  Set table for 1st display
        DATA : lv.
        lv = lref_alv_ctrl->mc_fc_print.
        CALL METHOD lref_alv_ctrl->(lv_method)
          EXPORTING
            i_structure_name = 'T001'
          CHANGING
            it_outtab        = lt_company.
    Cheers
    Edited by: Varun Verma on Aug 12, 2008 4:19 PM

  • How i pass table column  value to string variable or return to java applete

    Hi Master,
    How do I pass a table column value into string variable. See my code below:
    import java.sql.*;
    public class Waheed {
    public Waheed() {
    public static void main (String args [])
    String s = "9 23 45.4 56.7";
    System.out.println ("going for connection");
    // DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    try{
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@fahim:1521:aamir","muhammad","mfa786");
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("select accid from accbal");
    System.out.println ("going for connection");
    while (rset.next())
    s= rset.getString("accid"); this line give me error
    System.out.println (rset.getString("accid"));
    System.out.println (s);
    catch(Exception e){
    e.printStackTrace();
    This line give me an error:
    s= rset.getString("accid");
    s is string variable
    Plese give me an idea how I can pass accid in s variable.
    Thanks.
    Aamir

    See the code sample in the following thread (try using upeercase).
    JDBC  connection
    Kuassi

  • How to refresh a region during tab change

    Hi All,
    In my page I have two tabs.There is one region each in each tab.
    Tab 1 region is on top of Parent View Object and Tab 2 region is on top of Child view object. Relationship is one-to-one.
    In tab 1 region, If populate some attributes <of ParentVO> then, those attribute values will be copied to the Child View Object by calling an AM method from the tab disclosure listener.
    When I switch from tab 1 to tab 2 for the first time all the populated attributes < Parent VO in Tab1 > are getting copied to child VO and I can see those values in tab 2 <UI> .
    But after that when I switch back to Tab 1 and change some attributes and go to tab 2 then, the newly populated attributes are not shown in the second tab.
    But If I go to the next page and come back to the same page then in the second tab I can see all the newly populated attributes..
    refreshCondition of the task-flow is ifNeeded.
    In my disclosure listener I am trying to refresh the region binding programmatically. <AdfFacesContext.getCurrentInstance().addPartialTarget(regionbinding)>.
    But the region in tab 2 is not getting refreshed.
    Please Help...
    Am I missing some thing here...

    Thanks a lot for your response...
    Earlier I had tried #{true} as refreshCondition. But that didn't help. And I had tried changing an input parameter value by calling a bean method [toggleValue: which will toggle the parameter RefreshFlag ]
    and keeping the refresh Condition as ifNeeded. But in this case it didn't work. Earlier I had tried this approach and it was always working.
    Now I will try with the option you gave me.. Calling refresh method of UIXRegion. The method seems to be the exact one which I was looking for from the doc.
    The documentation says...
    refresh
    public void refresh(javax.faces.context.FacesContext context)
    Refreshes this region's model. This method calls RegionModel.refresh(javax.faces.context.FacesContext), and adds this region as a PPR target. This method must only be called during PhaseId.INVOKE_APPLICATION phase. A RegionNavigationEvent is always queued.
    So can I call this method on a tab disclosure listener..?
    Or Do I need to check for the Phase and call this method.. It would be great if you can make it a bit more clear.
    Do I need refresh or refreshCondition along with this approach..
    Thanks a lot..
    Abhilash

  • How to map table columns to xml attributes?

    With a table like this : Column1, Column2,...
    I try to obtain it :
    <?xml version = '1.0'?>
    <ROWSET>
    <ROW num="1" key="column1">
    <NAME>SMITH</NAME>
    </ROW>
    <ROW num="2" key="column1">
    <NAME>ALLEN</NAME>
    </ROW>
    </ROWSET>
    And i find this but it isn't enough :
    SELECT empno "@EMPNO", ename, job, hiredate
    FROM emp
    ORDER BY empno
    <?xml version = '1.0'?>
    <ROWSET>
    <ROW num="1" EMPNO="7369">
    <ENAME>SMITH</ENAME>
    <JOB>CLERK</JOB>
    <HIREDATE>12/17/1980 0:0:0</HIREDATE>
    </ROW>
    <ROW num="2" EMPNO="7499">
    <ENAME>ALLEN</ENAME>
    <JOB>SALESMAN</JOB>
    <HIREDATE>2/20/1981 0:0:0</HIREDATE>
    </ROW>
    </ROWSET>
    how to known the column name?

    I do not know what columns you are talking about, but in HTML you can merge two columns with the attribute COLSPAN="2".
    DickDral

  • How to create table columns dynamically ?

    Hi All,
    I am working on an SSRS report that will show sales in the past 5 years. If the user selected to view sales of past 3 years he will only see 3 columns. so How can I create table columns dynamically at run time and how can I make sure that their dimensions
    will adjust to fit the report page size.

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • How to format table column values to currency?

    All,
    I have bound a context attribute (type - string)  to a table column (TextView) which is used to display currency.
    It displays the value as 123456789.00
    How do I format the value as 123,456,789.00?
    Is there any FM available to format?
    I don't want to change the above context attribute type to CURR.
    Thanks
    Thruna

    >I don't want to change the above context attribute type to CURR.
    Why not?  That is the correct thing to do. That way you get formatting, sorting, even the correct decimal position and notation for different currencies and user settings.
    If you must go with string for the context attribute then I still assume your source data is type CURR.  When you 'move' this content into the string of the context attribute use the WRITE statement.  This will format the currency variable for output.

  • How to stop table columns widths from drifting

    I discovered that all the columns widths of my tables change on their own,
    leading me with tables of different columns widths where I wanted to
    maintain a strong cohesion of presentation among them.
    Here is a scenario to reproduce and understand the problem:
    • create a new Pages'08 document;
    • insert a Table;
       the 3 columns of this newly created table are 5.49 cm width each.
    Problematic case:
    • change the first column width with:<pre> Table > Table > Column Width > 5 cm</pre>   and hit return
    • the column width will switch to 5.01 cm
    • the 2 other columns widths will have switched to 5.50 cm.
    Is there a technique, I didn't find yet, to define a table column to a
    fixed value so that Pages'08 won't make it drift and wont touch to
    other columns width?
    <pre>--------
    As long as you'll see students making graphics with pen on paper,
    you'll see the missing keystone of the software empire.
    dan</pre>

    Peter, Fruhulda, thank you for your analysis and confirmation.
    PeterBreis0807 wrote:
    daniel
    I have noticed the same thing and have given up on it.
    It's a mess.
    I can't say it more politely .
    Let Apple know:
    -> https://bugreport.apple.com/
    <pre>--------
    As long as you'll see students making graphics with pen on paper,
    you'll see the missing keystone of the software empire.
    dan</pre>

  • How to Freeze Table/Column Header "without using additional scrollbars" ?

    hi people,
    I am hoping someone can help me here. I have a large table and would like to freeze the first row. Scrolling down the table "_*using the existing scrollbars*_" in the browser while ensuring the header rows are still visible (like Excel when you freeze panes). If you scroll to the right the header rows should stay frozen and not follow.
    I know there are other threads which talk about freezing table/column header, but my requirement is to have it "without using additional scrollbar".
    Thanks in advance,
    RAKESH

    Hi,
    there is no default key for this. You will have to code your own JavaScript for this. Also, I am not sure you want the column to be selected but a field in the column for the row you are in - correct ?
    Frank

  • How to achive table column header style (vertical text)?

    Hi,
    Can we show adf table column headers with vertical text, and with rotation. For eg. "Dept Id" lable should show up as similar to what the below HTML does:
    <html>
    <div style="float: left;
    position: relative;
    -moz-transform: rotate(1000deg); /* FF3.5+ */
    -o-transform: rotate(290deg); /* Opera 10.5 */
    -webkit-transform: rotate(290deg); /* Saf3.1+, Chrome */
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); /* IE6,IE7 */
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3); /* IE8 */">Dept Id</div></html>
    Edited by: pramod gujjeti on Sep 18, 2011 8:51 PM
    Edited by: pramod gujjeti on Sep 18, 2011 8:51 PM

    Hi,
    I've used the below style classes in CSS, but still not getting the accurate Column Header Vertical Text. Also, in IE browser column header text is shrinked vertically when headerClass styles are applied!
    Any help appreciated!
    .sch af|column::column-header-cell {
    vertical-align: bottom;
    padding-bottom: 10px;
    height: 80px;
    .schc af|column::column-header-cell-content {
    -moz-transform: rotate(270deg);
    /* FF3.5+ */
    filter: progid: DXImageTransform.Microsoft.BasicImage(rotation=3);
    /*IE6,IE7*/
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";
    /*IE8*/
    -o-transform: rotate(270deg);
    /*Opera 10.5*/
    -webkit-transform: rotate(270deg);
    /*Saf3.1+, Chrome*/
    position: relative;
    vertical-align: bottom;
    Edited by: pramod gujjeti on Sep 27, 2011 9:09 AM

  • How to hide table column based on country molga value

    Hi Experts,
    I am doing some enhancement in ess application. I want to hide table column based on country code i.e. Molga value.
    I want to hide coulm for only Japan country reset of them i need to be show those coulmn.
    Could you please provide me a sample code.
    Regards
    Chakri

    Hi Chakri,
    Your setting the table value that time you will get the Country Code.
    1.Create the attribute like Country_Column_Visible Data Type bind the com.sap.ide.webdynpro.uielementdefinitions.Visibility this value  you need to bind the table country column.
    2.In Table You need to check the country code Japan is available you need follow this below sample code.
    for(int i=0;i<tablesize;i++)
         tablesithValue=wdContext.nodeTable().getTablenode(i);
         if(null != tablesithValue.getcountrycode)
         if(tablesithValue.getcountrycode.equalsIgnoreCase("Japan"))
              wdContext.currentxxxxElement.setCountry_Column_Visible(WDVisibility.NONE);
         }else
              wdContext.currentxxxxElement.setCountry_Column_Visible(WDVisibility.VISIBLE);
    Use the above code you condition it will work.I hope it will help you.
    BR,
    Durga

  • [JS][CS2]How to distribute table column space evenly?

    Script gurus help.
    Is it possible to snap the table columns to the longest entry then the remaining space be distributed to each column evenly?

    Yes, it is. Both column snapping and distributing space have been dealt with here in the past on a number of occasions. Searching the forum should turn up several useful approaches.
    Peter

  • Ignoring Optional parameter during OLE method calling

    Hi guys,
    I got a problem:
    Application.Workbooks.OpenXML(Filename, Stylesheets, LoadOption) here's a defination from Microsoft help.
    Stylesheets and LoadOption are optional parameters.
    ABAP calling:
      CALL METHOD OF workbooks 'OpenXML'
        EXPORTING #1 = filename
                           #2 = '3'
                           #3 = 2 .
    How can ignore parameter #2(Stylesheets) in the calling statement? I found no documentation about  calling functions ignoring some optional parameters. Normaly there's posibility to explicitely define passing parameter, for example:
        Application.Workbooks.OpenXML _
            Filename:="customers.xml", _
            LoadOption:=xlXmlLoadImportToList
    With kind regards
    Long.

    UP

  • How to make a column a key using CALL METHOD cl_salv_table= factory

    hy guys
    i have gotten everything right but cannot make a column of my internal table a key column
    done this so far for columns:
      DATA: alv_columns_list    TYPE REF TO       cl_salv_columns_list.
      DATA: alv_column     TYPE REF TO cl_salv_column.
      alv_columns_list = alv_table->get_columns( ).
      alv_columns_list->set_optimize( 'X' ).
      alv_columns_list->SET_KEY_FIXATION( 'X' ).
        try.
        alv_column = alv_columns_list->get_column( 'BNAME' ).
        catch cx_salv_NOT_FOUND.
          message e000(zz) with 'Element not found'.
      endtry.
      alv_column->SET_SHORT_TEXT( 'User' ).
      alv_column->SET_MEDIUM_TEXT( 'User' ).
      alv_column->SET_LONG_TEXT( 'User' )
    found class cl_salv_column_list with method set_key
    but how do i get to it. if it is even the right one
    please help
    jan

    Yes CL_SALV_COLUMN_LIST is the right one to use.
    After the following code:
    alv_column = alv_columns_list->get_column( 'BNAME' ).
    Add the following:
    alv_column_list ?= alv_column.
    alv_column_list->set_key( ).
    Don't forget to add the data definition for alv_column_list.
    Hope this helps.
    Cheers,
    JB
    Edited by: Jonathan Bourne on Apr 4, 2008 3:01 PM

Maybe you are looking for