on 08-05-2004 9:39 AM
Hi,
I am developing some BSPs that will be used in our SAP EP 5.0 / 6.0.
To make sure that my applications are rendered regarding the corporate design I want to use the actual portal stylesheets in my bsp application. I do not want to "hardcode" the stylesheet in my application.
Is there a way to get the used portal style dynamically without defining the name of the stylesheet?
The PCUI components of CRM 4.0 show the desired behaviour: When I start them in a normal browser session they appear in a default style.
When I call them in our portal environment they appear in the actual portal style.
So my question is: How can I use the stylesheet that is actually set in Enterprise Portal for my own BSP?
Best Regards,
Steffen
As long as you use the HTMLB library for rendering, and you bind your BSP into the portal using the BSP iview launcher thingie, all should be well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brian,
I created a new BSP using the default example (code is listed below).
In EP I created an external service and an Java iView that are based on my BSP. Both appear in sap_tradeshow design that is different from the portal design.
Best Regards
Steffen
BSP sample code I use:
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2003">
<htmlb:page title = " ">
<htmlb:form>
<htmlb:textView text = "Hello World!"
design = "EMPHASIZED" />
<htmlb:button text = "Press Me"
onClick = "myClickHandler" />
</htmlb:form>
</htmlb:page>
</htmlb:content>
You write:
<i>In EP I created an external service and an Java iView that are based on my BSP.</i>
I write:
<i>and you bind your BSP into the portal using the BSP iview launcher thingie</i>
There is a very subtle difference. You must use specifically in the portal the correct iView launcher/type/class whatever that has been build to specifically launch BSP applications. This will set the correct startup parameters which include stylesheet information.
Please read portal documentation.
Hi Steffen,
As long as you use HTMLB extensions in your BSP they should give you the standard SAP look and feel. You create an external service in EP5.0 and attach it to the Role directly may be through worksets through which the BSP can be accessed using the portal navigation. In any case the pages are rendered with SAP standard look and feel from the portal also.
There is an option in BSP attributes called Portal Integration, that is only for the session management, it doesn't affect the look and feel. If you still have a problem then portal installation may not be having all the style sheets to support HTMLB extensions.
hope this helps..
Regards,
Suresh
There is also another problem I have forgotten about. The EP5 portal does not have the new design2003 stylesheets. The BSP checks for this situation, and will then still uses the old ones.
So let us elliminate first one question: does the portal start the BSP with the correct startup parameters?
Probably the easiest way to check this is finish loading you BSP into portal. Then do a right-mouse, look at properties entry. Copy the URL over. See weblog on url mangling, and decode the url. There must be a parameter called themeRoot set.
We can take it from there then.
Hello,
a thing not mentioned yet is the "Supports Portal integraion" flag on the propertis tab of your BSP definition.
By ticking this checkbox the current portal style sheet will be overtaken to your BSP - but watch out the hint of Brian - Design2003 won't be supported by EP 5.0.
Regards, Bernd
Have you tried : <htmlb:content design="design2003">
and other desgin ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.