Firing Exit plug from the embedded component

Hello All,
I am working on a scenario where I am developing a Webdynpro component which is child to the MainComponent.
MainComponent view has links to access my child component as I have exposed my child component as Public part.
Once my application is access by MainComponent, I can only go back to MainComponent.
Now I need to fire an exit plug with URL (say sdn.sap.com) from my child component which will open new URL in same browser.
When I defined exit plug and passed on Url parameter to it, my component throughs exception saying "Cannot fire exit plug from embedded component".
Is there anyway I can achieve this?
Please guide me.
Ashutosh

Ashutosh,
<i>I can not use WDClientUser.forceLogoffClientUser(url) as I need user to be logged in.</i>
Actually, no. It is optional -- you may be either logged-in or not, in later case WD runs under some internal Guest account. So forceLogoffClientUser works in either case.
Valery Silaev
SaM Solutions
http://www.sam-solutions.net

Similar Messages

  • Where should i fire the plug within the webdynpro component

    when the search don't match for the url parameters passed in my scenario, i need to display the error view page, so wanted to know where should i fire the plug within the webdynpro component. could some one guide plz.
    thanks n regards
    Anoop

    You can go for event handling. In the component controller, just fire an event that there is a search mismatch. Handle this event in your view, where you just fire the outbound plug.
    Or, since you get the parameters in the url itself, instead of having 2 views, you can do it in one view itself by displaying only an error message when there is no record matching the query. If there are records, make the search results visible. Just have a context attribute to manipulate the visibility. This can be done with the comp controller itself, without any events.
    Regards
    Nithya

  • How to get the string value from the RichSelectBooleanCheckBox component?

    I added a validator to a RichSelectBooleanCheckBox component which is binded to a String attribute of a View Object.
    I defined the mapping of boolean value to corresponding String value in the corresponding attribute binding in the page definition.
    When the validate() method of my validator was invoked, the new value passed to the validate method() was a Boolean value instead of the converted String value.
    I need to write validate() method generically so that it can handle more than one way of mapping boolean values to String values.
    How can I get the converted String value in my validator method() from the RichBooleanCheckBox component that was also passed to the validate() method as a parameter?

    use:
    int num = Integer.parseInt(s);

  • Exit from an embedded component

    Hi,
    I have 2 components, C1 and C2. C1 has got 2 views of its own, after which C2 is called. So, in the navigational diagram of C1's window, C2's interface view is embedded and its inbound interface view plug is fired on an action in C1's view. All works fine.
    But I want to go back to C1 from C2, on a 'back' action in C2. I tried creating an outbound plug in C2's interface view, creating a navigational link between C2 and C1 in the window diagram where its being called from, and then firing this outbound plug in C2's action.
    But it gives an error saying 'Cannot exit embedded component'. Why is that?
    Any clues?
    Your help is much appreciated.
    Many Thanks,
    LM

    Hi ,
        The instance of the inner component is handled by the embedder component ...so how an inner comp can exit itself....create a event in the interface component controller of inner comp ...and in the embeder comp ...create a event handler which handles the event of the inner comp...in that ....u can delete the innner comp....using wdThis.wdComponentcontusagename.deleteComponent() . it delete the comp and replace the view with empty view in the event handler u can call any other view ....
    see the example ....
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8d7cd90-0201-0010-4a8c-dd22fa16ca0a
    Regards,
    Yashpal

  • Firing a servlet from the web..

    I am using Win2000 IIS5 and ServletExec. I have configured the server so I can fire up a 'HelloWorld' servlet from the local machine but when I call the servlet from the web i.e. http://www.???.com/servlet/HelloWorld it does not fire. I have configured the virtual server for the web site address.
    any ideas greatly appreciated.
    Nigel

    HelloWorld is the servlet class so no extension. I've tried various ways of firing including referencing the servlet in a html page but always the same result of being able to fire the servlet if I include the server name i.e. http://websrv1/servlet/HelloWorld but not if I use http://www.mysite.com/servlet/HelloWorld.
    Nigel

  • How do I get my IPad 2 images onto a regular TV?  I have the plug from the apple store, and the HDMI cable.  The TV recognizes a devise, but no image on TV!

    How do I get my IPad 2 images onto a regular TV?  I've got the converter plug for HDMI from the apple store and an HDMI cord, etc.  I've plugged everything in and the TV recognizes a devise, but no images on TV...help!

    Hey Anndog,
    Thanks for the question. I understand you wish to connect your iPad 2 to an HDMI TV. The following article provides some great information on how to do this, along with troubleshooting information if you are experiencing issues:
    iOS: About Apple Digital AV Adapters
    http://support.apple.com/kb/HT4108
    Thanks,
    Matt M.

  • Urgent how to find transaction & exit name from the name of include program

    hai
    i want to know the transaction that is executing
    the exit which includes the include name
    as "LVKMPFZ2"
    can anyone tell me the procedure (dont forget steps )
    to know the transaction
    (but this program is include SAP automatic credit control configuration)

    Hi Kiran,
    I think this is related to credit management,
    See,
    FD24    Credit Limit Changes
    FD32    Change Customer Credit Management
    FD33    Display Customer Credit Management
    FD37    Credit Management Mass Change
    Hope this help
    Juan
    Please reward with points if helpful

  • Find transaction and exit name from the name of include program

    hai
    i want to know the transaction that is executing
    the exit which includes the include name
    as "LVKMPFZ2"
    can anyone tell me the procedure (dont forget steps )
    to know the transaction
    (but this program is include SAP automatic credit control configuration)

    Hi
    Try TSP01-Suffix2
    Regards
    Raj

  • Can't print anything other than a test page from the embedded web server

    Hi all
    I have two computers hooked up wirelessly to my HP C410b All in one printer.  One computer works fine and prints everything.  The other one did until this weekend.
    The one printer that will not print will print a test page if I go to the embedded web server and print a test page but if I try to print anything else - even a test page not through the embedded web server - it fails to print.  It does not give an error message it just states print failed.
    The computer shows alerts for the printer like when it runs out of paper or ink so it seems like it's connected but it just won't print.
    I've tried unistalling all the software and printer and reinstalling but it still has the same problem.
    Anyone any ideas???
    Thanks

    What operating system?
    If some version of Windows, download and run this utility: http://h20180.www2.hp.com/apps/Nav?h_pagetype=s-926&h_lang=en&h_client=s-h-e17-1&h_keyword=dg-NDU&ju... 
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Accessing the MessageContext of a Handler From the Backend Component

    Hi,
    I am trying to access the MessageContext in my webService, but am not able to do it. I am able to get my handler executed and i see the flow thru the handler.
    public boolean handleRequest(MessageContext messageContext) {
    boolean flag = false;
    Document document = null;
    SOAPMessageContext smc = (SOAPMessageContext) messageContext;
    SOAPMessage soapMessage = smc.getMessage();
    try {
    SOAPBody soapBody = soapMessage.getSOAPBody();
    document = soapBody.extractContentAsDocument();
    flag = true;
    } catch (SOAPException e) {
    LOGGER.log(Level.INFO, "Error retrieving body from soap message: " + e.getMessage());
    messageContext.setProperty("bodyAsDocument", document);
    return flag;
    But when it is trying to get the context in the webservice using the following code:
    SOAPMessageContext smc = WebServiceContext.currentContext().getLastMessageContext();
    it says:
    unable to find context for current thread
    Here is my webservice.xml:
    <?xml version='1.0' encoding='UTF-8'?>
    <webservices xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1">
    <webservice-description>
    <webservice-description-name>ProductDataService</webservice-description-name>
    <wsdl-file>/wsdls/ProductDataWS.wsdl</wsdl-file>
    <jaxrpc-mapping-file>WEB-INF/ProductDataService.xml</jaxrpc-mapping-file>
    <port-component>
    <port-component-name>ProductDataPort</port-component-name>
    <wsdl-port xmlns:prod="http://localhost/ProductDataService">prod:ProductDataPort</wsdl-port>
    <service-endpoint-interface>com.test.productdata.ws.ProductDataImplPortType</service-endpoint-interface>
    <service-impl-bean>
    <servlet-link>ProductDataServiceServlethttp</servlet-link>
    </service-impl-bean>
    <handler>
    <handler-name>com.test.productdata.handler.ProductDataSOAPMessageHandler</handler-name>
    <handler-class>com.test.productdata.handler.ProductDataSOAPMessageHandler</handler-class>
    </handler>
    </port-component>
    </webservice-description>
    </webservices>
    Any help is appreciated. Thanks in advance
    -k

    WebServiceContext.currentContext() API only works
    for web service created by WLS using ant tasks. This
    does not work for WLW web services.

  • Which adapter plug from the Apple Worldwide Adapter Kit should I use for travel with MacAir to Czechoslovakia and Hungary?

    Traveling to Czechoslovakia and Hungary and puirchased the Apple Worldwide Adapter Kit. I'm confused about which adapter plug to use with my MacAir. What does the correct plug look like?
    Thanks

    Here is the link to the adapter kit on the Apple website:
    http://store.apple.com/us/product/MB974ZM/B/apple-world-travel-adapter-kit
    This may or may not suit your needs but I suggest that you visit an Apple store and take a look at the kit yourself.  With the information from prior link, you should  know exactly what to look for.
    Ciao.

  • Exit codes from the Java Virtual machine

    Hi,
    I've been asked to write a C wrapper program on UNIX and Windows which launches java (or java.exe) with the appropriate command line options and jar files to run an application.
    So far so good.
    However, I can't find any documentation saying how the status code returned by java or java.exe is constituted. e.g. How do you tell an error returned by the virtual machine, such as NoClassDefFoundError due to a missing jar or entry point, from a status code returned by a running Java application?
    Are the possible status codes returned by the JVM documented anywhere? Are they the same on UNIX and Windows? Should the Java application use a particular range of return status codes so they don't collide with the JVM's own?
    Thanks in advance for any pointers on the subject.

    Ah, I see, you're asking what if any existing codes are returned by the JVM implementation.Yep, that's it. I need to know that if the application chooses to use System.Exit to return (say) status code 2 meaning "your print job is queued", that the JVM won't ever return 2 meaning "couldn't find your application jar files" or some other generic condition outside the application's control.
    I can move the application's return codes into a specific value range, as long as I can find one that is guaranteed safe for JVMs on both UNIX and Windows. Sounds like that's a bit optimistic. Thanks for the source code suggestion, but don't really have control over the customers' choice of JVM.

  • Procedure to find the exit name from the include program

    hai
    i know the name of the include program
    through this i want to know the user exit name
    what is procedure?
    please give me the details
    Thanks

    Hi,
    Enter include name in se38 ..check where used option for this include.Using backward approach you can get to the exit.
    Thanks.
    Mark points if helpful.

  • WAD - How do I hide Exit Variables from the variable listings?

    If i'm using an InfoField control to display the user input variables on top of my web template, how do i hide the user exit variables?
    I simply want to show the variables available to the user as 'Ready for Input' at runtime.  However all of the user exit variables appear as well.
    thanks in advance.

    Hi Webonomist,
    It is also my understanding that any settings applied in the CFAdmin would
    affect the entire server.
    Check out the <cfapplication> tag for handling session variables on an
    individual basis. Use caution when using cookies to hold session
    variables. As noted in serveral livedoc information articles, "If client disables
    cookies in the browser, client variables do not work".
    As for the <cflocation> tag
    <cflocation
    url="path_to_redirect_to"
    addtoken="no / yes"><!--- Include/not include token  --->
    Leonard

  • Fire out plug from InterfaceView

    Hello,
    i want to check authorization for my WebDynpro-Components.
    I want to use an Authorization component, so that other components can use this component. If authorization is ok, the authorization component should fire an out plug for the using component. The out plug is created in the interface view, because the using components can plug this component only via the interface view (am i wrong?). I find no way to fire the out plug of the authorization component, because i cannot access the interface view from inside the component. Can anyone helps me?
    Thanks and regards,
    Matthias

    Hi,
    I dont think you can fire a plug from the child component to some view of the parent component.
    What you can do is, create an event in Child component. which has a authrization parameter (boolean).
    After the authorization check is done , raise the event from the child component with authorization status (success(true)or failure(false)) as the parameter to this event.
    Read this in the parent component.. and then fire the plug to the approprite view from the parent component itself.
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/24/243ca46e1c334f8a6f8b0792656bc7/content.htm">Check this for more details on implementation</a>
    Regards
    Bharathwaj

Maybe you are looking for

  • Executing commands in a different parent shell?

    I'm a bit of a UNIX newbie. I would like to start up a command such as "rsync" and let it go in the background in the OS X terminal, and be able to then quit the terminal and have the process continue to function. I can't seem to find the way to do t

  • Why can I not download any apps?

    Why can't I download apps on my iPhone 5s? Please help. I click on install and them the circle appears for 2 seconds and then disappears. Please reply ASAP.

  • XSL-XML Templates

    Hello, My requirement is generate xml output file using BI Publisher. I think xsl-xml template will generate xml output from xml extract. Is there a easy way of developing xsl-xml templates using BI Publisher for given XML Extract? I know we can writ

  • Oracle-10g RAC on VMware installed on Windows-7(Host)

    Hi, My host OS is Windows-7. Docs. posted on this forum for RAC on VMware says: your Host OS should be Centos OS and in which you will install VMware and Client tools also. In this way u can clone another RAC2 machine. But I have Oracle VM Virtual Bo

  • Creating a flatfile for muli- date table

    I am creating a flatfile for reporting purposes. The ASSESSMENT tables can have up to two assessment_date, assessment_type_code per transaction_ID ie ASSESSMENT Record 1 TRANSACTION_ID = 1234 ASSESSMENT_TYPE_CODE = 'ABC; ASSESSMENT_DATE = 01/06/2006;