Version 6.1.20220912.0
RPG form helper is trying to SetValue of a dropdown on formRender.
The Value field of the dropdown is a 2-digit number.
Doesn't work if the value is < 10.
Example:
Data Source
SELECT cast(0 AS decimal(2)) AS val
FROM sysibm.sysdummy1
Form
The form selects the VAL field, makes it editable, and transforms to a dropdown using inline data:
number_lookup_data.png
There's a form helper to SetValue on formRender.
If defaultValue is "1", " 1", "5", or " 5" it doesn't work (the dropdown is blank), but "10" and "20" work correctly.
RPG form helper is trying to SetValue of a dropdown on formRender.
The Value field of the dropdown is a 2-digit number.
Doesn't work if the value is < 10.
Example:
Data Source
SELECT cast(0 AS decimal(2)) AS val
FROM sysibm.sysdummy1
Form
The form selects the VAL field, makes it editable, and transforms to a dropdown using inline data:
number_lookup_data.png
There's a form helper to SetValue on formRender.
Code:
dcl-proc Process;
dcl-pi *n end-pi;
dcl-s defaultValue char(2) inz('5');
if gMode = 'formRender';
SetValue('VAL' : defaultValue);
endif;
end-proc Process;

Comment