cancel
Showing results for 
Search instead for 
Did you mean: 

HTMLB Setting Background Colour

former_member181879
Active Contributor
0 Kudos

Last night at techEd BOF I had a very nice time. Some guys and one gal come to listen. It later turns out they are all from the same company doing BSP work. So as we were a small group, we first did my prepared "song and dance" show (about which I will write a weblog soon), and then things got informal.

One of the questions I promised to answer, was how to set the background colour of a BSP page. Here is two examples from our best expert!


<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2003">
 <htmlb:document>
  <htmlb:documentHead title="Red Background">
  </htmlb:documentHead>
  <htmlb:documentBody>
    <script>
      document.body.style.background="red";
    </script>
    <htmlb:form>
      <htmlb:tray id                = "tray"
                  width             = "100%"
                  hasMargin         = "false"
                  title             = "xyz"
                  hasContentPadding = "true" >
        <htmlb:trayBody>
          ...
        </htmlb:trayBody>
      </htmlb:tray>
    </htmlb:form>
  </htmlb:documentBody>
 </htmlb:document>
</htmlb:content>

<u><b>OR</b></u>

<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2003">
 <htmlb:document>
  <htmlb:documentHead title="Red Background">
    <style>
      .urBdyStd{background:red !important;}
    </style>
  </htmlb:documentHead>
  <htmlb:documentBody>
    <htmlb:form>
      <htmlb:tray id                = "tray"
                  width             = "100%"
                  hasMargin         = "false"
                  title             = "xyz"
                  hasContentPadding = "true" >
        <htmlb:trayBody>
          ...
        </htmlb:trayBody>
      </htmlb:tray>
    </htmlb:form>
  </htmlb:documentBody>
 </htmlb:document>
</htmlb:content>

Dankie dat julle gekom het! Ek het die tyd baie geniet, en die tyd was regtig interessant. dankie, brian

Accepted Solutions (0)

Answers (1)

Answers (1)

maximilian_schaufler
Active Contributor
0 Kudos

I got the part of setting background color in my changed style file, but that's just useful if you have to do a lot of changes. Now if only I would have had enough time to write my weblog, I could have been proud of being faster than Brian one time

Hope you are having a good time,

Max

former_member181879
Active Contributor
0 Kudos

Hi Max,

You don't have to be faster! I think there is a great value in even writing duplicate weblogs on similar topics. Sometimes it is just the different approach taken to writing, or to explaining a complex topic, that makes the difference to somebody grapling with a specific problem.

One remark someone made at TechEd is that all the interesting topics have been written about. My feeling is that this is not true. Sure, many of the basics have now been covered once. The lego blocks are on the table. The interesting things will come from round two. When people write about what they do, interesting applications, tricks, ideas, etc.

One example: for our new development work (all hush-hush, don't ask:), one developer decided to write a small game. The challenge was on, and now nearly everyone in the group has one game done. Very, very interesting! Specifically how to write things such as mastermind for a web browser!

There are many topics to write about, and one does not even have to be first to earn his stars as good writer!

bye, brian