<?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 Custom Action with Parameter: How can I restrict the choice to a single user? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/custom-action-with-parameter-how-can-i-restrict-the-choice-to-a/m-p/293110#M246240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added a custom action to set the value of a custom property "contact person". Now I need a form control that let's the user choose an existing user. I tried authority.ftl, but that way it is possible to select groups as well as single users.&lt;/P&gt;&lt;P&gt;This is part of my share-config-custom.xml:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;!-- Actions --&amp;gt;&lt;BR /&gt;&amp;lt;config evaluator="string-compare" condition="DocLibActions"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;actions&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action id="assign-contact-person" type="javascript" label="actions.assign-cp" icon="assign-cp"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="function"&amp;gt;onActionFormDialog&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="itemKind"&amp;gt;action&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="itemId"&amp;gt;assign-cp&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="mode"&amp;gt;create&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="destination"&amp;gt;{node.nodeRef}&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="successMessage"&amp;gt;message.assign-cp.success&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name="failureMessage"&amp;gt;message.assign-cp.failure&amp;lt;/param&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;permissions&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;permission allow="true"&amp;gt;Write&amp;lt;/permission&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/permissions&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/action&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/actions&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;actionGroups&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;actionGroup id="document-browse"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action index="500" id="assign-contact-person" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/actionGroup&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;actionGroup id="document-details"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action index="500" id="assign-contact-person" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/actionGroup&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/actionGroups&amp;gt;&lt;BR /&gt;&amp;lt;/config&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;config evaluator="string-compare" condition="assign-cp"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;forms&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;field-visibility&amp;gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;show id="contactPerson"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/field-visibility&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;appearance&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;field id="contactPerson" label="Contact Person"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;control template="/org/alfresco/components/form/controls/authority.ftl"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/field&amp;gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/appearance&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/forms&amp;gt;&lt;BR /&gt;&amp;lt;/config&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I would also follow a different approach, allowing end users to edit the custom property via "Edit Properties" - then I would need a custom constraint that makes sure that only existing user names can be selected. Is there any way to achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2016 10:45:09 GMT</pubDate>
    <dc:creator>heike</dc:creator>
    <dc:date>2016-12-05T10:45:09Z</dc:date>
    <item>
      <title>Custom Action with Parameter: How can I restrict the choice to a single user?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-action-with-parameter-how-can-i-restrict-the-choice-to-a/m-p/293110#M246240</link>
      <description>I added a custom action to set the value of a custom property "contact person". Now I need a form control that let's the user choose an existing user. I tried authority.ftl, but that way it is possible to select groups as well as single users.This is part of my share-config-custom.xml:&amp;lt;!-- Action</description>
      <pubDate>Mon, 05 Dec 2016 10:45:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-action-with-parameter-how-can-i-restrict-the-choice-to-a/m-p/293110#M246240</guid>
      <dc:creator>heike</dc:creator>
      <dc:date>2016-12-05T10:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Action with Parameter: How can I restrict the choice to a single user?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/custom-action-with-parameter-how-can-i-restrict-the-choice-to-a/m-p/293111#M246241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, check this out &lt;A class="link-titled" href="https://github.com/douglascrp/alfresco-group-member-control" title="https://github.com/douglascrp/alfresco-group-member-control" rel="nofollow noopener noreferrer"&gt;GitHub - douglascrp/alfresco-group-member-control: Custom form control that allows you to select users only from a speci…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe you can try to use the custom form control provided by this project as a starting point to you to customize the control to show only users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 01:57:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/custom-action-with-parameter-how-can-i-restrict-the-choice-to-a/m-p/293111#M246241</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2016-12-09T01:57:03Z</dc:date>
    </item>
  </channel>
</rss>

