Controlling WDJ behaviour based on the Calling Application - Any Idea?

Hi Folks,
I have crated <u>two applications</u> to call the <u>one WDJ program</u>.. So that based on the calling application i need to change the behavior of the WDJ program.. that is displlay and not to display few UI elements based on the calling application..
Can sone one pelase help me in this regards
Thanks in advance,
Srini.

Hi Srinivas,
please, follow these steps:
1) in the url of your application send a parameter (e.g. 'a' for application 1 and 'b' for application 2).
2) Into web dynpro create an inbound Plugs(Open your Interface View -> Plugs) as:
Name : Default
Event Handler: onPlugDefault
Startup: yes
This plug will read the value you sent in the URL.
3) Assign to it a parameter in the Parameters Area, i.e. "param1" type string
4) In the View you can capture the parameter value in the URL in the wdDoInit method, using this code:
String par1 = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("param1");
5) Note that in the View you must add the interface (Properties -> Required Controllers)
That's all. Hoper this help you.
Regards,
Vito

Similar Messages

  • Knowing the identity of the calling application.

    I have a static object which can be shared between two applications, similar to a static object that can be shared between two applets. Now if the object has a method say myMethod() how can i know which application called the method. To be more clear.
    Let my object be MyObject.
    Now the static instance for the object would be
    static MyObject myObject = new MyObject().
    I have two applets appletA and appletB;
    Suppose appletA or appletB were to call myObject.myMethod(), how will i know that appletA called the method or appletB called the method.
    I need to know this for applications not applets if there is a difference in solution for both.
    Any help would be really very useful.
    Thanks
    Rishab

    Actually there is more to the problem. I have a static object reference in myClass. Okay now when ever the application calls myObject.myMethod() i need to update the reference to the calling application. I cannot change the method signature of myMethod() to pass the reference of the calling application, because this will be called by someone else. Also i forgot to write this , myMethod is a static method. So the only way this can be called are in the following ways.
    class myApplication {
    myApplication() {
    myObject.myMethod();
    myApplication b = new myApplication();
    myApplication c = new myApplication();
    Now in myMethod i need to know the following
    static void myMethod() {
    // Caller myApplication b or myApplication C ????
    I am not sure how to use, this but the Security Packages have some way to do this i think.
    I have tried the following, using two applets.
    System.getRuntime() in myApplet 1 or myApplet 2 returns the same object, so no use.
    The class loader used for both the applets is the system class loader so no use.
    One question, taking the case of two applets, they are running on the same browser VM. But wouldnt they be running in two different threads. The currentThread for both still is the same.
    RMI is out of question, cause i am not supposed to use the RMI package.
    Thanks for the help so far.
    regards,
    Rishab

  • How to get back to the calling application ?

    Hi Friends ,
                I am having a BSP application which is being called from different Planning layouts in BPS .
      Its a stateful application and I am finding that when i hit standard browser Back button i am returning to my application again .
      I tried creating a button and passing the javascript method history.back()
    <htmlb:button id       = "BACK"
                                onClick  = "BACK"
                                text     = "BACK"
                                tooltip  = "Back"
                           disabled = "<%= v_save_disable %>"
                           onClientClick="history.back();"
                                width    = "15" />
    it is notworking.
    Please let me know how can i resolve the issue ? I have another idea to divert the user to the calling application using URL but dont know how to capture the URL of calling application ?
    i appreciate your contribution in advance.

    <i>It generates a BSP in which i am adding a URL link to call my application.</i>
    while adding the url add a parameter to it masterdatabsp.htm?frompage=<currentpagename>
    (runtime->PAGE_NAME will return current page name)
    and in the master data maintenance bsp page declare a page attribute and name it frompage type string and check the auto check box.
    now within your masterdatamanintenance bsp you will have the calling page name.
    Hope this is clear. if not do getback.
    Regards
    Raja
    i work in a place where weekends are on thursdays and fridays - today is a working day

  • I keep getting the following message on my phone "Sorry!  The application Email (processcom.andriod.email) has stopped unexpectedly.  Please try again"  and there is a force shutdown button, which I push but keep getting the message.  Any ideas how to mak

    I keep getting the following message on my phone "Sorry!  The application Email (processcom.andriod.email) has stopped unexpectedly.  Please try again"  and there is a force shutdown button, which I push but keep getting the message.  Any ideas how to make it go away so I can get my emails?

    Have you installed any applications recently?  A task killer maybe?  You can try rebooting the phone and see if that helps.

  • Macbook air suddenly running slow. Closed all applications, rebooted, doesn't solve the problem.  Any ideas?

    macbook air suddenly running slow. Closed all applications, rebooted, doesn't solve the problem.  Any ideas?

    It's very likely that your boot drive is failing. Back up all data immediately and schedule a "Genius" appointment at an Apple Store.

  • On OS 5, the contacts with international format do not show the names when they call me. any idea why?

    I have updated my Iphone 4 software to OS5, and since then the names of the people who call me stopped to appear and only their number is showing. after checking, i found out that the contatcs whom local phone number is saved in an international format are affected by this problem. if i save them without the country code, then their names appear.
    Also, some non local numbers that are saved in the format of 00966--------- instead of +966 ------- are also not showing the name of my contact when they call me.
    any idea about this knowing that the older OS version didn't have an issue with this?
    Thanks

    This is the same problem I have.  I thought it was my phone only, but now I realize it is a common thing.  I hope they release a fix to this, as they did in 2007 & 2007 when 3G was released.  Will be waiting and good luck to us all.

  • Got a new LG in Anchorage and was told Glennallen, AK is in a service area.  Got home and all I get is Message 41, Roaming. Can make calls with WiFi connection but not on the road. Any idea whats going on?

    Got a new LG in Anchorage and was told Glennallen, AK is in a service area.  Got home and all I get is Message 41, Roaming.
    I can make calls with WiFi connection but not on the road. Any idea whats going on?

        Oh no! I'm sorry to hear you had problems in the are you're in AkJohnDye. I checked your coverage and I do see we have an extended 4G coverage. This means you're able to use your phone but it needs to be activated in a 4G LTE Verizon Wireless coverage zone. I apologize.
    AdaS_VZW
    Follow us on Twitter at @VZWSupport 

  • When I download word docs my MacBook is adding the flv extension onto the doc extension and I can't open the doc. Any ideas?

    When I download word docs my MacBook is adding the flv extension onto the doc extension and I can't open the doc. Any ideas?

    Go to the main Library folder and look for a folder called Application Support / Microsoft.
    There are a few folders in there, and you may have to do some digging. In one of them (mine is called MAU2.0), there should be a file called Microsoft Autoupdate. Open it.
    It looks like this:
    check the button for manual updates.
    That should let you open the apps without triggering an automatic update.

  • Hi! I've been using Goldmine contact management software for many years and syncing with Companion Link successfully, then ITunes to the IPhone. Suddenly, my IPhone is not recognized and won't sync. I see a message telling me to dock the phone? Any ideas?

    Hi! I've been using Goldmine contact management software for many years and syncing with Companion Link successfully, then ITunes to the IPhone. Suddenly, my IPhone is not recognized and won't sync. I see a message telling me to dock the phone? Any ideas? Thanks for any assist!

    Hi Ken,
    Dennis here from westport. I too am a goldmine user for many years and would love to know how you sync.
    I am looking at a product called wmobile, but may be problematic on my current system.
    thanks for any help...

  • My IPad has stopped printing using air print and my HP Photosmart 5520 but my laptop is printing ok on the same system. any ideas? I have re-booted everything.

    my IPad has stopped printing using air print and my HP Photosmart 5520 but my laptop is printing ok on the same system. any ideas? I have re-booted everything.

    Hi I have an HP printer. I use an APP called print central from APP Store. Used this for the last 2 years on 2 IPhones & 3 iPads with no problems. Cheers Brian

  • Safari status bar disappears.  I have tried clicking on show status bar and it will only appear when I move the cursor to the top of the screen.  I can not minimize the open page only full screen or close the browser.  Any idea how the rectify this

    Safari status bar disappears. I have tried clicking on show status bar, under the View tab and it will only appear when I move the cursor to the top of the screen. I can not minimize the open page, only full screen or close the browser. Any idea how the rectify this issue?

    One enters and exits full-screen with control+command+F keys. This is on the View menu in Safari. Optionally, the green traffic light in your browser title bar, if you roll over it, has the full-screen control it it. While in full-screen mode with Safari, moving your mouse pointer virtually up, and off-screen reveals the Safari title bar again, and you can click the green traffic light to exit full-screen mode.
    You can hide/show the status bar by simply typing command+/. This too, is on the Safari View menu. and in 10.10.1 — it works reliably for me.

  • I can't find where iweb saves files. i have no iweb folder in my library applications. any ideas?

    i can't find where iweb saves files. i have no iweb folder in my library applications. any ideas?

    Yes you do - it is found under your User Library/Application Support/iWeb/domain.sites.
    It is the domain.sites folder that you want and the iWeb folder is NOT in your System Library, but rather your User Library - that's the one with the house.
    Depending on what OS you are using - from Lion upwards, your User Library is invisible, so to make it visible, go to the Go menu and hold down the 'alt' key at the same time and your Library will show - then go to Application Support and the iWeb folder is there with your domain.sites file in it.  Double click on this file to open it and iWeb will.

  • I cannot hear callers unless using speakerphone. the phone is not on mute, the problem has started for no apparent reason and rebooting has not resolved the problem. Any ideas?

    My iphone 4 (Model MD128B/A) running iOS 7.1.2 has developed a problem when receiving calls, for no apparent reason. The caller can hear me, but unless I switch to speakerphone, I cannot hear them. The mute button still functions normally. I have rebooted the phone but this has not resolved the issue. Any ideas about how to resolve this problem? Thanks.

    Hello manleyjohn,
    Welcome to the Apple Support Communities!
    I understand that you are unable to hear callers though the receiver on your iPhone 4 unless you change the sound to the speaker. In this situation, I would recommend reading over the attached article and verifying that the troubleshooting steps have been completed. If the issue continues, it may be necessary to follow the link towards the bottom of the article and contact Apple Support. 
    If you can't hear a person on a call or voicemail or if the sound quality is poor on iPhone - Apple Support
    Have a great day,
    Joe

  • HT204368 I am trying to link via bluetooth my apple iphone 3 to a plantronics voyager 520. Everything is charged, bluetooth turned on etc. My phone searches but cannot find the signal. Any ideas? Alan

    I am trying to link my iphone 3 via bluetooth to a plantronics voyager 520. Both items are charged, bluetooth turned on etc. My phone searches but cannot find the signal. Any ideas? Alan

    here is an interesting thing: take the iphone and set lock screen to never. Now make an email with siri--be sure to activate her with call button. get to the body and get some text in there. then just stop talking. LOCK SCREEN APPEARS!!!!!! and of course you draft is gone.
    There does seem to be a work around for some--maybe all these issues. Don't use the call button--use the buttons on the phone.
    Siri seems to behave properly with scenerio above---sans call button. She does not go to lock.

  • My iPhoto will not work with Yosemite, and it says that it was purchased under a different account, but that's not the case.  Any ideas why I cannot update iPhoto?

    my iPhoto will not work with Yosemite, and it says that it was purchased under a different account, but that's not the case.  Any ideas why I cannot update iPhoto?

    How did you buy iPhoto? Did it come preinstalled on your computer with Lion or later, or did it come with Snowleopard on system installer disks?
    Which version of iPhoto?
    If you have a version of iPhoto '11 and it is showing on the Purchased tab of the App Store, with your Apple ID, then delete iPhoto from the Applications folder  (don't empty the Trash) and download iPhoto again from the Purchased tab.
    If that does not work, contact The App Store Support  from the Quick Links on the AppStore main page.
    Only apple Support can fix problems with apple ID.

Maybe you are looking for

  • Data from downloaded app

    Can I download an app for the App Store to iphone and have it sync data to/from the same app on ipad?

  • Have LR on macbook want to put on desktop with same license -how?

    what is the step by step process

  • CS5 Color Picker HUD Problem

    Shift-Alt-Right Click-Drag doesn't bring up the Color Picker HUD.  Someone suggested making sure "Enabale OpenGL Drawing" box is checked, but tis greyed out (says that Photoshop Standard" not supported).  Is this the problem?  What is Photoshop "Stan

  • SCCM 2012 R2 - List of IE versions report

    Hi all, I am trying to create a SCCM 2012 R2 report that tells me what versions of IE are on the machines. Its not so much an issue for installed versions but I also want to know the versions of IE that are part of the operating system. Any advice wo

  • CSS stateful fail-over

    The current version of the CSS allows stateful fail-over using a direct connection between two CSS. I am working on a project for a customer where the two CSS are away from each-other. Stateful fail-over is a strong requirement for this customer. Wha