Feature Requests and Ideas


#1

If you have any suggestions on how we can improve our product, feel free to drop a line here. We regularly review this thread, so it’s the most effective way to make ideas real!


#2

Would be great if the ‘Create HTML from template’ action contains a parameter ‘Culture’ which can be specified.

Value like ‘en-EN’, ‘nl-NL’ or maybe 1033 or 1043.

This because using format strings like ‘{{paramater1:N0}}’ produce English formatted numbers, and we would like to see NL ones so thousands are separated by a dot instead of a comma.


#3

Hi @michel-i4-you,

You are right, there is English locale by default. If we receive more requests like this, we will add this feature.

For now, I can suggest you quite easy workaround.

You can use JavaScript to apply formatting to your numbers. If you generate PDF from HTML it works perfectly. All JavaScripts are executed before PDF generation.

Example

Source object with number:

{"num":1000000}

Template:

<html lang="en">
    <head>        
    </head>
    <body>
        <div id="num">{{num}}</div>
        <script>
            function numberWithDots(x) {
               return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ".");
            }
            var numElem = document.getElementById("num");            
            var num = parseInt(numElem.innerHTML);
            var formattedNum = numberWithDots(num);
            numElem.innerHTML = formattedNum;
        </script>
    </body>
</html>

Result:

2017-12-18_17-16-04

It is not the most elegant number formatting JavaScript code. There are a lot of different samples over the Internet.