Getlabel for multiple languages and HTML reports

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Getlabel for multiple languages and HTML reports

Post 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.
G.VOLNY, a CSProuser from Haiti, since 2004
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Getlabel for multiple languages and HTML reports

Post 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.
htuser
Posts: 631
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Getlabel for multiple languages and HTML reports

Post 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?
G.VOLNY, a CSProuser from Haiti, since 2004
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Getlabel for multiple languages and HTML reports

Post 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.
Post Reply