<?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: Defaulting the value of a People control on a Form in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33643#M14226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not able to reproduce your issue.&lt;/P&gt;&lt;P&gt;Can you attach a sample process app that demonstrates the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 May 2017 15:32:58 GMT</pubDate>
    <dc:creator>gdharley</dc:creator>
    <dc:date>2017-05-19T15:32:58Z</dc:date>
    <item>
      <title>Defaulting the value of a People control on a Form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33638#M14221</link>
      <description>My process flow requires a manager to review an analyst's work and, if changes are needed, the manager can return the case to the same analyst or a different one. &amp;nbsp;When changes are&amp;nbsp;needed, I'd like to display the analyst's name to the manager and allow them to accept this analyst or select a new one</description>
      <pubDate>Fri, 12 May 2017 11:39:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33638#M14221</guid>
      <dc:creator>lsharman</dc:creator>
      <dc:date>2017-05-12T11:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Defaulting the value of a People control on a Form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33639#M14222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps I am missing something but based on your description it appears to be working for me.&lt;/P&gt;&lt;P&gt;I have attached a simple demonstration process app.&lt;BR /&gt;&lt;BR /&gt;Let me know if I have missed the point of your question.&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 14:58:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33639#M14222</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-05-12T14:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Defaulting the value of a People control on a Form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33640#M14223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks much for your answer. &amp;nbsp;I was unable to import your sample, but by reading the xml and json files, I was able to mimic your prototype and this solved my initial issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is still one scenario where I'm trying to set the assignee and it's still displaying as a number on the Manager's form. &amp;nbsp;When the Do Work task is assigned to user 1, user 1 can use the built in capability on the top of the form to reassign the task to another user (i.e., user 2). &amp;nbsp;User 2 works the task and it proceeds to the manager. &amp;nbsp;The People control on the manager form now should display user 2's name. &amp;nbsp;I've tried adding the following javascript to the Do Work task Complete task listener&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; task.getExecution().setVariable('requestAssignee', &amp;nbsp;task.getAssignee());&lt;/P&gt;&lt;P&gt;But this causes the user's number to be displayed on the manager's form instead of the name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 20:01:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33640#M14223</guid>
      <dc:creator>lsharman</dc:creator>
      <dc:date>2017-05-16T20:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Defaulting the value of a People control on a Form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33641#M14224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say it causes the users number (I assume id) to be displayed on the manager's form, what type of form field are you using? If you are using a People selector then it will show the user name not the id.&lt;BR /&gt;If you are displaying it in a regular input or text field, then indeed it will display the user id.&lt;/P&gt;&lt;P&gt;If you need the user name or email address, you need to use the userService to get that information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 21:32:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33641#M14224</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-05-16T21:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Defaulting the value of a People control on a Form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33642#M14225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using a People control on the Manager form. &amp;nbsp;It's defined as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"fields": {&lt;BR /&gt; "1": [{&lt;BR /&gt; "fieldType": "FormFieldRepresentation",&lt;BR /&gt; "id": "requestAssignee",&lt;BR /&gt; "name": "Display Assignee",&lt;BR /&gt; "type": "people",&lt;BR /&gt; "value": null,&lt;BR /&gt; "required": false,&lt;BR /&gt; "readOnly": false,&lt;BR /&gt; "overrideId": true,&lt;BR /&gt; "colspan": 1,&lt;BR /&gt; "placeholder": null,&lt;BR /&gt; "minLength": 0,&lt;BR /&gt; "maxLength": 0,&lt;BR /&gt; "minValue": null,&lt;BR /&gt; "maxValue": null,&lt;BR /&gt; "regexPattern": null,&lt;BR /&gt; "optionType": null,&lt;BR /&gt; "hasEmptyValue": null,&lt;BR /&gt; "options": null,&lt;BR /&gt; "restUrl": null,&lt;BR /&gt; "restResponsePath": null,&lt;BR /&gt; "restIdProperty": null,&lt;BR /&gt; "restLabelProperty": null,&lt;BR /&gt; "tab": null,&lt;BR /&gt; "className": null,&lt;BR /&gt; "params": {&lt;BR /&gt; "existingColspan": 1,&lt;BR /&gt; "maxColspan": 2&lt;BR /&gt; },&lt;BR /&gt; "dateDisplayFormat": null,&lt;BR /&gt; "layout": {&lt;BR /&gt; "row": -1,&lt;BR /&gt; "column": -1,&lt;BR /&gt; "colspan": 1&lt;BR /&gt; },&lt;BR /&gt; "sizeX": 1,&lt;BR /&gt; "sizeY": 1,&lt;BR /&gt; "row": -1,&lt;BR /&gt; "col": -1,&lt;BR /&gt; "visibilityCondition": null&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the Do Work task that is immediately before the Manager form, I have the following task listener for the complete event:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"formreference": {&lt;BR /&gt; "id": 15027,&lt;BR /&gt; "name": "Do-Work",&lt;BR /&gt; "referenceId": null,&lt;BR /&gt; "variablesmapping": []&lt;BR /&gt; },&lt;BR /&gt; "fieldstovariables": "",&lt;BR /&gt; "duedatedefinition": "",&lt;BR /&gt; "prioritydefinition": "",&lt;BR /&gt; "categorydefinition": "",&lt;BR /&gt; "formproperties": "",&lt;BR /&gt; "tasklisteners": {&lt;BR /&gt; "taskListeners": [{&lt;BR /&gt; "event": "complete",&lt;BR /&gt; "implementation": "org.activiti.engine.impl.bpmn.listener.ScriptTaskListener",&lt;BR /&gt; "className": "org.activiti.engine.impl.bpmn.listener.ScriptTaskListener",&lt;BR /&gt; "expression": "",&lt;BR /&gt; "delegateExpression": "",&lt;BR /&gt; "$$hashKey": "uiGrid-000H",&lt;BR /&gt; "fields": [{&lt;BR /&gt; "name": "language",&lt;BR /&gt; "implementation": "javascript",&lt;BR /&gt; "stringValue": "javascript",&lt;BR /&gt; "expression": "",&lt;BR /&gt; "string": "",&lt;BR /&gt; "$$hashKey": "uiGrid-000N"&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "name": "script",&lt;BR /&gt; "implementation": "task.getExecution().setVariable('requestAssignee', task.getAssignee());",&lt;BR /&gt; "stringValue": "task.getExecution().setVariable('requestAssignee', task.getAssignee());",&lt;BR /&gt; "expression": "",&lt;BR /&gt; "string": "",&lt;BR /&gt; "$$hashKey": "uiGrid-000T"&lt;BR /&gt; }]&lt;BR /&gt; }]&lt;BR /&gt; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the manager form is displayed, the id shows in the People control instead of the name:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://connect.hyland.com/legacyfs/online/alfresco/13991_pastedImage_6.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 01:21:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33642#M14225</guid>
      <dc:creator>lsharman</dc:creator>
      <dc:date>2017-05-17T01:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Defaulting the value of a People control on a Form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33643#M14226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not able to reproduce your issue.&lt;/P&gt;&lt;P&gt;Can you attach a sample process app that demonstrates the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 15:32:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33643#M14226</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-05-19T15:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Defaulting the value of a People control on a Form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33644#M14227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is a sample process flow where the user's Id is displayed instead of their name. &amp;nbsp;To reproduce, on the "Do Work" form, change the Assignee. &amp;nbsp;Log in as that assignee and complete the "Do Work" task. &amp;nbsp;Log back in as the initiator to see the Manager Review form where the people control displays the Id instead of the name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 May 2017 21:05:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33644#M14227</guid>
      <dc:creator>lsharman</dc:creator>
      <dc:date>2017-05-19T21:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Defaulting the value of a People control on a Form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33645#M14228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Laura,&lt;/P&gt;&lt;P&gt;The only attachment I see is the project I originally created. I see no other attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 May 2017 17:00:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33645#M14228</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-05-22T17:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Defaulting the value of a People control on a Form</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33646#M14229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="margin-top: 0; margin-bottom: 0;"&gt;Sorry about not including the attachment. &amp;nbsp;I put this on the back burner to get other stuff done, but I'm back to needing a solution. &amp;nbsp;Attached is an example process where the Id is displayed.&lt;/DIV&gt;&lt;DIV style="margin-top: 0; margin-bottom: 0;"&gt; &lt;/DIV&gt;&lt;DIV style="margin-top: 0; margin-bottom: 0;"&gt;To recap, the Id is displayed on the Initiator Review form if I change the assignee on the Do Work form using the built in capabilities at the top of the form&lt;/DIV&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lauren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2017 21:20:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/defaulting-the-value-of-a-people-control-on-a-form/m-p/33646#M14229</guid>
      <dc:creator>lsharman</dc:creator>
      <dc:date>2017-06-16T21:20:25Z</dc:date>
    </item>
  </channel>
</rss>

