How to make assigned_to field dependent on assignment group on a UI page

Sandeep132
Kilo Sage

Hi All,

I am designing an   UI page which consists of Assignment Group and Assigned To fields. I am struck at a point where in i want to make assigned to field dependent on assignment group. like after selecting assignment group and if i select assigned to field i should get only users in the group selected.

I have checked the community which provided solution to link assignment group and assigned to but could not fit it to my requirement. I have mentioned the code here. Please help. Thanks.

<?xml version="1.0" encoding="utf-8"?>  

<j:jelly xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null" trim="false">

<script>https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js"></script>

  <body ng-app="angularHelloWorldApp" ng-controller="MainController">

  <table>

  <div>

  <tr>

<label>Assignment Group:</label>

  <g:ui_reference onchange="setGroup(this)" name="group" id="group" table="sys_user_group" query="GOTOnameSTARTSWITHHelp" completer="AJAXTableCompleter" ng-model="group"/>

  <br></br>

<label>Assigned To:</label>

  <g:ui_reference onchange="setUser(this)" name="user" id="user" table="sys_user" query="sys_idIN${jvar_users}" completer="AJAXTableCompleter" ng-model="user"/>

  <br></br>

</tr>

</div>

</table>

</body>

</j:jelly>

13 REPLIES 13

Hi Harish,



I checked the 2 posts earlier and could not understand how they are getting the assignment group value.



Thanks.


Hi Sangun,



I suggest you to Go to dictionary of "Assigned to" field and add the dependent as "assignment_group". Refer the below screenshots.



Hit like, Helpful or Mark as Answered if this resolve your query


Assigned _to.png


Assigned _Dependent.jpg



Thanks


Prashant


Hi Prashnat,



I have designed a new UI page consisting on   Assigned To and Assignment Groups and i need assigned to field to populate with only members from the assignment group selected.



Thanks.