cancel
Showing results for 
Search instead for 
Did you mean: 

Using portal styles in BSP

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member181879
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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>

former_member181879
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

former_member181879
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

Have you tried : <htmlb:content design="design2003">

and other desgin ?

Former Member
0 Kudos

yes, I am using the hello world example.