BEA WebLogic User Manual page 48

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

Advertisement

Part III Fundamentals of Mobile Content
Example: Exclude an address for a class of device
<mm-group id="company_details">
<mm-head id="hd_company_details" useradded="no">Company Details</mm-head>
<p>ABC Company Ltd.</p>
<mm-exclude where="IsMenuDriven">
<p>North Business Park, Circular Road,Dublin,Ireland </p>
</mm-exclude >
<p>Phone: 888-000-111</p>
<p>Fax: 000-888-111</p>
</mm-group>
The "where" Attribute
As can be seen from the preceding examples, the
output based on device type. It also can identify devices based on specific attributes.
The
attribute can be used with the following tags:
where
<mm-include>
<mm-exclude>
<mm-img>
<mm-structure>
<mm-layout>
<mm-table-model>
Usage of the "where" Attribute
The conditional expressions following the
referenced device profile attributes. If the condition evaluates to true, then the content enclosed
by the tag will be added/excluded/manipulated for that device (depending on the tag's
functionality).
If the
attribute does not evaluate to true, it will be ignored (except when
where
used). For example:
where="AttributeName==AttributeValue or AttributeName2==AttributeValue2"
Note: The "where" attribute quoted string must not contain line breaks.
The
attribute:
where
Is compatible with the scripting language, Python.
Provides support for conditional logic: and, or and not.
Provides support for comparison operators: ==, <>, >, <, >= and <=.
Provides support for comparison expressions with non-literal values. These non-literal values
must be attributes of the device defined in the Device Repository.
Provides support for nested expressions using parentheses.
Provides support for partial string matching (for example startswith, endswith, find).
Provides user-friendly compilation warnings by throwing detailed exceptions.
44 - BEA WebLogic Mobility Server User Guide
attribute can be used to control the
where
attribute are evaluated based on values of the
where
is
<mm-exclude>

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