Failure in Word-Export of field type entity

User avatar
rennecke
Sponsor
Sponsor
Posts: 214
Joined: 14 Jan 2018, 12:55
Name: Eberhard Rennecke
Location: Switzerland Zurich

Failure in Word-Export of field type entity

Post by rennecke »

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
Attachments
Failure_details.pdf
(834.63 KiB) Downloaded 129 times
35-Arbeitsleiter Meldeblatt Vorlage.docx
(47.76 KiB) Downloaded 124 times
User avatar
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

Post by support »

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.
User avatar
rennecke
Sponsor
Sponsor
Posts: 214
Joined: 14 Jan 2018, 12:55
Name: Eberhard Rennecke
Location: Switzerland Zurich

Re: Failure in Word-Export of field type entity

Post by rennecke »

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.
2020-05-20 15_07_16-Window.png
2020-05-20 15_07_16-Window.png (9.92 KiB) Viewed 670 times
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.
2020-05-20 15_11_28-Window.png
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.
User avatar
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

Post by support »

For Table List view I got the idea but I still don't know how to call for it in the word file.
What do you mean? It not displays as configured? Can you provide screenshot?
User avatar
rennecke
Sponsor
Sponsor
Posts: 214
Joined: 14 Jan 2018, 12:55
Name: Eberhard Rennecke
Location: Switzerland Zurich

Re: Failure in Word-Export of field type entity

Post by rennecke »

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:
config_page.PNG
config_page.PNG (7.88 KiB) Viewed 663 times
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?
User avatar
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

Post by support »

No, just use ${16}

See me example. I have setup Table list with two columns with several fields in it.
Attachments
screenshot-newtab-2020.05.png
screenshot-localhost-2020.05 (1).png
User avatar
rennecke
Sponsor
Sponsor
Posts: 214
Joined: 14 Jan 2018, 12:55
Name: Eberhard Rennecke
Location: Switzerland Zurich

Re: Failure in Word-Export of field type entity

Post by rennecke »

No luck on my side.
I tried it from scratch with no hassle around:
Template:
2020-05-21 12_11_08-Window.png
settings:
2020-05-21 12_10_15-Nachweiskontrolle_NW-LP10-002-2733_MSÜL4_LP10 (1) - Word.png
2020-05-21 12_09_42-Window.png
2020-05-21 12_09_22-Window.png
Result:
2020-05-21 12_09_07-Window.png
Refered entity:
2020-05-21 12_08_40-NKP Vorlage - Word.png
User avatar
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

Post by support »

Which field type you are using for field "Nachweisdocumente"?
User avatar
rennecke
Sponsor
Sponsor
Posts: 214
Joined: 14 Jan 2018, 12:55
Name: Eberhard Rennecke
Location: Switzerland Zurich

Re: Failure in Word-Export of field type entity

Post by rennecke »

I use the field type "Entity drop-down list (ajax)"
2020-05-21 15_29_46-Window.png
The same fieldtype I use for "Örtlichkeit"
The export to word is working, when I use "table":
2020-05-21 15_28_47-CBT PM - Vivaldi.png
2020-05-21 15_28_24-Nachweiskontrolle_NW-BB702Bt-MS1-003-2230_MSÜL1_LP10 (1) - Word.png
User avatar
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

Post by support »

Found this issue. File from archive replace to plugins\ext\classes\templates\
Let me know if it works ok now.
Attachments
export_templates_blocks.zip
(9 KiB) Downloaded 130 times
Post Reply