BEA WebLogic User Manual page 49

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

Advertisement

Provides support for select(<condition>,trueValue,falseValue), for example
select(UsableWidthPixels>200,"BIG","SMALL") will return "BIG" if the expression is true
and "SMALL" if the expression if false.
Multiple "==" expressions can be combined with a logical AND or logical OR operator by
adding an "and" or "or" (lowercase) between expressions.
Within the "==" expressions, number and Boolean values can be entered as is, but strings
must be surrounded by single quotes.
Here is an example using Boolean, string and number comparisons:
<mm-include where="IsMenuDriven and
UAProf.SoftwarePlatform.OSName=='Microsoft Windows' and
UsableHeightPixels < 250">
...Some content...
</mm-include>
Note: When referring to User Agent Profile (UAProf) attributes in the database, the full prefix is
required (for example
UAProf.SoftwarePlatform.OSName
Proper "where" Usage
Valid expressions when evaluated will cause the
Examples of valid expressions are highlighted in the following sections.
Comparison Operators
Comparison operators that are supported include: ==,<>,<,>,>= and <=.
All of the following
where
where="UAProf.HardwarePlatform.NumberOfSoftKeys == 0"
where="UsableWidthPixels <> 200"
where="UsableWidthPixels < 200"
where="UsableWidthPixels > 200"
where="UsableWidthPixels >= 200"
where="UsableWidthPixels <= 200"
where="MLVersion == 'WML1.1'"
Note: When comparing against strings the literal string values must be surrounded by single
quotes.
Conditional Logic
The logic operators supported include "and", "or", and "not".
All of the following
where
where="UsableWidthPixels < 200 and UsableHeightPixels < 300"
where="UsableWidthPixels < 200 or UsableHeightPixels < 200"
where="not IsPortraitPDA"
where="not MP3Supported"
where
expressions are valid:
expressions are valid:
Part III Fundamentals of Mobile Content
,
UAProf.BrowserUA.BrowserName
clause to evaluate to either true or false.
BEA WebLogic Mobility Server User Guide - 45
).

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Weblogic mobility server

Table of Contents