Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
gendoc difficulties
#1
Hi there,

I am trying to get gendoc working but do not succeed.

I created an odt template according to the documentation which I uploaded and assigned to the contacts module. It looks like this:

Quote:{Contacts.mailingstreet}
{Contacts.mailingzip} {Contacts.mailingcity}
{Contacts.email}
Partner/in:  {Contacts.cf_833} {Contacts.cf_835} {Contacts.cf_836}
SEPA-Mandat: {Contacts.cf_842}
Kundennummer: {Contacts.contact_no}
Anrede: {Contacts.salutationtype}
Telefon: {Contacts.phone}

Then I went to /index.php?action=index&module=evvtgendoc and selected merging a contact with the assigned template using the debugging function. The debug output is as follows:

Quote:storage/2020/February/week4/292572_200226-Personendaten.odt Init Compile
Parameters
array ( 'ID' => '275051', 'MODULE' => 'Contacts', 'ROOT' => NULL, 'DOCID' => NULL, )
storage/2020/February/week4/292572_200226-Personendaten.odt START Compile 0.0056180953979492
COMPILE TEXT
array ( 'TEXT' => ' ', 'ID' => '275051', 'MODULE' => 'Contacts', )
storage/2020/February/week4/292572_200226-Personendaten.odt START Styles 0.005824089050293
storage/2020/February/week4/292572_200226-Personendaten.odt START toGenDoc 0.008242130279541
COMPILE TEXT
array ( 'TEXT' => '{Contacts.', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => 'mailingstreet', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => '}', 'ID' => '275051', 'MODULE' => 'Contacts', )
Markers found
array ( 0 => '', )
retrieve_from_db: with Contacts(275051)
REPLACE WITH: {}
COMPILE TEXT
array ( 'TEXT' => '{Contacts.', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => 'mailingzip', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => '} {Contacts.', 'ID' => '275051', 'MODULE' => 'Contacts', )
Markers found
array ( 0 => '', )
retrieve_from_db: with Contacts(275051)
REPLACE WITH: {}
COMPILE TEXT
array ( 'TEXT' => 'mailingcity', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => '}', 'ID' => '275051', 'MODULE' => 'Contacts', )
Markers found
array ( 0 => '', )
retrieve_from_db: with Contacts(275051)
REPLACE WITH: {}
COMPILE TEXT
array ( 'TEXT' => '{Contacts.email}', 'ID' => '275051', 'MODULE' => 'Contacts', )
Markers found
array ( 0 => 'Contacts.email', )
retrieve_from_db: Contacts.email with Contacts(275051)
REPLACE WITH: testbenutzer@a.web-2-mail.de
COMPILE TEXT
array ( 'TEXT' => 'Partner/in: ', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => '{', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => 'Contacts ', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => '.cf_83', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => '3', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => '}', 'ID' => '275051', 'MODULE' => 'Contacts', )
Markers found
array ( 0 => '', )
retrieve_from_db: with Contacts(275051)
REPLACE WITH: {}
COMPILE TEXT
array ( 'TEXT' => ' ', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => '{', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => 'Contacts.cf_835} {Contacts.cf_836}', 'ID' => '275051', 'MODULE' => 'Contacts', )
Markers found
array ( 0 => 'Contacts.cf_835', 1 => 'Contacts.cf_836', )
retrieve_from_db: Contacts.cf_835 with Contacts(275051)
REPLACE WITH: Neue
retrieve_from_db: Contacts.cf_836 with Contacts(275051)
REPLACE WITH: Person
COMPILE TEXT
array ( 'TEXT' => 'SEPA-Mandat: ', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => '{', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => 'Contacts ', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => '.cf_8', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => '42', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => '}', 'ID' => '275051', 'MODULE' => 'Contacts', )
Markers found
array ( 0 => '', )
retrieve_from_db: with Contacts(275051)
REPLACE WITH: {}
COMPILE TEXT
array ( 'TEXT' => ' ', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => 'Kundennummer: {Contacts.contact_no}', 'ID' => '275051', 'MODULE' => 'Contacts', )
Markers found
array ( 0 => 'Contacts.contact_no', )
retrieve_from_db: Contacts.contact_no with Contacts(275051)
REPLACE WITH: K17009
COMPILE TEXT
array ( 'TEXT' => 'Anrede: {Contacts.salutationtype}', 'ID' => '275051', 'MODULE' => 'Contacts', )
Markers found
array ( 0 => 'Contacts.salutationtype', )
retrieve_from_db: Contacts.salutationtype with Contacts(275051)
REPLACE WITH: Herr
COMPILE TEXT
array ( 'TEXT' => 'Telefon: ', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => '{Contacts.', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => 'phone', 'ID' => '275051', 'MODULE' => 'Contacts', )
COMPILE TEXT
array ( 'TEXT' => '}', 'ID' => '275051', 'MODULE' => 'Contacts', )
Markers found
array ( 0 => '', )
retrieve_from_db: with Contacts(275051)
REPLACE WITH: {}
END GenDOC 0.029922008514404 s
Post processing: Array ( [0] => {include [1] => 0 [2] => Array ( [0] => Array ( ) [1] => Array ( ) ) )
Post processing: Array ( [0] => /home/www/crm.partnerwerk.de/modules/evvtgendoc/unoservice.sh /tmp/gendoc-22mxnW file://'/home/www/crm.partnerwerk.de/cache/gendocoutput/Contacts/odtout275051.odt' file://'/home/www/crm.partnerwerk.de/cache/gendocoutput/Contacts/odtout275051.odt' [1] => )

Strangely the merging of the fields is only completed partly. This is the content of the merged file:

Quote:{Contacts.mailingstreet}
{Contacts.mailingzip} {Contacts.mailingcity}
testbenutzer@a.web-2-mail.de
Partner/in:  {Contacts.cf_833} {Contacts.cf_835} Person
SEPA-Mandat: {Contacts.cf_842}
Kundennummer: K17009
Anrede: Herr
Telefon: {Contacts.phone}

Have you got any advice what I missed or I could try to get it going?
Reply


Messages In This Thread
gendoc difficulties - partnerwerk - 02-27-2020, 03:24 PM
RE: gendoc difficulties - partnerwerk - 02-29-2020, 08:42 PM
RE: gendoc difficulties - joebordes - 03-02-2020, 10:42 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)