Hi.
The new possibility of exporting to word files using word templates is grate.
I tried it with my system. It works well, but I have discovered issues with exporting fields of type entity.
I made a file containing my findings: "Failure_details.pdf"
The word template I used is attached as well.
Regards Eberhard
Failure in Word-Export of field type entity
- rennecke
- Sponsor
- Posts: 214
- Joined: 14 Jan 2018, 12:55
- Name: Eberhard Rennecke
- Location: Switzerland Zurich
Failure in Word-Export of field type entity
- Attachments
-
- Failure_details.pdf
- (834.63 KiB) Downloaded 129 times
-
- 35-Arbeitsleiter Meldeblatt Vorlage.docx
- (47.76 KiB) Downloaded 124 times
- support
- Site Admin
- Posts: 6231
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: Failure in Word-Export of field type entity
Hi
About Table List view mode this is similar to default listing list configuration.
See your suggestion viewtopic.php?f=2&t=986#p4317
So now you can create Table List like this
download/file.php?id=1346&mode=view
Where you can put several fields in one cell.
About issue "could not be opened as the content causes problems." probably issue with data in some field. And we have to find this field and sort out.
As I can see there is one field without Heading. Try to add custom heading for this field type. Might this is help.
Let me know.
About Table List view mode this is similar to default listing list configuration.
See your suggestion viewtopic.php?f=2&t=986#p4317
So now you can create Table List like this
download/file.php?id=1346&mode=view
Where you can put several fields in one cell.
About issue "could not be opened as the content causes problems." probably issue with data in some field. And we have to find this field and sort out.
As I can see there is one field without Heading. Try to add custom heading for this field type. Might this is help.
Let me know.
- rennecke
- Sponsor
- Posts: 214
- Joined: 14 Jan 2018, 12:55
- Name: Eberhard Rennecke
- Location: Switzerland Zurich
Re: Failure in Word-Export of field type entity
Dear Sergey.
For Table List view I got the idea but I still don't know how to call for it in the word file. For the issue "could not be opened as the content causes problems." I probably found the reason.
I used the ${id} within a table I created in word. When I used it without the surounding table it worked. Maybe this is caused by injecting html-code into a regular wordfile. Further I discovered, that the injected table brings its own paragraph format and dose not use the given by the word file. This is somehow annoying but I can live with that.
For Table List view I got the idea but I still don't know how to call for it in the word file. For the issue "could not be opened as the content causes problems." I probably found the reason.
I used the ${id} within a table I created in word. When I used it without the surounding table it worked. Maybe this is caused by injecting html-code into a regular wordfile. Further I discovered, that the injected table brings its own paragraph format and dose not use the given by the word file. This is somehow annoying but I can live with that.
- support
- Site Admin
- Posts: 6231
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: Failure in Word-Export of field type entity
What do you mean? It not displays as configured? Can you provide screenshot?For Table List view I got the idea but I still don't know how to call for it in the word file.
- rennecke
- Sponsor
- Posts: 214
- Joined: 14 Jan 2018, 12:55
- Name: Eberhard Rennecke
- Location: Switzerland Zurich
Re: Failure in Word-Export of field type entity
In my previous post I showed the screenshot of the configuration.
So I expect to get a list where in each row there are three columns with 2 fields in the first two and three fields in the thired column.
In the word file i added the ${id} as given in the configuration page: I still only get the resultgiven in "Failure_details.pdf" (last picture).
Do I need to ad something to the ${id} lie in {entity9:0<2,4,5>} of the other export templates?
What can the ${16:count} and ${16:count_text} be used for?
So I expect to get a list where in each row there are three columns with 2 fields in the first two and three fields in the thired column.
In the word file i added the ${id} as given in the configuration page: I still only get the resultgiven in "Failure_details.pdf" (last picture).
Do I need to ad something to the ${id} lie in {entity9:0<2,4,5>} of the other export templates?
What can the ${16:count} and ${16:count_text} be used for?
- support
- Site Admin
- Posts: 6231
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: Failure in Word-Export of field type entity
No, just use ${16}
See me example. I have setup Table list with two columns with several fields in it.
See me example. I have setup Table list with two columns with several fields in it.
- rennecke
- Sponsor
- Posts: 214
- Joined: 14 Jan 2018, 12:55
- Name: Eberhard Rennecke
- Location: Switzerland Zurich
Re: Failure in Word-Export of field type entity
No luck on my side.
I tried it from scratch with no hassle around:
Template: settings: Result: Refered entity:
I tried it from scratch with no hassle around:
Template: settings: Result: Refered entity:
- support
- Site Admin
- Posts: 6231
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: Failure in Word-Export of field type entity
Which field type you are using for field "Nachweisdocumente"?
- rennecke
- Sponsor
- Posts: 214
- Joined: 14 Jan 2018, 12:55
- Name: Eberhard Rennecke
- Location: Switzerland Zurich
Re: Failure in Word-Export of field type entity
I use the field type "Entity drop-down list (ajax)"
The export to word is working, when I use "table":
The same fieldtype I use for "Örtlichkeit"The export to word is working, when I use "table":
- support
- Site Admin
- Posts: 6231
- Joined: 19 Oct 2014, 18:22
- Name: Sergey Kharchishin
- Location: Russia, Evpatoriya
Re: Failure in Word-Export of field type entity
Found this issue. File from archive replace to plugins\ext\classes\templates\
Let me know if it works ok now.
Let me know if it works ok now.
- Attachments
-
- export_templates_blocks.zip
- (9 KiB) Downloaded 130 times