Close Functionality in an iview

HI,
   i have  an iview which i was opening as an external vindow. now my issue is need to close this iview using a close button. can any one

HI JEGADHEESAN,
For SAP NetWeaver 7.0, you can perform the following activities step by step:
1.Create close.html file and write javascript code for closing window.
2.Place this close.html in \src\mimes\Components\<component_name>\
3.Create CLOSE button in view and assign corresponding action (e.g. onActionClose)
4.Now write code for closing external window (i.e. Web Dynpro Window).
  public void onActionClose(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    //@@begin onActionClose(ServerEvent)
          try {
                    String URL = WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getComponent().getDeployableObjectPart(),"close.html");
                    TaskBinder.getCurrentTask().getClient().sendRedirect(URL, 0);
               } catch (WDURLException e)
                    e.printStackTrace();     
               } catch (IOException e)
                    e.printStackTrace();
    //@@end
Thanks
Gautam Singh

Similar Messages

  • Pinch open and close function not working after upgrade

    I'm having trouble with the pinch open and close function on my trackpad. It was working fine until I installed the new Google upgrade and now it doesn't seem to be working. Any suggestions. The other functions are working fine.

    Click on the Apple icon at the top left of the screen. Select "System Preferences", then "Trackpad".
    Be sure to select:
    "Pinch Open and Close" in the "Two Finger" Menu...
    Sly

  • Checkbox (only) controls open/close function of collapsible panel

    I have a form with several collapsible panels in it, each
    with a checkbox in the tab area, like so:
    <div id="CollapsiblePanel1" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">
    <input type="checkbox" name="checkbox_array[]"
    value="i_need_this" />
    I need this!
    </div>
    <div
    class="CollapsiblePanelContent">Content</div>
    </div>
    My question is this: Is there any way to control the
    open/close function of the collapsible panel using only the
    checkbox located within the tab? Ideally, the panel would still
    change based on hover, focus, etc.
    In advance, let me just say thank you so much for any help
    you might provide with this.
    - Devin

    Yessir, it is possible. I was struggling with something
    similar myself, and got it figured out. You'll need to do this in
    two steps.
    First, you should disable the existing listener, so that when
    you click the tab area nothing happens. You'll need to wade into
    your SpryCollapsiblePanel.js file and comment out a line. Somewhere
    around line 191 you'll find a function called
    "Spry.Widget.CollapsiblePanel.prototype.attachPanelHandlers".
    Within that function, around line 198, you'll find the following
    code:
    quote:
    Spry.Widget.CollapsiblePanel.addEventListener(tab, "click",
    function(e) { return self.onTabClick(); }, false);
    Comment it out by typing a double forward slash (//) at the
    beginning of the line like this:
    quote:
    // Spry.Widget.CollapsiblePanel.addEventListener(tab,
    "click", function(e) { return self.onTabClick(); }, false);
    If you test your code at this point, you'll discover that
    you've broken the collapsible panel functionality. The panel won't
    open. Now you need to set up your checkbox to trigger the
    open/close functions. To do this, you just need to add an onclick
    event to your checkbox like this:
    quote:
    <input type="checkbox" name="checkbox_array[]"
    value="i_need_this"
    onclick="CollapsiblePanel1.onTabClick();" />
    The onTabClick() function simply checks if the panel is
    already open, and calls either the open() or close() function as
    appropriate. If you needed to, you could check whether the checkbox
    is checked or not, then call the open() or close() functions
    directly.
    Please note that in modifying your SpryCollapsiblePanel.js
    file like this, you'll be modifying the behavior of all collapsible
    panels built using that file. If you need standard collapsible
    panels as well, you'll need to add the same onclick event to your
    tab panels manually.

  • Why I can not use the pinch open & close function on Mac in this new firefox

    The track pad function pinch open and lose .

    Recently both the Yahoo! Toolbar extension and the Babylon extension have been reported to cause an issue like that. Disable or uninstall those add-ons.
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Close function

    Hi friends, i have a little problem with a native method.
    This method open one text file but it doesn't close this file,
    so i can't delete the file at the end of the program.
    There's one way to fix ths problem without change the native method?.....Thanks for all the assistance...

    What native method are you talking about?

  • RFC/Function base for iViews

    For iViews in the EP Content Library:
    Is there a single point information source that provides the BAPI/RFC/Query names and profiles underlying the individual iViews listed in the iView Content Library?

    Hi,
    If you are Looking for the standard Iviews that come with the Business then you should download the concerned docu from Iviewstudio.com or sap serviceplace.
    If this is a general question, then you should search for say Bapi via trans BAPI in SAP and for RFCs via SE37.
    SAP Does not publish any standard list i think.
    Regards,
    Anuj

  • The pinch open and close function on my trackpad for my macbook air no longer works in firefox (4, beta).

    It still works in safari and it used to work in firefox. but no more. how can i get it working again?

    Do the related browser.gesture.pinch prefs still have a value?
    See http://kb.mozillazine.org/about%3Aconfig

  • Function not found in Library only after Close VI - Open VI

    Hi,
    We wrote subVI's for all exported functions of a dll written in Borland C++. Then a test.vi was implemented which uses these dll function. Everything runs perfectly, as long as we don't Close the vi and reopen it from the LabView main menu. If we do this the broken run arrow butten is shown and the first error message listed is the Function not found in Library error.
    If we use Exit to leave LabView and then restart the test.vi, everything is ok.
    Please let me know if you know a solution. Thanks in advance.

    The Function not found error is thrown when the OS can't provide the pointer to the function in the library to LabVIEW for some reason. For more information and common solutions see:
    http://digital.ni.com/public.nsf/websearch/44E40ACF1644DB77862562990054D672?OpenDocument
    The only reason I can think of why the first time it works correctly is that the DLL is not correctly clean-up by the close functions. Thus causing a second request for the pointer to fail due to this. (closing LabVIEW will remove the DLL form memory and thus probably clearing the error).
    Hope this Helps
    Kind regards,
    Karsten
    Applications Engineer
    National Instruments

  • HT4064 How to close the function in iPad

    HOw to close function in I pad

    Close inactive apps?
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app upwards to close
    3. The app will fly off the screen

  • Two Exact Functions Are Not Working (long)

    I am making a portfolio website. The way I have structured my code is that I have an action layer that takes care of global actions such as how the user would navigate through the website. For each page of the website, I would have a seperate layer that would load the content of that page onto the screen. The content would be added as a movie clip which is attached to a scroll pane component.
    I am having trouble calling one of my functions. What I am trying to do is that when the user navigates to 'My Work' section of my website, they can select from one of the examples of my works. Doing so will pop-up a movie clip which will display photographs and provide an explanation for my work. The problem I am trying to fix is that when the user tries to navigate to another page on my portfolio, the pop-up will not remove itself. I have created a function which is attached to the close button so if the user presses it, they can manually close the pop-up movie clip. I have also tried using this closing function with the main navigation buttons of my website so that when the user tries to go to another secion of the website with the pop-up open, the pop-up will automatically close itself, however, it is not constantly working. My 'works' page is seperated into several catagories (web, graphics...). This auto close function is only working on one of the five catagories and I do not understand why. I have copied everything exactly for one catagory to the second catagory, but Flash keeps on giving me the error that "Error #1009: Cannot access a property or method of a null object reference".
    My flash files can be downloaded here. Once downloaded, you would want to open up website14.fla. I know my coding is not exactly organized, and I am sorry as this is my first time I have really used a lot of ActionScript at once. I'll try my best to walk you guys through my coding to my error.
    To navigate through my website, you would click on the sink, toilet, or shower handles X amount of times. 1 time would bring you to 'about me', 2 for 'resume', 3 for 'contact', and 4 for 'work'. Once on the work page (press 4 times), click on the 'web' catagory and select one of the thumbnails. A pop-up window will appear. Don't close the pop-up window, and instead navigate to another page by pressing one of the handes a few times. Notice that the pop-up window automatically closes itself. Now navigate back to the 'work' page, click on the 'graphics' catagory and select a thumbnail. Now navigate to another page by pressing the handles a few times. Notice how Flash produces the error 'Error #1009: Cannot access a property or method of a null object reference'. In addition, notice how the pop-up window doesn't dissapear, and the new page is layed overtop.
    To navigate in the Flash file to my error, I'll try to guide you there. In the root timeline, scroll over to Frame 1 Layer 'Action' and look at the actions panel. On line 72, I have two If statements checking for frames 30 and 31. These two frames are where my work is displayed. I have also used a try/catch statement to check for errors. Now going to frames 30 and 31 and clicking on the workContent layer and looking into the actions panel, I am bringing my movie clip onto the stage by using the function createScrollPane. The function createScrollPane is located in frame 1 in the Action layer on line 13. This function just takes the movie clip and wraps the scroll pane component around it. Going to frame 31 on the main timeline, select the workContent layer and pull up the actions panel to see the code. you will see that I am loading workGraphics_content movie clip onto the page. Find it in the library (content/content/workGraphics_content) and open it by double clicking on it. There you will see another movie clip (workGraphics_content2) fading from alpha0 to alpha1. Double click on it and look at the action script in frame one layer 'action'. On line 93, I have the function external_workFrame_exit which is called whenever the user navigates from the 'work' page to another page on the website. For some reason, Flash keeps on giving me an error whenever that function is called. Oddly enough if you scroll up to line 78 you will see the function workFrame_exit which is none the less exactly the same as external_workFrame_exit. workFrame_exit is called when the user manually clicks the closing X button on the pop-up window to close it. If you want, you can open up another movie clip (content/content/workWeb_content) and double click on that movie clip to open up workWeb_content2 and take a look at its action. Looking on line 86, I have the external_workFrame_exit function and this one is the exact same one as the external_workFrame_exit function (which works fine) found in workGraphics_content2.
    What I am confused about is how I have two exact functions being called in pretty much exact same situations in the exact same way, and one of them fails to work. Is there a solution to my problem? Feel free to ask any questions if any of my explanations were difficult to follow.
    Again, the flash files can be downloaded here. Once downloaded, you would want to open up website14.fla.

    Sorry about the long post. I just thought that I would include all the details. To sum things up:
    You navigate through my website by clicking the sink, toilet, and shower handle X amount of times. By clicking it 4 times you will end up on my 'work' page. My 'work' page has several categories. Select the 'graphics' category, click on one of the thumb nails and a pop-up will appear. Now navigate to another page without closing the pop-up by clicking on the handles. Notice how the pop-up doesn't go away, and the new content is displayed over top? Now if you go back to my 'works' page and click on one of the thumb nails under the 'web' category, then navigate to another page, notice how this pop-up goes away.
    I am using the exact same functions to make both the 'graphics' category and the 'web' category to go away, but for some reason the 'graphics' one is not working.
    Again, you can download my files from here.

  • How do you close a dragged applet, as Stage.close() doesn't work?

    I'm trying to implement a close button in a draggable applet, but Stage.close() doesn't work, and there's an odd little "X" icon which is causing me problems...
    My starting point and example is the simple draggable applet from the API documentation. It's the code listed under "User-Specified Close Example":
    http://java.sun.com/javafx/1.2/docs/api/javafx.stage/javafx.stage.AppletStageExtension.html
    import javafx.scene.*;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.paint.*;
    import javafx.scene.shape.*;
    import javafx.scene.text.*;
    import javafx.stage.*;
    var textContent = "Click the box to return to the browser";
    var outside: Boolean = false;
    var s: Stage = Stage {
        title: "AppDeploy Demo"
        width : 300 height : 200
        style: StageStyle.TRANSPARENT
        opacity: 0.5
        scene : Scene {
                content: [
                    Text { content: bind textContent 
                           x: 25 y:35 fill: Color.BLACK
                           font: Font{size: 24}
                    Rectangle { x: 100 y: 100 width: 100 height: 100 fill: Color.RED
                                onMouseClicked: function(e: MouseEvent): Void {
                                    s.close();
        extensions: [
            AppletStageExtension {
                shouldDragStart: function(e: MouseEvent): Boolean {
                    return e.shiftDown and e.primaryButtonDown;
                useDefaultClose: false
    }However, the Stage.close() function in the user code doesn't seem to close the applet once it's dragged. It seems this can only be achieved by a mysterious little "X" in a box top right, acting as a close button.
    Here's a demonstration of the problem once you've compiled that code:
    1. Open browser with applet (I'm using IE8 on Windows XP)
    2. Shift-drag the applet out of the browser. Notice the little X in a box appears when you drop the applet on the desktop.
    3. Click the red rectangle to invoke the Stage.close() function in the user code.
    4. Applet disappears from screen and does not reappear in the browser.
    5. But minimising all the icons on the desktop shows the little X in a box is still there sitting on your desktop (actually I find the X has gone, but the box is still there). This suggests the applet is still running.
    6. Close the browser. The little X's box is still on the desktop.
    7. After a short pause a Java dialog box appears: "Desktop integration warning. The application would like to create shortcuts. Do you want to continue? OK/Skip" The applet wasn't closed, it is still running!
    8. Click Skip. Dialog box disappears. But the little X's box is still on the desktop. Is the applet still running?
    9. Try to recompile app again into a deployable Jar (I'm using Eclipse for this).
    10. The compiler stops with "ERROR: Jar file C:\[...].jar could not be deleted. The Jar is probably locked by running application, Web browser, emulator or antivirus. Please check that all windows related to the application have been closed." Yes, the applet Jar is still being used.
    11. Minimise all the windows. The little X's box is still on the desktop.
    12. Click the little X's box.
    13. After a few seconds the box disappears. Does this mean the applet is no longer in use...?
    14. Recompile the app again into a deployable Jar. It works!
    By the way, you get the same experience with another Sun sample: the DraggableMP3Player at
    http://javafx.com/samples/DraggableMP3Player/index.html
    That, too, thinks it's implementing it's own close button, and again the same problem occurs.
    So it seems Stage.close() doesn't properly close the applet, and only the the little X in a box will do this.
    I'd like to be able to really close the applet from my own code. How can I do this?
    Many thanks
    Nik
    Edited by: nik.silver on Aug 6, 2009 12:48 PM

    After double tap home button, swipe up on the app card that appears above the icon.

  • Using a Variable to select a function

    Hi there.
    I am looking to use a variable that is set when a user clicks
    a button to then use as the variable name to call a function. The
    actual functions work, but when using a variable as the function
    name it doesn't call the function. Here's my code so far, could
    anyone help with what I may be doing wrong (please see code snippet
    attached).
    Thanks a lot
    Tony Mead

    Thanks for the reply Dave. I wanted to use a variable because
    when any of the 4 buttons are clicked they have to
    1. Run the function determined by the closeActive variable
    (closing the open panel - could be 1 of 4)
    2. open and run a particular panel
    Probably best explaind by looking at what I have done so far
    (home & about us only at the moment):
    http://www.soapbox-creative.com/development/08/index.html
    Basically I needed the flash movie to 'know' what panel is
    currently opn and when another button is clicked it can just run
    the close function and close the panel that is open.
    Thanks again
    Tony

  • Getting javascript error while accessing URL iview

    Hi All,
    I have created a URL iview. There is a search functionality in this iview when we search any text then it is giving javascript error (Permission Denied).
    When we use the search functionality of that URL directly in the browser then it is working fine.
    Please Help.

    The URL that is being invoked may not like running inside an IFRAME. Not all URLs work correctly as iViews
    See what happens if you tell the iView to launch in a new window...

  • Function in stored procedure

    Hello,
    I'm using RPAD function in stored  procedure 4 times in one query and then inserting to another table. from dm_exec_sql_text table I see that every time that procedure approach to Rpad function it's open and closing in the and so it's open and closing
    function 4 times per one row, If I have 1000 rows to insert the function will open and close 4000 times and it's very slow.
    My question if there is some way to change this functionality of open / close function every time ?
    Thank You
    Daniel

    Yes, avoid using UDF  , means especially a scalar udf... See how you can re-write a scalar udf  as table valued udf.
    http://sqlblog.com/blogs/alexander_kuznetsov/archive/2008/05/23/reuse-your-code-with-cross-apply.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to close an open PO

    Hi,
    I have  a requistion and based on this requistion i have created a PO.
    But for some reason i couldn't receive goods receipts so i couldn't issue the goods.
    so the PO is still open. Now i want to close this PO.
    Please let me know the transaction and procedure to close the open PO.
    Deepthi

    FYI
    Closing a Production Order  
    Use
    The Closed (CLSD) status has been introduced in the production order. It has the following characteristics:
    No more costs can be posted to the order, that is, confirmations and goods movements are no longer permitted for the order.
    The order can no longer be changed. Exceptions to this are revoking the CLSD status and setting the deletion flag.
    All actions relating to the status technically completed (TECO) are executed.
    In a collective order, the CLSD status is also set for subordinate orders.
    If the system comes across an order in the collective order that cannot be closed, the orders that come between this order and the leading order are also not closed. Other subtrees are closed if they only contain orders that can be closed.
    Prerequisites
    Prerequisites for setting the CLSD status are:
    The order must have the status Released (REL) or Technically completed (TECO)
    The order balance must be 0
    There can be no open purchase requisitions, purchase orders or commitments
    There can be no future change records from confirmation processes
    Activities
    The Closed (CLSD) status is only set automatically for subordinate orders in a collective order. To set the status, you have the following options:
    In the production order, choose Functions ® Restrict processing ® Close
    Function in mass processing
    Pl..award the points
    Thanks
    Saquib

Maybe you are looking for

  • What's the easiest way to move or copy an effect from a layer or object to another layer or object?

    If I drag an effect from the target circle of one object to anther in the layer's panel it replaces the effect along with all appearance. But I want just to add the effect. For example, a layer has a drop shadow and a path, round corners. I want to m

  • Getting lots of kernel panics, help me diagnose please

    My battery (117 cycles on an early 2011 MBP) has decreased to about 30% of it's original capacity. I have a service battery message. I think that it was around when I got this message that I started getting loads of kernel panics. I can get severel o

  • Update connection and Solaris 10 release 1/06

    Hello, I am newbie in Solaris administration. I installed Solaris 10 x86 release Jan 2006 (sol-10-u1-ga-x86-v*-iso.zip) and I can see and run Sun Update Manager. Do I need to install updateConnection-i386.zip also or it's the same as Update Manager i

  • Any way to stop WiFi showing the 'slide' for Name & Password login?

    I use a WiFi system that runs ZeroShell (www.zeroshell.net/eng) to display a Captive Portal page for authentication. iPhone 3.0 now 'traps' this page and displays it as part of the WiFi connection process. Unfortunately.... it doesn't work Tapping ei

  • Add dummy Like condition '%%' inorder to use index scan

    Hi, I have a table like below , which have data which capture each minute(columnB) transactions CREATE TABLE tableA columnA     CHAR(6), columnB     Date, columnC     Number(3,0), CRT_ID    CHAR(8), CRT_TS    TIMESTAMP(6), UPD_ID    CHAR(8), UPD_TS