wesley.mccarver
22nd February 2022, 01:05
I added a layout and put in it a couple of fields I want to conditionally print based on one of the fields dropped into that Layout...
The idea is IF tdpur400.cdf_insp = 'yes', then the layout should print
I've tried several entries in the "Print Conditions Box", including:
tdpur400.cdf_insp = tcyesno.yes

Getting: " Illegal type combination: 'long <> string' "

Also trying to manage another layout where field value <> ""
Same error message.

Help appreciated - Thanks!

mark_h
22nd February 2022, 15:59
You can try tdpur400.cdf_insp = etol(tcyesno.yes). The other field if it is a long value you may want to check the table to see what values are stored in it. You may just need to do if field <> 0.

andreas.toepper
23rd February 2022, 10:11
You may need to check the definition of the customer defined field tdpur400.cdf_insp.
It may not be of type domain tcyesno. How is it declared? Is it a string type field?

wesley.mccarver
24th February 2022, 17:04
I started thinking something is different or wrong with my CDF.
When I went to "Display General Table Information", I noticed that all other checkboxes are enum 1 1: 2 tcyesno.no
But my CDF shows enum 1 1: 2 tdcdf___chk.no
I figured maybe CDFs, though assigned as a checkbox may not be a standard checkbox type, so I set
tdpur400.cdf_insp = tdcdf___chk.yes
and that works!

I really appreciate your help... thanks!

JaapJD
1st March 2022, 10:46
You could have defined your CDF with domain tcyesno, instead of just using the default checkbox domain.

wesley.mccarver
2nd March 2022, 16:44
I didn't realize that - thanks JaapJD!