<?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: Access Repository from Alfresco Share and change Property in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/access-repository-from-alfresco-share-and-change-property/m-p/283018#M236148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Putting it in EnableWebFlag class would make more sense.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jan 2015 00:05:08 GMT</pubDate>
    <dc:creator>kavilash23</dc:creator>
    <dc:date>2015-01-16T00:05:08Z</dc:date>
    <item>
      <title>Access Repository from Alfresco Share and change Property</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-repository-from-alfresco-share-and-change-property/m-p/283015#M236145</link>
      <description>I am trying to change one property from my custom content type by clicking on an custom UI Action. The thing is I have very little knowledge of JavaScript. I suppose I need to create a javaScript file in share and a web script and js files in Repo. I have no idea where to put them or how to call the</description>
      <pubDate>Tue, 30 Dec 2014 15:35:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-repository-from-alfresco-share-and-change-property/m-p/283015#M236145</guid>
      <dc:creator>irenailievska</dc:creator>
      <dc:date>2014-12-30T15:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Access Repository from Alfresco Share and change Property</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-repository-from-alfresco-share-and-change-property/m-p/283016#M236146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A good starting point would be adding something like the following to your custom action java class;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;static final String SEEDIM_MODEL_1_0_URI = "&lt;/SPAN&gt;&lt;A href="http://www.seedim.com.au/model/1.0" rel="nofollow noopener noreferrer"&gt;http://www.seedim.com.au/model/1.0&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//create a qname for your custom property&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;static final QName MY_ISACTIVE = QName.createQName(SEEDIM_MODEL_1_0_URI, "isActive");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//pass on the nodeRef being act upon, the qname of your custom property and the value you want to set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nodeService.setProperty(nodeRef, MY_ISACTIVE, true);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 06:08:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-repository-from-alfresco-share-and-change-property/m-p/283016#M236146</guid>
      <dc:creator>kavilash23</dc:creator>
      <dc:date>2015-01-14T06:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Access Repository from Alfresco Share and change Property</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-repository-from-alfresco-share-and-change-property/m-p/283017#M236147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By my custom action java class you mean the SetWebFlag class from the tutorial or another class that I should write? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 08:32:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-repository-from-alfresco-share-and-change-property/m-p/283017#M236147</guid>
      <dc:creator>irenailievska</dc:creator>
      <dc:date>2015-01-14T08:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Access Repository from Alfresco Share and change Property</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-repository-from-alfresco-share-and-change-property/m-p/283018#M236148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Putting it in EnableWebFlag class would make more sense.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 00:05:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-repository-from-alfresco-share-and-change-property/m-p/283018#M236148</guid>
      <dc:creator>kavilash23</dc:creator>
      <dc:date>2015-01-16T00:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Access Repository from Alfresco Share and change Property</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-repository-from-alfresco-share-and-change-property/m-p/283019#M236149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It underlines the nodeRef variable and says nodeRef cannot be resolved to a variable… I tried searching but can't find what is the problem? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the EnableWebFlag.java class&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import company.model.myModel;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.alfresco.service.cmr.action.Action;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.alfresco.service.cmr.repository.NodeRef;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.alfresco.service.namespace.QName;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import org.alfresco.service.cmr.repository.NodeService;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public class EnableWebFlag extends SetActiveFlag {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;protected NodeService nodeService;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;protected void executeImpl(Action action, NodeRef actionedUponNodeRef) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;action.setParameterValue(SetEnableFlag.PARAM_ACTIVE, true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;QName MY_ISACTIVE = QName.createQName(myModel.NAMESPACE_COMPANY_ACTIVE_CONTENT_MODEL, "isActive");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//pass on the nodeRef being act upon, the qname of your custom property and the value you want to set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;nodeService.setProperty(nodeRef, MY_ISACTIVE, true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;super.executeImpl(action, actionedUponNodeRef);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 09:26:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-repository-from-alfresco-share-and-change-property/m-p/283019#M236149</guid>
      <dc:creator>irenailievska</dc:creator>
      <dc:date>2015-01-16T09:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Access Repository from Alfresco Share and change Property</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/access-repository-from-alfresco-share-and-change-property/m-p/283020#M236150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I needed to put actionedUponNodeRef instead of nodeRef &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt; THANKS A LOT!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The two lines worked the miracle needed to complete the action &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;QName MY_ISACTIVE = QName.createQName(myModel.NAMESPACE_COMPANY_ACTIVE_CONTENT_MODEL, "isActive");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//pass on the nodeRef being act upon, the qname of your custom property and the value you want to set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nodeService.setProperty(actionedUponNodeRef, MY_ISACTIVE, true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Irena&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 10:25:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/access-repository-from-alfresco-share-and-change-property/m-p/283020#M236150</guid>
      <dc:creator>irenailievska</dc:creator>
      <dc:date>2015-01-16T10:25:01Z</dc:date>
    </item>
  </channel>
</rss>

