Reg: Refresh the view

How to refresh the webdynpro view dynamically.
For eg: In some action i need to refresh the whole view and it shoud get initialised on refreshing dynamically.

Hi,
onAction() invalidate the node.
Refresh View?
Re: How to refresh a View?
Regards,
ramesh
Edited by: Ramesh Babu V on Oct 22, 2008 6:40 PM
Edited by: Ramesh Babu V on Oct 22, 2008 6:42 PM

Similar Messages

  • Reg: Refreshing the Values saved in the View

    Hi,
    I'm having a popup window, it is getting opened when i click on link. in the popup view i'm entering some values and saving it and closing the popup.
    the problem is when click the link and open the popup again, i'm having the saved values there, but i need a refreshed page.
    How to do this, Help me out with detailed procedure
    Thanks & Regards,
    Suresh

    You would be saving the values in some context...
    why dont you invalidate the context node every time you open the view wdDoInit() method...
    In the pop window's wdDoInit() method....write following:
    wdContext.nodeXYZ().invalidate().
    where XYZ is the node with attribs containing the data.
    Regards
    Deepak

  • Refresh the view in webdynpro

    hi all,
    i created a button it has to refresh the current view..
    so is there any menthod to do that...  please assist this issue..
             regards
    M.K.Chaitanya

    Hi,
    In order to realize the function of  'Refresh' just like 'F5'.,I think you need do "nothing".
    You can do these:
        (1). Bind your button with one action named "Just_Refresh" in the layout.
        (2). In the action handler "Onaction Just_Refresh", you do nothing, that means, you do need code anything. Just space.
    Okay, it works well.
    Why?The reason is very simple.
    You know, WD is based on the "MVC" model. The UI elements in your view heve already been bound to Context.
    And, every action, the system will "refresh" the UI elements with the new value in the "Context".
    So, many time, we said: WebDynpro has one role which plays as  "Controller" in "MVC".
    Hope it can help a little.
    Glad to discuss with you.
    Best wishes.

  • The window is not refreshing the view in Firefox 5

    The content of the Firefox window is being frozen. Clicking on the Firefox tabs or on links inside the page, or simply scrolling the page is doing nothing. But if I switch to another program (with command+tab for example) and then return to Firefox, the view is being refreshed and displays the result of an action I made before switching the windows. But it continue to act this way on.
    Sometimes just leaving Firefox open for some time will resolve the issue by itself. But in most cases I have to close an reopen the program.
    It happens 5 to 20 times a day, depending on the usage.
    I'm using 2 windows with multiple tabs opened in both of them.
    When it happens I don't see any significant load on the system, nor Firefox takes any additional CPU usage.

    This is a follow up on the first question. I went out to the issuu website to see if it was a problem only with the document posted by me. Answer - No. Every document opened to full screen showed the same behavior. The document opens, but the full-page view stays up for only a second or two and then closes leaving you back at the referral page.

  • How does materialized view work when refresh the view vs create the view?

    I am using a materialized view, and I cant set it to fast refresh because some of the tables are from remote database which does not have materialized view log.
    When I create the materialized view, it took like 20 30 seconds. however when I was trying to refresh it. It took more than 2 3 hours. and total number of records are only around 460,000.
    I understand that when the view refreshes, it would take extra step like purge the table however I am not sure why it made so much difference in execution time perspective...
    Does the dbms_mview.refresh('MY_MATVIEW', 'C', atomic_refresh=>false) do the same exact insert as when I created the view?
    Could anyone please let me know how would this happen? Thanks,
    Code looks like as following
    create materialized view MY_MV1
    refresh force on demand
    start with to_date('20-02-2013 22:00:00', 'dd-mm-yyyy hh24:mi:ss') next trunc(sysdate)+1+22/24
    as
    ( SELECT Nvl(Cr.Sol_Chng_Num, ' ') AS Change_Request_Nbr,
           Nvl(Sr.Sr_Num, ' ') AS Service_Request_Nbr,
           Nvl(Sr.w_Org_Id, 0) AS Org_Id,
           Fcr.rowid,
           Cr.rowid,
           Bsr.rowid,
           Sr.rowid,
           SYSDATE
      FROM [email protected] Fcr
    INNER JOIN [email protected] Cr
        ON Fcr.w_Sol_Chng_Id = Cr.w_Sol_Chng_Id
    INNER JOIN [email protected] Bsr
        ON Fcr.w_Sol_Chng_Id = Bsr.w_Sol_Chng_Id
    INNER JOIN [email protected] Sr
        ON Sr.w_Srv_Rec_Id = Bsr.w_Srv_Rec_Id
    WHERE Sr.Sr_Num !='NS'
    );I have tried to use dbms_mview.refresh('MY_MATVIEW', 'C', atomic_refresh=>false) but it still took 141 mins to run... vs 159 mins without atomic_refresh=>false
    Edited by: 986006 on Feb 20, 2013 2:15 PM

    Welcome to the forum!
    Whenever you post provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION)
    >
    I am using a materialized view, and I cant set it to fast refresh because some of the tables are from remote database which does not have materialized view log.
    When I create the materialized view, it took like 20 30 seconds. however when I was trying to refresh it. It took more than 2 3 hours. and total number of records are only around 460,000.
    I understand that when the view refreshes, it would take extra step like purge the table however I am not sure why it made so much difference in execution time perspective...
    Does the dbms_mview.refresh('MY_MATVIEW', 'C', atomic_refresh=>false) do the same exact insert as when I created the view?
    >
    What Oracle version are you using? The 'atomic_refresh' parameter default was changed to TRUE starting with 10g.
    See the PL/SQL Packages and Types doc
    >
    atomic_refresh
    If this parameter is set to true, then the list of materialized views is refreshed in a single transaction. All of the refreshed materialized views are updated to a single point in time. If the refresh fails for any of the materialized views, none of the materialized views are updated.
    If this parameter is set to false, then each of the materialized views is refreshed in a separate transaction.
    >
    What that means is that if the value is TRUE Oracle uses a DELETE to remove the existing rows. If the value is FALSE then Oracle uses TRUNCATE.
    If you really are using the FALSE setting you should not be seeing that much of a time difference between creating the MV and a complete refresh so something else must be going on.

  • Reg:Refreshing the Screen

    Hi Friends,
    In my Application i have five Screens.
    Each screen has different functionality.
    My requirement is such that after i Execute the function module my Screen should be refreshed with the updated values.
    Is this possible in Web-Dynpro(Java) Scenario?
    I am using SAP as my  R/3 .
    For Clarity let me give an example:
    I have two Tables.
    My functionality is to Copy one row selected in a Table to the Other Table.
    I am able to fulfill the functionality,now when i go back to the previous screen and come back to this screen the Table is getting Updated.
    My requirement is such that after completing the task itself it should show me the Updated one.
    Please help me out.
    Thanks and regards,
    Chandrashekar.

    Hi Chandrashekhar,
    You can use view.refresh();
    But this can be used only in wdDoModifyView method, where the current View is passed as a parameter.
    Do not directly use it in the method, as it is called for each user interaction. Using appropriate combination of conditions in modifyView you can do so.
    Regards,
    Alka.

  • Keep the record in the view object if deletion failed.

    I have a view object which is based on the entity object, when I am trying to delete a row it failed because it has a child record associate with. I know the row is not delete from the database, but the record is deleted fromt the view.
    How to keep the record in the View object if delete failed?

    Hi,
    the row is not delete from the database,refresh the view . re-execute query and the view show the row

  • Add a button in the view created by wizard

    Hi experts,
    Please, Iu2019ve created a view table by wizard in the enhanced bsp application,
    Now I need to add a button in this view to refresh the view table content.
    Anyone knows how I can do it?
    Thanks a lot.

    You can write code to put your button under the IMPL class of your view in the method "DO_PREPARE_OUTPUT" method.
    Sample code is pasted below.
    IF gt_button IS INITIAL.
        wa_button-type     = cl_thtmlb_util=>gc_icon_new.
        wa_button-text     = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT/NEW' ).
        wa_button-on_click = 'ON_CREATE'.
        wa_button-enabled = 'X'.
        APPEND wa_button TO gt_button.
        CLEAR wa_button.
      ENDIF.
    Also, please create an event handler "ON_CREATE" and code for the refresh in that method.
    Rg,
    Harshit

  • Retrieving the view object associated to an entity

    Hi,
    Is there any way to retrieve the ViewObjectImpl or the ViewRowImpl that holds the instance of a particular EntityImpl.
    I'm doing some operations an EntityImpl instance, and I need to refresh the view that holds that instance. How can I retrieve it ?

    Dwarven,
    There may be many View Objects associated with a given entity object. You can determine programatically which EO's are referred to by a given VO, but not to my knowledge, the other way around.
    John

  • Refreshing the Data from a embed view in a view container

    Hi everybody
    I would like to know how can I do to refresh all data from a View with a view container the problem is:
    that I have a window that has a view at the same time this has a view container.  The Main view brings the data of editable elements when I select one element of the main view the view container brings a list for that element (dependencies) but only the first time a choose an element loads the correct data, when I choose another one it brings the same old data and doesn't make the call for the wdDoInit() method.
    The question is:
    How do I force the view to refresh all the data or call again the wdDoInit() method?
    Thank you for your help

    Aida,
    Lets say you have two components C1 and C2 and you want method from C1 to be available in C2 then follow these steps:-
    1) Goto the Interface Controller of C1 and create a method there lets say doSomething
    2) Then goto C2. There you can see Used Web Dynpro Components --> Right click Add Used Component --> Give some name say C1Comp --> Click browse and select C1 --> Click Finish.
    3) Next goto Component Controller of C2 --> Properties --> Click Add and check if C1 is added. If not then select the checkbox and select OK.
    4) Now goto Implementation tab of C2 and lets say wdDoInit you can write following code:-
    wdThis.wdGetC1CompInterface().doSomething();
    Chintan

  • How can I fast refresh the  materialized view !!

    I created a MV base on some tables in order to improve the querey speed.
    but the mv I have created falied to refresh fast.
    because there are two same table in the from clause:
    jcdm jc1,jcdm jc2
    create materialized view temp_mv
    nologging
    pctfree 0
    storage (initial 2048k next 2048k pctincrease 0)
    parallel
    build immediate
    refresh force
    on demand
    as
    select
    TAB_GSHX.rowid hx_rid,
    TAB_GSHD.rowid hd_rid ,
    JC1.rowid jc1_rid ,
    JC2.rowid jc2_rid ,
    YSHD_ID     HXID,          
    JC1.JCDM     QFD,     
    JC2.JCDM     JLD     
    FROM
    TAB_GSHX,
    TAB_GSHD,
    jCDM JC1,
    JCDM JC2
    WHERE
    YSHD_ID=YSHX_ID
    AND YSHD_QFD=JC1.JBJC_ID
    AND YSHD_JLD=JC2.JBJC_ID
    AND TO_CHAR(YSHX_time,'YYYYMMDD')='20030101'
    the column msgtxt of the table MV_CAPABILITIES_TABLE is :
    "the multiple instances of the same table or view" and " one or more joins present in mv".
    How can I succeed in fast refresh the above temp_mv!!!
    thanks.

    lianjun,
    When you are using Oracle9i there is a procedure which can help you setup the materialized view. If some option isn't working it gives you hint why it doesn't work.
    The procedure is dbms_mview.explain_mview.
    Take a look at the documentation how to use it. (In the Oracle9i DWH guide the package is explained.)
    Hope this helps
    With kind regards,
    Bas Roelands

  • Refreshing the screen using a View Object

    Hi Experts,
    Here is my requirement.
    I have a View Object which queries the database and displays the results.
    So I want to my VO to be executed when I click on Refresh button.
    How can I achieve this?
    Is there any example for this?
    Thanks in advance

    I think the mistake u did is populating the collection/entity of your custom view in some other place rather than on_new_focus method of the context class. So when u first time come to the view, it is calling your custom code and populating your custom view. But when u click new, it is not executing that method and it is not refreshing. on_new_focus is called everytime
    you change to new or open in edit mode..that method should be declared as event handler method..
    Move your code to the on_new_focus method of the particular context node. see standard codes how that is created and used...
    e.g. you can see the component/view BT112H_SC/Details, context node BTPARTNERSET and method CREATE_BTPARTNERSET of CL_BT112H_S_DETAILS_CTXT of how it is used.

  • Refreshing the Data Source View in Analysis Services

    I have added columns to the SQL Database table that is used as a dimension in an Analysis Services Cube.  The new columns will be used as additional Property Fields for the dimension.  When I attempted to refresh the Data Source view so that the additional columns are present, I am given the following error:
    System.Data
    Property not accessible because 'Parent Columns and Child Columns don't have type-matching columns'
    I have done nothing to the columns used for the parent of child and the error message provides nothing to gon on. Does anyone have any ideas on this?
    Gary

    Olga,
    Thanks for your response.  I will try and answer your questions
    1) I have not tried removing the columns yet.  I will try that this afternoon but have limited hope.  The two columns I added are simple text columns that will be used as attributes in the dimension.  I have made no change to the parent or child columns.
    2) The table I modified is the source table for a parent-child dimension.
    3) The reference to the "check list" does not take me to any kind of check list.
    4) The parent-child dimensions I am trying to modify have been in use for months and the parent and child columns do have the dame data types.
    5) I have also check the data types between the dimension table and the fact table.  they use the same data types (small int).
    6) I have not made a collection for the parent key, it is a single column. The remainder of your last paragraph is not clear to me. Can you give me an example.
    I am fairly inexperienced with Analysis Services, please talk slow and use small words  :-)
    Thanks again for your help!
    Gary

  • Reg:package code to refresh materialized views

    i am new to pl/sql packages and procedures.i want it to execute for running mappings in informatica which takes 0 and gives 1 when executed successfully
    create or replace PACKAGE BODY pkg_refresh_mv as
    procedure prc_mv (p_mv_name varchar2) is
    begin
    dbms_mview.refresh (p_mv_name);
    end prc_mv;
    procedure refresh_all_mv (proc_response IN OUT number) is
    begin
    dbms_mview.refresh('materialized view','C');
    dbms_mview.refresh('materialized view','C');
    proc_response := 1;
    exception
    when others then
    proc_response := 0;
    end refresh_all_mv ;
    end pkg_refresh_mv;
    when i execute this code i get the following errors
    PLS-00201: identifier 'PKG_REFRESH_MV' must be declared
    PLS-00304: cannot compile body of 'PKG_REFRESH_MV' without its specification
    what needs to be changed
    thanks

    try this one :
    CREATE OR REPLACE PACKAGE pkg_refresh_mv
    AS
       PROCEDURE prc_mv (p_mv_name VARCHAR2);  
       PROCEDURE refresh_all_mv (proc_response IN OUT NUMBER);
    END pkg_refresh_mv;
    CREATE OR REPLACE PACKAGE BODY pkg_refresh_mv
    AS
       PROCEDURE prc_mv (p_mv_name VARCHAR2)
       IS
       BEGIN
          dbms_mview.refresh (p_mv_name);
       END prc_mv;
       PROCEDURE refresh_all_mv (proc_response IN OUT NUMBER)
       IS
       BEGIN
          dbms_mview.refresh ('materialized view', 'C');
          dbms_mview.refresh ('materialized view', 'C');
          proc_response := 1;
       EXCEPTION
          WHEN OTHERS
          THEN
             proc_response := 0;
       END refresh_all_mv;
    END pkg_refresh_mv;
    /

  • Refreshing the fields in a view

    Hi Gurus,
    I have a requirement of refreshing the values of fields in custom assignment block when clicked on NEW tab in  WEB UI.
    If I open an existing campaign and then i click in NEW, then the values of custom fields are not getting refreshed. these fields are created using Value nodes and the assignment block is custom one.
    Also few of the fields are made Display only as per business requirement. So these values are getting stored by default for the new entry.
    Please help me through this.
    Thanks,
    Amey

    I think the mistake u did is populating the collection/entity of your custom view in some other place rather than on_new_focus method of the context class. So when u first time come to the view, it is calling your custom code and populating your custom view. But when u click new, it is not executing that method and it is not refreshing. on_new_focus is called everytime
    you change to new or open in edit mode..that method should be declared as event handler method..
    Move your code to the on_new_focus method of the particular context node. see standard codes how that is created and used...
    e.g. you can see the component/view BT112H_SC/Details, context node BTPARTNERSET and method CREATE_BTPARTNERSET of CL_BT112H_S_DETAILS_CTXT of how it is used.

Maybe you are looking for