Visibility in Visual studio and Option fields

Hi everyone,

I have the following piece of code to express under Visual Studio:


CurrReport.SHOWOUTPUT := ("Employee Type"="Employee Type"::ByHours);

I want to put that in an expression under the Visibility property…I just don’t know how to express the Option field (“Employee Type”=“Employee Type”::ByHours)

How to do that???

Poppins,

Always remember to write which version is you question about!

The code you show is not Visual Studio code. That’s C/AL code from the old NAV report. So without knowing exactly what you’re trying to do in which version then it’s difficult to give you a correct answer.

Otherwise the best way to learn is to check out how the standard reports are made.