on 03-07-2006 3:51 PM
Hi all,
A portal page to integrate several kinds of contents is in general the best way.
But how can you handle dynamic replacement of an iView of a page (the page contains more than one iView) by another one by using the Portal navigation service of the WebDynpro Runtime? If I navigate to the target application with mode WDPortalNavigationMode.SHOW_INPLACE, the content of the page at all is replaced by the target iView. Is there a possibility to access/replace only the desired iView of the page?
Thanks.
Cemal
Really would like to knwo this too
My current code is :
EPCM.doNavigate('IVIEWS://portal_content/STIBMIVB/com.stibmivb.SPC_F_Communication/SPC_F_IViews/SPC_I_Content',0);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Laurent,
this is no possible with WebDynpro except the IFRAME - UI - Element of the webdynpro. But the iframe ui-element is declared as deprecated for future releases.
The solution is a portal component with an embedded html-iframe. The src - attribute of this iframe can be filled dynamically by the portal eventing.
You create a dynpage as a event receiver. This fills the src-attribute of the html-iframe by the event param dataObject.
The code below can help you:
/**
Create output. Called once per request.
*/
public void doProcessBeforeOutput() throws PageException {
Form myForm = this.getForm(); // get the form from DynPage
IPortalComponentRequest request = (IPortalComponentRequest)this.getPageContext().getRequest();
String Output =
"<iframe id='LauncheriFrame' src='' width='100%' height='100%' margin='0' padding='0' frameBorder='0'></iframe>"
+ "<script>"
+ "function <eventhandler>(eventObj){"
+"document.getElementById('LauncheriFrame').src = eventObj.dataObject;"
+ "}"
+ "EPCM.subscribeEvent('<namespace>', '<Eventname>', <eventhandler>);</script>";
this.getPageContext().write(Output);
}
I hope that helps you.
Cemal
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
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.