cancel
Showing results for 
Search instead for 
Did you mean: 

getting the current portal page

Former Member
0 Kudos

Hi! is there a way for a web dynpro app (already integrated into an iView) to get the current portal page or page name in the EP where it is deployed at?

Thanks a lot.

Accepted Solutions (1)

Accepted Solutions (1)

sridhar_k2
Active Contributor
0 Kudos

Hi Aaron,

I think we can't get the Page name / Page where it is deployed. Bcz, it is nothing to do Web Dynpro. After Creating Web Dynpro only we are creating EP iView/Page.

Regards,

Sridhar

Former Member
0 Kudos

aryt.. thanks a lot!

but how about the url of the current page where the web dynpro app iview is at?

tnx!

sridhar_k2
Active Contributor
0 Kudos

Hi Aaron,

You can get the URL of the current iview by the following code.

try{

String url = WDURLGenerator.getAbsoluteWebResourceURL ("com.test.TestComp","com.test.TestApp");

manager.reportSuccess("Msg "+url);

}catch(WDURLException exp){

manager.reportSuccess("EXP "+exp);

}

"com.test.TestComp" - is your component name.

"com.test.TestApp" - is your application name.

Note:- iview should be created in portal.

Regards,

Sridhar

Former Member
0 Kudos

thanks a lot!

Answers (0)