Choose startup plug

Hi all,
  in my WD application controller I'm executing some code in wddoInit method and, depending from the result of this code, I'd like to plug one view or another.
  I try to use the wddoBeforeNavigation to fire an event, catch it in the default view and then fire plug to the second one but I have the following error:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Cannot navigate from view DefaultView because it is not part of the current view assembly
how can I solve this?
thanks in advance,
Stefano

Hi all,
  I found this documentation about the method wddobeforenavigation()
Navigation Preparation u2013 wdDoBeforeNavigation()
When executing large Web Dynpro applications, it might not be sufficient to ensure the consistency of the user entries by checking the individual contexts or all controller contexts within a single Web Dynpro component. SAP recommends that before you trigger a navigation change, you should check whether controller contexts of several Web Dynpro components contain valid data.
The Hook method wdDoBeforeNavigation() in the component controller allows you to execute such extensive and cross-component checks and display error messages, if necessary.  This method is called by the Web Dynpro runtime before each processing of the navigation targets that have been accumulated till then. Only when the check is terminated, the Web Dynpro runtime assembles all views visible on the user interface (the new view assembly), initializes the view controller instances that have not been created yet and processes there the inbound plug event handlers defined by the navigation targets
So I fullfill my requirements with this code in wddoinit:
if (<condition>) {
  IWDWindowInfo myWindowInfo = wdThis.wdGetAPI().getComponentInfo().findInWindows("myWin");
  IWDViewUsageInfo myView2UsageInfo = myWindowInfo.getViewUsageByID("myView2");
  myWindowInfo.setDefaultRootViewUsage(myView2UsageInfo);
thanks to everybody.
Stefano

Similar Messages

  • No startup plug while creating appplication

    Hi,
    while trying to create application from existing component at the last step there is no fields in the start up plug drop down. Can any one tell why is this.
    Regards,
    H.V.Swathi

    Hi
    1. In the interface controller check whether you have the default startup plug. This should be an inbound plug. If it is there then in the Startup plug dropdown you will get that plug, otherwise it will not be displayed.Check whether that inbound plug type in the interface view is startup or not
    2. Check whether this start up plug symbol/entry is there in window or not ,if there then it will work .
    3. It seems that the default startup has been deleted from the corresponding interface view sometime earlier.
    Open the concerned interface view (under Web Dynpro Components -> <Component> -> Component Interface -> Interface Views -> <Component>InterfaceView (double click or choose context menu 'Edit') where <Component> is the component which you have chosen while creation of application.
    Now, create an inbound plug named 'Default' of type Startup. Save using the Global Metadata button.
    Thanks
    Susmita

  • Startup Plug Error

    Hi All,
        I have 2 sample applications say Exportex1 and Exportex2.
    When I deploy exportex1from one machine and check for output,  it is working fine as expected.  When I deploy exportex2  from another machine,  it is also working fine.
    But Exportex1 is giving startup plug error when I log in into portals after the deployment of exportex2 application. 
    I find that Exportex2 is somehow overrides the Exportex1 application which means i can view only one application at a time in the portal.
    Error:
    RunTime Exception or StartUp Plug not found exception.
    What could be the reason for this?
    The application Name - Exportex1  ,  Exportex2
    Project Name - Exportex1   ,  Exportex2
    component Controller - Exportex ,   Exportex
    Pls suggest.
    Regards,
    subashini.

    Hi Ayyapparaj,
    They are pointing to their corresponding interface views.  But the component controller name is same for all the applications say Exportex1 and Exportex2.  Will it make any problem?
    Ex:
    Application Name:  Exportex1,   Exportex2
    Component controller Name  :  Exportex,  Exportex
    Regards,
    Subashini.

  • Call an Startup-Plug from another WDA

    Hello.
    How can I call a Startup-Plug from another WDApplication with a table-Parameters.
    I get the URL from the Method cl_wd_utilities=>constuct_wd_url.
    thanks for helping
    Edited by: Marcus Ventur on Dec 2, 2008 11:33 AM

    Hi,
    Try to start your secondary application with a URL Parameter,
    then fire any plug you want by checking the parameter,
    hope it helps,
    regards

  • Startup plug is missing - Wht this means

    When i was building dc i was getting startup plug missing error.Can i know about this

    Hi Sankar,
    You will get that error when there is no startup plug in the Interface View. To resolve that error
    1. Open your Interface View(which will be under your   component->COmponent Interface->InterfaceViews)
    2. Go to plugs->Inbound Plugs->Click on New->Now give the name as "Default" and select the type as startup->click on Finish.
    3. Save All Metadata of your DC.
    4.Reload you DC.
    this resolves tour problem.
    Thanks n Regards,
    Jhansi Miryala

  • StartUp Plug Missing

    Hello Experts
      I am getting StartUp Plug Missing Error.
      actually i add two window in one component and after deleting first one i am getting this error.
    Please Help Me.

    Hi Sunny,
    The interface view of the component and its attached window should have a inbound plug of type startup.
    The Web Dynpro application uses this plug to launch the window via interface view.
    If this error comes it means
    1) The application is not pointing to a component without startup plug mentioned.
    OR
    2) The interface view and window doesn't have a plug of type startup.
    For 2) -> Open the controller of interface view and check that there is a plug of type startup. If not create one by name Startup and type startup.
    Check the same in window controller. Create a plug of same name "Startup" and type startup.
    Go to the application controller and check that in target interface view and plug you have have mentioned this interface view and this "Startup plug".
    For 1) Go to the application controller and check that in target interface view and plug you have have mentioned is of type startup (Check Interface to find which plug is of type startup). Check that you have plug of type startup in interface view and window and of same name.
    Hope it helps.
    Best Regards,
    Ashwani Kr Sharma

  • Startup plug is missing

    I developed a Webdynpro App. based on the Adaptive RFC method.  My original application had a single window with several views.  I had to delete my window and re-create it.  I then added my views back to the new window.  When I rebuild the project I get this error: "[APPNAME]:Startup plug is missing."
    I have tried repairing and rebuilding, nothing works.
    Any ideas?

    Hi Kelly.
    In the webdynpro explorer under the following path:
    [your proyect] > [your principal component(*)] > Component Interface > Interface Views
    Check that under Plugs tab of the interface view called [your window name]InterfaceView into Inbound Plugs area be the Default plug with the Startup property checked. If not exists this plug create it with the name Default and the startup property checked.
    I hope that this helps u.
    Best Regards.
    Gregory

  • Error : startup plug missing

    Hi,
    I have a dc where i delete the old application , create a new one at its place.I set the properties of application as : authentication property to true.
    The application builds and deploys fine...Since it is on track, creates an activity.But when i try to check in , i get error in activation view, while i check the CBS log, i find....'startup plug is missing'.
    Any clues on this ??

    Hey Vishal,
    Thanks a lot for your suggestion but I just created a new application, didnt touch any windows.But still getting the following error in CBS Build Log :
    [wdgen] [Error]   com.sap.darpan.appli.Tryappli --> Application Tryappli: Startup plug is missing
    Any clues on this ??

  • Selection of startup plug dynamically

    Dear Gurus
      I am facing a little confusion in understanding the plugs of a window. Please help me in understanding the concepts and correct the following statements
    > Startup plugs are the plugs which the application can access
    > Standard plugs are available accross components if they are made of interface type
      Now my doubt is
    > what is the necessity or why does the framework gives an option of creating more startup plugs if default plug of the window is first executed(assuming default is the plug which is first executed)
    > how can i access other startup plug dynamically from the application instead of selecting the plug name?
    > What is the actually happening when i make the a view as default? has it anything to with windows plug?
    Is there any demo program which will help me understand this in a better way..
    Please tell me if i can dynamically call the startup plug instead of selecting the startup plug and window name from the application properties.
    Regards
    Imran.
    Edited by: Imran Pasha on Nov 30, 2010 10:43 PM

    >
    Imran Pasha wrote:
    >   Now my doubt is
    > > what is the necessity or why does the framework gives an option of creating more startup plugs if default plug of the window is first executed(assuming default is the plug which is first executed)
    Hi,
    <-- Removed by moderator - cut and paste from SAP Help -->
    Your assumption about default plug is not correct. Default plug is there as default, you do not have to define any other start up plug explicitly.  You can define more startup plugs if you want to have different behavior. Wehn you create a application you can specify the component, window and startup plug. Most of the time Default plug is good enough. Some cases you have many application using one window with different start up plugs.
    >
    > > how can i access other startup plug dynamically from the application instead of selecting the plug name?
    <
    see the dynamic programming. There are few examples mentioned here.
    [Dynamic programming|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/4c/60154219fce12ce10000000a1550b0/content.htm]
    >
    What is the actually happening when i make the a view as default
    <
    when you make a view default in the window means  that whenever the window is being called for first time this view will be the first what you see. Normally navigating via a plug into a view would trigger a event and for every inbound plug there is a event handler. When you make a view as Default inside the window then the view is not called using an inbound plug. You can create a view and embed into a window with out even creating any inbound plugs.
    >
    what is the difference between startup and standard plugs with in the scope of single component.
    <
    It is explained here.
    [Window plugs|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/455c6980f81962e10000000a114a6b/content.htm]
    To call or close a Web Dynpro application using an interface plug, the relevant inbound plug must be declared as a startup plug, and the relevant outbound plug as an exit plug. You need interface inbound and outbound plugs of type Standard for component usages - that is, precisely when an outer component is being connected to an inner component
    >
    Is there any demo program which will help me understand this in a better way..
    <
    Search for WDA componets starting with WDR* in your system. I would suggest you to understand the basics of Webdynpro and its architecture before you attempt to Jump into examples and tryout.
    Good luck.
    Edited by: Neil Gardiner on Dec 1, 2010 9:27 AM
    Edited by: Neil Gardiner on Dec 1, 2010 9:28 AM

  • Cannot choose startup disc with option key

    Hello,
    I have an intel based iMac 24" and I ve installer bootcamp. Eveything is working fine except that I cannot choose the startup disk with the option key when the computer starts.
    I m not sure if this is relativ to bootcamp. I m using basic keyboard (the one that came with the iMac), mighty mouse ...
    I hit option (as soon as the computer restart, I even hit option before starting the computer). And I keep option key down.
    So everytime I need to switch OS by choosing startup disk in the preferences system, rahhh
    Thanks for the help.
    BigM

    Then I can only assume there is a serious problem with your OS X installation or the system firmware because they control the Boot Manager as well as the processing of startup command keystrokes. I would take the computer to an Apple service center for repair because it is still under warranty.
    The only thing you could do is to reinstall OS X which I would recommend you do from scratch.

  • Option key can't function to access start up manager, so i can't choose startup disk. please help me

    option key can't function to access start up manager, so i can't choose startup disk. please help me

    If you have Apple Care, call them and get a case number.  Otherwise, take the computer to an Apple store or an AASP.  Whichever is more convenient for you. 

  • OSX asking to choose startup volume

    Hi.
    I don't know why but now my computer is asking to choose startup volume even if I don't press any key on startup. I just turn it on and sometimes (like 3 times a week) it shows that screen to select hard drive or time machine to boot from.
    I was thinking it may be a stuck key on the keyboard, but not.
    Do you have any idea?
    Thanks,
    Luiz

    The startup drive may be failing, or there may be some other internal hardware fault.
    Back up all data on the drive immediately if you don't already have a current backup. There are ways to back up a computer that isn't fully functional—ask if you need guidance.
    Make a "Genius" appointment at an Apple Store, or go to another authorized service provider.
    If privacy is a concern, erase the data partition(s) with the option to write zeros* (do this only if you have at least two complete, independent backups, and you know how to restore to an empty drive from any of them.) Don’t erase the recovery partition, if present.
    Keeping your confidential data secure during hardware repair
    Apple also recommends that you deauthorize a device in the iTunes Store before having it serviced.
    *An SSD doesn't need to be zeroed.

  • Choose startup disk

    I know there's a bunch of procedures for starting up in different modes, I just can't find them on the Apple Support pages. (I know, I'm supposed to know them) Right now I want to start up on the mode where you choose the startup disk. There's others too, like starting in safe mode. I'd like to see a list of them. Like choosing startup disk, do I hold down the 's' (for startup) or the 'd' key (for disk), or maybe the 's' key is for safe mode. Thanx, sorry to ask such a nooby question.

    Hi Ken Spiker;
    If your Mac is shut down and you are starting it then holding down the option key will reveal the system disks.
    If you are running open System Preference > Startup disk will reveal the system disks also.
    Allan

  • Can't do anything from startup plug.

    I have one WebDynPro project with 2 Applications defined.  Both applications call the same interface view, but with a different startup plug.  At this point I don't know what to do.  I need to set a variable that is available to the initial view.  I cannot find anyway to get the context of the view.

    Hi,
    You can set parameters in the application and retrieve it in you view.
    -Ashutosh

  • Startup Plug-ins & Scripts

    Is there a way to automatically invoke a plug-in that I wrote with the SDK? There was no Startup Scripts folder under my CS3 installation for Mac OS X, and the script events get wiped out every time I start the program. Is there another way?
    Thanks
    -- Paul

    [email protected] wrote:
    > There was no Startup Scripts folder under my CS3 installation for Mac OS X
    >
    The startup scripts folder on the Mac is "/Library/Application
    Support/Adobe/Startup Scripts CS3". If it's not there, create it and you should
    be set.
    -X

Maybe you are looking for

  • Composer error

    what do u mean by composer error ..please tell...in the sense after the form is done and tested ...after u assign to script in NACE settings .. when u execute the transaction and issue output ...u get nothing .whats the reason please let us know

  • Designer TAPIs, business rules, and journalling

    Is it possible to create table APIs, as with Designer, when using either SQL Developer or the Data Modeler? If not, is the practice of encapsulating tables considered redundant and do you have any suggestions as to where business rules should be plac

  • Can't reset password? AppleID

    says it mailed the reset to e-mail - but it never arrives? found apple has changed to 8 digit password - mine is only 6 digit (has been for 5 years?)

  • Error when closing: In file 'TeamAdminTempDelete': delTempFile is not defined

    Hello all, I have CS4 on my pc at work and at the moment I have to set up some html sites for this schuhe website When closing Dreamweaver I always get the following error message: JavaScript Error: In file 'TeamAdminTempDelete': delTempFile is not d

  • How do I open CR2 in CS6?

    My MBP is running OS X 10.6.8 with installed registered version of Production Premium CS6. In previous forum threads (a couple months ago) there were similar issues w/ inability of opening CR2 in Bridge 5.0.2.4 and Camera Raw 7.0.0.308, and these peo