cancel
Showing results for 
Search instead for 
Did you mean: 

Page fragment position

Former Member
0 Kudos

Hi,

How can I determine the position of a Page fragment to be included in a page with flow logic?

For example: I want to include a page fragment as a footer on my page - i.e. needs to remain to the bottom of the page. How to do this?

Accepted Solutions (1)

Accepted Solutions (1)

Patrick_McMahon
Contributor
0 Kudos

Hi,

You could use this around your page:

<xhtmlb:overflowContainer mode   = "SCROLL"
                          height = "800px" >
...
</xhtmlb:overflowContainer>

<%-- your footer here --%>

Regards,

Patrick.

Former Member
0 Kudos

Thanks Patrick,

But this isn't solving my problem.... Is there a way to use a Page fragment as a page footer, somehow....?

Message was edited by:

Bada Boom

Patrick_McMahon
Contributor
0 Kudos

Hi,

I am not sure what you are after. The code above will keep your footer fragment at the bottom of the browser whilst the rest of the page scrolls.

Regards,

Patrick.

Former Member
0 Kudos

This part : <%-- your footer here --%>

Can it be <%@include file="footer.htm" %>? in order to use a page fragment here?

P.S. I tried this way, but it's not displaying the footer....

Patrick_McMahon
Contributor
0 Kudos

Hi,

Yes. That will work. You may need to adjust the height setting on the overflow container for the height of your browser. Are there any other complications? E.g. are you using frames?

Regards,

Patrick.

Former Member
0 Kudos

Hi,

Well no frames at the time being, I'm first trying to get my header/footer correct, but it won't work...

Here's the code:

<%@page language="abap" %>
<%@extension name="xhtmlb" prefix="xhtmlb" %>
<%@include file="head.htm" %>
<xhtmlb:overflowContainer mode   = "SCROLL"
                          height = "400px" >

blabla textblabla
</xhtmlb:overflowContainer>
 <%@include file="foot.htm" %>

But I'm getting an error: <b>500 SAP Internal Server Error

Error message: Access not possible using 'NULL' object reference. ( type of termination: RABAX_STATE )</b>

?

Patrick_McMahon
Contributor
0 Kudos

Hi,

Try putting something in between the overflow container parts:

<xhtmlb:overflowContainer mode   = "SCROLL"
                          height = "400px" >
<htmlb:textView id = "mytext" text="This is a test" />
</xhtmlb:overflowContainer>

Regards,

Patrick.

Former Member
0 Kudos

Still nothing....

here is my full page code:

<%@page language="abap" %>
<%@extension name="xhtmlb" prefix="xhtmlb" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@include file="head.htm" %>
<htmlb:content id               = "content"
               design           = "classic+design2002+design2003"
               controlRendering = "sap"
               rtlAutoSwitch    = "true" >
  <htmlb:page title="BSP Extension: XHTMLB / Element: overflowContainer" >
    <htmlb:form>
      <xhtmlb:overflowContainer mode   = "SCROLL"
                                height = "400px" >
        <htmlb:textView id   = "mytext"
                        text = "This is a test" />
      </xhtmlb:overflowContainer>
    </htmlb:form>
  </htmlb:page>
</htmlb:content>
<%@include file="foot.htm" %>

Patrick_McMahon
Contributor
0 Kudos

Hi,

You need the 2 includes within the

<htmlb:form> ... </htmlb:form>

or at least within the

<htmlb:page> ... </htmlb:page>

if there is no action to be performed within the header or footer.

Regards,

Patrick.

Former Member
0 Kudos

There we go!

Cheers!

Answers (0)