Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: Last group footer not able to access group variables such as the vehicleName  (Read 2832 times)

LCoetzer

  • Newbie
  • *
  • Posts: 9
    • View Profile
Hi

I ran into another issue whereby in the report footer for the last group I could not access the group variable value.
The reason was that I had reached eof and the m_eof variable was not being updated in the prior method.

I implemented the following simple fix in the CallbackDatasource header file to update the m_eof value:

    bool prior(){ if (m_currentRow !=-1) { m_currentRow--; if (m_rowCount != -1) m_eof = false; return true; } else return false; }
    void undoPrior() { m_currentRow++; if (m_rowCount != -1) m_eof = !(m_rowCount>0 && m_currentRow<m_rowCount); }

This fix will however only work when using the rowCount method and not the older changePos signal slot method.
For it to work with the signal slot method there would have to be a new "Prior" ChangePosType added.

Regards
   Louis Coetzer

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
I have fixed this issue (ver 1.4.19)

LCoetzer

  • Newbie
  • *
  • Posts: 9
    • View Profile
Thank you.  :D