Problem:
Our colleagues have to select a range of accounts.
But when they select more than one account, the output shows the accounts next to each other instead of below each other.
Probably something is missing in our code.
{% newline %}
| {% ic %}{::infotext as=“hover”}
Selecteer hier de 70 met verkopen aan aankoopprijs
{:/infotext}
{% endic %}
{% input custom.verkopen.BWM as account_collection range:“70” accounts_var:bwm %}
{% for acc in bwm %}
{{ acc.link }}
|{% =$7+ acc.value as:currency %}
|
|
|
|
{% endfor %}
About this case, I assume that the code you are showing here is between ‘stripnewlines’ tags, right?
If so, the only thing that would be missing is a ‘newline’ tag inside the for loop, to display each account selected in a different line. And your code could look like this now:
{% newline %}
| {% ic %}{::infotext as=“hover”}
Selecteer hier de 70 met verkopen aan aankoopprijs
{:/infotext}
{% endic %}
{% input custom.verkopen.BWM as account_collection range:“70” accounts_var:bwm %}
{% for acc in bwm %}
{% newline %}
{{ acc.link }}
|{% =$7+ acc.value as:currency %}
|
|
|
|
{% endfor %}
So, the problem is in this part of the code. That way, you are displaying “acc.link” in a different line than “acc.value” because the “newline” tag (where the line break is included) is between them.
If you move the “newline” tag at the beginning of the for loop, the “acc.link” to the first column and the “acc.value” to the second one, your code should look like this now: