on 12-08-2016 8:55 AM
Hi,
I use PB 12.1 (Build 6807) but have same issue with PB 12.5.2 (Build 5550).
I want to use an expression in a datawindow validation message.
A simple example (mine is more complex): if (number (gettext()) < c, 'Test', 'Hallo')
All works fine if c is a column. Powerbuilder shows the expression result Test or Hallo depending from input.
But I want the message depending on a computed field. If c is a computed field powerbuilder shows the validation expression instead of expression result. So the message is:
if (number (gettext()) < c, 'Test', 'Hallo')
It doesn't matter whats the expression in the computed field. Also a simple value causes this behavior.
Is this a bug or a feature? Any workarounds?
(In my real case I want to check a column value with pos against a computed field with a list of values. I don't want to use a column for that list.)
for non constant expression, lets complicate it 🙂 :
if (number (gettext()) < number (describe ("evaluate('c', getrow())")), 'Test', 'Hallo')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My current workaround (works only because I have a constant value in expression):
if (number (gettext()) < number (describe ('c.expression')), 'Test', 'Hallo')
OMG 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
how about :
if (number (gettext()) < number ( c ), 'Test', 'Hallo')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.