Announcing the Global SNUG Board of Directors. Learn more here
01-22-2018 11:32 AM
Continuing discussion:
Dynamic filter using script include as reference
I'm getting some issue about conversion.
Obs:
Solved! Go to Solution.
01-23-2018 01:22 PM
Hi Shishir Srivastava ,
Thanks, we were getting deny on read permission in a custom table (GetMyBoss function).
Thank You
01-22-2018 11:38 AM
Please check if this helps:
var appLogin = Class.create();
appLogin.prototype = Object.extendsObject(AbstractAjaxProcessor, {
filterMe: function(){
var vuserid = gs.getUserID();
var vIsTrue = this.isTrue(vuserid);
if (vIsTrue == 'false')
return vuserid;
else
return this.GetMyBoss();
},
isTrue: function(vuserid){
var ObjUser = new GlideRecord('sys_user');
ObjUser.get(vuserid);
return ObjUser.u_istrue;
},
GetMyBoss: function(vuserid){
var ObjUser = new GlideRecord('sys_user');
ObjUser.get(vuserid);
return ObjUser.u_myboss.toString();
},
type: 'appLogin'
});
01-23-2018 01:22 PM
Hi Shishir Srivastava ,
Thanks, we were getting deny on read permission in a custom table (GetMyBoss function).
Thank You
01-23-2018 02:59 PM
Can you please let us know what is the error also can you please check if the user who is trying to access u_myboss field has a read permission? or is he there in that role which is with read ACL of u_myboss field?
01-24-2018 04:05 AM
That's the point, didn't happens.
I change the sample code on community my u_myboss field is a u_table.u_myboss, and my solution was create a new field u_myboss in sys_user. (faster solution), I'm thinking it's a ACL permission on u_table.
Did you know, Who is running Script include when we are using dynamic filter? It is server side or client side?
Thank You