on 03-26-2009 9:37 AM
HI,
I have a requirement that i am to call a URL(Portal) from webdynpro application in the same window.
Thanks,
Animit
Hi Anumit,
You can use LinktoURL element. to open on the same window you need to go to the properties of the LinktoURL and set the value of target to _self
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To exit a webdynpro application, and navigate to some other URL (if required), we make use of the exit plugs.
Refer:
http://help.sap.com/saphelp_nw70/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm
However, to check if particular role is assigned to a user or not, we need to use the iUser API and iterate through the roles assigned to the "currently logged in portal user". Now, how are you planning to get the current portal user without logging in to portal..i.e, in a standalone webdynpro Application?
Following are Help.sap links for WDJ:
Check in below example they have used Exit plug:
http://help.sap.com/saphelp_nw70/helpdata/EN/51/2c747ecd037842943bdb38be214719/frameset.htm
Link on Navigation topic:
http://help.sap.com/saphelp_nw70/helpdata/EN/42/bb8c6cc7131d67e10000000a1553f6/frameset.htm
Edited by: Anagha Jawalekar on Mar 30, 2009 12:09 PM
I anm using a standalone WD appl and will use the cookies of the same browser to get the user id and pass fo the Portal.
Could you elaborate, which API are you using to fetch the role details for a user? And Since you are first calling the Webdynpro App in your browser, how would you be knowing the user? Are you using Authentication in webdynpro?
Hi,
I am using 'iUser API' and 'Authentication' in webdynpro.
Now , i used suspend plug to call Portal URL and the following code in the wdDoInit() method:
wdThis.wdGetBILoginInterfaceViewController().wdFirePlugMySuspendPlug("http://www.Portal.com");
But getting the below error:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Instance of interface view controller BILoginInterfaceView does not exist.
Thanks,
Anumit
You can use the LinkToURL UI element to show a link and on clicking the link a new external window will open.
If you want to open the window automatically like on click of a button then on the action handler you can use the following code.
String url="Provide URL here";
String title="Provide Title of the window";
IWDWindow window=wdComponentAPI.getWindowManager().createExternalWindow(url,title ,false);
window.show();
If you want to have in same window As of my knowledge the only best option is to use exit plugs...
Hope this helps,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Animit,
You can use exit plugs for this which will exit from the webDynpro application and will redirect the the URL u have provided there.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.