on 10-17-2012 2:11 PM
Hi,
I have created iviews in SAP Portal for some WD4A applications. In the portal i can launch these applications OK. I can also use the portal navigation test tool and by typing in the absolute URL and pressing navigate
it launches the Application fine.However, if i put the following code into a button within a WD4A application and press it, it does nothing.
lr_compcontroller = wd_this->get_componentcontroller_ctr( ).
l_api_component = lr_compcontroller->wd_get_api( ).
l_portal_manager = l_api_component->get_portal_manager( ).
l_portal_manager->NAVIGATE_ABSOLUTE(
NAVIGATION_TARGET = lv_iview
NAVIGATION_MODE = IF_WD_PORTAL_INTEGRATION=>CO_SHOW_EXTERNAL ).
lv_view is set to the PCD and this works fine in the portal navigation test tool.
Obvioulsy something is wrong, I've put an http sniffer on and there is nothing coming back from the server, so it appears that the event is being supressed or ignored.
Does anyone have any ideas? If not anyone know of any monitoring tools which will allow me to see what is happening to the portal event and see why it is being ignored?
Both application and portal are http and on the same server.
Thanks
Jason
Hi Jason,
for parameter NAVIGATION_TARGET you need to use the same value as for the portal URL parameter navigationTarget. For example, it would be ROLES://portal_content/your_path.
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the response.
I have used the portal URL and this works fine in the portal navigation test tool, but not from the WD4A application.
Using an HTTP sniffer the response coming back from the server contains the following:
<updates>
<delta-update windowid="sapwd_main_window">
<script-call><![CDATA[application.exec("setFocus",{});]]></script-call>
<script-call><![CDATA[application.exec("unlock",{});]]></script-call>
<script-call><![CDATA[application.exec("integrationNavigateAbsolute",{"navigationTarget":"ROLES://portal_content/OMS/Roles/OMS_Application/OMS_UK/OMS_Application","navigationMode":"0","windowFeatures":"","windowName":"","historyMode":"1","targetTitle":"","contextUrl":"","postBody":"","controlId":"IHUB_NAVIGATION","pluginId":"integration","windowId":"sapwd_main_window"});]]></script-call>
<script-call><![CDATA[application.exec("integrationAdjustHeight",{"pluginId":"integration"});]]></script-call>
<initialize-ids><![CDATA[<span id="UCF_InitializeIDs" style="display:none">[]</span>]]></initialize-ids>
</delta-update>
</updates>
The browser does nowthing with this, any ideas?
Hi Jason,
some questions...
- Does the URL work outside the portal navigation test tool, e.g. when adding ?navigationTarget=<your url> to the portal url?
- Have you tried mode internal (instead of external). Probably, a new browser window cannot be opened for some reason
Hope, this helps...
Best regards,
Thomas
Hi Jason,
yes, adding it to the portal URL has to work as a prerequisite. More information can be found here in SDN at http://wiki.sdn.sap.com/wiki/display/EP/Absolute+navigation+on+Enterprise+Portal
Hope, the information there will help you.
Best regards,
Thomas
This has been resolved.
I found that navigation worked in FireFox but not in IE8
The issue was that the portal was configured as a trusted site, but the WD4A wasn't. Therefore the cross client communication was prevented due to security issues. By moving both into trusted sites, the cross client communication now works.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.