Report record section $print method
Phil (OmnisList)
phil at pgpotter.co.uk
Thu Mar 13 11:29:27 UTC 2025
Hi Xavier,
I use a pick statement within an invisible calculated field testing
whatever it is you need to test to then show or hide a line or section
in a report...
and the reverse to then show something else instead...
so one to show the line/section in red, and one in black, for example.
This way the test can do more than just show data in red, but a whole
section of further information, if you want.
regards
Phil Potter
Based in Chester in the UK.
On 13/03/2025 09:52, IT wrote:
> Hi,
>
> I’m printing a report and I want that if some condition happens, omnis prints this line in kRed. So I have put a code in the $print method of the record section of the report like this:
>
> If ivLineas.AL_FPAGO=1
> Do $cinst.$objs.Record.$backcolor.$assign(kRed)
> Else
> Do $cinst.$objs.Record.$backcolor.$assign(kWhite)
> End If
> Do default
>
>
> But omnis change $backcolor to kRed on the next line, not the line where ivLineas.AL_FPAGO=1. Seems that omnis is executing this code after printing, not before printing the record.
> So, how I cant get omnis change the backcolor for the current printing record?
>
> Thank you in advance.
>
> xavier
> _____________________________________________________________
> Manage your list subscriptions athttps://lists.omnis-dev.com
> Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list