I have a datapage that utilizes virtual fields to collect user input values that I don't want to store in tables, but do want to use for some generally simple calculations. However, because virtual fields don't store the input as numeric, I keep getting calculation errors. Here is a simple example of one calculation that I can't get to work:
VirtualField1 is a text box
VirtualField2 is a dropdown with the options "in" and "mm"
VirtualField3 is a calculated field with the following formula:
CASE
WHEN [@cbParamVirtual2] = 'mm' THEN [@cbParamVirtual1]/25.4
ELSE [@cbParamVirtual1]
END
No matter what tweaks I have tried, I either get a "calculation error" message or just nothing appears in the VirtualField3. Any suggestions would be greatly appreciated. Thanks!
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
CMorris
I have a datapage that utilizes virtual fields to collect user input values that I don't want to store in tables, but do want to use for some generally simple calculations. However, because virtual fields don't store the input as numeric, I keep getting calculation errors. Here is a simple example of one calculation that I can't get to work:
VirtualField1 is a text box
VirtualField2 is a dropdown with the options "in" and "mm"
VirtualField3 is a calculated field with the following formula:
CASE
WHEN [@cbParamVirtual2] = 'mm' THEN [@cbParamVirtual1]/25.4
ELSE [@cbParamVirtual1]
END
No matter what tweaks I have tried, I either get a "calculation error" message or just nothing appears in the VirtualField3. Any suggestions would be greatly appreciated. Thanks!
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.