Using expressions – PB Docs 126

Using expressions

In general, expressions for validation rules and computed
fields are translated into JavaScript and evaluated in the client
browser. For validation of data entry, the user gets immediate feedback
on the new data.

Some expressions have to be evaluated on the server. This
might be because the evaluation involves all the rows, rather than
data on the current page only, or because the expression does not
translate into JavaScript.

If an expression includes these functions, it will be evaluated
on the server:

  • Aggregation functions, like
    Sum, Max, Average, First

  • Case function

  • External functions

If you use an aggregation function in a computed field, the
value is computed on the server and displayed on the client. If
the user edits data, the value is not updated. If an action occurs
that reloads the page, the value is computed again based on the
changed data.

note.png ProfileInt and ProfileString return default values

The ProfileInt and ProfileString DataWindow expression functions
do not examine a user’s INI files if you use them in an
expression evaluated on the client. Doing so would be a security
violation. They always return the default value.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x