Page 1 of 1

[Solved] Link checkbox to writer table

Posted: Mon Sep 20, 2010 10:47 am
by Nikos
Hello everybody,

I have a hopefully simple question regarding forms in OOWriter.
I would like to insert a checkbox into a writer table (not calc) and assign the value of an adjacent cell to that checkbox. So if the checkbox is ticked, the adjucent cell would get e.g. the value 5.

Is this possible without registering a data source?

Thank you in advance,

Nikos

Re: Link checkbox to writer table

Posted: Mon Sep 20, 2010 2:09 pm
by Zizi64
Here is an idea:

My solution based on Document Info as storage device, and I used the Custom Field option as display device. (http://user.services.openoffice.org/en/ ... =7&t=31615)
Controlled by Basic macros (API functions).
Checkbox_value_to_table.odt
(17.16 KiB) Downloaded 287 times

Re: Link checkbox to writer table

Posted: Mon Sep 20, 2010 2:55 pm
by Nikos
Thank you.
Very interesting approach,

The only problem I have is, that the table is quite big (approximatelly 90 checkboxes) and I am not so sure document properties would be the right place to store this amount of information...

Re: Link checkbox to writer table

Posted: Mon Sep 20, 2010 8:52 pm
by Villeroy
You should create a database table with a boolean field keeping as many checkboxes and row-IDs as needed and then you can create a Writer document (a report) with a table that depends on the database content.

Re: Link checkbox to writer table

Posted: Mon Sep 20, 2010 10:11 pm
by Zizi64
Is this possible without registering a data source?
Here is an another idea with macros:
The values are stored in the macro code.
Checkbox_value_to_table2.odt
(16.71 KiB) Downloaded 284 times

Re: Link checkbox to writer table

Posted: Fri Oct 01, 2010 8:08 am
by Nikos
Thank you,

and sorry for my delayed answer. This definitevly is a more elegant solution for my cause.