Calling Script Include through reference qualifier

Bharath Reddy M
Tera Contributor

Hello,

In my case I have two fields on my form. Like "Assigned to" and ''Assignment group".

Condition :

Whenever the user first selects any user from the Assigned to me field then he has get only the records of the groups that he belongs too in the Assignment group.

Vice versa, if user first selects any particular group from the Assignment group field then he has to see only the records of particular user who belongs to the selected group.

I have written a script include for this, but unfortunately it is not giving me the expected output.Please look at the script and let me know the error.

Reference Qualifier of Assignment group field.

find_real_file.png

Reference Qualifier of Assigned to field.

find_real_file.png

find_real_file.png

1 ACCEPTED SOLUTION

Hi Bharath,

You have not defined the variable user and group. You should update it with Assigneduser at line 8 and getting at line 20 in the if condition. These are the variables that you are calling in the function.

Regards,

Deepankar Mathur

View solution in original post

11 REPLIES 11

Aman Kumar S
Kilo Patron

Remove the dot after new:

javascript:new global.Assignedto()....

Best Regards
Aman Kumar

Hi,

The second function which is there in the above snip it is not executing.

Kindly can u pls check at line no 8 and line no 20

Hi Bharath,

You have not defined the variable user and group. You should update it with Assigneduser at line 8 and getting at line 20 in the if condition. These are the variables that you are calling in the function.

Regards,

Deepankar Mathur

Hello,

Actually there are not the variables they are the field names of this table "sys_user_grmember".

Do we have an alternate solution to execute the code as expected.

 

Thanks,