Entering content frame

Function documentation GET_TITLE_SUPPORTED Method Locate the document in its SAP Library structure

Use

The GET_TITLE_SUPPORTED method of the IF_CLIENT_INFO interface specifies whether or not the title attribute of the WML tag <card> causes the title to appear at the top of the screen.

On some devices, for example Nokia devices, specifying a title in the WML tag <card> displays a header in the Web application title bar.

However, an Openwave browser does not support this function on every device. In this case, no header appears in the device’s user interface. To make the title appear on such devices, it must be included in the body text of the document.

Example

<%@page language="abap"%>

data title1 type string.
data title2 type string.

if client_info->get_title_supported( ) = ‘X’.
title1 = 'Title in header'.
title2 = ' '.
else.
title2 = 'Title in body<br/>'.
title1 = ' '.
endif.
%>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"‘"http://www.wapforum.org/DTD/wml_1.1.xml">

<wml>

<card id="main" title="<%= title1 %>">
<p>
<%= title2 %>
This is the actual body
<br/>
</p>
</card>

</wml>

This graphic is explained in the accompanying text

This example is also available under Package Ò SBSP_SAMPLES Ò Web Objects Ò BSP Applications Ò MOBILE_CLIENTINFO Ò Pages Ò title.wml

IF_CLIENT_INFO Interface

Leaving content frame