Mobile Form Expression Log Messages

The Mobile app can log when an expression is registered, when it returns a value, and when parsing or evaluation fails.

Log Entry

Description

Example Invalid Expression

Example Log

Resolution

Initialization

The message identifies the target property and its dependencies.

-

                    BIND INIT area value { width: ["value"], height: ["value"] } 

                  

-

Successful Evaluation

Valid expression

                    (width.value || 0) * (height.value || 0) 

                  
                    BIND INIT area value { width: ["value"], height: ["value"] }
BIND SET area value 0 

                  

-

Parse Errors

A parse error means the expression is not valid JavaScript.

                    (width.value || 0) x (height.value || 0) 

                  
                    BIND PARSE ERROR area value SyntaxError: Unexpected identifier 

                  

Replace the invalid operator with an asterisk (*).

Runtime Errors

A runtime error means the expression was parsed but failed when it ran. Element names are case-sensitive.

                    (width.value || 0) * (HEIGHT.value || 0) 

                  
                    BIND RUNTIME ERROR area value ReferenceError: HEIGHT is not defined
BIND SET area value undefined 

                  

Element names are case-sensitive. Replace HEIGHT with height.

Related Topics

General Notices