Skip to Content
avatar image
Former Member

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 22, 2007 at 12:33 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 25, 2007 at 11:25 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 25, 2007 at 11:27 AM

    Sorry,

    miseplled you name "Vito" pls don't mind..

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 25, 2007 at 12:44 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded