on 04-17-2009 10:47 AM
I am planning to build a BSP to call a BI web template.
Below is the code in the BSP. When i execute the BSP, the first frame which having the web template is keep loading non stop? Any of you have any idea?
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<html>
<frameset cols="20%, 80%" title="report123" >
<frame src="http'://test':50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=ZJREPORTMENU&DUMMY=0" />
<frame src="http'://abc.com/apa.htm" />
</frameset>
<htmlb:content design="design2003" >
<htmlb:page title="Dashboard Main P " >
<htmlb:form>
</htmlb:form>
</htmlb:page>
</htmlb:content>
</html>
Any advice is appreciated. The URL is correct, for ":", i put a ' in front to allow for this posting. Else i am unable to post the message.
Edited by: Joey Heng on Apr 17, 2009 12:00 PM
Hi folks,
in my scenario i use the outer frame (session_single_frame.htm) for auto logoff and i load a bi-report into an inner frame of my bsp.
Now set the "portal integration"-flag in the attributes-list of the bsp. This fixed the problem for me. It should put the domain relax script to the right place.
Regards Hubertus
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 Tanguy,
Yes, i removed the "_" in the sc_ript.....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry....the amended code is as follows. accidentally hit the post message before i complete the post.
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:document>
<htmlb:documentHead title="Report 123" >
<frameset cols="20%,80%" >
<frame src="http_://test:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=ZJMAINPAGE" />
<frame src="http_://test:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=ZJMAINPAGE2" />
</frameset>
<sc_ript language="Javascript">
<_%= runtime->get_domain_relax_script( ) _%>
</sc_ript>
</htmlb:documentHead>
</htmlb:document>
</htmlb:content>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hmm, the code i shared works for me. may be you want to shift the following code
<sc_ript language="Javascript">
<_%= runtime->get_domain_relax_script( ) _%>
</sc_ript>
to just above <frameset start and below <htmlb:documentHead
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:document>
<htmlb:documentHead title="Report 123" >
<sc_ript language="Javascript">
<_%= runtime->get_domain_relax_script( ) _%>
</sc_ript>
<frameset cols="20%,80%" >
<frame src="http_://test:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=ZJMAINPAGE" />
<frame src="http_://test:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=ZJMAINPAGE2" />
</frameset>
</htmlb:documentHead>
</htmlb:document>
</htmlb:content>
Hi,
as said, we try to solve that problem as well.
I'm very interested if you meanwhile found a solution or a workaround for that.
For your interest... there are other threads concerning that problem:
[BI 7.0 WAD Template inside a frame is not working|;
I tried several solutions approaches, but all without success.
So, I'm still searching...
Best regards,
Sebastian
i have been using framed BSP page to build BI report dashboard without any issue. (both 3.5 and 7 templates)
hee is what i do.
on the left side frame load the report list (tree) and onclient click load the report on the right side frame.(using the target attribute)
for generating the url for bi report
for 3.5 templates and queries we used relative urls (/sap/bw/bex......) and for
7 templates and queries.
CALL METHOD CL_RSWR_SERVICES=>GET_LAUNCHER_URL
EXPORTING
I_OBJTYPE = 'QU' " use HT for templates
* I_TECHNAME = wa_rpts-rpt_tech_id
* I_QUERY_STRING =
I_2X3X_URL = rs_c_false
* I_BROADCASTER_START_URL =
* I_COMPRESSED =
IMPORTING
E_URL = tmp_url .
Things to check:
1. is the page hosting the frames and BI reports are from the same domain?
2. domain relaxation
3. use a HTTP watch tool to see whats happenning.
Regards
Raja
Hi Raja,
thank you for your answer.
I integrated your method in my BSP and it generates the following URL for my 7.0 web template:
http://url:port/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!
2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=TemplateName
Unfortunately the problem thereby is not solved. The problem with the frame which keeps loading
without showing the template stands.
Any other idea?
What do you mean with domain relaxation?
I inserted the following code into my BSP page:
<%= runtime->get_domain_relax_script( ) %>
But this did not solve the problem either.
Where (in which do I have to put in the get_domain_relax_script( ) ?
Just to clarify:
My frame layout consits of a headerframe and a contentframe below. In the header frame I want
to put down many links to SAP 7.0 web templates which shall appear in the contentframe. I know
that there are WAD means to realize that with Include-WebItems, but these items aren't an option
for me. I want to use frame an standard web methodologies.
Thanks to everybody, waiting for your ideas
Sebastian
Hi everybody,
i used a http-WatchTool to capture the load process of the frame.
Here are the results.
Started Time Sent Received Method Result Type URL
0.000 0.675 1367 2368 GET 200 text/html; charset=UTF-8 http://url:port/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=TemplateName&DUMMY=0
0.702 0.001 0 0 GET (Cache) text/css http://url:port/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/sap_tradeshow/glbl/glbl_ie6.css?7.0.18.0.0
0.704 0.001 0 0 GET (Cache) text/css http://url:port/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/sap_tradeshow/prtl_std/prtl_std_ie6.css?7.0.18.0.0
0.706 0.001 0 0 GET (Cache) application/x-javascript http://url:port/irj/portalapps/com.sap.portal.epcf.loader/script/optimize/js13_epcf.js?7.00001608
0.760 0.001 0 0 GET (Cache) text/html; charset=UTF-8 http://url:port/irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.Loading?1339514044
0.762 0.001 0 0 GET (Cache) text/css http://url:port/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/sap_tradeshow/ur/ur_pop_ie6.css?7.0.18.0.0
0.775 0.066 1871 2630 POST 200 text/html; charset=UTF-8 http://url:port/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=TemplateName&DUMMY=0
0.778 0.010 0 0 GET (Cache) image/gif http://url:port/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/sap_tradeshow/common/loading/loading_ani.gif?7.0.18.1.0
0.852 0.000 0 0 GET (Cache) text/css http://url:port/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/sap_tradeshow/glbl/glbl_ie6.css?7.0.18.0.
0.853 0.000 0 0 GET (Cache) text/css http://url:port/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/sap_tradeshow/prtl_std/prtl_std_ie6.css?7.0.18.0.0
(...)
and so on in a neverending loop...
Maybe this helps...
Thank you!
Sebastian
Hi everybody,
I got a message from SAP with a link to the following note:
Note 1048797 - Including a NW 2004s BEx Web Application in an iFrame
https://service.sap.com/sap/support/notes/1048797
But I'm wondering because as mentioned before my BSP and the Web template already have the same domain.
Nevertheless I tried to apply the Java Script into my embedding site, which contains the iFrame, but the error stands.
document.domain = "acme.com";
I have to say, that my Frame content and the WAD Url use different ports.
Do I have to include the JavaScript also into the Web template?
Thanks for helping,
Sebastian
I had changed the code as follows. The page still get refreshing/loading none stop. After i put in the runtime script, the refreshing is just got delayed. However it still refreshing. I can see the progress bar below
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:document>
<htmlb:documentHead title="Report 123" >
<frameset cols="20%,80%" >
</frameset>
</script>
</htmlb:documentHead>
</htmlb:document>
</htmlb:content>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
apart from the domain relaxation script you also need to clean up your html
you are mixing plain html tag and htmlb:content tage, this will render two html tags. try the following code and it should work.
< %@page lan guage="abap" % >
< %@exte nsion name="htmlb" prefix="htmlb" %>
< htm lb:content design = "design2003"
controlRendering = "sap" >
<ht mlb:docu ment>
< ht mlb:documentHead title=" " >
<sc_ript>
< %= runtime->get_domain_relax_sc ript( ) %>
< /sc_ript>
<fr ameset id="MiddleFrame" cols="235,*" frame border="0" border="0" fram espacing="2">
<fra me style="border: 1px solid #808080" sc rolling="auto" s rc="date.htm" name="left" target="_self">
<fr ame style="border: 1px solid #808080"
src="bi7 webtempate url"
name="right" marginwidth="0" marginheight="0" scrolling="no" target="_self">
< /fr ameset>
< /htmlb:docum entHead>
< /htmlb:doc ument>
</htmlb:content>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I suspect is the calling of the web template.
If i have the frame source from other web page, it is fine. As long as i call a web template, then the page will keep refreshing/loading itself none stop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Tanguy, the issue is still unsolved eventhough i put in the script.
Any suggestion is appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This is a domain-relaxing problem. Try with the following:
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<html>
<head>
<sc_ript>
<%= runtime->get_domain_relax_script( ) %>
</sc_ript>
</head>
<frameset cols="20%, 80%" title="report123" >
etc...
The script is used to set the BSP page domain to the same as the WAD one, so that both can interact by javascript. I don't remember the exact process of a WAD laoding, but I know that it changes its window's name: so there is an error when domains are different...
Regards,
Tanguy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
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.