Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,083
    • Issues 2,083
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 8
    • Merge requests 8
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • FPC
  • Lazarus
  • LazarusLazarus
  • Issues
  • #29313
Closed
Open
Created Jan 03, 2016 by FPC Admin account@fpc_adminOwner

Value zero is reset to Null when PrintChildIfNotVisible option is set in band

Original Reporter info from Mantis: luizamerico
  • Reporter name: Luiz Americo

Description:

When a field/param returns 0 in a band script and PrintChildIfNotVisible option is set in this band, the field/param is reset to null

It occurs because a conflict between flBandPrintChildIfNotVisible and flHideZeros, both set to $80.

At the end of TfrReport.GetVariableValue, there's a check to flHideZeros. If this flag is set, it returns the null as value.

When a field/param is referenced in a band script, CurView is a TFrBandView and if this band has the flBandPrintChildIfNotVisible flag set, that check will evaluate to true

Attached example. In the master band there's a script that set the band Visible if the field is zero. It will always evaluate to false because of the bug.

A patch is attached. But due to the way the flag is stored, to get rid of the bug is necessary to clear the PrintChildIfNotVisible with the previous version than reset after the fixed version is applied

Mantis conversion info:

  • Mantis ID: 29313
  • Fixed in version: 1.7 (SVN)
  • Fixed in revision: 51791 (#26d94464)
  • Monitored by: » nicolagorlandi (nicola gorlandi)
  • Target version: 1.6.2
Assignee
Assign to
Time tracking