mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 20:44:39 +03:00
COUNT function has been fixed
This commit is contained in:
parent
8fd7c27837
commit
6529ced062
@ -1295,13 +1295,7 @@ void JSFunctionDesc::setScriptWrapper(const QString &scriptWrapper)
|
|||||||
QVariant ScriptFunctionsManager::calcGroupFunction(const QString &name, const QString &expressionID, const QString &bandName)
|
QVariant ScriptFunctionsManager::calcGroupFunction(const QString &name, const QString &expressionID, const QString &bandName)
|
||||||
{
|
{
|
||||||
if (m_scriptEngineManager->dataManager()){
|
if (m_scriptEngineManager->dataManager()){
|
||||||
QString expression = "";
|
QString expression = m_scriptEngineManager->dataManager()->getExpression(expressionID);
|
||||||
if (name.compare("COUNT",Qt::CaseInsensitive) == 0){
|
|
||||||
expression = " ";
|
|
||||||
} else {
|
|
||||||
expression = m_scriptEngineManager->dataManager()->getExpression(expressionID);
|
|
||||||
}
|
|
||||||
|
|
||||||
GroupFunction* gf = m_scriptEngineManager->dataManager()->groupFunction(name,expression,bandName);
|
GroupFunction* gf = m_scriptEngineManager->dataManager()->groupFunction(name,expression,bandName);
|
||||||
if (gf){
|
if (gf){
|
||||||
if (gf->isValid()){
|
if (gf->isValid()){
|
||||||
|
Loading…
Reference in New Issue
Block a user