cancel
Showing results for 
Search instead for 
Did you mean: 

Passing parameters to webdynpro application

Former Member
0 Kudos

Hi All ,

I would like to pass parameters to webdynpro application , Can i use "Application parameters" field to do this ,while creating webdynpro iview ??.

If i can use this , is it possible to pass any set of "name = value "

pairs or is it possible to pass only standard parameters??.

Regards,

tarun.

Accepted Solutions (1)

Accepted Solutions (1)

former_member186016
Active Contributor
0 Kudos

Hi,

Check this :

Regards,

Ashwani Kr Sharma

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi thr...

Theres one other way as well... You can have variables in your Portal Scope and use these variables across WD applications....

The imports required in WD application for requirement are as follows:


import com.sap.tc.webdynpro.services.session.IClientSession;

import com.sap.tc.webdynpro.services.session.IScope;

The code snippet for putting the variable in portal scope from WD App1 is:

IClientSession session = Utils.getCurrentClientSession();

IScope scope = session.getScope();

scope.put("PROJECT_ID",wdContext.currentProjectElement().getProjectId());

/**

  • The above code will be written in Project WD application from where the selected project Id will be exposed in the portal scope.

/**

The code snippet for getting the project id from portal scope in WD App2 is

Integer proj = (Integer) scope.get("PROJECT_ID");

/**

  • The above code is written in those applications that want to access the variable Project_ID from the portal scope.

/**

I hope this helps you.

Regards

Kapil

Former Member
0 Kudos

chk it

/thread/16398 [original link is broken]

/people/prakash.singh4/blog/2005/10/07/how-to-launch-sap-transaction-pass-parameters-via-url

/thread/72371 [original link is broken]