cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the Url of the iview dynamically

Former Member
0 Kudos

Hi All,

I have an Url ivew which is having the path http://xxx:www/yyy/. The iview name is 'EmpUrl'

I have an webdynpro application which will get the ' user ' logged in.The iview name having this webdynpro application is 'EmpWD'.

I am using WDPortalNavigation.navigateAbsolute in the webdynpro application to navigate from 'EmpWD' to 'EmpUrl'.

Now I want the url iview to point to this position http://xxx:www/yyy/user.pdf

I am able to get the user from the webdynpro application.

I don know how to append the url in the url iview.

Is there any other way to get the user directly in the iview itself?

Please provide suggestions.

Best Wishes,

Idhaya R

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Idhaya,

I did not get the concept of calling URL iView from Web Dynpro application.

Better way you can directly call the URL from WD application and then pass the User in the parameters, the way we normally send it in HTTP request.

What is the reason behind using URL iView. Try redirecting directly, it will work.

Regards

Kedar Kulkarni

Former Member
0 Kudos

Hi kedar,

- I dont want the user to see the url which I am using

- I want it to be shown in the place of iview. I am using <b>WDPortalNavigationMode.SHOW_INPLACE</b> to achieve this.

When i am trying to open an url in webdynpro application it is opening in a new window.

Please give suggestions how to achieve this.

Best Wishes

Idhaya R

Former Member
0 Kudos

Hi Idhaya,

Try using target="_parent" tag while opening the URL.

It will not open in new window.

Regards

Kedar Kulkarni

Former Member
0 Kudos

Hi kedar,

I am using this code to open the url.

Please tell me how to user target="_parent" here and dont know how to hide the url also.

IWDWindow PDF = wdComponentAPI.getWindowManager().createNonModalExternalWindow("http://www.google.co.in","Google ");

PDF.show();

Best Wishes

Idhaya R

Former Member
0 Kudos

Ohh..

I got your problem.

I can suggest another approach in this case.

As you have created URL iView already, we can use that.

In Properties list of iView there is proerpty names Quick Link. Edit this property and give some name say "google"

Now in your code instead of giving direct URL use following code at URL place

"http://<SERVERNAME>:<PORT>/irj/portal/google" and in the Title place use "SAP Netweaver Portal" instead of "Google"

guess this solves your problem.

Regards

Kedar Kulkarni

reward points for useful answers

Former Member
0 Kudos

Hi kedar,

I want to change the url dynamically....

If I am using http://<SERVERNAME>:<PORT>/irj/portal/google it is pointing to the url iview.

I want to change the url in the url iview dynamically based on the output from the webdynpro.

Please give suggestions.

Best Wishes

Idhaya R

Former Member
0 Kudos

Hi Idhaya Ramadurai,

You can change the url of the url iview at runtime.

Check this link

http://help.sap.com/saphelp_nw04/helpdata/en/45/85087d755d1f88e10000000a1553f6/frameset.htm

Thanks,

Padmaja

Edited by: Padmaja Pedapudi on May 20, 2008 2:00 PM

Former Member
0 Kudos

Hi Padmaja,

how to pass the parameter from webdynpro to portal ?

I tried to pass the forcedURL parameter this way from webdynpro but no effect

The intial url to the iview is pointing to some other website, say Google.

<b>

WDPortalNavigation.navigateAbsolute("pcd:portal_content/com.voltas.Testid/com.test.Urlid",WDPortalNavigationMode.SHOW_INPLACE,

WDPortalNavigationHistoryMode.NO_HISTORY,"forcedURL=https://www.sdn.sap.com/irj/sdn");

</b>

Best Wishes,

Idhaya R

anoop_gupta2
Participant
0 Kudos

hey idhaya

basically a portal makes use of par file called "com.sap.portal.login.par"

to fetch the user information weather its a valid user or not .

now in ur requirment u can make use of this par file to fetch the user name.

  • hope that was useful.Reward if so.

thx & regards.

Anoop