PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WEBDEV 2024 → [WB23] COMBO generates wrong option values in HTML
[WB23] COMBO generates wrong option values in HTML
Iniciado por vvido, jul., 13 2018 3:46 PM - Sem resposta
Membro registado
94 mensagems
Publicado em julho, 13 2018 - 3:46 PM
BUG description (same behavior in Webdev 21, same example)

Example: original WebDev Complete example WW_Schedule

Procedure to reproduce: start Webdev Tutorial WW_Schedule
After the site opens, you can see the appointments schedule.

Double clicking on an appointment opens the cell with appointment data.
But it displays the incorrect task name (except for one task, but this is just -lucky coincidence-).

When this cell is opened, it is supplied with the correct task_type code (not show in the screen), but the
list generated by webdev has wrong option values.
If you check the generated HTML, you can see that the order of items is correct (alphabetical),
but the assigned option values are wrong (sequence) instead of values retrieved from the data file.


To illustrate the problem, the data:


The generated HTML is

<option value="1">Consulting in Montpellier</option>
<option value="2">Holidays</option>
<option value="3">Move</option>
<option value="4">On-site consulting</option>
<option value="5">On-site training</option>
<option value="6">Seminars in Paris</option>
<option value="7">Training in Montpellier</option>
<option value="8">Unavailability</option>

But the OPTION values should be the data from the database, not simple enumeration
Correct value is show beside the task name

1 Consulting in Montpellier</option>
3 Holidays</option>
4 Move</option>
2 On-site consulting</option>
6 On-site training</option>
8 Seminars in Paris</option>
5 Training in Montpellier</option>
7 Unavailability</option>

I have checked the same example supplied with WEBDEV 21 --- SAME PROBLEM !!!