In Aras Innovator, List Value contains "Label" and "Value" to respectively indicate "text" and "value" of HTML select element.
Instead of the "value" of list option, Activity Variable Value is written with the "text" of list option while voting (shown as Figure 1).
This may cause programming mistake or wrong multilingual text.
|
Figure 1 |
Solution
- Open "\Innovator\Client\scripts\InBasket\InBasket-VoteDialog.apsx".
- Find JavaScript function "processVote" (default at line 588).
- Move to if statement which handles variable type check (default at line 679, shown as Figure 2).
- Change "options[...].text" to "options[...].value" (default at line 681, circled at Figure 3).
- Save file.
|
Figure 2 |
|
Figure 3 |
Comments
Post a Comment