<?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>question Re: How to filter the user look up list in a UI page depending on the assignment groups of the selected records? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/how-to-filter-the-user-look-up-list-in-a-ui-page-depending-on/m-p/1473790#M130716</link>
    <description>&lt;P&gt;is there anything to change on jelly variable because from the above link am not able to get the list of user from that group&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2019 11:31:32 GMT</pubDate>
    <dc:creator>Nirosha Uddandi</dc:creator>
    <dc:date>2019-05-27T11:31:32Z</dc:date>
    <item>
      <title>How to filter the user look up list in a UI page depending on the assignment groups of the selected records?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-filter-the-user-look-up-list-in-a-ui-page-depending-on/m-p/1473785#M130711</link>
      <description>&lt;P&gt;I have a requirement to set the 'Assigned to' field value of the incident list view using a dialogwindow. For this I have set up a UI page and a list choice UI action. Now I want to put a reference qualifier to the user lookup field so that the filter contains &lt;STRONG&gt;only those user record who are the members of the assignment groups of the selected records&lt;/STRONG&gt;.i.e. same lookup list as the list edit of the 'Assigned to' field. &amp;nbsp; The UI page, and the ui action are as below&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UI Page: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Name : multiple_assignment&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HTML:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;g:ui_form&amp;gt; &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;lt;g:evaluate&amp;gt; &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; var currentTable = RP.getWindowProperties().get('current_table') || ''; &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; var sysIdList = RP.getWindowProperties().get('sys_id_list') || ''; &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;lt;/g:evaluate&amp;gt; &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;lt;input type="hidden" name="current_table" value="$[currentTable]" /&amp;gt; &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;lt;input type="hidden" name="sys_id_list" value="$[sysIdList]" /&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;span&amp;gt;Assign the selected tickets to a member of your group&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ul&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;li&amp;gt;You can only assign the records in your queue&amp;lt;/li&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ul&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;table width="580"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tr&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td nowrap="true"&amp;gt; ${gs.getMessage('Assignee')}: &amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td&amp;gt;&lt;/P&gt;&lt;P&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; &amp;nbsp; &amp;nbsp; &amp;lt;g:ui_reference name ="cuser" &amp;nbsp; table="sys_user" /&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;tr id="dialogbuttons"&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td align="right" colspan="2"&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;g:dialog_buttons_ok_cancel ok="return onSubmit();" cancel="return onCancel();"/&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/table&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/g:ui_form&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/j:jelly&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Processing Script : &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;addAssignee(); &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; &lt;/P&gt;&lt;P&gt;function addAssignee() { &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; var choice = new GlideRecord(current_table); &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; if (sys_id_list) { &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; var selectedRecords = sys_id_list.split(','); &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; choice.addQuery('sys_id', selectedRecords); &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; } &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; choice.query(); &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; while (choice.next()) { &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; gs.addInfoMessage(choice.value); &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; choice.assigned_to = cuser; &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; choice.update(); &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; } &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; refresh(); &amp;nbsp; &lt;/P&gt;&lt;P&gt;} &amp;nbsp; &lt;/P&gt;&lt;P&gt;function refresh() { &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; var urlOnStack = GlideSession.get().getStack().bottom(); &amp;nbsp; &lt;/P&gt;&lt;P&gt; &amp;nbsp; response.sendRedirect(urlOnStack); &amp;nbsp; &lt;/P&gt;&lt;P&gt;} &amp;nbsp; &lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UI Action:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Name : Add Assignee&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Onclick: showAssigneeDlg()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;function showAssigneeDlg(){&lt;/P&gt;&lt;P&gt;var gDialog = new GlideDialogWindow('multiple_assignment');&lt;/P&gt;&lt;P&gt;gDialog.setPreference('current_table', g_list.getTableName());&lt;/P&gt;&lt;P&gt;gDialog.setPreference('sys_id_list', g_list.getChecked());&lt;/P&gt;&lt;P&gt;gDialog.setTitle('Multiple Assignment');&lt;/P&gt;&lt;P&gt;gDialog.render();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/161692iBBE9C019A6E28395/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the lookup list in the above pic should only contain the members of the assignment groups of the selected records. Please can you advise me how to do that?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 10:54:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-filter-the-user-look-up-list-in-a-ui-page-depending-on/m-p/1473785#M130711</guid>
      <dc:creator>Arpan6</dc:creator>
      <dc:date>2017-10-30T10:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter the user look up list in a UI page depending on the assignment groups of the selected records?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-filter-the-user-look-up-list-in-a-ui-page-depending-on/m-p/1473786#M130712</link>
      <description>&lt;P&gt;&lt;A title="UI Page get value from g:ui_reference and pass to script include" __default_attr="270244" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="UI Page get value from g:ui_reference and pass to script include" data-renderedposition="10_8_417_16" href="https://www.servicenow.com/community?id=community_question&amp;amp;sys_id=167a87e9db5cdbc01dcaf3231f9619ae"&gt;UI Page get value from g:ui_reference and pass to script include&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Oct 2017 11:06:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-filter-the-user-look-up-list-in-a-ui-page-depending-on/m-p/1473786#M130712</guid>
      <dc:creator>Harish KM</dc:creator>
      <dc:date>2017-10-30T11:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter the user look up list in a UI page depending on the assignment groups of the selected records?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-filter-the-user-look-up-list-in-a-ui-page-depending-on/m-p/1473787#M130713</link>
      <description>&lt;P&gt;Hi Harish,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks for the update. But , I don't have the assignment group on the UI page. I only have the user field in that UI page. I want to fetch the assignment group values from the selected record in a list view.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/161690i547D1FEDB1A01330/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/161696i652C789F58BF9AD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;So, according to the images above, I want only the members of 'Service Desk' &amp;amp; 'Software' to show in the look up list of the 'Assignee' field in the dialog window. Is there a way to pass the assignment group values in the UI page?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Oct 2017 08:37:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-filter-the-user-look-up-list-in-a-ui-page-depending-on/m-p/1473787#M130713</guid>
      <dc:creator>Arpan6</dc:creator>
      <dc:date>2017-10-31T08:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter the user look up list in a UI page depending on the assignment groups of the selected records?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-filter-the-user-look-up-list-in-a-ui-page-depending-on/m-p/1473788#M130714</link>
      <description>&lt;P&gt;Does anyone have any idea how to set the reference qualifier as stated above?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Arpan&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Nov 2017 12:33:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-filter-the-user-look-up-list-in-a-ui-page-depending-on/m-p/1473788#M130714</guid>
      <dc:creator>Arpan6</dc:creator>
      <dc:date>2017-11-01T12:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter the user look up list in a UI page depending on the assignment groups of the selected records?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-filter-the-user-look-up-list-in-a-ui-page-depending-on/m-p/1473789#M130715</link>
      <description>&lt;P&gt;Got an article that helped -&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A title="How to make a ui_reference field filter dependent on a different field" __default_attr="229360" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="How to make a ui_reference field filter dependent on a different field" data-renderedposition="31_8_439_16" href="https://www.servicenow.com/community?id=community_question&amp;amp;sys_id=b4d8cb61db5cdbc01dcaf3231f9619eb"&gt;How to make a ui_reference field filter dependent on a different field&lt;/A&gt; &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Arpan &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Nov 2017 15:44:12 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-filter-the-user-look-up-list-in-a-ui-page-depending-on/m-p/1473789#M130715</guid>
      <dc:creator>Arpan6</dc:creator>
      <dc:date>2017-11-01T15:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter the user look up list in a UI page depending on the assignment groups of the selected records?</title>
      <link>https://www.servicenow.com/community/developer-forum/how-to-filter-the-user-look-up-list-in-a-ui-page-depending-on/m-p/1473790#M130716</link>
      <description>&lt;P&gt;is there anything to change on jelly variable because from the above link am not able to get the list of user from that group&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 11:31:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/how-to-filter-the-user-look-up-list-in-a-ui-page-depending-on/m-p/1473790#M130716</guid>
      <dc:creator>Nirosha Uddandi</dc:creator>
      <dc:date>2019-05-27T11:31:32Z</dc:date>
    </item>
  </channel>
</rss>

