Publication template issue

3.1
Tags: #<Tag:0x00007f361a36c020>
Publication template issue
0.0 0

#1

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.


#2

Hy Matin,
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


#3

Hello,

Thanks.

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.


#4

Hello

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 ?)

Thank you


#5

Hi,

Thanks. Here is the output.

[Platform]
Status=OK
Version=3.1.M12
BuiltOn=2017-08-02
Encoding=UTF-8
SystemDate=2017-08-09 15:04:11

[Application]
ApplicationVersion=3.1
ContextPath=
ContextURL=https://test.xyz…**.simplicite.io
ActiveSessions=3
EnabledUsers=7
TotalUsers=8
LastLoginDate=2017-08-08 10:15:00

[OS]
Name=Linux
Architecture=amd64
Version=3.10.0-514.26.2.el7.x86_64
SystemEncoding=UTF-8

[Disk]
DiskFree=93714
DiskUsable=89557
DiskTotal=100700

[JavaVM]
Version=1.8.0_141
Vendor=Oracle Corporation
VMName=OpenJDK 64-Bit Server VM
VMVersion=25.141-b16
VMScriptEngine=rhino
HeapFree=66217
HeapSize=243712
HeapMaxSize=466432
TotalFreeSize=288937

[Cache]
GrantCache=15
GrantCacheMax=0
GrantCacheRatio=0
ObjectCache=19
ObjectCacheMax=10000
ObjectCacheRatio=0
ProcessCache=0
ProcessCacheMax=10000
ProcessCacheRatio=0

[Database]
Vendor=0
ProductName=HSQL Database Engine
ProductVersion=2.3.2
DriverName=HSQL Database Engine Driver
DriverVersion=2.3.2
DBDate=2017-08-09 15:04:11
DBDateoffset=0

[Healthcheck]
Date=2017-08-09 15:04:11
ElapsedTime=13