0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-10-09 05:57:14 +03:00

getFieldByRowIndex() has been added

This commit is contained in:
Arin Alexander
2019-02-19 02:43:16 +03:00
parent e0ef984fca
commit 3bd49b6ffd
6 changed files with 38 additions and 0 deletions

View File

@@ -1469,6 +1469,17 @@ QVariant DataSourceManager::fieldData(const QString &fieldName)
return QVariant();
}
QVariant DataSourceManager::fieldDataByRowIndex(const QString &fieldName, int rowIndex)
{
if (containsField(fieldName)){
IDataSource* ds = dataSource(extractDataSource(fieldName));
if (ds){
return ds->dataByRowIndex(extractFieldName(fieldName), rowIndex);
}
}
return QVariant();
}
QVariant DataSourceManager::fieldDataByKey(const QString& datasourceName, const QString& valueFieldName, const QString& keyFieldName, QVariant keyValue)
{
IDataSource* ds = dataSource(datasourceName);