Good day ~ this may be easy, but not to me right now !
I want to test an expression, in add or modify. If the expression is not blank, then another field equals x.
in sub html_record_form
if ($rec{'Orderedby'} ne '') {
print qq|<INPUT TYPE="HIDDEN" NAME="Status" VALUE="Ordered" SIZE="12" MAXLENGTH="12"></td> |;
}
else {
print qq|<INPUT TYPE="HIDDEN" NAME="Status" VALUE="Pending" SIZE="12" MAXLENGTH="12"></td> |; }
or similiar syntax ~ ANYway when i am adding the record, the field 'Orderedby' is blank.... thus, if a user fills it in, the file is saved and the expression is not really tested until the file is modified, at which point the test sees a value in 'Orderedby' and makes the change in the other field.
So, I add a record, the 'orderedby' is blank. then, modify it, fill in 'Orderedby' but there is no value seen until the record is written, so 'Status' stays the same... modify the record again, and the value is changed. Some days I hate perl. This was going along swimmingly until this little glitch ! thank you !
I want to test an expression, in add or modify. If the expression is not blank, then another field equals x.
in sub html_record_form
if ($rec{'Orderedby'} ne '') {
print qq|<INPUT TYPE="HIDDEN" NAME="Status" VALUE="Ordered" SIZE="12" MAXLENGTH="12"></td> |;
}
else {
print qq|<INPUT TYPE="HIDDEN" NAME="Status" VALUE="Pending" SIZE="12" MAXLENGTH="12"></td> |; }
or similiar syntax ~ ANYway when i am adding the record, the field 'Orderedby' is blank.... thus, if a user fills it in, the file is saved and the expression is not really tested until the file is modified, at which point the test sees a value in 'Orderedby' and makes the change in the other field.
So, I add a record, the 'orderedby' is blank. then, modify it, fill in 'Orderedby' but there is no value seen until the record is written, so 'Status' stays the same... modify the record again, and the value is changed. Some days I hate perl. This was going along swimmingly until this little glitch ! thank you !

