LimeReport Forum
General Category | Основное => Discussion | Обсуждение => Topic started by: wattswhat on December 15, 2022, 06:18:20 pm
-
How do I translate boolean values stored in the SQL Database as 0 and 1 to something else like "Yes" or "No" or "True" or "False"?
-
HI!
By Script
$S{
if ($D{table.field}==1)
true;
else
false;
}
and in your text element will be true/false
-
Thanks!
-
Is there documentation on Scripts?
-
What version of Qt you are using?
if 5.6 or later then LR using just JSengine (i.e. JS)
if 5.5 or early then LR using qtScript, thet also Ecma-262