<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: INSERT DOCUMENT VERSION INTO DOCX DOCUMENT in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108902#M30558</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi Eddie.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We have used part of the example you linked, without the metadata part.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The example says that if in the document there is the place holder ${Title} and in the metadata there is a property called Title the value of the property is passed to the template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To do the same we would have to add a &lt;STRONG&gt;version&lt;/STRONG&gt; property, but it would be double, because Alfresco already have a version property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition, our customer does not use an Alfresco template, that is, He does not generate a document from scratch with alfresco, He imports his own docx and to make the changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank You, Leonardo&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2020 13:03:29 GMT</pubDate>
    <dc:creator>lpercoco</dc:creator>
    <dc:date>2020-05-14T13:03:29Z</dc:date>
    <item>
      <title>INSERT DOCUMENT VERSION INTO DOCX DOCUMENT</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108896#M30552</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi.&lt;BR /&gt;I am new to Alfresco.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I have the following problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Retrieve the version of an Alfresco document (.docx). Display the version to the user. Allow the user to choose the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;new version, then modify the Alfresco document by inserting the chosen version and persist the document.&amp;nbsp;The version must be visible on the document in subsequent views.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I proceed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance, Leonardo.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 15:59:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108896#M30552</guid>
      <dc:creator>lpercoco</dc:creator>
      <dc:date>2020-05-12T15:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT DOCUMENT VERSION INTO DOCX DOCUMENT</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108897#M30553</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Which UI you are using?ADF or Share or custom UI?&lt;/P&gt;&lt;P&gt;ADF and Share UI having version functionality where you can revert choosen version and persist ,download previous version ,view previous version properties.&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 06:56:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108897#M30553</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2020-05-13T06:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT DOCUMENT VERSION INTO DOCX DOCUMENT</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108898#M30554</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Sanjay.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank You for your reply. I'm using Share UI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks, Leonardo.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 07:55:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108898#M30554</guid>
      <dc:creator>lpercoco</dc:creator>
      <dc:date>2020-05-13T07:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT DOCUMENT VERSION INTO DOCX DOCUMENT</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108899#M30555</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/81673"&gt;@lpercoco&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Can I just clarify your requirement? Am I correct that you want to allow users to revert to an earlier version of the document, set that as the final version, and have that version number added somewhere into the document? Having the version number in the document metadata is not sufficient?&lt;/P&gt;
&lt;P&gt;As an after thought, from a document management perspective, you may not want to have users setting an earlier version to be the final version?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 12:56:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108899#M30555</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-05-13T12:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT DOCUMENT VERSION INTO DOCX DOCUMENT</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108900#M30556</link>
      <description>&lt;P&gt;Hi Eddie.&lt;/P&gt;&lt;DIV class="PD IF"&gt;&lt;DIV class="JL"&gt;&lt;DIV class="Mu SP"&gt;&lt;SPAN class="tL8wMe EMoHub"&gt;I do not need the users to revert the version of the document. I just need the last version printed inside the document's front page. How can I do&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;technically? I am trying to integrate docx4j with Alfresco to update my docx document.&amp;nbsp; Is it a good solution?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="Mu SP"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="Mu SP"&gt;&lt;SPAN&gt;Thank You, Leonardo.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 May 2020 13:59:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108900#M30556</guid>
      <dc:creator>lpercoco</dc:creator>
      <dc:date>2020-05-13T13:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT DOCUMENT VERSION INTO DOCX DOCUMENT</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108901#M30557</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/81673"&gt;@lpercoco&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I don't have any experience with docx4j but the process of using it is outlined on the &lt;A href="https://github.com/6phere/alf-docx4j/wiki/Alfresco-Docx4j-metadata-exporter-Wiki" target="_blank" rel="noopener nofollow noreferrer"&gt;github page.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It say that it &amp;nbsp;"allows us to export metadata of a node into a docx or xlsx document, using a template" - so if the version number is part of a document metadata, it follows that it should be possible to add the version number into the document.&lt;/P&gt;
&lt;P&gt;There is a answer by&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/70191"&gt;@jpotts&lt;/A&gt;&amp;nbsp;that outlines an approach you might take using &lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/help-in-creating-documents/td-p/137291" target="_self" rel="nofollow noopener noreferrer"&gt;docx4j&lt;/A&gt; to do what you want.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 10:09:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108901#M30557</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-05-14T10:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT DOCUMENT VERSION INTO DOCX DOCUMENT</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108902#M30558</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Eddie.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We have used part of the example you linked, without the metadata part.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The example says that if in the document there is the place holder ${Title} and in the metadata there is a property called Title the value of the property is passed to the template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To do the same we would have to add a &lt;STRONG&gt;version&lt;/STRONG&gt; property, but it would be double, because Alfresco already have a version property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition, our customer does not use an Alfresco template, that is, He does not generate a document from scratch with alfresco, He imports his own docx and to make the changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank You, Leonardo&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 13:03:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108902#M30558</guid>
      <dc:creator>lpercoco</dc:creator>
      <dc:date>2020-05-14T13:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT DOCUMENT VERSION INTO DOCX DOCUMENT</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108903#M30559</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/81673"&gt;@lpercoco&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;You can use rules to apply aspects when a document is added to a folder - versionable is one such aspect - or add them manually. That would then give you the version property. That said, I don't understand how docx4j works regarding templates, etc.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 14:43:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/insert-document-version-into-docx-document/m-p/108903#M30559</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-05-14T14:43:53Z</dc:date>
    </item>
  </channel>
</rss>

