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

Similar Messages

  • Iframe in web dynpro refreshed automatically when clicking on button

    Hello,
    I have called standard SAP T-code using webgui in web dynpro component insdie iframe.
    whenever I clicked on button. Screen inside iframe refreshed automatically.
    Consider tcode having multiple screen. If I clicked on button, iframe getting refreshed and return to first screen of the tcode.
    Please do the needful
    Thanks & Regards
    Kishan Rana

    You are using either the built-in Mozilla PDF Viewer or the built-in Chrome PDF VIewer and have a LiveCycle Designer XFA form being viewed.  You need to configure the web browser accordingly.
    XFA-based PDF forms on Mozilla Firefox and Google Chrome
    There are are probably registry entries available for setting this up in the HKEY_CURRENT_USER registry hive for both Mozilla Firefox and Google Chrome, but I don't know them and have not seen them posted on any vendor site.  Then again, I haven't looked either.   

  • Thanks For Your Support in advance i want to know that when I open a website that time view print option and when I click close button then page also new window page also close. I want to copy it how i can stop this print option?

    WHEN I OPEN A URL THAT TIME WITH PAGE OPEN SHOWS PRINT OPTION AND WHEN I CLICK CLOSE BUTTON OF PRINT OPTION THAT TIME NEW WINDOW BUTTON IS CLOSED. I WANT TO CLOSE ONLY PRINT OPTION. PLEASE HELP ME...............THANKS

    Many sites which offer specific "print formatted" pages do that: they assume that once you have finished with the print dialog you no longer want the page itself. So for your convenience they close it. Not so convenient for you, since you still want to view the page.
    I'm not aware of an easy solution for this. I can think of a couple different approaches.
    First, maybe there's an add-on to solve this? That would be easiest.
    Second, maybe there's a userscript to solve this?
    The Greasemonkey add-on runs userscripts which you can copy or download. Be careful to install only long-establish and trusted scripts. (''Is there a site that has this bad behavior that I can view without logging in? I will test one of my existing scripts to see whether it helps.'')
    Third, Firefox has an old system for restricting site permissions in a custom text file in your profile folder (named user.js). Editing this file is a bit advanced, and I haven't been able to test it, but the system works along these lines:
    <br>// Define a policy name for window.close permission
    // (assumes you don't have this pref already)
    user_pref("capability.policy.policynames", "nowindowclose");
    // Define policy: disable sites from using window.close
    // in their scripts
    user_pref("capability.policy.nowindowclose.Window.close", "noAccess");
    // List of sites subject to this policy
    user_pref("capability.policy.nowindowclose.sites", "firstbadsite.com secondbadsite.com");
    Again, I haven't tested that and recommend looking into add-ons first.

  • In TABControl On Click of button i want to open view linked to other TABITE

    In a TABControl view
    On the first tab i have HOME view with a button
    and on second tab i have SEARCHRESULT view i.e a tableview
    on click of button on HOME view i want to open SEARCHRESULT view???
    How to call a View Linked to other TABITEM???
    Thanku

    Uninstall the Ask toolbar and it should work again. There is a compatibility issue with the Ask toolbar and Firefox that prevents new tabs from being opened.
    There are a couple of places to check for the Ask toolbar:
    * Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    * Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons

  • HT5361 how do I keep the classic look ? I go to mail preferences and click the button but when I launch mail again it is still in the list view which I hate. Anyone know ?

    how do I keep the classic look ? I go to mail preferences and click the button but when I launch mail again it is still in the list view which I hate. Anyone know ?

    The first thing to try if a setting does not "keep" is a PRAM reset.
    http://support.apple.com/kb/ht1379
    Change the setting to what you want, then PRAM reset on restart:
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • Show view container elements on click of button in view

    Hi All,
    I have a view ,in that view I have 1 View Container UI Element.In ViewContainer I have a Table.
    I have a button in my view.onclick of that button I want to open a view Container's table.
    Could anyone please suggest me what are all the steps i have to follow for this?
    Regards,
    Karthick

    Hello Karthick,
    1) Create custom controller.
    2) Create attribute with type Visibility in custom controller.
    3) Add custom controller in "required controllers" for embedded view and for container view.
    4) Create attribute with type Visibility in embedded view and container view.
    5) Map visibility attribute from custom controller to container view and from custom controller to embedded view.
    6) in container view in wdDoInit put wdContext.currentContextElement().setVisible(WDVisibility.VISIBLE);
    7) In action handler for button put something like:
         final int ordinal = wdContext.currentContextElement().getVisible().ordinal();
        wdContext.currentContextElement().setVisible(WDVisibility.valueOf(ordinal%2 + 1));
    While clicking on button table would be shown or hidden.
    Best regards, Maksim Rashchynski.

  • Movie contains buttons with keys assigned. Both work. If you click a button first, keys wont work.

    I created a project with a menu of 7 buttons. The client has the option to click the buttons to view a different scene or use keyboard events. Each scene has been assigned a number when using the keyboard. The mouse and keyboard events function successfully. But I noticed if I start the movie by using the mouse, then the keyboard events will not work any more. One of the keys is important since it is the only way to play frame to frame. Anybody have a clue why this happens?It is as if though I have to tell the client,  don't click the buttons or the keys won't work.
    Below are actionscripts for the movie. I added actionscript for each scene for the keyboard events. In the menu, the movieclip contains the actionscript for the mouse events.
    Scene 1:
    import flash.events.KeyboardEvent:
    stage.addEventListener(KeyboardEvent.KEY_UP, onKeyEvent1);
    function onKeyEvent1(e:KeyboardEvent):void {
    var character:String=String.fromCharCode(e.charCode);
    if (e.keyCode==72) {
      gotoAndStop(1,"master");
    if (e.charCode==49) {
      gotoAndPlay(1,"Distributor");
    if (e.charCode==50) {
      gotoAndPlay(1,"Mirka");
    if (e.charCode==51) {
      gotoAndPlay(1,"Farm");
    Menu Movieclips:
    master.addEventListener(MouseEvent.CLICK, mouseDownHandler1);
    function mouseDownHandler1(event:MouseEvent):void {
    MovieClip(root).gotoAndPlay(1,"master");
    distribute.addEventListener(MouseEvent.CLICK, mouseDownHandler2);
    function mouseDownHandler2(event:MouseEvent):void {
    MovieClip(root).gotoAndPlay(1,"Distributor");
    health.addEventListener(MouseEvent.CLICK, mouseDownHandler3);
    function mouseDownHandler3(event:MouseEvent):void {
    MovieClip(root).gotoAndPlay(1,"Mirka");
    mirka.addEventListener(MouseEvent.CLICK, mouseDownHandler4);
    function mouseDownHandler4(event:MouseEvent):void {
    MovieClip(root).gotoAndPlay(1,"Farm");
    transaction.addEventListener(MouseEvent.CLICK, mouseDownHandler5);
    function mouseDownHandler5(event:MouseEvent):void {
    MovieClip(root).gotoAndPlay(1,"Check2");
    transaction2.addEventListener(MouseEvent.CLICK, mouseDownHandler6);
    function mouseDownHandler6(event:MouseEvent):void {
    MovieClip(root).gotoAndPlay(1,"Check3");
    sceneA.addEventListener(MouseEvent.CLICK, mouseDownHandler7);
    function mouseDownHandler7(e:MouseEvent):void {
    MovieClip(root).gotoAndPlay(1,"Scene2");
    sceneB.addEventListener(MouseEvent.CLICK, mouseDownHandler8);
    function mouseDownHandler8(e:MouseEvent):void {
    MovieClip(root).gotoAndPlay(1,"Scene1");

    In addition to my question, I'm opening the SWF file in a utility program IrfanView which the client uses for offsite purposes. Therefore, the SWF works fine in Flashplayer 10. I can crossover using mouse and keyboard events. But in IrfanView, the program will not allow me to crossover mouse and keyboard events.

  • Is it possible to have multiple pause the require view to click "continue" button to proceed?

    Is it possible to have multiple pauses the require view to click "continue" button to proceed?

    1. Turn the video into a symbol.
    2. Set stage, symbol and video to not autoplay.
    3. Set play in the video playback at the start of the video timeline.
    4. Set pause in the video playback at the prefered time on symbol timeline.
    Once I convert it to a symbol , the pause funtion is not showing on playback.
    5. Zoom in as much as you can on symbol timeline and set trigger "stop all" for the symbol right after the pause playback marking.
    6. Set play in the video playback right after the "stop all trigger" marking.
    7. Create button with action play symbol.
    You can now play a video which will stop at a pre set pause, and make it countinue to run by clicking the play button again.

  • HT3205 I have 7 lights on my macbook. What does it mean when the first 5 light up when I click the button?

    I have 7 lights on my macbook. What does it mean when the first 5 light up when I click the button?

    Run an Apple Hardware Test (extended version):
    http://support.apple.com/kb/ht1509
    Ciao.

  • Refresh ALV View when action triggered using button

    Hello Friends,
    I am getting few records for one year by calling function module from wdoinit method (sy-datum - 360) as default records. I want to also give selection screen if user wants to limit to "Last 30 Days" or "Last 60 Days". (this they can select from drop down list in selection screen). So, to do this I want to refresh first the initial records that I get.
    Below is the code in WD but, everytime I select the days from dropdown list it does not refresh the previous records and duplicates the old records.
           refresh zsearch. clear zsearch.
    data ln_node type ref to if_wd_context_node.
    ln_node = wd_context->get_child_node( 'MY_PO_INV' ).
    ln_node->invalidate( ).
    call function 'ZEBP_MY_PO_INV_SEARCH'
       exporting
        bldat =                          lv_zpostingdate
        bldat_to =                       lv_zpostingdate_to
        bukrs =                          lv_zcompany
        usnam =                          lv_zusername
        zdays =                          lv_zdays
        change =                         lv_change
       tables
        invsrch        = zsearch.
    sort zsearch by zcompany.
    data lo_nd_get_po_inv type ref to if_wd_context_node.
      lo_nd_get_po_inv = wd_context->get_child_node( name = wd_this->wdctx_my_po_inv ).
    call method lo_nd_get_po_inv->bind_table
      exporting
        new_items            = zsearch.
    Thks & Rgds,
    Hemal

    Hi,
    Your WD code looks ok.
    Check population of results table in FM 'ZEBP_MY_PO_INV_SEARCH'.
    Cheers
    Nitesh

  • Old topic: Refresh when user click back button

    Yes yes, i know, this is old topic, which already discussed thoroughly in the forum,
    But, pls read my question....
    i try this:
    res.setHeader("Cache-Control", "no-cache");
    res.setHeader("Pragma", "no-cache");
    res.setDateHeader("max-age",0);
    res.setDateHeader("Expires",0);
    res.addHeader("Cache-Control", "no-store");
    However, when i forward to a page, then click back button to the previous page, which have the code above, however, the page is still the old one, the page was not reloaded from server
    Any suggestion? 1:57 am, my local time.......

    I just use:
    response.setHeader("Pragma","no-cache");
    response.setHeader("Cache-Control","no-store");
    response.setDateHeader("Expires",0);I have tried this, still the same...what can i do? Any more workable solution?

  • dvt:hierarchyViewer make error popup close without clicking ok button

    Hi All,
    I am using Jdev 11.1.1.3.0
    In my page I have 2 region, one contains a form which built from a EO Based VO and a commit button. Another region have a <dvt:hierarchyViewer> which is built from another VO to display some hierarchy diagram.
    In my page user can edit some information and commit the transaction by clicking the commit button.
    Whenever there is some validation fail in the model layer for the information that user edit, I will use below code:
    throw new JboException(error_message);
    which ADF will handle it as a popup with the error message and display on the UI.
    So now the issue is, whenever I click commit button, region that contains <dvt:hierarchyViewer> will shows as "Fetching Data...", and if there is anything failed for this transaction, error popup will appear. However, the popup will not stay and it will disappear even without user clicking ok button whenever <dvt:hierarchyViewer> finish fetching data and display the content. So this is a problem because error message will only display 1 second then it will disappear, user cannot even see what is the error.
    If I set render property of <dvt:hierarchyViewer> to be false, now if there is error, the popup will stay there until user click ok button to close it. So the issue definitely related to <dvt:hierarchyViewer>.
    My question will be why rendering <dvt:hierarchyViewer> will impact the error popup and make it disappear? And based on my observation, the issue only happen on IE but not on firefox.
    Hope anyone can help me with this issue.
    Thanks.
    Pei
    Edited by: user10867484 on Jun 16, 2011 5:25 PM

    Hi,
    So the issue definitely related to <dvt:hierarchyViewer>
    Your observation is correct, the conclusion you take out of this not. The hierarchy viewer fetches data asynchronously and at the end refreshes the component, which takes the focus out of the dialog into the page. The default behavior of the popup component is to dismiss when the focus is lost. The options to try and handle this are
    1. make sure the commit button has "partialSubmit=true" set so it does not refresh the page and thus the hierarchy viewer as a whole
    2. configure the af:messages component to show error messages inline and not as a popup
    I would go and try 1 first
    Frank

  • How to call ME21n Screen in webdynpro once you click any button

    Hi exports,
                     I have created one webdynpro application..In first view i have one button which have action...Once i click that button
    it should go to next view where it should diaplay standard Transaction ME21n screen..where i need to enter all PO details..finally PO should be created auotomatically like normal SAP...
    Can anybody plz help me how can i acheive this?
    Thanks & regards,
    Praveena.

    You have to create  Transaction iView for ME21n in portal.
    Call the iView using portal integration api
    Web Dynpro for ABAP Portal Integration [original link is broken]

  • Add new line in ALV report on click of button...

    Dear All,
    How to add a new line for input in ALV report at runtime, on click of a button.
    Waiting for early and favorable reply.
    Regards,
    Dharmesh Vyas

    Hi,
    First of all u have to Create ur own PF-status and Assign Fcode e.g 'INSERTROW'.
    So, whenevr you will click Insertrow button it will be triggered in your User Command and then just Append the blank line in your Final Internal Table.
    And Refresh Icon will be there by default...
    To Trigger it You have to write rs_selfield-refresh = 'X'
    You can also follow the below link...
    Try it.
    Link:[http://wiki.sdn.sap.com/wiki/display/ABAP/ALVeasytutorial].
    Regards
    Arbind

  • Incrementing the URL's ID in JavaScript by clicking a button

    Hello Everyone,
    I want to Incrementing the URL's ID in JavaScript by clicking a button on the Page in a Content Editor Web Part. I already added the button, but it doesn't incrememnt the ID for the URL. Help will be appreciated. Thatnks.
    Mike
    Michael L. Williams

    You could use the JavaScript client object model to query the library for the next document set.
    The CAML query would need to return items where the content type inherits from Document Set, and the ID is greater than the current item's ID, sorted in ascending order, with a row limit of 1 so that only the first matching
    item is returned.
    The code would look something like below (replace "Name of your library" with the actual title of your library).
    <input type="button" onclick="GoToNextId()" value="Next" />
    <script>
    function GoToNextId(){
    var currId = GetUrlKeyValue("ID");
    var clientContext = new SP.ClientContext();
    var list = clientContext.get_web().get_lists().getByTitle("Name of your library");
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml("<View><Query><Where><And><BeginsWith><FieldRef Name='ContentTypeId'/><Value Type='ContentTypeId'>0x0120D520</Value></BeginsWith><Gt><FieldRef Name='ID' /><Value Type='Counter'>"+currId+"</Value></Gt></And></Where><OrderBy><FieldRef Name='ID' /></OrderBy></Query><RowLimit>1</RowLimit></View>");
    var items = list.getItems(camlQuery);
    clientContext.load(items);
    clientContext.executeQueryAsync(Function.createDelegate(this,function(){
    var itemEnumerator = items.getEnumerator();
    var counter = 0;
    while(itemEnumerator.moveNext()){
    var item = itemEnumerator.get_current();
    counter = item.get_item("ID");
    if(counter != 0){
    window.location.href = window.location.pathname + "?ID="+counter
    } else{
    alert("There are no more document sets after the current set.")
    }),Function.createDelegate(this,function(sender,args){alert(args.get_message())}));
    </script>
    Note that 0x0120D520 is the content type ID for document sets. Any content type that inherits from Document Set will have a content type ID that begins with that value.
    You could add similar JavaScript to go to the "previous" document set. You would just need to change the CAML query so that it looks for items with an ID less than the current item instead of greater than, and change the sort order to be descending.
    <View><Query><Where><And><BeginsWith><FieldRef Name='ContentTypeId'/><Value Type='ContentTypeId'>0x0120D520</Value></BeginsWith><Lt><FieldRef Name='ID' /><Value Type='Counter'>"+currId+"</Value></Lt></And></Where><OrderBy><FieldRef Name='ID' Ascending='False'/></OrderBy></Query><RowLimit>1</RowLimit></View>
    I hope that helps!

Maybe you are looking for

  • Full Pages with Zero Margins

    I'm trying to use Pages to format and print labels for various products on a Phaser 8200 printer. Previously I had used Word, but I'm trying to convert over to Apple software. The problem I'm having is that I format the labels as tables, with the tab

  • Access a received message after transformation

    Hi, in my BPM, i am receiving an Idoc transfor it make a BAPI Call. this works fine. After this i want to transform the BAPI-response and the original IDoc to a new message for the next BAPI-Call. But i have no data in this original IDOC. I created a

  • Condence character format in Report 2.5

    How can a print a condence report (230 char / line) in character mode. I know i need to send ascii code 15 to printer but when i try it with printer code option i doesn't work. I managed to print 230 char in one line but i need to reduce the size of

  • Conditional Expressions and the note about state-field's serialized form

    There's a note about state-field's serialized form in 4.6 Conditional expression chapter. Could anyone help me understanding it? It's on the page 88. State-fields that are mapped in serialized form or as lobs may not be portably used in conditional e

  • Help in adding smilley icon in swings

    Hi I'm making a simple chat server. Can any plz help me that how can I add smilley icon to JTextArea as I'm using JTextArea as message display in chat client.