Page 1 of 1

Getlabel for multiple languages and HTML reports

Posted: April 20th, 2018, 12:54 pm
by htuser
Dear Developer Team,
I know you're working very hard to come with innovative ideas for the next release.

In the meantime i would like to know:
1.- I have a dictionary with two languages labels, please how to "Getlabel" for a specific language?
2.- Since long ago, it's the first time that i'm trying to output multiple questionnaires as PDF printed ready page. And, as you know i have a old fashion way, but i need to use the latest way, for the first time, so:
a) Analyzing this code in help part:
<table>
<tr><th>Name</th><th>Sex</th><th>Age</th></tr>
{{#PERSON_REC}}
<tr><td>{{NAME}}</td><td>{{SEX}}</td><td>{{AGE}}</td></tr>
{{/PERSON_REC}}
</table>
Please, can i use {{getlabel (SEX)}} to have label?

b) What about multiple responses using latest way?

Thanks in advance for your precious support, since years.

Re: Getlabel for multiple languages and HTML reports

Posted: April 25th, 2018, 8:29 am
by josh
You could try calling setlanguage() first to set the language and then calling getlabel(). That should work although I haven't tested it.

Re: Getlabel for multiple languages and HTML reports

Posted: April 25th, 2018, 5:17 pm
by htuser
Thanks Josh. setlanguage () may solve this. But, does html report support cspro logic, so i can write {{getlabel (SEX)}} to show label in Html report?

Re: Getlabel for multiple languages and HTML reports

Posted: April 26th, 2018, 6:28 am
by josh
I don't think you can do logic inside the templates. You would have to pass the string that results from getlabel(SEX) to the report using setreportdata.