How to refresh a view on click of a link in UI5

Hi,
I have created an SAPUI5 application with 1 view (main.view.js) in  Eclipse. I have a link in the view along with some input fields and buttons, on click of the link, I need to refresh view (main.view.js) . Can some one please help me on this?
Regards,
Lakshmi

Hi Dennis,
     Try this link, it may give a tip
               http://stackoverflow.com/questions/24528806/how-to-reload-a-specific-control-in-sapui5
Regards
Jagadish

Similar Messages

  • How to refresh materialized view by trigger

    hi,
    im having a problem in refreshing materialized view through a trigger.
    CREATE OR REPLACE TRIGGER L_TRG_MARC_TEST
    BEFORE DELETE OR INSERT OR UPDATE ON MARC_BOOK_B_ENG
    BEGIN
    DBMS_MVIEW.REFRESH('TITLE_ENG_MV','C','',TRUE,FALSE,0,0,0,TRUE);
    END;
    Trigger created.
    SQL> DELETE FROM MARC_BOOK_B_ENG;
    DELETE FROM MARC_BOOK_B_ENG
    ERROR at line 1:
    ORA-04092: cannot COMMIT in a trigger
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 849
    ORA-06512: at "SYS.DBMS_SNAPSHOT", line 832
    ORA-06512: at "LIBQAL1.L_TRG_MARC_TEST", line 2
    ORA-04088: error during execution of trigger 'LIBQAL1.L_TRG_MARC_TEST'
    plz tell me how to refresh materialized view thru trigger,,and what is wrong in above mentioned situation.
    Regards

    DBMS_MVIEW.REFRESH implicitly commits. COMMIT is not permitted in triggers, as you can see, unless you use AUTONOMOUS_TRANSACTION.
    Try
    CREATE OR REPLACE TRIGGER L_TRG_MARC_TEST
    BEFORE DELETE OR INSERT OR UPDATE ON MARC_BOOK_B_ENG
    DECLARE
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    DBMS_MVIEW.REFRESH('TITLE_ENG_MV','C','',TRUE,FALSE,0,0,0,TRUE);
    END;

  • How to Refresh Materialized views

    Hi All,
    How ro refresh Mv views manualy.could you pls provide definiation for refreshing the MV's manually.
    Thanks for your help.

    When creating the materialized view, you have the option of specifying whether the refresh occurs manually (ON DEMAND) or automatically (ON COMMIT, DBMS_JOB).
    You can use something like:
    EXECUTE DBMS_MVIEW.REFRESH('emp_dept_sum','F'); -- 'F' for fast refresh, 'C' for complete refresh
    For automatic fast refresh:
    CREATE MATERIALIZED VIEW emp_mv
    ON PREBUILT TABLE
    REFRESH FAST ON COMMIT
    ENABLE QUERY REWRITE
      AS SELECT empno, ename, dname, loc,
             e.rowid emp_rowid,
             d.rowid dep_rowid
        FROM emp e, dept d
       WHERE e.deptno = d.deptno;

  • How to refresh one View instance from another View Instance

    Hi ADF Experts,
    I have a requirement in which I have created two View Objects based on a single entity object.
    I am using a first VO to display data in a table and the second to update data to database.
    The commit will happen through a Global save button.
    But before the global save, I need to show the data using the First VO, which is inserted using the second VO.
    Can anyone help me on how to refresh the first VO to display the data.
    Thanks in Advance
    Mohan
    Edited by: 946185 on Mar 29, 2013 4:24 AM

    Hi Dileep,
    The first VO which I mentioned is based on two EOs and has a lot of calculated values.
    And to add to my worries there is a parent child relationship between the two EO's, where in parent is updated with one row and child with multiple rows.
    The multiple rows updation to the child should happen with a shuttle component in a different popup.
    So I am inserting everything programatically in the java code, where I need two use different VO to update parent and different VOs for the shuttle.
    I could get the data, if it is committed, but to add to the complexity, there is a global save button which should commit the data.
    So I want to get the data based on the EO update before commit to the database.
    Thanks
    Mohan

  • How to refresh a view/viewset/window manually

    Hi Experts,
    I have a applcation that has a viewset containing 5 views.
    From one of these view I click on a button and it opens a Window as popup.
    After closing the popup, I want to disable the button so that popup cannot be opened again and activate SAVE button.
    Now here is the problem. I have all the coding in my wdDoModifyView, but its not triggered.
    I know that we cannot call wdDoModify view manually.
    So is there any workaround by which the complete window/viewset is refreshed on closing the popup, thus triggering the wdDoModifyView.
    Thanks a lot for the suggestions in advance.
    Regards,
    Shubham

    Hi Shubham,
    Can't you make use of events to achieve the same? Create an event in your component controller, subscribe to that in the parent view, write all these code in that event handler and then trigger this event when you close the pop-up window. I hope this would serve your purpose.
    Quoting from one of Valery's answer - "wdDoModifyView is invoked only for application start time & action round-trips but not for internal WD round-trips (as an example: selection in table that has no onLeadSelection action handler causes request/response but wdDoModifyView is not invoked)".
    (Re: wdDoModifyView Mthood)
    Though this might help you too.
    Best Regards,
    Nibu.
    Message was edited by: Nibu Wilson

  • How to refresh/restore VIEW STATE of a JSF component?   urgent help needed!

    AOA guys,
    I am using Jboss 4.0.5, JSF 1.1.2 and DOJO framework to handle ajax request.
    In my project, I am using A4J hidden fields to store values associated with an html anchor tag and use these values to update <h:outputText> dynamically (an ajax request).
    But when i click that anchor link a more than 15 times the message appears as a prompt that view state couldn't be restored - reload page.
    I think it is because that in JSF 1.1 default value of
    om.sun.faces.NUMBER_OF_VIEWS_IN_LOGICAL_VIEW_IN_SESSION is 15, So i can't store more than 15 View Id of JSF components.
    My Question is:
    _Without shifting to JSF1.2, how can i handle this restore view problem in my Java Code using phase listener or some other way so that if this view state problem will occur it atomatically restore the view ids?_
    Please reply me soon?

    avoid multi post
    http://forum.java.sun.com/thread.jspa?threadID=5229804

  • How to Refresh materialized view

    Hi,
    I am using 11G owb. I would like to know if any one can help me know if there is any easy to Refresh materialized view . I will be using this materialized view to source data from my maps. this map will be part of a process flow. i would like to refresh the materialized view before every run of the map in process flow.
    Thanks,
    Ash.
    Edited by: user591315 on Aug 6, 2009 1:26 PM

    A couple of approaches;
    * refresh the MV from a procedure in a pre map process operator (its an operator in a mapping), or
    * call the procedure from a process flow activity before the map
    Cheers
    David

  • HOw to maximize a portlet on click of a link.

    Hi,
    Can some one help me as to how to maximize a portlet on click of a button?
    I am calling Page A.jsp to Page B.jsp.
    in the .jpf file, in the method which is being used to render Page B.jsp contains
    the below mentioned code. Do I have to do something extra or this much code is
    enough?
    //maximize portlet view
    PortletBackingContext context = PortletBackingContext.getPortletBackingContext(super.getRequest());
    context.setupStateChangeEvent(WindowCapabilities.MAXIMIZED.getName());
    Regards
    Rakesh

    I think you may have to set the 'Can Maximize' property on the portlet
    to 'true'.
    JP
    Subbu Allamaraju wrote:
    That should be enough.
    Subbu
    Rakesh wrote:
    Hi,
    Can some one help me as to how to maximize a portlet on click of a
    button? I am calling Page A.jsp to Page B.jsp.
    in the .jpf file, in the method which is being used to render Page
    B.jsp contains
    the below mentioned code. Do I have to do something extra or this much
    code is
    enough?
    //maximize portlet view
    PortletBackingContext context =
    PortletBackingContext.getPortletBackingContext(super.getRequest());
    context.setupStateChangeEvent(WindowCapabilities.MAXIMIZED.getName());
    Regards
    Rakesh

  • How to Get the value when clicking on the link

    I had a problem with when clicking on the link.
    I need get the link value to the controller when clicking on the link.
    I am displaying the database columns in jsp using repeater in links.
    I am displaying the data like this:
    RED
    BLUE
    GREEN
    these are three links.when clicking on the link RED. RED should go to the controller.
    After getting RED to the controller i will get the RED value from the database.

    my requirement is like that only
    I have just given the example of emp and dept
    emp(empno,zone_group_id,zone_id,deptno,ename,emp_p_ind,last_update_datetime);
    dept_emp(empno,dept_no,loc,dname,sal_emp,grade,last_update_datetime);
    CREATE OR REPLACE VIEW emp_zone AS
    SELECT e.empno,
          (select zone_group_id from price_zone_group where rownum = 1) zone_group_id,
           d.loc zone_id,    
           d.grade,  
           d.last_update_datetime,
      FROM dept_emp d
          emp e
    WHERE d.empno=e.empno
       AND e.emp_p_ind = 'Y'
      WITH READ ONLY;
    Now
    my requirement is to get the data of emp_zone view and needs to store those data into some other temp table
    if any of the above base table got updated deleted or inserted then the view last_updatetime also will get updated but problem is why im not using base table
    direct because it is having huge data and it performance issue .i have to get the value on the basis of view only and using some logic

  • How to Open GUI Transaction when clicking in Hyper Link

    Hello All,
    I want to open GUI Transaction  when user will click on Hyper Link created in a particular column in a table view. For that I have created  Transaction Launcher ID using Transaction Launcher  Wizard. Then what will be the next step, i'm not getting. Can anybody help me out on this?
    Thanks in advance,
    Madhusudan

    Hi,
    Here is the sample code:
    DATA: lr_navigation TYPE REF TO if_crm_ui_navigation_service.
    lr_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
    CHECK lr_navigation IS BOUND.
    lr_navigation->navigate( iv_link_id = 'ZLINKID' ).
    -ASB

  • How to open a PDF on click of a link

    Hi All,
    I have a requirement to open a PDF on click of a link on a PG.
    Should I use the Destinaion URL property???
    Where should the PDF be placed on Server???
    like eg. for .gif images we use ........java/oracle/apps/media on server
    Thanks
    Sombit.

    Generally one should use web exposed folders to save custom files like anything under $OA_HTML, can be directly opened as a link in browser. However, in cases the file is saved in a particular location in apllication unix server ,and you have full path to it, you can refer to blog entry to give user the download of file option :
    http://mukx.blogspot.com/2010/01/giving-download-option-to-user-for-file.html
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to refresh Report viewer web part programatically using C# in SharePoint?

    I have used Report viewer web part in SharePoint page, I want to refresh it programmatically. How can I achieve this? I have tried approach mentioned on
    http://nicholasfaiello.wordpress.com/2012/12/28/report-viewer-web-part-programmatically-refresh-a-report/ site, but it is not working.

    Hi,
    How about using JavaScript to perform page reloaded or just trigger the click event of the refresh button with the Report View Web Part? It could be seen as a kind of workaround
    for auto refreshing.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/b0b6d11d-07c8-4b4d-bd69-ec60e85e0678/sharepoint-report-viewer-web-part-parameter-issue-not-refreshing?forum=sharepointgeneralprevious
    http://richmintzbi.wordpress.com/2011/06/21/auto-refresh-ssrs-reports-part-ii/
    Best regards
    Patrick Liang
    TechNet Community Support

  • Refreshing First View on click of button in second view

    Dear All,
    I have a view in whcih I have a table to display the employee requests.On lead select of table I will display another view
    in which manager can approve or reject the employee request.
    After approving the request if manager clciks on back buton again I am displaying the first view using outbound plug.Here I need not to show the approved or rejected request in the table.
    But on click of back button the first view is not getting refreshed it is still showing the approved request in the table.
    If I refresh using F5 the approved request is disapearing.
    Please help in refresing the screen on clcik of back button in second screen.
    Thanks,
    Reddy.

    when you click on the back button , the first view still has the old values....
    when you press F5, the logic which you have used to display the data in view one, gets triggered and that is the reason the approved request disappears...
    on click of the back button, run the logic which you have used to display the data in view 1, place the logic in component controller so that you can use it globally. when pressed back, trigger the global method and it witll bind the data which doesnt have approved request

  • How to show entire TOC when clicking a CSH link

    I am maintaining 2 separate help projects for 2 separate
    applications. Both use map files and ids to open csh topics. There
    is a main help link in the header of the application that is
    supposed to open the entire help file, including the table of
    contents, with the focus on the first page of the help.
    In the one application, I have the link in the header going
    to the map id for the first page of the help, and the entire help
    file opens, including the TOC. In the other application, I have the
    link in the header going to the map id for the second page of the
    help (the other help project), and instead of the entire help
    opening, I just get the csh page I linked to without the TOC. I
    need the header link to open the entire help. Any suggestions? I
    know that one project is looking for the first page of the help and
    the other project is looking for the second page, but does that
    really make a difference? I remember having this project link to
    the first page before, and the entire help didn't open then either.
    I don't know why it would function differently for the different
    apps/projects, as they are set up identically.
    I hope this makes sense.

    We have had this exact same issue, the TOC sometimes not
    opening when WebHelp is launched from a CSH link. The behavior is
    inconsistent, as you've indicated.
    I've searched and found no solutions, and Adobe appears to
    not recognize it as an issue.
    Frankly, this and a number of other issues we're having are
    leading me to lean towards dropping RH altogether. It is simply too
    buggy.

  • Regarding the creation of dynamic view by clicking on a tree.

    Hi all:
          There are two parts on the window. the left part is a tree with three  tree nodes, by clicking on tree nodes, the other is an area to show the business content.
         for example, three tree nodes are respectively "input customer infor", "change customer infor", "view customer infor".
        the initial view is input customer infor, I know how to create the view initially in method init or wddomodifyview, but when I click tree node like "change customer infor", how create the view , or how to refresh the view , that is to say, to delete old elements in the view of " input customer infor".
        can you please give me a hint?
       Thank you very much !

    Hello,
    be wary of always creating the view and then just assigning the visbility of the given view container. Although this is quite simple, it means that the WD events are still called for the view - especially where tree might be built, the associated logic could be quite intensive. It is better to only call this logic when needed.
    Embedding the views in a single view container - and dynamically switching the assignment would ensure only the selected view would be called.
    I would strongly advocate the FPM to do some of this - but unfortunately it doesn't (yet) have a layout that would easily support your two pane view (if you really need this). However it does have a guided activity floorplane (GAF) which is the standard for this sort of select,  edit, save, confirm sort of work - if you want your users to have a similar experience to the rest of SAP's delivered apps, it would certainly be worth considering.
    good luck,
    Chris

Maybe you are looking for