Hi,
I am working on my first form helper program. Used to filter dropdown lists in this form and to enable/disable and hide/show some fields.
Two questions
1. Date field
The portal is set to date format DD-MM-YYYY
I have a date field that I initially fill from my helper program. I have to use format MDY in my RPG in order to show it as DMY. If I use DMY in my RPG it shows as MDY.
SetValue('REQUESTDATE':%Char(%Date(%Timestamp()):* DMY-));
shows as MDY
The tooltip text of the field is: Expected date format d-m-Y.
While reading the input value in my RPG by
lrequestDate = vvIn_char('REQUESTDATE');
I always receive the date in YMD format. While using the vvIn_date function I receive an empty date '0001-01-01'.
Is this a bug or am I handling the date field in the wrong way?
2. Form shows before it's rendered completely
By the initial call of this form it shows before the form helper program is ready. It takes about 1a2 seconds before the form is in its desired state. Meanwhile the user is able to add some data that will be removed.
Kind regards,
Theo
I am working on my first form helper program. Used to filter dropdown lists in this form and to enable/disable and hide/show some fields.
Two questions
1. Date field
The portal is set to date format DD-MM-YYYY
I have a date field that I initially fill from my helper program. I have to use format MDY in my RPG in order to show it as DMY. If I use DMY in my RPG it shows as MDY.
SetValue('REQUESTDATE':%Char(%Date(%Timestamp()):* DMY-));
shows as MDY
The tooltip text of the field is: Expected date format d-m-Y.
While reading the input value in my RPG by
lrequestDate = vvIn_char('REQUESTDATE');
I always receive the date in YMD format. While using the vvIn_date function I receive an empty date '0001-01-01'.
Is this a bug or am I handling the date field in the wrong way?
2. Form shows before it's rendered completely
By the initial call of this form it shows before the form helper program is ready. It takes about 1a2 seconds before the form is in its desired state. Meanwhile the user is able to add some data that will be removed.
Kind regards,
Theo

Comment