WC_IS in Arev32 (AREV Specific)
At 10 AUG 2009 12:32:03PM Mat Kelly wrote:
I have an Arev32 window that contains a prompt with an attached post prompt process. This prompt is attached to a specific field, so is populated with data when the window opens. Upon entering this field, hitting Ctrl-X then enter, this field's post-prompt process behaves differently than what I expect per the same Arev31 code.
The post-prompt program does a calculation based on other fields in the window and assigns the value to WC_IS%. This value is expected to be an integer. When the calculated value is determined to be "20" and set to WC_IS%, i.e.
CALCULATEDVALUE=(some formula here)
WC_IS%=CALCULATEDVALUE
Call MSG("The value is ":CALCULATEDVALUE:", WC_IS is ":WC_IS%)
A message popup reads, "The value is 20, WC_IS is 20" but the Ctrl-X'd prompt is shown as blank in the window. When the value is set manually:
CALCULATEDVALUE=(some formula here)
WC_IS%=66
Call MSG("The value is ":CALCULATEDVALUE:", WC_IS is ":WC_IS%)
The popup reads, "The value is 20, WC_IS is 66", as expected, but the field is populated with 66.0
The field's validation pattern is (0,100) and Output Format is MD10
Additionally, if the first example above is instead:
CALCULATEDVALUE=(some formula here)
WC_IS%=CALCULATEDVALUE:" "
Call MSG("The value is ":CALCULATEDVALUE:", WC_IS is ":WC_IS%)
…the value "20 .0" is returned in the field.
How do I populate this field with the intended value of 20.0, as calculated? Are there any specific concerns with using the WC_IS% variable in Arev32?
Thanks!