Event handler of inbound plug not called when plug fired by event handler

Hello All,
I have a rather bizzare problem, hopefully someone out there can figure out what is going on, as I'm rather stumped.
I have 2 views, A and B. They are linked by plugs, InA, InB, OutToA, OutToB. OutToB is linked to InB from A to B, OutToA is linked to InA from B to A.
There is an onActionLink in view A. Clicking on this triggers an action which calls the wdFirePlugOutToB method.
In view B some handling is done in the method onPlugInB, then wdFirePlugOutToA is called to change the displayed view back to A.
As far as the user is concerned they don't ever see view B. (this bit works perfectly!)
Now also in view A I have an event handler which handles a event from the component controller. It also calls wdFirePlugOutToB.
If I trigger an event in the component controller this event handler is called and the method called. However, when I put a breakpoint in the onPlugInB, flow never reaches here. Flow does get to the wdDoModifyView of view B but never to the inbound plug event handler.
Any suggestions as to what I might need to do? I would have thought calling the wdFirePlugOutToB method would ALWAYS trigger the linked event handler onPlugInB.
I am running NW04 SP18.
Thanks!

Hi Bharathwaj,
The project I'm working on has a requirement to allow for a road-mapped process (FPM) which has one step in which multiple screens can be accessed. I'll give an example: A user in step A selects the cost centre that they want to work with, in step B they need to maintain several pages of information about this cost centre. The do not want to break this information into steps, as there is no logical progression from one step to the next, and it may well be that the user wishes to go from maintaining screen 1 to screen 3, and then screen 2, and then screen 4. Stepping between all screens (1->2->3->2->3->4) wastes time and is not very user friendly. Step C of the process confirms the data that the user entered in step B, and Step D is the validation that the changes have been committed to the database. (a very familar 4 step process for those using ESS).
To allow for this requirement, I have designed a left navigation pane type screen. links appear on the left of the screen and the user can use these to navigate between different screens (implemented as FPM IVAC VCs) on the right of the screen.
It is quite an elegant solution (even if I do say so myself although quite complex to implement. I have relied very heavily on reading the code SAP put together for the FPM. The most complex part is that in order to update the the content of view containers in an application you must trigger a web dynpro view navigation by firing a plug to a different view.
Unfortunately I don't have any sample application code, only the finished product, which I can't really share. But I can say that if you look at the FPM code carefully, working from where the wdInit of the FPM is called, it will eventually make sense.
One thing I found slightly frustrating, you can't use the FPM's component usage register (FPM method attachComponentUsage(IWDComponent, IWDComponentUsage)) to add a VC... darned inconvienient really (you'd think that the web dynpro framework could have implemented the concept of extending an interface, but the IBLC and IVAC interfaces are different! - even though the IVAC is just IBLC + a few methods), but then again you can manage the instantiation of the used VC yourself and call the onInit method of the VC passing the current fpm reference, to attach it to a common FC, and given that you should be sharing context through the FC and never the VC, then really this isn't too much of an issue. (I spent ages worrying that I couldn't add the instances of the VC that I was using within my navigation pane VC to the fpm instance list, until I realised that it really didn't matter!)
One day - when I have time (yeah right!) I might put together a blog about this sort of stuff, in the meantime, it keeps me plenty busy enough not to have the time!
Hope this helped in some small way,
Cheers,
Chris

Similar Messages

  • IPhone will not charge when plugged into computer

    My phone was not working, and so I took it to the apple store nearby. Here were the problems:
    -error message saying "this device not made to work with iPhone"
    -would not charge when plugged into computer OR wall charger
    -person on other end of phone calls said i sounded really far away and had trouble hearing me
    -when i shut it off, it restarts itself immediately
    -cant do a manual reset holding the power and center buttons at same time
    -when plugged into the computer, mouse freezes, and a message appears saying ""power surge on hub port A usb device has exceeded the power limits of its hub port."
    At the genuis bar they told me they cant help me cause that little water damage indicator inside the headphone hole is pink instead of white! I have never ever ever ever ever EVER gotten my phone directly wet. The only thing i could think of was the humidity in the bathroom when I'm taking a shower, and using the timer to use hair remover on my legs lol. But i think this is totally unfair, they wont repair my phone, or even really look at it because of this supposed water damage. My phone has worked fine up to this point, and the thing that happened that started all of this is when i dropped it about a foot off the ground in a DRY parking lot.
    Is there any way they will replace my iphone at no charge?

    Well don't give up try again maybe your luck will change when you go back up there,let somebody else look at your phone not the same person that told you that.I would get a second and a 3rd option about my phone.When you go back don't even tell them what somebody already told you up there ones.
    And after the 3rd time I'll ask them well can they send your phone off to be fixed,It might not be nothing wrong with your phone it might be just they eyes playing tricks on them.Cause I promise you I know my phone had gotten some water in it cause I was sitting on the porch one day me and about 6 other people one of my cousin came out and through a bucket of water at my brother and I was sitting right on the side of him.And when I say my phone look like I than gave it a bath witch when they did that I had already had call the Apple store and told them something was wrong with my phone.And they had gave me appt to come up there,so I went to the Apple store I wanted say two day's latter after I made the appt to let them see my phone but my cousin and brother was playing with that water the day before I had to go so I guess that's why I was mad cause I was going to get other phone the next day after apple look at my old phone.So even with all that they still gave me other phone and I don't see how I didn't have no water in my phone cause of how much water they had through on my phone.
    I guess I was luck cause if they would have told me that I would have freaked out so badly.And the reason why cause I wouldn't had my phone for five days and for them to tell me they couldn't do something oh yea they would have done something cause I would have went to jail that day for tearing up something in the store that worth my 400 and something dollars I spent on my phone and it would have bent one of them computer that would have bent history.
    But I'M telling you,you going to be okay don't give up.Make you other appt and see what they say.

  • My iPad 2 charger is not working when plugged to a wall..but when plugged to a computer...it says unknown device...what's happening and how do I fix this problem?!

    My iPad 2 charger is not working when plugged to a wall..but when plugged to a computer...it says unknown device...what's happening and how do I fix this problem?!

    Have you recharge your iPod for at least 2 hours, preferably till the Full charge Battery symbol comes ON.?
    See this Apple support Article
    http://www.apple.com/support/ipod/five_rs/classic/
    You did not by chance bought the Hello Kitty special edition?
    Have nice day!

  • Region Monitoring iOS 7 : didEnterRegion method is not calling when app is killed by user or by OS in iOS 7 only. It is working fine when it is in background. and the same code is working fine with iOS 6 for both app in suspended mode and background mode.

    Region Monitoring iOS 7 : didEnterRegion method is not calling when app is killed by user or by OS in iOS 7 only. It is working fine when it is in background. and the same code is working fine with iOS 6 for both app in suspended mode and background mode. What changes I have to made to work great in iOS 7 also.

    I rewrote code for debugging purpose and tried to catch error using GetLastError();  method,
    but it only printed 0. Below is code snippet; I think Create() throw an exception
    and code goes to catch block. 
    LONG ConnectTS(CString strIP, UINT n_Port)
    try{
              ErrorLog(0,0,"ConnectTS is calling Create [is going to call]","");
              if(!Create())
    // Exception Line
    n_Err = GetLastError();
    return NET_INIT;
    catch(...)
                       DWORD errorCode = GetLastError();
                       CString errorMessage
                       errorMessage.Format("%lu",errorCode);
                       ErrorLog (0, 0, "Image
    System", (LPTSTR)(LPCTSTR)errorMessage);
                       return  IS_ERR_WINDOWS;
    Output: -
    ConnectTS is calling Create [is going to call]
    Image System
    0

  • While updating the software from 6.1.3 to 6.1.4 on iPhone 5, the power failed. iTunes had just finished the backup and was beginning the software update. Now the phone screen says to connect to iTunes but the phone is not recognised when plugged in.

    While updating the iPhone 5 software from 6.1.3 to 6.1.4, the power failed. iTunes had just finished the backup and was beginning the software update. Now the phone screen says to connect to iTunes but the phone is not recognised when plugged in. Using Windows 7 and phone not recognised by computer, let alone by iTunes.
    Any suggestions? Happy to take it off to the the Apple genius people but would prefer to get it running myself.
    Regards.

    Try this
    iOS: Device not recognized in iTunes for Windows

  • HT3798 ipod classic will not play when plugged in

    my ipod classic will suddenly not play when plugged in.  it is fully charged.  the message I get: contact www.apple.com/support/ipod
    I am unable to resolve my issue when going there and browsing the articles.  above the message is  red circle with an "X" in the middle of it.
    HELP!!!

    Which model is this iPod.  The "original" iPod was 5GB or 10GB, so this must be a 3rd gen iPod, at the earliest.  This document shows all the iPod models.
    http://support.apple.com/kb/ht1353
    If it's a 3rd gen iPod, it has a dock connector, but it needs to be connected to a FireWire port to charge.  It does not charge from a USB port.

  • My original Ipod 30gb will not charge when plugged in (suspect battery completely dead...). Help

    My orignal 30gb ipod will not charge when plugged in to a power socket. I think the battery has completely run down. Any thoughts?

    Which model is this iPod.  The "original" iPod was 5GB or 10GB, so this must be a 3rd gen iPod, at the earliest.  This document shows all the iPod models.
    http://support.apple.com/kb/ht1353
    If it's a 3rd gen iPod, it has a dock connector, but it needs to be connected to a FireWire port to charge.  It does not charge from a USB port.

  • My IPad 2 won't stop saying not charging when plugged in any outlet

    My IPad 2 keeps saying not charging when plugged in any outlet

    On the off chance try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. The screen will go blank and then power ON again in the normal way.] It is app and data safe!

  • My ipad 3 is not charging when plugged to pc

    my ipad 3 is not charging when plugged to pc, and it wouldn't sync in itunes as well, it's been like this since I first got it. it does charge when it's plugged into a wall with a 10W power adapter

    From here :
    The fastest way to charge your iPad is with the included 10W USB Power Adapter. iPad will also charge, although more slowly, when attached to a computer with a high-power USB port (many recent Mac computers) or with an iPhone Power Adapter. When attached to a computer via a standard USB port (most PCs or older Mac computers) iPad will charge, but only when it's in sleep mode.
    For syncing, is iTunes on your computer the latest version ? There is some troubleshooting on this page.

  • HEADPHONES do not work when plugged in - iMac Intel

    So I reinstalled the operating system a few months back. After completing this my headphones do not work when plugged in. I do have them plugged into the correct jack. When i plug them in the built-in speakers go silent for a second or two as if the headphones are working but then the speakers kick back in with no sound in the headphones.
    The headphones worked just prior to reinstall so I'm not sure its the jack itself but something in the operating system.
    I have also checked in System Preferences 'Sound' and when they are plugged in, they do not show in the devices window.
    What the heck is going on? I've read in other forums that this seems to be something of a typical problem but have not found a solution to the problem.
    thanks in advance for your help.
    Message was edited by: ikuchyacokov

    Welcome to the discussions.
    Mate, it sounds more like a system glitch than a hardware issue. I too have been experiences some 'funky' issues. However, they have all been fixed by running Onyx disc maintenance software. Install Onyx and run 'automation'. You can cancel the disc checking operations on start up and ignore the back up disclaimer. Give it a go and post back with the results.
    Onyx - http://www.titanium.free.fr/download.php?sid=6d79ad9269e8f01484b51a1056277186
    Make sure you get the right version for your OS.

  • Why does my ipad say "not charging" when plugged in?

    Why does my ipad say "not charging," when plugged in?

    http://support.apple.com/kb/HT4060
    Read the KB article.  Make sure you are using the 10W adapter that came with the iPad or a High-Power USB 2.0 port.

  • My new iPad mini will not charge when plugged into adapter. Any suggestions?

    my new ipad mini will not charge when plugged into adapter. What should I try?

    Does the charger get warm at all? Plug the cable into your computer with iTunes open. Does it say not charging.? If it does, the cable is good. The iPad will charge very slowly when pluged into your computer.
    The quickest way (and really the only way) to charge your iPad is with the included 10W or 12W USB Power Adapter. iPad will also charge, although more slowly, when attached to a computer with a high-power USB port (many recent Mac computers) or with an iPhone Power Adapter (5W). When attached to a computer via a standard USB port (2.5W, most PCs or older Mac computers) iPad will charge very slowly (but iPad indicates not charging). Make sure your computer is on while charging iPad via USB. If iPad is connected to a computer that’s turned off or is in sleep or standby mode, the iPad battery will continue to drain.
    Apple recommends that once a month you let the iPad fully discharge & then recharge to 100%.
    How to Calibrate Your Mac, iPhone, or iPad Battery
    http://www.macblend.com/how-to-calibrate-your-mac-iphone-or-ipad-battery/
    At this link http://www.tomshardware.com/reviews/galaxy-tab-android-tablet,3014-11.html , tests show that the iPad 2 battery (25 watt-hours) will charge to 90% in 3 hours 1 minute. It will charge to 100% in 4 hours 2 minutes. The new iPad has a larger capacity battery (42 watt-hours), so using the 10W charger will obviously take longer. If you are using your iPad while charging, it will take even longer. It's best to turn your new iPad OFF and charge over night. Also look at The iPad's charging challenge explained http://www.macworld.com/article/1150356/ipadcharging.html
    Also, if you have a 3rd generation iPad, look at
    Apple: iPad Battery Nothing to Get Charged Up About
    http://allthingsd.com/20120327/apple-ipad-battery-nothing-to-get-charged-up-abou t/
    Apple Explains New iPad's Continued Charging Beyond 100% Battery Level
    http://www.macrumors.com/2012/03/27/apple-explains-new-ipads-continued-charging- beyond-100-battery-level/
    New iPad Takes Much Longer to Charge Than iPad 2
    http://www.iphonehacks.com/2012/03/new-ipad-takes-much-longer-to-charge-than-ipa d-2.html
    Apple Batteries - iPad http://www.apple.com/batteries/ipad.html
    Extend iPad Battery Life (Look at pjl123 comment)
    https://discussions.apple.com/thread/3921324?tstart=30
    New iPad Slow to Recharge, Barely Charges During Use
    http://www.pcworld.com/article/252326/new_ipad_slow_to_recharge_barely_charges_d uring_use.html
    Tips About Charging for New iPad 3
    http://goodscool-electronics.blogspot.com/2012/04/tips-about-charging-for-new-ip ad-3.html
    How to Save and Prolong the battery life of your new ipad
    https://discussions.apple.com/thread/4480944?tstart=0
    Prolong battery lifespan for iPad / iPad 2 / iPad 3: charging tips
    http://thehowto.wikidot.com/prolong-battery-lifespan-for-ipad
    iPhone, iPod, Using the iPad Charger
    http://support.apple.com/kb/HT4327
    Install and use Battery Doctor HD
    http://itunes.apple.com/tw/app/battery-doctor-hd/id459702901?mt=8
    To Extend a Device’s Battery Life, Get to Know It Better
    http://tinyurl.com/b67c7xz
    iPad Battery Replacement
    http://www.apple.com/batteries/replacements.html
    In rare instances when using the Camera Connection Kit, you may notice that iPad does not charge after using the Camera Connection Kit. Disconnecting and reconnecting the iPad from the charger will resolve this issue.
     Cheers, Tom

  • My notebook will not charge when plugged in

    My notebook will not charge when plugged in & now will not work at all.  Do you think I need a new battery?

    Battery information is found in SYSTEM PROFILER>HARDWARE>POWER.
    Sometimes the power adapter does not show the light but is still functioning.  (that often the case with mine)  If on the menu bar the icon shows that it is charging, your ok.  If not, I jiggle the connector or snap it and that restores the connection.  If neither works, make certain the the connectors are clean, both on the adapter and the MBP.  Check to see if any of the posts are bent or missing. 
    If still no success, try another adapter if available.  If that does not work, the are issues with the MBP.  If it does, a new will be the answer.
    Ciao.

  • My phone will not charge when plugged in. It doesn't show the charge bar as green

    My phone will not charge when plugged in. It doesn't show the charge bar as green

    Hello alleyfun
    For issues with your iPhone not charging, check out the troubleshooting below to see if you can get it sorted out and working again.
    iPod Displays a Red "X" Icon
    http://support.apple.com/kb/TS1463
    Resolving issues
    If your battery doesn't charge, or if your device shows a low-battery image, black screen, or "accessory not supported" alert, follow these steps.
    Inspect the connector at the bottom of the phone:
      Make sure that there are no bent pins in the connector. 
    Make sure that the connector is free from debris.
    If there are bent pins or debris, please contact Apple Support.
    Otherwise, continue troubleshooting.
    Make sure that the outlet you're using works.
    Make sure that the Apple USB cable and Apple USB power adapter work.
    Plug the device in to power and let it charge until your device turns on. This could take between 10 and 30 minutes. If you don't have an Apple USB power adapter, try connecting to a computer's high-power USB 2.0 port (not a keyboard). The computer must be on.
    If the device still exhibits an issue, try turning your device off and then on again while connected to power.
    If the issue persists, please contact Apple Support.
    Regards,
    -Norm G.

  • My ipad air cellular says it is not charging when plugged into wall socket but after a few hours it has charged but still says not charging

    my ipad air cellular says it is not charging when plugged into wall socket but after a few hours it has charged but still says not charging
    please help with this little annoying problem

    for five weeks since i got it still doing it but it is charging so it is weird

Maybe you are looking for

  • Updated to 5.1 this weekend and lost wifi connectivity on iPhone 4 and Ipad 2

    This weekend I updated my iPhone 4 (AT&T) and iPad 2 (Verizon 3G, wifi) to 5.1. Since the update (went flawlessly), I have been unable to connect to wifi networks anywhere. All that I get is the continuously running circle that shows it is trying to

  • HP Pavilion dv6-3151st AMD GRAPHICS is not INSTALLING

    I have HP Pavilion dv6-3151st. I have a problem. Amd graphics is not installing. I downloaded from http://support.hp.com/tr-tr/product/HP-Pavilion-dv6-Entertainment-Notebook-PC-series/4247579/model/4320740It did not install.And i downloaded from amd 

  • EBS R12 and OEM

    Is Oracle Enterprise Manager (OEM) is part of Oracle E-Business Suite Release 12? OR This Oracle Enterprise Manager (OEM) required a separate license? Thanks in advance for your inputs.

  • Otherparams in Url and in formsweb.cfg

    Hello. There is a way to use the otherparams in url without substitute the one defined in formsweb.cfg? For estance I have in formswebcfg defined the "term" parameter. If I need to user otherparams=myparam=myvalue this one also cancel the "term" para

  • Cookie Cutter Tool in Photoshop Elements 11

    I am unable to make a shape from a photo using the Cookie Cutter Tool. I duplicated the photo. Clicked on cookie cutter icon. Created shape. Clicked on green check mark. The new layer is transparent. I cannot make the shape appear. Thanks. Helen