BEA WebLogic User Manual page 51

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

Advertisement

where=" UsableWidthPixels 200"
Missing comparison operator.
where=" UsableWidthPixels >= 200 and"
Missing clause.
where="(UsableWidthPixels < 200 or UAProf.HardwarePlatform.ColorCapable"
Missing parenthesis.
where=" UsableWidthPixels < 200and UsableHeightPixels < 300"
Unrecognizable keyword "200and".
Use Device Attributes Containing Hyphens
Some attributes have a hyphen as part of their name (for example
UAProf.PushCharacteristics.Push-MsgSize). Because the where clause is evaluated as a Python
expression, the hyphen is interpreted as a minus symbol, so if you are using one of these
attributes in a where condition, you must replace the hyphen with an underscore.
for example where = UAProf.PushCharateristics.Push_MsgSize>0
Unrecognizable Identifier Names
The following are well-constructed expressions but the device attribute does not exist within the
WebLogic Mobility Server system.
Note: In the second example, because of the missing single quotes, WebLogic Mobility Server
assumes that DeviceName is being compared to another device attribute. This will result in an
error.
where=" UseableWidthPixels == 200"
UsableWidthPixels is misspelled
where="UAProf.HardwarePlatform.Vendor==Ericsson"
No single quotes around "Ericsson"
Type Mismatches
Type mismatches occur when the device attribute type does not match the type of the value or
device attribute against which it is being compared.
Mismatches follow the rules specified by the Python language for type errors. For example, the
following three examples will produce a type mismatch.
where=" UsableWidthPixels"
UsableWidthPixels is not Boolean.
where="UsableWidthPixels == 'wide'"
UsableWidthPixels is not a string.
where="UsableWidthPixels == 100+'640'"
Cannot add an integer and a string value.
The following example will NOT produce a type mismatch
where = "'a' > 7000"
The letter "a" evaluates to its ASCII value of 97 before being compared to 7000.
Part III Fundamentals of Mobile Content
BEA WebLogic Mobility Server User Guide - 47

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