<?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 In audit trail for some properties names getting null for OOB in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/in-audit-trail-for-some-properties-names-getting-null-for-oob/m-p/56234#M20418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Audit trails for some property names getting null for OOB model, written condition for checking properties using dictionaryServices but not getting properties names. I wrote substring condition for getting name with property definition. find the Java snippet:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: medium;"&gt;Map propMap = (Map) o;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; propMap.forEach((k, v) -&amp;gt; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (dictionaryService.getProperty((QName) k) != null) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: medium;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cell.append(dictionaryService.getProperty((QName) k).getTitle(dictionaryService)&amp;nbsp;+ " = " + v + "\n");&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cell.append(k.toString().substring(k.toString().lastIndexOf("}") + 1, k.toString().length()) + v + "\n");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;/PRE&gt;&lt;P&gt;Mainly getting issue when I clicked document for edit offline at that time for some properties getting null. Find the below pictures for the issue:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2018 11:05:27 GMT</pubDate>
    <dc:creator>kranthi</dc:creator>
    <dc:date>2018-07-06T11:05:27Z</dc:date>
    <item>
      <title>In audit trail for some properties names getting null for OOB</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/in-audit-trail-for-some-properties-names-getting-null-for-oob/m-p/56234#M20418</link>
      <description>Hi ,Audit trails for some property names getting null for OOB model, written condition for checking properties using dictionaryServices but not getting properties names. I wrote substring condition for getting name with property definition. find the Java snippet:Map propMap = (Map) o;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; propMap.f</description>
      <pubDate>Fri, 06 Jul 2018 11:05:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/in-audit-trail-for-some-properties-names-getting-null-for-oob/m-p/56234#M20418</guid>
      <dc:creator>kranthi</dc:creator>
      <dc:date>2018-07-06T11:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: In audit trail for some properties names getting null for OOB</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/in-audit-trail-for-some-properties-names-getting-null-for-oob/m-p/56235#M20419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some properties are defined without a &lt;STRONG&gt;Title&lt;/STRONG&gt;&amp;nbsp;value in the Data Dictionary.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, &lt;EM&gt;Working Copy Label&lt;/EM&gt; property has no title defined:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-repository/blob/d8f828324419f101d6e1f7a19020864d801b3b64/src/main/resources/alfresco/model/contentModel.xml#L990" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-repository/blob/d8f828324419f101d6e1f7a19020864d801b3b64/src/main/resources/alfresco/model/contentModel.xml#L990&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can include alternatively the Name instead of the Title.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 11:22:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/in-audit-trail-for-some-properties-names-getting-null-for-oob/m-p/56235#M20419</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2018-07-09T11:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: In audit trail for some properties names getting null for OOB</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/in-audit-trail-for-some-properties-names-getting-null-for-oob/m-p/56236#M20420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Title attribute of property is not mandatory in content model of alfresco.So when you retrieve title of a property which does not exist , than it will return null.&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border: 0px; font-size: medium;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cell.append(dictionaryService.getProperty((QName) k).&lt;STRONG&gt;getTitle(dictionaryService)&lt;/STRONG&gt;&amp;nbsp;+ " = " + v + "\n");&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;You need to put if condition for title as well, If title is null than you can display the QNAME as it is or may be something else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2018 11:27:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/in-audit-trail-for-some-properties-names-getting-null-for-oob/m-p/56236#M20420</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2018-07-09T11:27:41Z</dc:date>
    </item>
  </channel>
</rss>

