We have an issue on the PrintTemplate.
When we create a “Publication template” for an object in order to able “Print” link on the “Plus” buttongroup, all is fine.
However it is not working for a subclass, whether only sublcass has a PrintTemplate or both the subclass and parentclass have a PrintTemplate. “Print” link is not present.
It is occurred on a fresh Simplicite v3.1 version instance. I’m not sure if the fix on v3.2 “Fixed regression on management of isPrintTemplateEnable hooks” is related to this bug.
At this stage there is no product defect, we have to check first your PrintTemplate configuration :
- PrintTemplate inheritance is not supported, each object have to be associated with its own PrintTemplates
- Is your objects “Printable” ?
- Is the print template granted to user’s group ?
- What is the template type ? some of them haven’t UI access or are limited to form/list…
- Is the “isPrintTemplateEnable” hook implemented ? can you join your code ?
You can also add log in JS script or debug your Java code to list all PrintTemplate loaded in your object in the “postLoad” hook :
this.getPrintTemplates() returns a java Map of PrintTemplate
As you can see on the attached picture, there are two objects, TSeance & TSeanceEvenement.
Each of them has its own Publication template, TSeanceTemplate & TSeanceEvenementTemplate.
In this simple case everything is OK and we are able to see the “Print” link as it is shown on the screen-shots.
The problem occurs when we set one of them as a parent object [Extend of Code] to another one. The “Print” link will be disappeared on the child object.
There is no java/js code, it is a pure fresh simplicite instance.
We are going to investigate this particular case.
Can you confirm your 3.1 version is up to date to its latest maintenance release (to be sure, can you send us the response of the [your instance URL]/health page ?)
Thanks. Here is the output.
VMName=OpenJDK 64-Bit Server VM
ProductName=HSQL Database Engine
DriverName=HSQL Database Engine Driver