on 05-11-2007 5:19 AM
Hi All,
when i deploy my Webdynpro application in browser and navigate from one page to another page ,then the total URL Address of the corresponding page is displayed in the address bar .
But when i run it inside portal, even though i navigate from one page to another
the detailed address of the corresponding page is not diaplayed .
It comes only as http://xxxxxx/portal.
How can i get the detailed URL address of the corresponding view in the portal also .
In my project there is a requirement like there should be a linker in the view and when user will click on the link , it will show the detailed URL address of the corresponding view .
Can anybody help out regarding how to do this .
Thanks in advance .
One more solution. You can add application parameter for your iView, like:
app.iviewUrl=<IView.ID[url_ENCODE]>
in your WD application (in coresponding interface view) add parameter iviewUrl in which you will get iViews URL on runtime.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hai
You can get it like
String url = WDURLGenerator.getAbsoluteWebResourceURL(wdThis.wdGetAPI().getComponent().getApplication().getDeployableObjectPart())
or
WDURLGenerator.getAbsoluteWebResourceURL(wdComponentAPI.getApplication().getDeployableObjectPart())
Regards,
Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if you know the application name then you can retrieve the URL as:
WDDeployableObjectPart deployableObjectPart = wdComponentAPI.getApplication().getDeployableObjectPart();
String urlappl = WDURLGenerator.getApplicationURL(deployableObjectPart);
or for application resource URL(but this may be deprecated)
String urlappl = WDURLGenerator.getAbsoluteWebResourceURL(wdThis.wdGetAPI().getComponent().getApplication().getDeployableObjectPart());
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Abhijeet,
Try your code with any WD application that accepts parameters, like
http://localhost:50000/webdynpro/dispatcher/local/MyApp?vendor=SomeVendor&model=SomeModel
and you will answer your question yourself.
Btw, besides parameters you will not get protocol, host and port in generated URL.
VS
ooohhh...okay so that is ..
but i checked the code :
String urlappl = WDURLGenerator.getAbsoluteWebResourceURL(wdThis.wdGetAPI().getComponent().getApplication().getDeployableObjectPart());
it gives the complete URL including host too..or does this miss some important information..
is there any other better solution for this, i think there can be?
regards
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.