BEA WebLogic User Manual page 193

Mobility server
Hide thumbs Also See for WebLogic:
Table of Contents

Advertisement

sdtransform="base-transform | on-same-card |on-new-card"
"base-transform" is an optional attribute used to "flatten" tables that are sent to menu-
driven devices or PDAs that support tables. This may be necessary to avoid excessive
wrapping that could occur if the device were to render the data as a table on a small screen.
Table content is presented as a series of "table header: table data" pairings. If the attribute is
not present, the result will depend on the table support provided by the device. Using this
attribute will have no impact on non-table-supporting devices.
"on-same-card" is an optional attribute used to display new tables on the same card.
Note: This will not create a link to that nested table
"on-new-card" is an optional attribute used to create a link to a nested table that is placed
on a separate card
where="..."
The where attribute enables the author to specify content selection conditions for devices.
Notes
where="IsFullBrowser" is not allowed with this tag
The "where" clause quoted string must not contain line breaks
Conditions are constructed by specifying device attribute names and allowable values,
using comparison operators from the Python programming language. Multiple conditions can
be combined to make complex expressions by using the logical "and", "or" and "not"
operators from Python
WebLogic Mobility Server also supports use of the Python .endswith( ), .startswith( )
and .find( ) methods for partial matching.
Restrictions
At least one condition must be specified
Attribute names must be valid as taken from the Device Repository
All String attribute values must be wrapped in single quotes
Example
<!-- Two table-model tags have been placed inside the XHTML table in the
example. The first one is responsible for transforming tables being delivered
to devices that are both capable of rendering tables and have a screen width
greater than or equal to 196 pixels. The second one is responsible for
transforming tables being delivered to devices that either cannot render tables
or have a screen width less than 196 pixels. -->
<table border="1">
<mm:table-model headlocation="1" bodylocation="*" major="row"
tabletype="normal" where="UAProf.BrowserUA.TablesCapable and
UsableWidthPixels >= 196" />
<mm:table-model headlocation="1" bodylocation="*" major="row"
sdtransform="base-transform" tabletype="normal" where="(not
UAProf.BrowserUA.TablesCapable) or (UAProf.BrowserUA.TablesCapable and
(UsableWidthPixels < 196))" />
<tr><td>June</td>
<td>July</td>
<td>August</td>
</tr>
BEA WebLogic Mobility Server User Guide - 189
Part VIII Appendixes

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the WebLogic and is the answer not in the manual?

This manual is also suitable for:

Weblogic mobility server

Table of Contents