mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-03-15 06:46:23 +03:00
Demo has been fixed
This commit is contained in:
parent
afa3613542
commit
ad138f7257
@ -179,8 +179,8 @@ void MainWindow::slotChangePos(const LimeReport::CallbackInfo::ChangePosType &ty
|
|||||||
{
|
{
|
||||||
QSqlQuery* ds = m_customers;
|
QSqlQuery* ds = m_customers;
|
||||||
if (!ds) return;
|
if (!ds) return;
|
||||||
if (type == LimeReport::CallbackInfo::First) {result = ds->first(); m_nextCount=0;}
|
if (type == LimeReport::CallbackInfo::First) {result = ds->first();}
|
||||||
else {result = ds->next(); m_nextCount++;}
|
else {result = ds->next();}
|
||||||
if (result){
|
if (result){
|
||||||
m_orders->bindValue(":id",m_customers->value(m_customers->record().indexOf("CustomerID")));
|
m_orders->bindValue(":id",m_customers->value(m_customers->record().indexOf("CustomerID")));
|
||||||
m_orders->exec();
|
m_orders->exec();
|
||||||
|
Loading…
Reference in New Issue
Block a user