Im having trouble with the output of build_checkbox_field:
In sub html_record_form I use:
<TD VALIGN="TOP"><$font>|; print &build_checkbox_field("Optaget", "$rec{'Optaget'}"); print qq|
and in config:
%db_checkbox_fields = (Optaget => '01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53');
Unfortunately the output $rec{'Optaget'} is shown with bars: 23|24|45|51
that must be interpreted from the "~~" that separates the number in the db-file.
I have no idea how the "~~" got in the db-file- it must be &build_checkbox_field that generates it?
And no idea why these "~~" get interpreted as bars?
I must change this because, if the users think they can/should use bars in the database, it is going to break down.
Do anuone have a solution to this - either how the "~~" get there, or how they are getting translated to bars?
In sub html_record_form I use:
<TD VALIGN="TOP"><$font>|; print &build_checkbox_field("Optaget", "$rec{'Optaget'}"); print qq|
and in config:
%db_checkbox_fields = (Optaget => '01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53');
Unfortunately the output $rec{'Optaget'} is shown with bars: 23|24|45|51
that must be interpreted from the "~~" that separates the number in the db-file.
I have no idea how the "~~" got in the db-file- it must be &build_checkbox_field that generates it?
And no idea why these "~~" get interpreted as bars?
I must change this because, if the users think they can/should use bars in the database, it is going to break down.
Do anuone have a solution to this - either how the "~~" get there, or how they are getting translated to bars?