BaBernd
22nd September 2015, 19:24
Hello to All,

I'd like to transfer the value of a check box (Option box) in the form Editor into the according Report. But the check box value is an enumerated value (Domain tcyesno) so I can't use the Export/import-function.
Which other Options do I have?

Best Regards
Bernd

bhushanchanda
22nd September 2015, 21:23
Hi,

What are you looking for? The question is not much clear. Do you have the source code? If yes and if you have a form field say print.f

Declare it in your program script as -

declaration:
extern domain tcyesno print.f

And add print.f in your report layout.

Why do you need to export or import? Sorry if I didn't get you.

BaBernd
23rd September 2015, 10:15
Hello Bhushan,

I will add a file for more Explanation. See the Upload.

And yes I declared in my print session within the Program script like you described.

declaration:
extern domain tcyesno cover.letter

Best Regards Bernd

JaapJD
23rd September 2015, 10:52
Add cover.letter with domain tcyesno also in your report input fields.

shashig
23rd September 2015, 10:55
Hello Bernd,

To print the Form field into report, you must add the form field in 'Input Fields' for the Report. I hope you already did it. Still it doesn't work?

and BTW Export/Import works for Enumerated Fields also.

Regards,
Shashi

bhushanchanda
23rd September 2015, 11:00
Add cover.letter with domain tcyesno also in your report input fields.

Bernd, I hope you got your solution.

BaBernd
23rd September 2015, 11:25
Hallo JaapJD, Shashi and Bhushan,

yes that was the solution!! Great!
Before I've only added the enum value only in the declaration section of the Report as in the selection session. But also adding it in the Input fields of the Report was the solution.

Thanks a lot.
Best Regards Bernd

BaBernd
23rd September 2015, 15:00
Hello to all,

I've reopend the thread for additional remarks.

Here I've got one from Jaap, which is also important:

Hi Bernd,

Thread is closed, therefor a PM. The report input fields are automatically added as variables in the report, so you don't need to declare them. Also, all report input fields are imported into the report automatically.

Regards,

Jaap

Thanks to Jaap for this comment als private message.

Best Regards
Bernd

mark_h
23rd September 2015, 16:00
Your should never close a thread - there might be questions in the future. The moderators will do it if necessary - usually when I catch them I re-open them anyway.