Repeat/conditional Data Binding - CHANGES
![Post Post](https://www.docx4java.org/forums/styles/proFormell/imageset/icon_post_target.gif)
In current SVN, I've changed the way you make a content control a repeat or a conditional.
I've updated the convention document[1] to version 2 to reflect this new approach.
In a nutshell, the reasons for the changes are:
1. content in the sdt tag is minimised, which is desirable since Word restricts the tag content to 64 characters
2. supports conditions made up of boolean expressions (though docx4j currently only processes conditions equivalent to those supported in v1)
3. supports interactive processing (ie user gets asked questions) via appropriate software; v1 only supported non-interactive processing
To set up the bindings, there is now a Word Add-In you can use. Please note that you will need to install .NET Framework 4.0 ("full" - the "client profile" is not enough). It is currently a little rough around the edges, but it works. Some notes on how to use it are at [3]
The next release of docx4j (probably later this month or early next) will only support this new format. If you have docx documents using the v1 convention format, you can convert them using the main method in [4], which I've developed for this purpose.
cheers .. Jason
[1] http://dev.plutext.org/svn/docx4j/trunk ... tions.html
[2] http://dev.plutext.org/opendope/setup.exe
[3] http://dev.plutext.org/svn/docx4j/trunk ... hrough.pdf
[4] svn tip version of http://dev.plutext.org/svn/docx4j/trunk ... ePart.java
I've updated the convention document[1] to version 2 to reflect this new approach.
In a nutshell, the reasons for the changes are:
1. content in the sdt tag is minimised, which is desirable since Word restricts the tag content to 64 characters
2. supports conditions made up of boolean expressions (though docx4j currently only processes conditions equivalent to those supported in v1)
3. supports interactive processing (ie user gets asked questions) via appropriate software; v1 only supported non-interactive processing
To set up the bindings, there is now a Word Add-In you can use. Please note that you will need to install .NET Framework 4.0 ("full" - the "client profile" is not enough). It is currently a little rough around the edges, but it works. Some notes on how to use it are at [3]
The next release of docx4j (probably later this month or early next) will only support this new format. If you have docx documents using the v1 convention format, you can convert them using the main method in [4], which I've developed for this purpose.
cheers .. Jason
[1] http://dev.plutext.org/svn/docx4j/trunk ... tions.html
[2] http://dev.plutext.org/opendope/setup.exe
[3] http://dev.plutext.org/svn/docx4j/trunk ... hrough.pdf
[4] svn tip version of http://dev.plutext.org/svn/docx4j/trunk ... ePart.java