on 08-22-2007 1:03 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vito,
As i said it took time to explore you solution to me.. Any ways it's working fine now.
thnaks for ur help and let me reward you with points.
and the way you described is really very descriptive and it is much appriciated.
Cheers,
Srinivas M.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry,
miseplled you name "Vito" pls don't mind..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vitio,
I am new to to WDJ any how i understood most of ur solution description.. except your point
"(3) Assign to it a parameter in the Parameters Area, i.e. "param1" type string"
In my IVIEW propreties:-
Application Parameters : "param1"..
but cudn't see it in the URL any ways pls tell me how to send/receive parameter value..
Thanks,
Srinivas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.